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.
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
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…