// 100416 @TrendoBoom study(title="ChinkouPro", shorttitle="Ch_PRO", overlay=true) //inputs src = input(close) of = input(-9, title="Chinkou'-26'") // color of 1:0 colo = close >= close[1] ? lime : red // plot for chinkou plot(src, color=blue,offset=of, transp=70, style=line, color=colo,title='Chinkou Span', linewidth=3) // alert alertcondition(close >close[of], title='ChinkouPro crosses Price', message='ChinkouPro and Price have crossed!') alertcondition(close<close[of], title='ChinkouPro crosses Price', message='ChinkouPro and Price have crossed!') // Have A Good Day . //additonal for lazy trader :) len = input(0,minval=0) smooth(x) => sma(x, len) o = smooth(open) h = smooth(high) l = smooth(low) c = smooth(close) plotcandle(o, h, l, c,color=colo)