Access Chart Scale infomation
Access Chart Scale infomation
22 Mar 2019, 06:24
Hi there,
I found that ChartScale can be access as boolean from ChartSetting to determine whether to display ChartScale value or that. However,
1. how can I know which current scale it is e.g. 5 pips, 10 pips, 25 pips etc.? Like it is display on the top right of the chart.
2. how can detect the chart scale was changed, similar to detect chart setting change event?
Regards,
Noppanon
Replies
infosecdiv
30 Aug 2024, 21:58
( Updated at: 30 Aug 2024, 22:00 )
RE: Access Chart Scale infomation
PanagiotisCharalampous said:
Hi Noppanon,
1. You can get chart height in prices using Chart.TopY and Chart.BottomY
2. You can get chart height in pixels using Chart.Height
3. Chart.ScrollChanged allows to track changes in TopY and BottomYBest Regards,
Panagiotis
Hi,
Does this work for any chart type like Heikin Ahsi?
Because I only get zero when I run to get these values, Chart.TopY and Chart.BottomY, Chart.Height
Thanks in advance.
@infosecdiv
PanagiotisCharalampous
01 Sep 2024, 05:18
RE: RE: Access Chart Scale infomation
infosecdiv said:
PanagiotisCharalampous said:
Hi Noppanon,
1. You can get chart height in prices using Chart.TopY and Chart.BottomY
2. You can get chart height in pixels using Chart.Height
3. Chart.ScrollChanged allows to track changes in TopY and BottomYBest Regards,
Panagiotis
Hi,
Does this work for any chart type like Heikin Ahsi?
Because I only get zero when I run to get these values, Chart.TopY and Chart.BottomY, Chart.Height
Thanks in advance.
Hi there,
Yes it should. Share your code and your selected timeframe so that we can reproduce this behavior.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Mar 2019, 14:44
Hi Noppanon,
1. You can get chart height in prices using Chart.TopY and Chart.BottomY
2. You can get chart height in pixels using Chart.Height
3. Chart.ScrollChanged allows to track changes in TopY and BottomY
Best Regards,
Panagiotis
@PanagiotisCharalampous