HOW TO CODE THAT EA SHOULD ENABLE LIVE TRADING

 

As if the effort to enable auto trading is not enough I am not so comfortable to enable live trading all the time. How can I  make my EA to enable live trading as soon as I enable auto trading? Thank you in advance.

I can see something like IsTradeAllowed, but not something like IsTradeEnabled.

I can also see something like SYMBOL_TRADE_MODE_DISABLED. Is this the same with disabling live trading in the box below? But this one seems to return the sate of the trade mode and not perform the task.



 
macpee: How can I  make my EA to enable live trading as soon as I enable auto trading?
Makes no sense. Does the EA open immediately after you add it? If not, it will try to open once it sees a signal. If you want it to open immediately, stop using an EA and just open an order when you want one (or use a script)
Reason: