I would like some help to make a screener for the candles in this indicator. I would like to have one screener when it goes from red candle to green candle and one screener when it gos from green candle to red candle. It is important for me that it is two diffrent screeners. One that I can use in bull markets and one that I could use in bear markets.
I would be very happy if you could help me.
Red to Green:
// RSI candles smoothed
//
// https://www.prorealcode.com/prorealtime-indicators/rsi-candles-smoothed-with-keltner-channel/
//
RSIp = 14 //RSI period
SmoothPeriod = 3 //Smoothing period (0=no smoothing)
SmoothType = 1 //Moving average type for smoothing
SmoothPeriod = max(SmoothPeriod,1)
rsiO = average[SmoothPeriod,SmoothType](rsi[RSIp](open))
rsiC = average[SmoothPeriod,SmoothType](rsi[RSIp](close))
Bullish = rsiC > rsiO
Bearish = rsiC < RsiO
Red2Green = Bearish[1] AND Bullish
SCREENER[Red2Green]
Green to Red:
// RSI candles smoothed
//
// https://www.prorealcode.com/prorealtime-indicators/rsi-candles-smoothed-with-keltner-channel/
//
RSIp = 14 //RSI period
SmoothPeriod = 3 //Smoothing period (0=no smoothing)
SmoothType = 1 //Moving average type for smoothing
SmoothPeriod = max(SmoothPeriod,1)
rsiO = average[SmoothPeriod,SmoothType](rsi[RSIp](open))
rsiC = average[SmoothPeriod,SmoothType](rsi[RSIp](close))
Bullish = rsiC > rsiO
Bearish = rsiC < RsiO
Green2Red = Bullish[1] AND Bearish
SCREENER[Green2Red]
Thank you works very good