How to check last generated Arrow buffer candle count...

 
I have developed this indicator which generates Arrow buffer... i want to check if last buffer call was before 5 candles ... see my attached screenshot... what i want is to check if previous generated buffer was > last 5 candles... how do i check that?
Files:
 
Sajjad Hossain Sagor:
I have developed this indicator which generates Arrow buffer... i want to check if last buffer call was before 5 candles ... see my attached screenshot... what i want is to check if previous generated buffer was > last 5 candles... how do i check that?

Hi,

Your question is not clear,explain more.

 
I need to get the last generated Arrow Buffer for current Chart and check if that Arrow was generated before 5 Candles from Current Candle...
 
  1. There is no such thing as a "last buffer" or "last generated Arrow Buffer" — a buffer contains all arrows. Perhaps you meant "last generated arrow."
  2. Go through each shift, (current to earliest,) until you find the first non-EMPTY_VALUE.
Reason: