turning on automated trading from within an EA

 

I frequently find that my MT5 EA is not performing correctly because auto trading on tools/options/auto trading has been un-ticked by the system. Is there any way I can write code into my EA that would make sure auto trading was always turned on when it runs?  

Reason: