help with not buying again and selling where it should be buying again
-
I am wanting the ea to purchase when the bb are below the lower band and when the mfi is also in oversold. Then if this occurs again before my selling condition happens i would like it to purchase again the same amount. Then when the bb and the mfi are both in oversold i would like it to sell everything. In the backtest when it should buy again its selling the position? Any help would be greatly appreciated.

-
-
Will take a look at it tomorrow
-
@digitalb23 Move the "once per bar" right above "buy now"
Everything seems to work, however your conditions are only activating at the open of the candle, which the mifi was slightly above.
-
@johnle1024 thank you, did you manage to get it to sell when it's supposed to in backtest? On the first buy it worked as it should on the second it sold when oversold instead of overbought
-
also would anyone like to add how i might purchace the last bar of it being outside the BB? Is there a option once the conditions are triggered to buy after the first bull candle is printed? Might be several bars away from the condition that triggered it so dont know if that would be a option.
-
@digitalb23 work backwards is all.
Start with first bull candle that shows up, then link to the condition starting at 1 candle away, the link the false tab to same conditions but 2 candles away etc.
Finally link the true button to the buy now (with once per bar) for each condition.
So bear bar - check candle 1 buy if true, pass if false etc etc.
-
@johnle1024 thank you again