I'm trying to draw some text 'near' the High/Low of bars, and I need to Offset the Text from the actual High/Low prices of the bars.
To ensure that the Offset amount is correct for charts from 1-Minute to 1-Week, the Offset is effectively a Percentage of the Price Range on the y-Axis of the chart.
Is the Price Range of the Y-Axis available inside eFS?
-----
Alternatively, the way to do this with a Sledgehamer would be to get the Maximum High and Minimum Low prices for all bars displayed in the WINDOW.
However, I'm not sure how to determine WHICH are currently shown in the Chart window.
I'm assuming the right-most bar will be Zero, but what is the left-most bar in the window (NOT the left-most bar that there is data for)???
ANY help pointing me to the correct place in the relevant documentation, or Code snippets, would be GREATLY appreciated.
To ensure that the Offset amount is correct for charts from 1-Minute to 1-Week, the Offset is effectively a Percentage of the Price Range on the y-Axis of the chart.
Is the Price Range of the Y-Axis available inside eFS?
-----
Alternatively, the way to do this with a Sledgehamer would be to get the Maximum High and Minimum Low prices for all bars displayed in the WINDOW.
However, I'm not sure how to determine WHICH are currently shown in the Chart window.
I'm assuming the right-most bar will be Zero, but what is the left-most bar in the window (NOT the left-most bar that there is data for)???
ANY help pointing me to the correct place in the relevant documentation, or Code snippets, would be GREATLY appreciated.
Comment