Double RSI
Double RSI
Double RSI
switch type
// Divergence
lookbackRight = 5
lookbackLeft = 5
rangeUpper = 60
rangeLower = 5
bearColor = color.red
bullColor = color.green
textColor = color.white
_inRange(cond) =>
//------------------------------------------------------------------------------
// Regular Bullish
plot(
offset=-lookbackRight,
title="Regular Bullish",
linewidth=2,
plotshape(
offset=-lookbackRight,
style=shape.labelup,
location=location.absolute,
color=bullColor,
textcolor=textColor
//------------------------------------------------------------------------------
// Regular Bearish
plot(
offset=-lookbackRight,
title="Regular Bearish",
linewidth=2,
plotshape(
offset=-lookbackRight,
style=shape.labeldown,
location=location.absolute,
color=bearColor,
textcolor=textColor
//@version=5
switch type
// Divergence
lookbackRightt = 5
lookbackLeftt = 5
rangeUpperr = 60
rangeLowerr = 5
bearColorr = color.red
bullColorr = color.green
textColorr = color.white
_iinRange(cond) =>
// Regular Bullish
plot(
offset=-lookbackRight,
title="Regular Bullish",
linewidth=2,
plotshape(
offset=-lookbackRight,
style=shape.labelup,
location=location.absolute,
color=bullColor,
textcolor=textColor
)
//------------------------------------------------------------------------------
// Regular Bearish
plot(
offset=-lookbackRight,
title="Regular Bearish",
linewidth=2,
plotshape(
offset=-lookbackRight,
style=shape.labeldown,
location=location.absolute,
color=bearColor,
textcolor=textColor
)
alertcondition(bullCondAlert, title='Regular Bullish Divergence', message="Found a new Regular
Bullish Divergence, `Pivot Lookback Right` number of bars to the left of the current bar.")