You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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