You will need to place the condition to trade on top of the "OnTrade" section.

You will need to place the condition to trade on top of the "OnTrade" section.

https://fxdreema.com/forum/topic/6986/check-age-based-on-candles
If BarCounter == 1 --> Modify Stops
This will display the spread value on the "Comment"

Maybe this is what you are looking for
https://fxdreema.com/forum/topic/6231/two-conditions-are-met
Yes, it is. You just need to change the Magic Number on each chart that the EA is trading.
The easiest way is to define a variable that increases by 1 when a new candle opens if there is a trade running.
int BarCounter = 0
Once per bar - If trade -> BarCounter = BarCounter+1
You have to reset that variable when there is no trade. My suggestion is to reset it when a new trade opens.
This is just an example



You can add blocks or not in each output depending on if you want to do something when the condition is met. For example,
If TF == 16392 (H8) -> do nothing (none block is connected to the true output)
otherwise -> do something (connect the next condition to the false output)
I would suggest this example as a starting point for what you are looking for
https://fxdreema.com/forum/topic/4858/total-profit-reduces-by-x-then-close-everything
I can say that it works pretty well.
Thanks to @roar and @timmyhanke to share their idea on this.
It seems to be a mismatch with the data on different timeframes
I would suggest something like

Did you get any error logged at the Trading Journal when you backtest it?
This is a good starting point for your project thanks to @miro1360
https://fxdreema.com/forum/topic/4321/tutorial-08-candle-formations
MACD is one of the available indicators in fxDreema
