TradingView “Hurst Cycle Channel Clone %B” conversion

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #177519 quote
    hillsee
    Participant
    Junior

    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

    HurstB.jpg HurstB.jpg
    #177525 quote
    robertogozzi
    Moderator
    Master

    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.

    #177794 quote
    hillsee
    Participant
    Junior

    It was really the %B presentation of the Cycle Channel that I was interested in. Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

TradingView “Hurst Cycle Channel Clone %B” conversion


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
hillsee @hillsee Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by hillsee
4 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/14/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...