I am trying to develop an indicator for NT8 which will show the gaps between the first and the third bars (between high and low). If there is a gap, a rectangle will be drawn (it is very simple). I tested it in the playback connection using only 50 bars, it worked correctly.
The problem is when I use more than 3 days bars information, after enable the indicator, it gets clogged and frezze the screen, I think that's due to calculation.
How can I set calculation only for the last "X" bars (for example 100bars), in order to avoid too much calculation, any idea?
Thanks for your support in advance.

Comment