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
Good day everyone,
I'm new to MQL coding. The code below if I run in Strategy Tester, the ChartOpen returns value 0 and no new chart is open. But if I ran in live chart in demo account, new chart GBPUSD is created and the new chart ID is successfully return as non zero value.
The result when I run in Strategy Tester is attached below. The error code returns is '4103' which says cannot open file. I don't understand here. I'm opening a chart not a file.
The result when I run in live chart in demo account is attached below. Successfully opens new chart and returns non zero value for chart ID.
Can anyone please guide me what did I code wrong over here. How can I make the ChartOpen works in Strategy Tester? Any help or suggestion is kindly appreciated. Thanks everyone.