Gann square of 144 OSC

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

Gann square of 144 OSC

Post by henry1224 »

Under the parameters tab

N1 double 1 1 10
PRD double 144 1 144


Step1:=Ma(C,Prd);
Step2:=N1*C;
Step3:=Step1*N1;
Step4:=SQRT(Step2);
Step5:=SQRT(Step3);
Step6:=Step4 - Step5;
Step7:=(Step6 * 360)/2;
Step8:MA(Step7,2),ColorStick;
FillRgn(Step8>0,0,Step8),Brush#50008000;
FillRgn(Step8<0,0,Step8),Brush#50800000;
60,Color#808080,NoValueLabel;
-60,Color#808080,NoValueLabel;
120,Color#808080,NoValueLabel;
-120,Color#808080,NoValueLabel;
180,Color#808080,NoValueLabel;
-180,Color#808080,NoValueLabel;
240,Color#808080,NoValueLabel;
-240,Color#808080,NoValueLabel;


Crossings above a level are considered a buy

Crossing below a level are considered a sell

for lower priced stocks you might have to increase the multiplier N1
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

Re: Gann square of 144 OSC

Post by henry1224 »

use the same parameters as the above indicator

Step1:=Ma(C,Prd);
Step2:=N1*C;
Step3:=Step1*N1;
Step4:=SQRT(Step2);
Step5:=SQRT(Step3);
Step6:=Step4 - Step5;
Step7:=(Step6 * 360)/2;
Step8:MA(Step7,2),ColorStick;
FillRgn(Step8>0,0,Step8),Brush#50008000;
FillRgn(Step8<0,0,Step8),Brush#50800000;
CH_UP0:= Cross(Step8,-240);
CH_UP1:= Cross(Step8,-180);
CH_UP2:= Cross(Step8,-120);
CH_UP3:= Cross(Step8,-60);
CH_UP4:= Cross(Step8,0);
CH_UP5:= Cross(Step8,60);
CH_UP6:= Cross(Step8,120);
CH_UP7:= Cross(Step8,180);
CH_DN0:= Cross(240,Step8);
CH_DN1:= Cross(180,Step8);
CH_DN2:= Cross(120,Step8);
CH_DN3:= Cross(60,Step8);
CH_DN4:= Cross(0,Step8);
CH_DN5:= Cross(-60,Step8);
CH_DN6:= Cross(-120,Step8);
CH_DN7:= Cross(-180,Step8);
CU0:If(CH_UP0,Step8-10,Nan),Pointdot,ColorDarkGreen;
@SETTEXTVISIBLE(CU0, false);
CU1:If(CH_UP1,Step8-10,Nan),Pointdot,ColorDarkGreen;
@SETTEXTVISIBLE(CU1, false);
CU2:If(CH_UP2,Step8-10,Nan),Pointdot,ColorDarkGreen;
@SETTEXTVISIBLE(CU2, false);
CU3:If(CH_UP3,Step8-10,Nan),Pointdot,ColorDarkGreen;
@SETTEXTVISIBLE(CU3, false);
CU4:If(CH_UP4,Step8-10,Nan),Pointdot,ColorDarkGreen;
@SETTEXTVISIBLE(CU4, false);
CU5:If(CH_UP5,Step8+10,Nan),Pointdot,ColorDarkGreen;
@SETTEXTVISIBLE(CU5, false);
CU6:If(CH_UP6,Step8+10,Nan),Pointdot,ColorDarkGreen;
@SETTEXTVISIBLE(CU6, false);
CU7:If(CH_UP7,Step8+10,Nan),Pointdot,ColorDarkGreen;
@SETTEXTVISIBLE(CU7, false);
CD0:If(CH_DN0,Step8+10,Nan),Pointdot,ColorDarkRed;
@SETTEXTVISIBLE(CD0, false);
CD1:If(CH_DN1,Step8+10,Nan),Pointdot,ColorDarkRed;
@SETTEXTVISIBLE(CD1, false);
CD2:If(CH_DN2,Step8+10,Nan),Pointdot,ColorDarkRed;
@SETTEXTVISIBLE(CD2, false);
CD3:If(CH_DN3,Step8+10,Nan),Pointdot,ColorDarkRed;
@SETTEXTVISIBLE(CD3, false);
CD4:If(CH_DN4,Step8-10,Nan),Pointdot,ColorDarkRed;
@SETTEXTVISIBLE(CD4, false);
CD5:If(CH_DN5,Step8-10,Nan),Pointdot,ColorDarkRed;
@SETTEXTVISIBLE(CD5, false);
CD6:If(CH_DN6,Step8-10,Nan),Pointdot,ColorDarkRed;
@SETTEXTVISIBLE(CD6, false);
CD7:If(CH_DN7,Step8-10,Nan),Pointdot,ColorDarkRed;
@SETTEXTVISIBLE(CD7, false);
UZ :MA(Step8, 30) + (1.3185 * StD (Step8, 30)),Width2,ColorViolet;
LZ: MA(Step8, 30) - (1.3185 * StD (Step8, 30)),Width2,ColorViolet;

45,Color#808080,NoValueLabel;
-45,Color#808080,NoValueLabel;
90,Color#808080,NoValueLabel;
-90,Color#808080,NoValueLabel;
135,Color#808080,NoValueLabel;
-135,Color#808080,NoValueLabel;
180,Color#808080,NoValueLabel;
-180,Color#808080,NoValueLabel;
Post Reply