Programmatically toggle EA specific "Allow Algo Trading" checkbox

Abdul Basit  

Hello all. I am looking for a way to toggle the "Allow Algo Trading" checkbox (counterpart to the MT4 "Allow Live Trading") and not toggle the "Algo Trading" button on the toolbar.

Is there a way to do it? native or dll any method is ok.

Apologies in advance if this question has been asked / answered before...I wasn't able to find it.
Alain Verleyen  
There is no good reason to do that.