Check box "Live trading allowed"

 

Hello,

When attaching a EA to a chart, in order to activate Live Trading, one has to tick the box “Live Trading allowed”.

In my EA program I’d like to access this “box” in order to check if it is ticked or not.

If it has not been ticked I would internally disable the whole Trading Section of my EA and not wait until it returns error 4109.

Is there a default parameter in MQL4, which allows me to access this “check box” info?

Thanks for your help.

Reason: