// // @author LazyBear // // If you use modify / use this code, appreciate if you could drop me a note. // study(title = "STARC Bands [LazyBear]", shorttitle="StarcBands_LB", overlay=true) src = close length=input(15) tr_custom() => x1=high-low x2=abs(high-close) x3=abs(low-close) max(x1, max(x2,x3)) atr_custom(x,y) => sma(x,y) tr_v = tr_custom() basis=sma(src, 6) acustom=(2*atr_custom(tr_v, length)) ul=basis+acustom ll=basis-acustom m=plot(basis, linewidth=2, color=navy, style=circles, linewidth=2, title="Median") l=plot(ul, color=red, linewidth=2, title="Starc+") t=plot(ll, color=green, linewidth=2, title="Star-") fill(t,l, silver, title="Region fill")
Length = 8
Multiplyer = 2
Exponential = x
and the result is very close to STARC.
Regarding the strategy buying the lower band and selling the upper is considered lousy by people working with Keltner. At least in the simplest form. That's what I heard from traders.
Anyways, fascinated with your research and appreciate it.