Download MetaTrader 5
To add comments, please log in or register
Do you want to become a well-known developer? Execute the orders of traders in the Freelance service!
gsusmorales
49
gsusmorales 2014.04.08 11:04 
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 2014.04.08 12:16  
TerminalInfoInteger(TERMINAL_TRADE_ALLOWED);
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.08 12:21  
IsStopped()
?
qjol
3243
qjol 2014.04.08 12:26  

deysmacro:

IsStopped()
?

what the heck... ???
gsusmorales
49
gsusmorales 2014.04.08 12:28  
qjol:

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