I want to understand mql loops

[Deleted]  

I want to learn looping routines in MQL. The below is not about making money, it is about learning how to stick together programming components..

The EA places OP_BUYSTOP and OP_SELLSTOP orders either side of market, and also OP_BUYLIMIT/OP_SELLLIMIT orders either side of the market.

The above I can do already. It's a very busy chart with all the execute, SL and TP lines - I know.

I wish to learn how to loop the routine so that with each tick, any closed trades are reopened and of the same type. Eg, if the OP_BUYSTOP hits its TP, then the next tick will cause that order to be reordered.

Phil

This website uses cookies. Learn more about our Cookies Policy.