1° Is your running code (opening a new chart and applying a template) an EA or a script ? An indicator has no right to trade.
2° Is your running code has specific "Allow automated trading" ?
3° Is your template saved with automated trading enabled ?
Alain Verleyen:
1° Is your running code (opening a new chart and applying a template) an EA or a script ? An indicator has no right to trade.
2° Is your running code has specific "Allow automated trading" ?
3° Is your template saved with automated trading enabled ?
Oooh! 1° looks like the answer. It's an indicator.
Thank you for your response.
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
From a pushbutton on a chart, I open a new chart:
then apply a template (which is defined with an EA on it):
But the EA has auto trading disabled.
If I apply the template manually through the terminal, it's enabled.
My global settings are: Allow automated trading.
Any thoughts on how to programmatically open a new chart, apply a template, and have the EA's auto trading enabled?