I figured that "len(self.data.close.array) " returns the length of the candles, and I can use that.
deepak singh negi
@deepak singh negi
Posts made by deepak singh negi
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.
RE: Renko Bricks
Hi, I noticed that Renko adds 1 brick for each input candle. However i would like to add multiple bricks if the closing price differs by that much. I looked into making a custom renko filter and was able to change the closing price, but it gives bricks of uneven sizes. How can i generate multiple bricks of same size.