There works a promotion "Bonus for communication" at forum of Forexpeoples portal, with the assistance of LiteForex company. Every registered user's post at forex forum ForexPeoples costs 30 cents. Every referral's posts costs 10 cents. See more here

+ Reply to Thread
Page 1 of 12 1 2 3 11 ... LastLast
Results 1 to 10 of 118

Thread: Bollinger Band EA

Bollinger Band EA
  1. theresia ngestiti's Avatar

    user
    Join Date: Sep 2011
    Location: Semarang
    Posts: 3,512
    USD: 0.00
    FP bonus: 0.00
    said "thanks": 0
    thanked 119 times in 106 messages
    Time Online
    3 Hours 50 Minutes 23 Seconds
    Avg. Time Online
    18 Seconds
    Reputation:
    12
    #1

    Bollinger Band EA

    Here, I want to share about Bollinger band EA, let us develop it:
    try this EA in VPS, I got profit only 3 days trial, around 3% but after that there were problem, who can develope this became profitable robot, please:
    //+------------------------------------------------------------------+
    //| BollinderBands.mq4 |
    //|
    //| |
    //+------------------------------------------------------------------+


    #property indicator_chart_window
    #property indicator_buffers 3
    #property indicator_color1 MediumSeaGreen
    #property indicator_color2 MediumSeaGreen
    #property indicator_color3 MediumSeaGreen

    //---- input parameters
    /************************************************** ***********************
    PERIOD_M1 1
    PERIOD_M5 5
    PERIOD_M15 15
    PERIOD_M30 30
    PERIOD_H1 60
    PERIOD_H4 240
    PERIOD_D1 1440
    PERIOD_W1 10080
    PERIOD_MN1 43200
    You must use the numeric value of the timeframe that you want to use
    when you set the TimeFrame' value with the indicator inputs.
    ---------------------------------------
    PRICE_CLOSE 0 Close price.
    PRICE_OPEN 1 Open price.
    PRICE_HIGH 2 High price.
    PRICE_LOW 3 Low price.
    PRICE_MEDIAN 4 Median price, (high+low)/2.
    PRICE_TYPICAL 5 Typical price, (high+low+close)/3.
    PRICE_WEIGHTED 6 Weighted close price, (high+low+close+close)/4.
    You must use the numeric value of the Applied Price that you want to use
    when you set the 'applied_price' value with the indicator inputs.
    ---------------------------------------
    MODE_SMA 0 Simple moving average,
    MODE_EMA 1 Exponential moving average,
    MODE_SMMA 2 Smoothed moving average,
    MODE_LWMA 3 Linear weighted moving average.
    You must use the numeric value of the MA Method that you want to use
    when you set the 'ma_method' value with the indicator inputs.

    ************************************************** ************************/
    extern int TimeFrame=0;
    extern int MAPeriod=20;
    extern int BandsShift=0;
    extern int StdDev=2;


    double ExtMapBuffer1[];
    double ExtMapBuffer2[];
    double ExtMapBuffer3[];
    //+------------------------------------------------------------------+
    //| Custom indicator initialization function |
    //+------------------------------------------------------------------+
    int init()
    {
    string short_name;
    //---- indicator line
    SetIndexBuffer(0,ExtMapBuffer1);
    SetIndexStyle(0,DRAW_LINE);
    SetIndexBuffer(1,ExtMapBuffer2);
    SetIndexStyle(1,DRAW_LINE);
    SetIndexBuffer(2,ExtMapBuffer3);
    SetIndexStyle(2,DRAW_LINE);
    //---- name for DataWindow and indicator subwindow label
    switch(TimeFrame)
    {
    case 1 : string TimeFrameStr="Period_M1"; break;
    case 5 : TimeFrameStr="Period_M5"; break;
    case 15 : TimeFrameStr="Period_M15"; break;
    case 30 : TimeFrameStr="Period_M30"; break;
    case 60 : TimeFrameStr="Period_H1"; break;
    case 240 : TimeFrameStr="Period_H4"; break;
    case 1440 : TimeFrameStr="Period_D1"; break;
    case 10080 : TimeFrameStr="Period_W1"; break;
    case 43200 : TimeFrameStr="Period_MN1"; break;
    default : TimeFrameStr="Current Timeframe";
    }
    IndicatorShortName(short_name+MAPeriod+") "+TimeFrameStr);
    }
    //----
    return(0);

    //+------------------------------------------------------------------+
    //| MTF Moving Average |
    //+------------------------------------------------------------------+
    int start()
    {
    datetime TimeArray[];
    int i,shift,limit,y=0,counted_bars=IndicatorCounted();

    // Plot defined timeframe on to current timeframe
    ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),TimeF rame);

    limit=Bars-counted_bars;
    for(i=0,y=0;i<limit;i++)
    {
    if (Time[i]<TimeArray[y]) y++;

    /************************************************** *********
    Add your main indicator loop below. You can reference an existing
    indicator with its iName or iCustom.
    Rule 1: Add extern inputs above for all neccesary values
    Rule 2: Use 'TimeFrame' for the indicator timeframe
    Rule 3: Use 'y' for the indicator's shift value
    ************************************************** ********/

    ExtMapBuffer1[i]=iBands(NULL,TimeFrame,MAPeriod,StdDev,BandsShift, PRICE_CLOSE,MODE_MAIN,y);
    ExtMapBuffer2[i]=iBands(NULL,TimeFrame,MAPeriod,StdDev,BandsShift, PRICE_HIGH,MODE_UPPER,y);
    ExtMapBuffer3[i]=iBands(NULL,TimeFrame,MAPeriod,StdDev,BandsShift, PRICE_LOW,MODE_LOWER,y);

    }

    //



    return(0);
    }
    //+------------------------------------------------------------------+
    Nothing is easy but nothing is impossible (Napoleon Bonaparte)
  2. The user thanked:
    TUNGUSKANO (12-03-2011)
  3. dzforex's Avatar

    user
    Join Date: Oct 2011
    Posts: 267
    USD: 0.20
    FP bonus: 0.00
    said "thanks": 0
    thanked 12 times in 11 messages
    Time Online
    N/A
    Avg. Time Online
    N/A
    Reputation:
    3
    #2
    what was ur probleme whith this ea and how he work if he work only whith bolinger i d'ont think he sucess
    you have to add some other conditions to trade ..
  4. expert Nafi's Avatar

    Public moderator
    Join Date: Aug 2011
    Location: In front of Computer
    Posts: 1,363
    USD: 0.00
    FP bonus: 0.20
    said "thanks": 308
    thanked 289 times in 206 messages
    Time Online
    1 Day 13 Hours 12 Minutes 15 Seconds
    Avg. Time Online
    2 Minutes 54 Seconds
    Reputation:
    27
    #3
    I have got one EA that BB Pro EA ...but dont know its not work on my chart/mt4 ...not even demo ...But I am working on it lol ...let me try ..its work mainly when bands out ...could be a great one
  5. theresia ngestiti's Avatar

    user
    Join Date: Sep 2011
    Location: Semarang
    Posts: 3,512
    USD: 0.00
    FP bonus: 0.00
    said "thanks": 0
    thanked 119 times in 106 messages
    Time Online
    3 Hours 50 Minutes 23 Seconds
    Avg. Time Online
    18 Seconds
    Reputation:
    12
    #4
    Quote Originally Posted by Nafi View Post
    I have got one EA that BB Pro EA ...but dont know its not work on my chart/mt4 ...not even demo ...But I am working on it lol ...let me try ..its work mainly when bands out ...could be a great one
    do you test in compile in metaeditor? usually the reason: some bars formulation were wrong, second time charts is not suitable for all of time frame charts.
    Nothing is easy but nothing is impossible (Napoleon Bonaparte)
  6. expert Nafi's Avatar

    Public moderator
    Join Date: Aug 2011
    Location: In front of Computer
    Posts: 1,363
    USD: 0.00
    FP bonus: 0.20
    said "thanks": 308
    thanked 289 times in 206 messages
    Time Online
    1 Day 13 Hours 12 Minutes 15 Seconds
    Avg. Time Online
    2 Minutes 54 Seconds
    Reputation:
    27
    #5
    Quote Originally Posted by theresia ngestiti View Post
    do you test in compile in metaeditor? usually the reason: some bars formulation were wrong, second time charts is not suitable for all of time frame charts.
    I don't know programming language , one of my friend is know that, he is also here in this forum , for me settings become very complex.
  7. rayerhak's Avatar

    newbie
    Join Date: Oct 2011
    Posts: 32
    USD: 4.80
    FP bonus: 0.00
    said "thanks": 0
    thanked 0 times in 0 messages
    Time Online
    N/A
    Avg. Time Online
    N/A
    Reputation:
    0
    #6
    Thanx for your EA i will try to use it and comeback here for a feedback
    I have never used a EA bassed on bollinger bands its very interresting
    A little question:is it you EA or another ones !!
  8. zizo's Avatar

    user
    Join Date: Sep 2011
    Posts: 107
    USD: 4.60
    FP bonus: 0.00
    said "thanks": 0
    thanked 13 times in 10 messages
    Time Online
    N/A
    Avg. Time Online
    N/A
    Reputation:
    1
    #7
    risky but profitable ea if you have a big capital


    I would like to share this ea I found on the web. credits to the creator and the person who shared it in other forum.

    I think it uses hedging and martingale. it doesn't wait for a signal, it trades as soon as you activate it.

    I don't understand it all, but I will explain what I understand.
    the killzone is the hedge gap,
    example:
    if you put 10 in kill zone
    if you buy at 1.1110
    it will put a pending sell order at 1.1100
    but I think you must put a takeprofit at least double the kill zone or bigger, so we must put 20 or more. and then the other inputs I don't understand.
    if someone uses this please tell me the best kill zone and take profit.
    but I got mc in some of my demo accounts using this with $10 capital and using .01 lot. Now I use $20.
    I think it is good to use in a trending market, because you can find the trend even if you buy or sell.
    but if you are right in your first prediction then you don't need to hedge, and just take the profit.
    it doesn't really use martingale, because it doesn't double the lot,it uses the fibonacci starting with the second 1
  9. oss909's Avatar

    newbie
    Join Date: Sep 2011
    Location: Cairo, Egypt, Egypt
    Posts: 95
    FP bonus: 0.00
    said "thanks": 0
    thanked 12 times in 9 messages
    Time Online
    N/A
    Avg. Time Online
    N/A
    Reputation:
    0
    #8
    The strategy of the EA might be sound - but backtesting on FXDD provides pretty horrible results on both H1 and H4 timeframes.
  10. techboy's Avatar

    user
    Join Date: Oct 2011
    Location: Pacific Area
    Posts: 2,745
    USD: 6.44
    FP bonus: 0.00
    said "thanks": 0
    thanked 108 times in 84 messages
    Time Online
    47 Minutes 21 Seconds
    Avg. Time Online
    3 Seconds
    Reputation:
    18
    #9
    I hope that someone has re-coded this EA to work smoothly in live trading, BB based EA may work fine in a breakout and reversal strategy. I guess there are good coders in the forum, that has a kind heart to do the modification.
    "YOU WANT TO BE SUCCESSFUL IN FOREX? - ALWAYS STICK TO YOUR TRADING RULE"
  11. oss909's Avatar

    newbie
    Join Date: Sep 2011
    Location: Cairo, Egypt, Egypt
    Posts: 95
    FP bonus: 0.00
    said "thanks": 0
    thanked 12 times in 9 messages
    Time Online
    N/A
    Avg. Time Online
    N/A
    Reputation:
    0
    #10
    I have had success with bollinger band and RSI, though not sure which is the best time frame as short timeframes aretn great with bollinger bands. Although EUR/USD volatility at the moment is also making it difficult to use!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts