@biztet said
For closing trade, it should happen only once after the candle close.
No, it happens on every tick, it just reads the value from last candle. Put a "once per candle" filter there, that should help
@biztet said
For closing trade, it should happen only once after the candle close.
No, it happens on every tick, it just reads the value from last candle. Put a "once per candle" filter there, that should help
@breakertrader the strategy, lol
@ajmd97fx I think sorting your array would be nice
Hi @realjoker, @l-andorrà might not have the time for detailed help for everyone asking, but he still does much more good than harm, dont you think? We shouldnt discourage helping on this forum, help is not that abundant in the first place. 
@cdwilder1 thats a very important question and I'm happy to know the answer, lol
Convert candle ID to time:
v1 = iTime(NULL,0, 123)
Put this code in a custom mql5 block and the open time of 123th candle is stored to variable v1.
https://www.mql5.com/en/docs/series/itime
Convert time to candle ID:
v1 = iBarShift(NULL,0, D'2020.02.22 12:00')
Put this code in a custom mql5 block and the ID of D'2020.02.22 12:00' candle is stored to variable v1.
https://www.mql5.com/en/docs/series/ibarshift
@ajmd97fx all right. Candle highs and lows surely work, but I think fractals need a bit different setup.
@leka-0 its a bit complicated, but here
https://fxdreema.com/shared/omHNw9vFc
@GTOAT777 you should make an example that is actually testable.
Here, check this one. TP is modified successfully.
https://fxdreema.com/shared/Uth3r2G5b

@speedsk8r well that depends on your project, what you are trying to accomplish...
But in general, you should connect everything on one chain so the proper order is ensured; you should first update your variable and then use it, not try to use a variable before it has a value.
The value will be stored in that variable so you can use it later.
@speedsk8r that is probably not the right block for you. The block gives you a yes/no answer, not a price level.
Its probably better for you to use modify variables block and then select highest/lowest price from market properties.

@speedsk8r if you want to take some chart value and store that value, a variable is always the way to go.
Maybe this helps
https://fxdreema.com/tutorial/builder/constants-and-variables
You change constants, computer changes variables.
Constants are constant from the computer's viewpoint
@speedsk8r when you create a variable, usually it gets a default value of 0 unless you specify something else. The default value doesnt matter, the system will replace it anyway.