For example, I want to DrawText which should be located to the right of the last bar on the chart, but if I measure the distance in bars then the text location will be different from daily to minute chart that's based on the space between bars...
The solution I think is to have the distance measured in pixels rather, and convert it to bars accordingly, for example 100 pixels would equal to 3 bars on daily chart or 30 bars on minutes chart.. how to a achieve that (a function)?
Any help would be highly appreciated.
Thanks
Comment