Glad it works for you!
@fabien-s said in put a pending order on object after x pips:
Why do we need this block when firstlevel starts with 0
This is just because I wanted a simple example with fixed grid.
The EA checks if firstlevel has ever been modified, if not, it modifies it 1 time and then always uses the same value for ever after.
A proper EA will need some new way to calculate the firstlevel as price moves on.