access "n" in "for each trade" block
-
hi
is there anyway that i can access iteration number in "fore each trade"?
i want to create a button (any object) in the loop and in each loop i want the next Object position 50 pips above so in Coordinates (in the object) i want to have a formula like this 50*n
but i dont know how to access "n" in "fore each trade" block
thx for helping
-
@aliso You can create an 'n' variable and add +1 to it every time the loop is executed. Then use another variable where that '50*n' is calculated. And you can remove that 'if trade' block on top of it. It is redundant.