Support Board
Date/Time: Mon, 24 Feb 2025 17:56:52 +0000
Post From: Hurst Bands
[2019-04-12 06:47:20] |
tomtom - Posts: 53 |
Hi thanks looking there is a script from tradesignalonline written with there equilla language, its similar to easy language from tradestation source https://www.tradesignal.com/programming-language-equilla/?lang=en Equilla "Hurst Bands" Meta: Author("Clyde Lee, www.theswingmachine.com"), Synopsis("The Hurst Bands are displaced volatility bands."), Weblink("http://www.tradesignalonline.com/lexicon/edit.aspx?id=17964"), Subchart( False ); Input: Price1(MedianPrice), Length1(10), ChanWid1(1), Price2(MedianPrice), Length2(60), ChanWid2(3); Vars: ChanHi1(0), ChanLo1(0), WidChan1(Iff(ChanWid1>0,hanWid1,ChanWid1*.001)), Ave1(0), ATR1(0), SetBack1(IntPortion((Length1-1)/2)+1), ChanHi2(0), ChanLo2(0), WidChan2(Iff(ChanWid2>0,hanWid2,ChanWid2*.001)), Ave2(0), ATR2(0), SetBack2(IntPortion((Length2-1)/2)+1) ,Ipass(0); Hurst_InnerChannel( Price1, Length1, ChanWid1 ); Hurst_OuterChannel( Price2, Length2, ChanWid2 ); // *** Copyright tradesignal GmbH *** // *** www.tradesignal.com *** Function "Hurst_InnerChannel" Inputs: Price1(NumericSeries), Length1(NumericSimple), ChanWid1(NumericSimple); Vars: ChanHi1(0), ChanLo1(0), WidChan1(Iff(ChanWid1>0,hanWid1,ChanWid1*.001)), Ave1(0), ATR1(0), IPass, SetBack1(IntPortion((Length1-1)/2)+1); If Length1>0 and Ipass=0 then begin Ave1 = Average(Price1,ength1); ATR1 = AvgTrueRange(Length1); ChanHi1= Ave1+ATR1*WidChan1; ChanLo1= Ave1-ATR1*WidChan1; Plot1[SetBack1](ChanHi1,HH1"); Plot2[SetBack1](ChanLo1,"HL1"); If IsLastBar then Begin Print("Test Kanal außen" ); Value5 = (Ave1-Ave1[SetBack1])/SetBack1; For Value1 = SetBack1-1 downto 0 begin Value3=0; Value4=Value1*2; For Value2=0 to Value4 Value3=Value3+Price1[Value2]; Ave1=Value3/(Value4+1); ChanHi1= Ave1+ATR1*WidChan1; ChanLo1= Ave1-ATR1*WidChan1; Plot1[Value1](ChanHi1,"HH1"); Plot2[Value1](ChanLo1,"HL1"); End; End; End; Hurst_InnerChannel = 0; Function "Hurst_OuterChannel" Inputs: Price2( NumericSeries ), Length2( NumericSimple ), ChanWid2( NumericSimple ); Vars: ChanHi2(0), ChanLo2(0), WidChan2(Iff(ChanWid2>0,hanWid2,ChanWid2*.001)), Ave2(0), ATR2(0), SetBack2(IntPortion((Length2-1)/2)+1) ,Ipass(0); If Length2>0 and Ipass=0 then begin Ave2 = Average(Price2,ength2); 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 IsLastBar then Begin Print("Test Kanal innen" ); Value5 = (Ave2-Ave2[SetBack2])/SetBack2; For Value1 = SetBack2-1 downto 0 begin Value3=0; Value4=Value1*2; For Value2=0 to Value4 Value3=Value3+Price2[Value2]; Ave2=Value3/(Value4+1); ChanHi2= Ave2+ATR2*WidChan2; ChanLo2= Ave2-ATR2*WidChan2; Plot3[Value1](ChanHi2,"HH2"); Plot4[Value1](ChanLo2,"HL2"); End; If Length2=0 then IPass=1; End; End; Hurst_OuterChannel = 0; [img]https://up.picr.de/35491734ox.png[/img] i tried the hurstbands or hurstchannel from MT4 but its different signals although they are the same parameters so i prefer the above version |