Determine if last data candle
I want to know if there is a way to know if the current call to "next" within a ''strategy' is its last call. i.e. the current candle is the last candle.
I am using filters on the input data so I am unable to pre-calculate the length of data.
I think my only option is to calculate it inside "next" function, but i am unable to get the total number of candles after the filters are applied.
Thanks in advance.
I figured that "len(self.data.close.array) " returns the length of the candles, and I can use that.