Nicolas

Hurst Cycle Channel Clone

Category: Indicators By: Nicolas Created: May 10, 2019, 8:43 AM
May 10, 2019, 8:43 AM
Indicators
8 Comments
Hurst Cycle Channel Clone

Cycle Channel is loosely based on Hurst’s nested channels. Basic idea is to identify and highlight the shorter cycles, in the context of higher degree cycles. 

This indicator plots the shorter term (red) & medium term (green) cycles as channels. Some things to note: 
As you can see the red channel keeps moving with in the bounds of green channel. When green breaches red channel, it usually signifies extreme market condition. 

Both red & green channels provide support/resistance levels. Also, the green channel provides S/R levels to the inner red channel. 

Movement of red channel with reference to green highlights reversal points, reducing momentum et al. For ex., point “(x)” in the chart shows how red channel failed to reach the upper green channel line and highlighted the local top.

(description from the original author LazyBear). Converted from pinescript by a request in the forum.

//PRC_Hurst Cycle Channel Clone | indicator
//10.05.2019
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//converted from pinescript

// --- settings 
sclt =  10 //Short Cycle Length
mclt =  30 //Medium Cycle Length
scm =  1.0 //Short Cycle Multiplier
mcm =  3.0 //Medium Cycle Multiplier
// --- end of settings 

src=customclose //Source
once scl = round(sclt/2) 
once mcl = round(mclt/2)

mascl=wilderaverage[scl](src)
mamcl=wilderaverage[mcl](src)
scmoff = scm*averagetruerange[scl]
mcmoff = mcm*averagetruerange[mcl]
once scl2=round(scl/2)
once mcl2=round(mcl/2)

sct =  mascl[scl2]+ scmoff
scb =  mascl[scl2]- scmoff
mct =  mamcl[mcl2]+ mcmoff
mcb =  mamcl[mcl2]- mcmoff

return sct coloured(232,232,232) as "ShortCycleTop", scb coloured(232,232,232) as "ShortCycleBottom", (sct+scb)/2 coloured(128,128,128) as "ShortCycleMedian", mct coloured(232,232,232) as "MediumCycleTop", mcb coloured(232,232,232) as "MedianCycleBottom", (mct+mcb)/2 coloured(128,128,128) as "MediumCycleMedian"

 

Download
Filename: PRC_Hurst-Cycle-Channel-Clone.itf
Downloads: 314
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

surfeur
6 years ago
#

Bonjour, Je suis pas expert en PRT donc si qq'un peut m'expliquer un peu le code ? Par exemple : mascl=wilderaverage[scl](src) <<<<< calcul d'une wilder mov average de 10 période sur la src (ici customclose) ?? vrai ?? scmoff = scm*averagetruerange[scl] <<<< ici calcul d'un 1*ATR(5) par rapport a quoi ? toujours la (src) ? ou le wilderma qu'on vient de calculer ? sct = mascl[scl2]+ scmoff <<<< ici j'ai du mal a comprendre ! la wilderma[5] + atr ? mascl[scl2] c'est un tableau ? Merci de m’éclairer. A bientot.

Nicolas
6 years ago
#

src c'est bien le customclose en effet. ATR, si aucune série de données n'est spécifié, il utilise Close par défaut. [scl2] = c'est la quantité de période en arrière (offset) de la série de données (variable) calculée "mascl"

jm1111enator
7 years ago
#

Hello Nicolas, Is this a conversion from Tradestation Easy Language? If so, do you have a link to the TS code? Thanks, Jim

Nicolas
7 years ago
#

Sorry I do not provide assistance for Tradestation code.

Jan Wind
7 years ago
#

Good evening Nicolas, thanks for the indicator. How are the short and medium trend periods determined; are they, generally speaking, applicable for more timeframes and markets, both indices and commoditie ? (sclt = 10 //Short Cycle Length mclt = 30 //Medium Cycle Length? KR jan

Nicolas
7 years ago
#

I don't know, that code is a 1:1 translation from another platform.

hartgeld
7 years ago
#

Bonjour Nicolas, j'ai réussi. J'ai intégré une troisième unité de temps, tout va bien! Je vais le mettre demain ...

hartgeld
7 years ago
#

Bonjour Nicolas, génial! J'ai intégré cet indicateur immédiatement. Pouvez-vous ajouter une troisième unité de temps ici? merci!

ProRealCode ProRealCode
Loading...