There is no such button on MetaTrader for turning "live trading" on/off.
There is only a button for turning "Algo Trading" on/off.
There is also no function in MQL for either option.
Hello,everyone
Is there a function that able to set live trading on/off ?
It is same as turn on/off live trading by click on terminal.
thank you
You could try "return;" at the beginning of each OnTick() or under certain conditions. It will skip rest of codes of the function.
You could try "return;" at the beginning of each OnTick() or under certain conditions. It will skip rest of codes of the function.
I found one at least ...
How to Disable/Enable Auto/Algo-Trading in both MT5 and MT4.
Kailash Bai Mina, 2022.04.21 07:38
Just simple codes to Disable/Enable Auto/Algo-Trading in both MT5 and MT4. Of course, DLLs must be allowed, This cannot be done without DLLs
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,everyone
Is there a function that able to set live trading on/off ?
It is same as turn on/off live trading by click on terminal.
thank you