How to reduce/limit number of bars in IndicatorCounted?

 

How to reduce/limit number of bars in IndicatorCounted?

For example: I want to count candles in 5 days of every time-frame.

 

Find the index of the first (oldest) bar you to start - using iBarShift(..) and start your calculation from there.

 
Carl Schreiber:

Find the index of the first (oldest) bar you to start - using iBarShift(..) and start your calculation from there.

Do you really understand the question ? It's amazing
 
IndicatorCounted() is a built in function, you cannot do anything to it, you can only calculate with the value that is returned
 
  1. Reduce bar per chart.
  2. Otherwise reduce bars processed per tick. See How to do your lookbacks correctly.
Reason: