Is there way to disable or enable auto trade or live trade via custom indicator? MQL4 - page 2

 
Revazi Tchitanava:

No. Check my code and you will understand what I mean.

I want Auto trade disabled when I get Sell on stochastic and enable trades when BUY. Username for indicator is in txt file. thank you again your are the best 

That command only toggle ON/OFF or OFF/ON. You need to create a function to check if trading is activated or not, from there you can toggle to the desire value. If had time I wanted to do it for you but time is problem. 

 
Mafuta Landou:

That command only toggle ON/OFF or OFF/ON. You need to create a function to check if trading is activated or not, from there you can toggle to the desire value. If had time I wanted to do it for you but time is problem. 

Okay thank you a lot

 

Hi,

Any idea how to implement the same feature on MT5 platform?

Thank you!

Reason: