Hi,
when I open a chart with the OpenChart() function the checkbox "allow live trading" in my EA's properties is always disabled. But when I open a new chart manually, the EA's properties are correct and live trading is allowed.
I don't understand that because the function OpenChart() uses the default template which works fine manually.
Can anyone help me?
https://docs.mql4.com/chart_operations/chartapplytemplate
"Live trading and DLL imports permissions cannot be extended for the Expert Advisors launched by applying the template using ChartApplyTemplate() function."
My guess is that it also applies to opening new chart with default template using ChartOpen() (but I may be wrong).

- docs.mql4.com
https://docs.mql4.com/chart_operations/chartapplytemplate
"Live trading and DLL imports permissions cannot be extended for the Expert Advisors launched by applying the template using ChartApplyTemplate() function."
My guess is that it also applies to opening new chart with default template using ChartOpen() (but I may be wrong).
No, I think you are right. That makes sense. Ok, then I know there is no option/checkbox I have forgotten to click in the MT4 options.
Thank you!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
when I open a chart with the OpenChart() function the checkbox "allow live trading" in my EA's properties is always disabled. But when I open a new chart manually, the EA's properties are correct and live trading is allowed.
I don't understand that because the function OpenChart() uses the default template which works fine manually.
Can anyone help me?