Is there a script that will turn off all the EAs on MT4 after one (or more) EAs makes a trade? Thanks.
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.
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.
Try This EA
This is a Trailing Stop EA that I wrote. It should do what you want.
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.
There are a lot of trailing stop EAs/scripts. See this post in files' thread.
Thanks a lot.
I updated files' thread.