i need a code for backtesting

Entry criteria - 1 st green candle , 2 nd green candle breaking the high of 1 st candle and closing above the first , entry immediately crossing the high of 2 nd candle

Hi @sensibull_premium

Streak works on OHLC data which is available after the candle closes. Hence your requirement to enter immediately after crossing the high cannot be implemented. The entries will be taken on candle closing basis.

However, we have shared conditions for your requirements:

For further queries, write back to [email protected] and the team shall help you.