I need help with my divergence based EA
-
I want the EA to get the high of the market within a certain number of candles for sell positions and the low of the market depending on the number of candles specified for buy positions.
After the highs and lows are detected, then the divergence block follows.This is the link to the project https://fxdreema.com/shared/M1PgAfTuc
Thanks in advance. -
@ralph1 In this picture you'll see how you can do this in a standard condition block.
link url) -
Thanks bro, let me give it a try

-
@jstap I've tried it but no positions were taken during the backtest
-
@ralph1 Add your latest project on here as a shared link and Ill take a look. I will also add this, you have a once per bar block, so you are expecting your conditions to happen at that specific time every time, quite unlikely, if you move that under your conditions then it will only be activated after conditions are true.
-
-
-
It works now, I really appreciate the help
-
@ralph1 Your welcome