Can anyone help me test and run the official sample script
m_scale_y=(m_v_scale_max!=m_v_scale_min) ? (m_y_min-m_y_max)/(m_v_scale_max-m_v_scale_min) : 1;
I have confirmed that this line of code in ChartCanvas.mqh caused the issue: The latest version of the code was changed to: This is incorrect: m_y_max-m_y_min
Auto-translation applied by moderator. On the English forum, please write in English.
Yes, at line 863 of the file "ChartCanvas.mqh", changing ...
... from:
m_scale_y=(m_v_scale_max!=m_v_scale_min) ? (m_y_max-m_y_min)/(m_v_scale_max-m_v_scale_min) : 1;
... to:
m_scale_y=(m_v_scale_max!=m_v_scale_min) ? (m_y_min-m_y_max)/(m_v_scale_max-m_v_scale_min) : 1;
... seems to correct the issue.
However, since I have never used this code before, I do not know what the correct behaviour should be.
Can I kindly ask the admin/dev @Ilyas, to look into this?
However, since I have never used this code before, I do not know what the correct behaviour should be.
Can anyone help me test and run the official sample script: Scripts/Examples/Canvas/Chart/HistogramChartSample.mq5
Normally it should be displayed
But what I get is:
This may be a bug in the official code.