Agent86: So for example OBJ_TEXT set with coordinates of price/time. Anchor set to ANCHOR_LOWER. My code works as I expect but sometimes OBJ_TEXT goes outside of the chart window. This is because price is either high or low on the chart and objects are anchored as UPPER or LOWER so this makes them off the chart. I see code for CHART_SCALE but nothing tor PRICE_SCALE that I know of. Is there such a thing for this ?
ENUM_CHART_PROPERTY_DOUBLE
ID | Description | Property Type |
---|---|---|
Fixed chart maximum | double | |
Fixed chart minimum | double | |
Scale in points per bar | double | |
Chart minimum | double r/o modifier - subwindow number | |
Chart maximum | double r/o modifier - subwindow number |
Fernando Carreiro #:
ENUM_CHART_PROPERTY_DOUBLE
ID | Description | Property Type |
---|---|---|
Fixed chart maximum | double | |
Fixed chart minimum | double | |
Scale in points per bar | double | |
Chart minimum | double r/o modifier - subwindow number | |
Chart maximum | double r/o modifier - subwindow number |
YES, thanks.
For some reason I scrolled through the long list of chart properties and thought all these only pertained to scale and not price.
This should do it 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
So for example OBJ_TEXT set with coordinates of price/time
Anchor set to ANCHOR_LOWER
My code works as I expect but sometimes OBJ_TEXT goes outside of the chart window. This is because price is either high or low on the chart and objects are anchored as UPPER or LOWER so this makes them off the chart.
I see code for CHART_SCALE but nothing tor PRICE_SCALE that I know of.
Is there such a thing for this ?
Thanks