Delete Pending Orders If Initial Order is Closed or…

1 replies


Customer, bbp_participant, community, 70 replies.

Visit profile

5 years ago #114550

Is there a way to delete pending limit/stop orders if an existing order is closed.




EA buys market (trade 1)

And simultaneously opens additional limit/stop orders that get triggered at certain levels.


But if trade 1 gets closed (either by hitting TP or SL) and the additional orders were NOT triggered, is there a way to have these additional orders deleted?




When using an indicator like ‘Highest’ or ‘Lowest’, is there a way to ‘fix’ the point at which the ‘highest’ and ‘lowest’ levels are set…?




at 9am, the highest 1H high of the last 10 bars might be 1.2000


at 11am, the highest 1H high of the last 10 bars is now only 1.1920 (80 pips lower)


But I want the EA to only base the highest 1H high from a point in which another rule was triggered at the 9am print. So at 11am is wouldn’t use the last 10 bars from 11am, it would still reference the highest 10 bars from 9am.


Hope that makes sense.



Please can you let me know.





Administrator, sq-ultimate, 679 replies.

Visit profile

5 years ago #134561

You can use ‘Close Position’ to cancel the order. Just use correct magic number for that.


Regarding highest/lowest you could create a helper variables to store values/prices you later need 


Viewing 2 posts - 1 through 2 (of 2 total)