@backtrader could you kindly help me here ?
I am unable to proceed. I need help and I am unable to figure this out on my own.

I need to check if the 1st 15 minute bar is a red or green bar. (I know how to calculate red and green bar.) I am not sure where i need to add this check so that next() will start placing trades from the 2nd candle.