- Topics: 5
- Replies: 326
- Posts: 331
To identify only the codes that have a Gann Swing Up generated by the Breakout Rule, i’d use the following script:
//Set Swing with Breakout
D1BRK = GANNSWING(SWINGCOUNT=3, METHOD=Use Outside Bar, USEBREAKOUT=True, USECLUSTERS=True, USEINSIDE=False);
//Set Swing without Breakout
D1= GANNSWING(SWINGCOUNT=3, METHOD=Use Outside Bar, USEBREAKOUT=False, USECLUSTERS=True, USEINSIDE=False);
//Find Up Swings for both setups
D2 = SWINGUP(D1) and CLOSE() > 0;
D3 = SWINGUP(D1BRK) and CLOSE() > 0;
//Show results only for codes where the Up Swing was generated by a Breakout
D2 == 0 and D3 == 1
I’ve attached a workbook example linked to the ASX All Ords. For Mondays data (07-12-2020) of the 303 total Swing Ups found, only 14 were generated by the Breakout rule.
You must be logged in to access attached files.