Reply To: swing pattern script

Optuma Forums Optuma Scripting swing pattern script Reply To: swing pattern script

#38311
Darren
Darren
  • Topics: 13
  • Replies: 46
  • Posts: 59

Hi Tim,

Did you see Mathew’s webinar on Gann Swing scripting? If not you can watch it here – hope you find it useful:

Here’s the script he used for the upswing taking out the previous high:

// get the swings
g1 = GANNSWING(SWINGCOUNT=2, METHOD=Use Next Bar, USEINSIDE=True);
// get the ends of the swings
e1 = SWINGEND(g1);
// Calculate the up condition
(High() > e1[1]) and (e1[1] > e1[2])

Pin It on Pinterest

Share This