RSI Trendlines With Breakouts (HG)
RSI Trendlines With Breakouts (HG)
RSI Trendlines With Breakouts (HG)
0 at
https://mozilla.org/MPL/2.0/
// © HoanGhetti
//@version=5
indicator("RSI Trendlines with Breakouts [HG]", precision = 2, max_labels_count =
500, max_lines_count = 500)
import HoanGhetti/SimpleTrendlines/3 as tl
pl = fixnan(ta.pivotlow(rsi, 1, input_pLen))
ph = fixnan(ta.pivothigh(rsi, 1, input_pLen))
plData = pivot(pl)
phData = pivot(ph)
plData.style(input_pLowCol)
phData.style(input_pHighCol)
cu = breakout(plData, pl)
co = breakout(phData, ph)