Bollinger band buy and sell
-
I created an EA using simple bollinger band, the condition is if the candle 2 is close bellow the lower band and the candle 1 close above the lower band it will trade buy. For the sell trade the condition is opposite the problem is during the backtest there was a candles that should have a trade but it doesnt work. Can you help me please
link text

-
Can you please share the link to the project to review it?
-
@l-andorrà here's the link https://fxdreema.com/shared/ZOJgmsk3c
-
which shifts you are using?
did you ever try with open prices instead of close ones? -
@bk7 not yet but I need the close price because if I change it the result of trades will be different
-
@kehbooo
not really open co = close c1 if there is not a gap between but normally for your thing
c2_close below bollinger & c0_open > bollinger = buy now -
@kehbooo You are using a 'one per bar' block. That means the conditions below are checked every time at the open of the most recent candle. Then you can select different candles ID depending on the value of the selected constant.
That means that some times you will get wrong results as you identified in your first post. You can check it. Select 0 on candle constant and back test it. Then try again by selecting 1 on the same chart and period. You will get different results.
-
Try This.
I havent tested it:
https://fxdreema.com/shared/ZWFD6ezrb -
@l-andorrà pls how can I test the RSI robot I made on this platform, on mt4? Can you pls recommend a broker to me. Do I need to use VPS to test the robot with.
Thanks -
@neoncorolla it still doesnt work friend
!

-
try now
https://fxdreema.com/shared/UWOWBv5te
10 pip profit, 50pip stoploss. M5 EURUSD
You can play around with the settings, but the logic is there.