NexusFi: Find Your Edge


Home Menu

 





Hurst Channel


Discussion in Sierra Chart

Updated
      Top Posters
    1. looks_one hunterpgp with 4 posts (0 thanks)
    2. looks_two jfh28 with 2 posts (1 thanks)
    3. looks_3 vegasfoster with 1 posts (0 thanks)
    4. looks_4 chueng119 with 1 posts (0 thanks)
    1. trending_up 5,108 views
    2. thumb_up 1 thanks given
    3. group 5 followers
    1. forum 9 posts
    2. attach_file 3 attachments




 
Search this Thread

Hurst Channel

  #1 (permalink)
jfh28
Philadelphia PA
 
Posts: 3 since Oct 2012
Thanks Given: 0
Thanks Received: 4

I have the late Clyde Lee's Hurst Channel code in Multichart format and would like to make it a study to use in Sierra Charts.......there's actually two versions.......one projects forward x amount of days which works well on the inner channel but not so much on the outer channel..........and one version without the projection feature. His coding of the Hurst has been the most accurate I have come across.

I was going to try and do it myself but I've never done anything in acsil before and quickly realized that I was in way over my head......is there anyone that would like to take a stab at it?


Thanks
Jack

Attached Thumbnails
Click image for larger version

Name:	HurstChannel2red.png
Views:	525
Size:	256.2 KB
ID:	91816   Click image for larger version

Name:	Hurst_Channel4red.png
Views:	376
Size:	315.3 KB
ID:	91817  
Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844


I think you can find this posted on the SC support board.

Reply With Quote
  #4 (permalink)
jfh28
Philadelphia PA
 
Posts: 3 since Oct 2012
Thanks Given: 0
Thanks Received: 4

Thanks for responding! I did check over there first and there is a Hurst channel as well as a polynominal one....but neither match up with the results of Clyde Lee's........they're both a bit off no matter what kind of tweaking you do.......and believe me I've tried.....lol.......Jack

Reply With Quote
  #5 (permalink)
 hunterpgp 
morristown nj
 
Experience: Advanced
Platform: MultiCharts, Ninja, TOS
Trading: oil, ES, NQ, TF, GC, currencies, ZB
Posts: 8 since Jan 2015
Thanks Given: 0
Thanks Received: 0


jfh28 View Post
I have the late Clyde Lee's Hurst Channel code in Multichart format and would like to make it a study to use in Sierra Charts.......there's actually two versions.......one projects forward x amount of days which works well on the inner channel but not so much on the outer channel..........and one version without the projection feature. His coding of the Hurst has been the most accurate I have come across.

I was going to try and do it myself but I've never done anything in acsil before and quickly realized that I was in way over my head......is there anyone that would like to take a stab at it?


Thanks
Jack

I read your post from several years ago and I would like to get these formulas and code for use in Multi Charts.net. Can u supply both in that form or at least the older MUlti Charts version and I will have them translated. Thank You ?

Reply With Quote
  #6 (permalink)
 hunterpgp 
morristown nj
 
Experience: Advanced
Platform: MultiCharts, Ninja, TOS
Trading: oil, ES, NQ, TF, GC, currencies, ZB
Posts: 8 since Jan 2015
Thanks Given: 0
Thanks Received: 0


jfh28 View Post
I have the late Clyde Lee's Hurst Channel code in Multichart format and would like to make it a study to use in Sierra Charts.......there's actually two versions.......one projects forward x amount of days which works well on the inner channel but not so much on the outer channel..........and one version without the projection feature. His coding of the Hurst has been the most accurate I have come across.

I was going to try and do it myself but I've never done anything in acsil before and quickly realized that I was in way over my head......is there anyone that would like to take a stab at it?


Thanks
Jack

I am interested in both Multi Chart versions of the Hurst Channel u have in your post, The forward looking and the standard. I have Multi Charts.net but will convert these and will share them with you if you have interest. Would it be possible for me to obtain the code for both asap and I will have this converted ? Thank you for your prompt attention

Reply With Quote
  #7 (permalink)
 olobay 
Montreal
 
Experience: Intermediate
Platform: MultiCharts
Broker: DeepDiscountTrading.com
Trading: CL
Posts: 364 since Jul 2011

It repaints so it's not useful in real time. In hindsight, it's the best thing ever.

 
Code
[LegacyColorValue = TRUE];

{Hurst_Channel Indicator       

 Author:   Clyde Lee, www.theswingmachine.com
           [email protected]
           
 Purpose:  This indicator will plot two different 
           channels based on the centered moving
           average of the median price of each day
           plus & minus a selected multiple of the
           N day average true range.
           
           Suggested initial values have been supplied.
           
 Reference:  the Profit Magic of STOCK TRANSACTION TIMING
             J.M. Hurst, Prentice-Hall, Inc. 1970 ....

 Copyrighted 4/2001 by Clyde Lee.  Permission to use for 
 personal  evaluations granted so long as credit is given 
 if such evaluations are published.
 
 Please let me know if you find useful changes or errors.

}
Input:  Price1(MedianPrice of Data1);
Input:  Length1(10),
        ChanWid1(1);  {Multiplier for ATR is positive          }
                      {Percent*100 of Current price if Negative}
Input:  Price2(MedianPrice of Data1);
Input:  Length2(60),
        ChanWid2(3);
Input:  CompMode(0);  {Compute mode for extension}
                      {0 = CMA shortening        }
											{>0= 2nd degree polynomial }
Input:  StopDate(0);

Vars:   ChanHi1(0),  ChanLo1(0), WidChan1(Iff(ChanWid1>0,ChanWid1,-ChanWid1*.001)),
        Ave1(0),     ATR1(0),
        SetBack1(IntPortion((Length1-1)/2)+1);
Vars:   ChanHi2(0),  ChanLo2(0), WidChan2(Iff(ChanWid2>0,ChanWid2,-ChanWid2*.001)),
        Ave2(0),     ATR2(0),
        SetBack2(IntPortion((Length2-1)/2)+1);
Vars:   DateStop(iff(stopdate<=0,1211231,StopDate)),Ipass(0);


If Length1>0 and Ipass=0 then begin
	
  Ave1   = Average(Price1,Length1);
  If ChanWid1>0
		then	ATR1   = AvgTrueRange(Length1)
		else  ATR1   = C;
  ChanHi1= Ave1+ATR1*WidChan1;
  ChanLo1= Ave1-ATR1*WidChan1;
  
  
  Plot1[SetBack1](ChanHi1,"HH1");
  Plot2[SetBack1](ChanLo1,"HL1");
  
  If LastBarOnChart or Date>=DateStop then Begin
		Value5 = (Ave1-Ave1[SetBack1])/SetBack1;
    For Value1 = SetBack1-1 downto 0 begin
      Value3=0;
      Value4=Value1*2;
      For Value2=0 to Value4 begin
        Value3=Value3+Price1[Value2];
      End;
      Ave1=Value3/(Value4+1);
			If CompMode>0 then	Ave1=Ave1*.33+(Ave1[1]+Value5*(SetBack1-Value1))*.67;
      ChanHi1= Ave1+ATR1*WidChan1;
      ChanLo1= Ave1-ATR1*WidChan1;
      Plot1[Value1](ChanHi1,"HH1");
      Plot2[Value1](ChanLo1,"HL1");
    End;
		If Length2=0 then IPass=1;
  End;
End;



{Now for second channel}
If Length2>0 and Ipass=0 then begin
  Ave2   = Average(Price2,Length2);
  If ChanWid2>0
		then	ATR2   = AvgTrueRange(Length2)
		else  ATR2   = C;
  ChanHi2= Ave2+ATR2*WidChan2;
  ChanLo2= Ave2-ATR2*WidChan2;
  
  Plot3[SetBack2](ChanHi2,"HH2");
  Plot4[SetBack2](ChanLo2,"HL2");
  
  If LastBarOnChart or Date>=DateStop then Begin
		Value5 = (Ave2-Ave2[SetBack2])/SetBack2;
    For Value1 = SetBack2-1 downto 0 begin
      Value3=0;
      Value4=Value1*2;
      For Value2=0 to Value4 begin
        Value3=Value3+Price2[Value2];
      End;
      Ave2=Value3/(Value4+1);
			If CompMode>0 then	Ave2=Ave2*.33+(Ave2[1]+Value5*(SetBack2-Value1))*.67;
      ChanHi2= Ave2+ATR2*WidChan2;
      ChanLo2= Ave2-ATR2*WidChan2;
      Plot3[Value1](ChanHi2,"HH2");
      Plot4[Value1](ChanLo2,"HL2");
    End;
		IPass=1;
  End;
End;

Reply With Quote
  #8 (permalink)
 hunterpgp 
morristown nj
 
Experience: Advanced
Platform: MultiCharts, Ninja, TOS
Trading: oil, ES, NQ, TF, GC, currencies, ZB
Posts: 8 since Jan 2015
Thanks Given: 0
Thanks Received: 0

Did I see this code on GITHUB from a guy named Thompson ?

I am looking for the code that plots 2 channels---an inner channel and an outer channel---both with forward projections

i have not installed the study u posted above but was looking at it.

The custom study I have installed has all the user inputs as the one you posted does with the exception of one named " ProjBars " which has a user imputed value of "5" to project forward 5 bars on both channel plots

I have the Study in my system now but the code is locked and I want to build a strategy for back testing and see what the results are.

The Code in Power Language is only about 8 lines in it
When the study is imported it creates a DLL named Hurst_dll
Nothing else in my system is installed as I checked by date and time for the entire system for installs or modifications

I decompliled and looked at the DLL but there is no formula within that.
It does contain a sizable amount of code--possibly something is hidden from view

It may call to something or it is hidden from the user

The study was a custom project and I paid for it and received it as part of an educational course so I have nobody to ask for it

I have the code to install it but I do not know how to proceed
As I stated, I do not want to distribute the code , I simply want to build a strategy for back testing around it.

Any ideas how to discover the formulas used for the Hurst channels and projections ?
Thanks for responding

Reply With Quote
  #9 (permalink)
 hunterpgp 
morristown nj
 
Experience: Advanced
Platform: MultiCharts, Ninja, TOS
Trading: oil, ES, NQ, TF, GC, currencies, ZB
Posts: 8 since Jan 2015
Thanks Given: 0
Thanks Received: 0



here is a picture of chart with 2 hurst channels
Purple inner channel
and Green outer channel
Both with forward projections

Reply With Quote
  #10 (permalink)
 chueng119 
Brossard
 
Experience: None
Platform: TRADESTATION
Trading: CRUDE CL
Posts: 2 since Aug 2017
Thanks Given: 0
Thanks Received: 0



hunterpgp View Post


here is a picture of chart with 2 hurst channels
Purple inner channel
and Green outer channel
Both with forward projections

What change did you make?
I have tried to modify the code, but still not calculate in real time.

Reply With Quote




Last Updated on March 7, 2018


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts