//version=5
indicator('Ajab Alhajeri', overlay=true)
basePeriods = 26
donchian(len) => math.avg(ta.lowest(len), ta.highest(len))
baseLine = donchian(basePeriods)
dataUP = ta.wpr(8) > -10 and baseLine > open and baseLine < close
dataDN = ta.wpr(8) < -90 and baseLine > close and baseLine < open
plotshape(dataUP, style=shape.triangleup,
location=location.belowbar, color=color.green, size=size.normal)
plotshape(dataDN, style=shape.triangledown,
location=location.abovebar , color=color.red, size=size.normal)
plot(baseLine, color=color.blue, title="Kijun-Sen", linewidth=2)
indicator('Ajab Alhajeri', overlay=true)
basePeriods = 26
donchian(len) => math.avg(ta.lowest(len), ta.highest(len))
baseLine = donchian(basePeriods)
dataUP = ta.wpr(8) > -10 and baseLine > open and baseLine < close
dataDN = ta.wpr(8) < -90 and baseLine > close and baseLine < open
plotshape(dataUP, style=shape.triangleup,
location=location.belowbar, color=color.green, size=size.normal)
plotshape(dataDN, style=shape.triangledown,
location=location.abovebar , color=color.red, size=size.normal)
plot(baseLine, color=color.blue, title="Kijun-Sen", linewidth=2)
Related publications
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Related publications
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.