Download MetaTrader 5
To add comments, please log in or register
Sign up to publish an article and receive 200 USD
masoud0455_a
51
masoud0455_a 2016.08.03 19:35 

I was wonder if there is any Function to put in my  EA to enable AutoTrading when it accidentally disabled.

Is there any function to do it in MQL4 ???

peter.MT4Web
158
peter.MT4Web 2016.08.04 10:23  

It make no sense to change a safety functionallity for the platform from an EA.

Your EA can check if trading is enabled ( IsTradeAllowed ) and show an alert.

masoud0455_a
51
masoud0455_a 2016.08.04 13:45  

IsTradeAllow()  is for chekcing Allow Live Trading in input of each Experts.


IsExpertEnabled() is for checking the button on Toolbar


Imagine if AutoTrading was disabled on my VPS when I was sleeping at midnight. Is there any function to Enable it?
I know IsExpertEnabled()  is just for checking not for Enable this button.

whroeder1
13641
whroeder1 2016.08.04 15:05  
masoud0455_a: Is there any function to Enable it?
No
/
To add comments, please log in or register