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

To add comments, please log in or register
Mafuta Landou
1474
Mafuta Landou  
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. 

Revazi Tchitanava
61
Revazi Tchitanava  
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

12
To add comments, please log in or register