Could anyone convert this indicator from tradingview? A %B of lazy bears Hurst Cycle Channel Clone
//
// @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)
Thanks
There’s no need to convert it, it’s already in the library https://www.prorealcode.com/prorealtime-indicators/hurst-cycle-channel-clone/.
You may take advantage of the search box that opens whenever you hover your avatar on the top right corner of the blue bar to search for any word or combination of words, such like HURST.
It was really the %B presentation of the Cycle Channel that I was interested in. Thanks