Baekdoo arrows (white : long term CCI trend changing signal)
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © traderbaekdoosan

//@version=4
study("Baekdoo arrows", overlay=true)
//white arrow : CCI long period trend change
period=48
white=cci(close, period*5)

countBars = barssince(crossover(-100, white))

plotshape(crossover(white, -100) and countBars>=60, style=shape.arrowup, color=color.white, location=location.belowbar, size=size.tiny)
plotshape(crossover(white, -100) and countBars>=60, text="cci", style=shape.labelup, color=color.white, textcolor=color.black, location=location.belowbar, size=size.tiny)

//plotshape(crossover(white, -100), style=shape.arrowup, color=color.yellow, location=location.belowbar, size=size.tiny)
//plotshape(crossover(white, -100), text="cci", style=shape.labelup, color=color.yellow, textcolor=color.black, location=location.belowbar, size=size.tiny)

