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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.