which block ?
-
Hi Admin
I want to close previous positions once candle (0) is closed?
which block i can use? -
https://fxdreema.com/tutorial/builder/things-not-to-do
The best way to detect a candle close is when a new bar borns.
-
@josecortesllobat
you are absolutely right, but which block tells you if new bar has born?
if you have away to detect new bar born please share it with mefor the link you shared it only tells the closed bars but can't work as a detector
-
To "detect" a new bar, just place the block "Once per bar" at the top of your project and connect the rest to it. With this configuration, the EA will be executed at the first tick of a new bar and you can check what you need for the previous bars like the "Candle close" with ID = 1 that is what you are asking.

https://fxdreema.com/examples#Tips-and Tricks
Once per bar -> if trade -> Close (or similar)