"and then "condition in streak

let’s say I have two conditions condition A and condition B

entry - if condition A occurs and then condition B occurs, then buy.

How do I do this? and doesn’t help

@Streak can you.

Here you can do this using AND. If you can share the requirement, I can help you with this.

lets assume 5 ema and 20 sma
if 5 ema crosses below 20 sma and then crosses above 20 sma, buy.
Also can you tell me how offset can affect it
And how to set stop at the low of 5 candles back

If there a fixed number of candles between both crossovers?

refer Scanner - Streak Help

Add an exit condition
Close lower than Prev N(Low, timeframe,-5)

maybe around 5 10 candles.
I am using 3 mins chart

Maybe 5 or 10 candles but not much,

So there is no specific number. Currently, you need to mention a specific number of candles using the offset to do this.
for a 5 candle difference, you can use
EMA (Close, 5, -5) cross below SMA (Close, 20, -5) and EMA (Close, 5,0) cross above SMA (Close, 20, 0)

The condition will check the indicator values at -(5) candle and the current candle (0)

for a 10 candle difference, you can use
EMA (Close, 5, -10) cross below SMA (Close, 20, -10) and EMA (Close, 5,0) cross above SMA (Close, 20, 0)

The condition will check the indicator values at (-10​) candle and the current candle (0) . Note, it will not check the candles in between

Thanks I will code it and let you know.