This is the output if I put in print statement to print ChartID and GetLastError()
sd59:
hi all,
I am closing all open charts and then opening a defined set of charts afterwards.
This code works fine.
This code does not open any charts.
Any ideas please?
The internal error is here:
ChartSetInteger(chart_id,CHART_SHIFT,True); ChartSetInteger(chart_id,CHART_AUTOSCROLL,True);
MQL5 does not accept True syntax, only true (lowercase).
ChartSetInteger(chart_id,CHART_SHIFT,true); ChartSetInteger(chart_id,CHART_AUTOSCROLL,true);
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
hi all,
I am closing all open charts and then opening a defined set of charts afterwards.
This code works fine.
This code does not open any charts.
Any ideas please?