You decide how to use it.
Generally speaking it works better with a time frame higher than the current one.
My Website: http://synapticex.com
Generally speaking it works better with a time frame higher than the current one.
My Website: http://synapticex.com
//by synapticex.com //@version=2 study("GalloBias", overlay=true) length = input(15, minval=1) tf = input(title="GalloBiasTF", type=resolution, defval = "D") galloF(length)=> volatility = sum(abs(close-close[1]), length) change = abs(close-close[length-1]) er = iff(volatility != 0, change/volatility, 0) sc = pow((er*(0.666666-0.064516))+0.064516, 2) k = nz(k[1])+(sc*(hl2-nz(k[1]))) gallo = security(tickerid,tf,galloF(length)) galloA = sma(gallo, 5) fillcolor = gallo>galloA ? lime : gallo==galloA ? gray : red fill(plot(gallo, color=fillcolor, title="GalloBias",transp=0, trackprice=false, style=line),plot(galloA, color=fillcolor, title="GalloAverage",transp=0, trackprice=false, style=line), gray, transp=0)