Is there any function to enable/disable AutoTrading?

Back to topics list To post a new topic, please log in or register
avatar
17
masoud0455_a 2016.08.03 21: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 ???

avatar
108
eddie 2016.08.04 12: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.

avatar
17
masoud0455_a 2016.08.04 15: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.



avatar
13000
WHRoeder 2016.08.04 17:05 #
 
masoud0455_a: Is there any function to Enable it?
No
Back to topics list  

To add comments, please log in or register