With GetBar I have solved the problem with ChartBars.GetBarIdxByTime"". Ist good!
Now, I get another problem with a similar statement:
"ChartBars.GetTimeByBarIdx"
I'm using this statement (instead of Times[tf][n]) when I want to draw a figure into "future" bars.
First I calculate Future Time with:
ChartBars.GetTimeByBarIdx(ChartControl, CurrentBars[0]+5) -> time 5 Bars ahead in the future
and then I draw using Time instead of Bars.
How could I calculate Future Time equivalent to "n" bars ahead but without using this
"ChartBars.GetTimeByBarIdx(ChartControl, CurrentBars[0]+5)"?
Thanks!!

Comment