Number of Bars visible on Screen?

 
Hello!

I have a question for an Indicator. Is there a way to tell how many bar are visible on screen (or which time range). Background is that I want to display some data (text object) on some HLINEs on the left side of the screen.

Thanks!

Markus
 

Hello!

I have a question for an Indicator. Is there a way to tell how many bar are visible on screen (or which time range). Background is that I want to display some data (text object) on some HLINEs on the left side of the screen.

Thanks!

Markus

If I understand correctly this should work;
-Stan
int limit=number of your desired bars.
for(i=limit; i>-1; i--)
 

I have a question for an Indicator. Is there a way to tell how many bar are visible on screen (or which time range). Background is that I want to display some data (text object) on some HLINEs on the left side of the screen.

these functions are planned but i don't know exactly when they will be implemented
 
Thanks Slawa, I just wanted to make sure I'm not missing something which is already there.


Markus
Reason: