//
// @author LazyBear extra SnekTrade
// List of all lazybears indicators: http://bit.ly/1LQaPK8
// This is work on top of one of lazy bears great indis , dont forget to thank him
//lazybear
study("Hurst Cycle Channel Clone %B", shorttitle="HCCC%B", overlay=false)
scl_t = input(10, title="Short Cycle Length?")
mcl_t = input(30, title="Medium Cycle Length?")
scm = input(1.0, title="Short Cycle Multiplier?")
mcm = input(3.0, title="Medium Cycle Multiplier?")
src=input(close, title="Source")
scl = scl_t/2, mcl = mcl_t/2
ma_scl=rma(src,scl)
ma_mcl=rma(src,mcl)
scm_off = scm*atr(scl)
mcm_off = mcm*atr(mcl)
scl_2=scl/2, mcl_2=mcl/2
sct = nz(ma_scl[scl_2], src)+ scm_off
scb = nz(ma_scl[scl_2], src)- scm_off
mct = nz(ma_mcl[mcl_2], src)+ mcm_off
mcb = nz(ma_mcl[mcl_2], src)- mcm_off
//me
hline(0 , color = green)
hline(0.5)
hline(1 , color = red)
plot(((src - mcb)/(mct - mcb) ) , color = green)
plot(((src - scb)/(sct - scb) ) , color = red)