Or it could simply be a script that will only allow one (or a set amount) of trades to be open at one time.
To allow only a set amount of trades open at a single time just test if OrdersTotal <= K (k= maximum amount of trades you want open at a given time) on the same place you test your order opening condition.
Or
Simply attach your EA here and i'll edit that for you
Trailing stop Programming
Hi there, am trying to write an EA which will use trailing stops only. Does anyone know how to do this? I mean trailing stops moved by my EA and not the dealer's desk.
Thanks.
Pipsqueak2
Try This EA
Hi there, am trying to write an EA which will use trailing stops only. Does anyone know how to do this? I mean trailing stops moved by my EA and not the dealer's desk.
Thanks.
Pipsqueak2This is a Trailing Stop EA that I wrote. It should do what you want.
Is there a script that will turn off all the EAs on MT4 after one (or more) EAs makes a trade? Thanks.
1- Go to metatrader.info and find my script that sends keyboard keys to MetaTrader.
2- Write a script that sends CTRL+E to MetaTrader (turn off all EAs) after one (or more) EAs makes a trade?
3- How to know there's opened trades:
OrdersTotal > 0;
4- How to know the orders opened by EAs and not manual:
Check OrderMagicNumber() or/and OrderComment() of the opened trades.
This is a Trailing Stop EA that I wrote. It should do what you want. https://www.mql5.com/en/forum/175680
Thanks a lot.
I updated files' thread.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is there a script that will turn off all the EAs on MT4 after one (or more) EAs makes a trade? Thanks.