Scanner for stocks in which 5 dma in daily candles have crossed 50 dma in daily candles in last last "n" number days

please create a streak scanner for all such stocks in which 5 days exponential moving average (in daily candles) have crossed 50 dema (in daily candles) in last last “n” number days that is say last 100 days or 180 days etc.

@Streak can you.

i can create the scanner but will have to constantly offset the number of days in the indicator function and scan for each and every day

Hi @tukan1975tukan

This is possible.

This is not possible. The crossover offset needs to be fixed.

No workaround for this. The only possibility as of now is repeating the same condition with OR and offset
Example:

5EMA(0) crosses above 50DEMA(0) or
5EMA(1) crosses above 50DEMA(1) or
5EMA(2) crosses above 50DEMA(2) or
5EMA(3) crosses above 50DEMA(3) or
5EMA(4) crosses above 50DEMA(4)
so on…