Solution

#47747

Michael
  • Topics: 0
  • Replies: 2
  • Posts: 2

Solution

The code for the down swing should be:  

// Define the Gann Swing criteria GS1 = GANNSWING(SWINGCOUNT=3,METHOD=USE NEXT BAR);

// Get Previous Up Swing Length and 2.5% tolerance levels

R1 = SWINGEND(GS1,OFFSET=1) – ((SWINGend(GS1,OFFSET=1) – SWINGstart(GS1,OFFSET=1)) * 0.475);

R2 = SWINGEND(GS1,OFFSET=1) – ((SWINGend(GS1,OFFSET=1) – SWINGstart(GS1,OFFSET=1)) * 0.525);

//Is the current swing between the tolerance levels? SWINGEND(GS1) < R1 AND SWINGEND(GS1) > R2  

 

That then gives the result attached.

cheers Michael

  • This reply was modified 2 months, 3 weeks ago by  Michael.
Attachments:

Pin It on Pinterest

Share This

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close