Reply To: Gann Swing with different Time Frames

Optuma Forums Optuma Scripting Gann Swing with different Time Frames Reply To: Gann Swing with different Time Frames

#65427
Cuong
  • Topics: 0
  • Replies: 3
  • Posts: 3

Hi Lester

I am  new to scripting .

My approach would be to assigned  gannswing(Gs1)  as weekly and gannswing (GS2) as daily

Then write a condition for  higher low .
// Higher low with swing 0 as up
GS1 =GANNSWING(WEEK(Week(PERIODAMOUNT=1))SWINGCOUNT=2, USEINSIDE=False, DEFAULT=SwingList, METHOD=Use Next Bar, USECLUSTERS=False, USEBREAKOUT=False);

U1 =swingup(GS1);
E0=SWINGEND(GS1);
S1=OFFSET(E0,OFFSET=1);
S2=OFFSET( E0,OFFSET=2);
S3=OFFSET(E0,OFFSET=3);
s4 =OFFSET(E0,OFFSET=4);
S5=OFFSET(E0,OFFSET=5);

A1= S3 < s1  and u1;
Create another code for swing 0 as swing down
A2= s4<s2;
In the forum search for “ Help with gann swing pattern solution please”.
And change the code  GS1 to GS2 as below .

GS2 =GANNSWING(DAY(Day(PERIODAMOUNT=1))SWINGCOUNT=2, USEINSIDE=False, DEFAULT=SwingList, METHOD=Use Next Bar, USECLUSTERS=False, USEBREAKOUT=False);

And on the last line I would add in condition A1

“C8=c1 and c2 and c3 and c4 and c5 and c6 and c7 and A1”

Hope this help

Pin It on Pinterest