Tilson Hull 4 MA Rank

This is the place to discuss EdgeRater Chart Script

Moderator: Chris White

Post Reply
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

Tilson Hull 4 MA Rank

Post by henry1224 »

A1:= (O+H+L+C)/4;
e1:=HullMA(A1,5);
e2:=HullMA(e1,5);
e3:=HullMA(e2,5);
e4:=HullMA(e3,5);
e5:=HullMA(e4,5);
e6:=HullMA(e5,5);
e1a:=HullMA(A1,8);
e2a:=HullMA(e1a,8);
e3a:=HullMA(e2a,8);
e4a:=HullMA(e3a,8);
e5a:=HullMA(e4a,8);
e6a:=HullMA(e5a,8);
e1b:=HullMA(A1,13);
e2b:=HullMA(e1b,13);
e3b:=HullMA(e2b,13);
e4b:=HullMA(e3b,13);
e5b:=HullMA(e4b,13);
e6b:=HullMA(e5b,13);
e1c:=HullMA(A1,21);
e2c:=HullMA(e1c,21);
e3c:=HullMA(e2c,21);
e4c:=HullMA(e3c,21);
e5c:=HullMA(e4c,21);
e6c:=HullMA(e5c,21);

c1:=-.618*.618*.618;
c2:=3*.618*.618+3*.618*.618*.618;
c3:=-6*.618*.618-3*.618-3*.618*.618*.618;
c4:=1+3*.618+.618*.618*.618+3*.618*.618;
T13:=c1*e6c+c2*e5c+c3*e4c+c4*e3c,Width2,ColorBlue;
T8:=c1*e6b+c2*e5b+c3*e4b+c4*e3b,Width2,ColorCyan;
T5:=c1*e6a+c2*e5a+c3*e4a+c4*e3a,Width2,ColorRed;
T3:=c1*e6+c2*e5+c3*e4+c4*e3,Width2,ColorGreen;
SMA1:=T3;
SMA2:=T5;
SMA3:=T8;
SMA4:=T13;
P5:=If(SMA1 > SMA2 & SMA2 > SMA3 & SMA3 > SMA4,5,0),Width2,PointDot,ColorGreen;
Con4A:= If(SMA1 > SMA2 & SMA2 > SMA4 & SMA4 > SMA3,4,0);
Con4B:= If(SMA1 > SMA3 & SMA3 > SMA2 & SMA2 > SMA4,4,0);
Con4C:= If(SMA2 > SMA1 & SMA1 > SMA3 & SMA3 > SMA4,4,0);
P4:= (Con4A + Con4B + Con4C),Width2,PointDot,ColorGreen;
P3:= If(SMA2 > SMA1 & SMA1 > SMA4 & SMA4 > SMA3, 3,0),Width2,PointDot,ColorGreen;
Con2A:=If(SMA1 > SMA3 & SMA3 > SMA4 & SMA4 > SMA2,2,0);
Con2B:=If( SMA1 > SMA4 & SMA4 > SMA2 & SMA2 > SMA3,2,0);
Con2C:=If(SMA2 > SMA3 & SMA3 > SMA1 & SMA1 > SMA4,2,0);
Con2D:=If(SMA3 > SMA1 & SMA1 > SMA2 & SMA2 > SMA4,2,0);
P2:= (Con2A + Con2B + Con2C + Con2D),Width2,PointDot,ColorGreen;
Con1A:=If(SMA1 > SMA4 & SMA4 > SMA3 & SMA3 > SMA2,1,0);
Con1B:=If(SMA3 > SMA2 & SMA2 > SMA1 & SMA1 > SMA4,1,0);
P1:= (Con1A + Con1B),Width2,PointDot,ColorGreen;
M5:= If(SMA4 > SMA3 & SMA3 > SMA2 & SMA2 > SMA1, -5,0),Width2,PointDot,ColorRed;
ConM4A:=If(SMA3 > SMA4 & SMA4 > SMA2 & SMA2 > SMA1,-4,0);
ConM4B:=If(SMA4 > SMA2 & SMA2 > SMA3 & SMA3 > SMA1,-4,0);
ConM4C:=If(SMA4 > SMA3 & SMA3 > SMA1 & SMA1 > SMA2,-4,0);
M4:= (ConM4A +ConM4B + ConM4C),Width2,PointDot,ColorRed;
M3:= If(SMA3 > SMA4 & SMA4 > SMA1 & SMA1 > SMA2,-3,0),Width2,PointDot,ColorRed;
ConM2A:=If(SMA2 > SMA4 & SMA4 > SMA3 & SMA3 > SMA1,-2,0);
ConM2B:=If(SMA3 > SMA2 & SMA2 > SMA4 & SMA4 > SMA1,-2,0);
ConM2C:=If(SMA4 > SMA1 & SMA1 > SMA3 & SMA3 > SMA2,-2,0);
ConM2D:=If(SMA4 > SMA2 & SMA2 > SMA1 & SMA1 > SMA3,-2,0);
M2:=(ConM2A + ConM2B + ConM2C + ConM2D),Width2,PointDot,ColorRed;
ConM1A:=If(SMA2 > SMA3 & SMA3 > SMA4 & SMA4 > SMA1,-1,0);
ConM1B:=If(SMA4 > SMA1 & SMA1 > SMA2 & SMA2 > SMA3,-1,0);
M1:=(ConM1A + ConM1B),Width2,PointDot,ColorRed;
Total: (P5+P4+P3+P2+P1+M5+M4+M3+M2+M1),ColorBlack;
PlotUp1: FILLRGN(P1>0,0, 1),ExtendLR,Brush#80ADFF2F;
PlotUp2: FILLRGN(P2>0,0, 2),ExtendLR,Brush#8000FF7F;
PlotUp3: FILLRGN(P3>0,0, 3),ExtendLR,Brush#8000FF00;
PlotUp4: FILLRGN(P4>0,0, 4),ExtendLR,Brush#803CB371;
PlotUp5: FILLRGN(P5>0,0, 5),ExtendLR,Brush#80006400;
PlotDn1: FILLRGN(M1<0,-1,0),ExtendLR,Brush#80FFA500;
PlotDn2: FILLRGN(M2<0,-2, 0),ExtendLR,Brush#80FF69B4;
PlotDn3: FILLRGN(M3<0,-3, 0),ExtendLR,Brush#80FA8072;
PlotDn4: FILLRGN(M4<0,-4, 0),ExtendLR,Brush#80FF0000;
PlotDn5: FILLRGN(M5<0,-5, 0),ExtendLR,Brush#908B008B;
Post Reply