Trapheal:
Please, am having difficulty drawing from the edge of the chart, how do I go about it for point 1 and point 2 in picture below. Thanks.
Chart minimum | double r/o modifier - subwindow number | |
Chart maximum | double r/o modifier - subwindow number |
![Documentation on MQL5: Constants, Enumerations and Structures / Chart Constants / Examples of Working with the Chart Documentation on MQL5: Constants, Enumerations and Structures / Chart Constants / Examples of Working with the Chart](https://c.mql5.com/36/44/documentation-on-mql5-constants__28.png)
Documentation on MQL5: Constants, Enumerations and Structures / Chart Constants / Examples of Working with the Chart
- www.mql5.com
Examples of Working with the Chart - Chart Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Vladimir Karputov:
Chart minimum | double r/o modifier - subwindow number | |
Chart maximum | double r/o modifier - subwindow number |
Thanks.
double p1/*Maximum price*/ and p2;// Minimum Price void OnChartEvent(const int id,const long& lparam,const double& dparam,const string& sparam) { if(id==CHARTEVENT_MOUSE_MOVE) { p1 = ChartGetDouble(0, CHART_PRICE_MAX); p2 = ChartGetDouble(0, CHART_PRICE_MIN); Print(p1, " ", p2); } }
The value is relative to the current view, if you scroll back, the value changes. Am trying to get the new value with the new code above but it is not working.
Thanks.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Please, am having difficulty drawing from the edge of the chart, how do I go about it for point 1 and point 2 in picture below. Thanks.