Download MetaTrader 5

How to reduce/limit number of bars in IndicatorCounted?

To add comments, please log in or register
Learn operation principles of Trading Signals for MetaTrader.
Musngi
301
Musngi 2016.11.30 14:59 

How to reduce/limit number of bars in IndicatorCounted?

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

Carl Schreiber
6590
Carl Schreiber 2016.11.30 15:43  

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

Alain Verleyen
Moderator
30731
Alain Verleyen 2016.11.30 17:01  
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
Keith Watford
Moderator
9627
Keith Watford 2016.11.30 23:07  
IndicatorCounted() is a built in function, you cannot do anything to it, you can only calculate with the value that is returned
whroeder1
14504
whroeder1 2016.12.01 02:39  
  1. Reduce bar per chart.
  2. Otherwise reduce bars processed per tick. See How to do your lookbacks correctly.
To add comments, please log in or register