Warren2010:
Anyone know how to catch the 'Algo Trading Button' click event in an EA? If it is turned on or off I need to run some logic.
TIA
TerminalInfoXXX() will give you what you need.
There is no event being triggered, we can watch.
You need to watch the state of trading allowed/enabled to notice if the switch has changed state.
Warren2010:
Anyone know how to catch the 'Algo Trading Button' click event in an EA? If it is turned on or off I need to run some logic.
TIA
if you mean the settings in the options then check TERMINAL_TRADE_ALLOWED
So basically in OnTick or OnTimer just check to see if it's enabled?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Anyone know how to catch the 'Algo Trading Button' click event in an EA? If it is turned on or off I need to run some logic.
TIA