Download MetaTrader 5

How to detect switch off/ on of autotrade button in mql4?

To add comments, please log in or register
gsusmorales
60
gsusmorales  
How can I detect switch off/ on of autotrade button in mql4?

The thing is that I don't know how I could restart some variables just when starting auotrade big button, like a reinitialisation.

This is for stop trading when a conditions are reached, and started again when I switch off and I switch on again.

Thank you so much
qjol
3243
qjol  
TerminalInfoInteger(TERMINAL_TRADE_ALLOWED);
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI  
IsStopped()
?
qjol
3243
qjol  

deysmacro:

IsStopped()
?

what the heck... ???
gsusmorales
60
gsusmorales  
qjol:

So for example it is true when enabled and false when disabled or 1 / 0 ? Thank you so much
qjol
3243
qjol  
it's always: true = 1, false = 0;
To add comments, please log in or register