How limit the number of bars which an indicator??

 

Hi!!


I expect the title match my question...sometimes english is a little hard for me.

The question is that I have a custom indi, my first cusotm indi. The indi is showed in a separated window and is showed for all bars in charts. Sometimes I have a large amount of bars in charts and the terminal refresh slow. I know that this can be limited but I don't found how.


Thanks.

 
 
Thanks, I know that, but limiting that inside the code?? I mean, if I attach the indi to chart that only show the indi for 100 bars, for example.
 

I've found something, SetIndexDrawBegin(), maybe this is the solution, I'm going to play with this function.

Reason: