This super simple Kijun-sen line borrowed from Ichimoku Clouds for trend following.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
Want to use this script on a chart?
study(title="Oscars Simple Trend Ichimoku Kijun-sen", shorttitle="OTrend Kijun", overlay=true) Length = input(34, minval=1) Trigger = input(5, minval=1), donchian(len) => avg(lowest(len), highest(len)) conversionLine = donchian(Trigger) baseLine = donchian(Length) leadLine1 = avg(conversionLine, baseLine) kjuncol = conversionLine > baseLine ? blue : conversionLine < baseLine ? red : orange plot(baseLine, color=kjuncol,linewidth=2,transp=5, title="Base Line") almatrend = alma(baseLine, 34, 0.85, 6) plot(almatrend,transp=85)