Reply To: Gann Swing – Show Bar

Optuma Forums Optuma Scripting Gann Swing – Show Bar Reply To: Gann Swing – Show Bar

#28651
Darren
  • Topics: 70
  • Replies: 802
  • Posts: 872

Hi Jonathan,

Try these scripts for the Show Bar:

Buy Signal

GS1 = GANNSWING(METHOD=Use Next Bar);
// Look for the downswing and its swing low is higher than the previous swing slow
(SWINGEND(GS1) < SWINGSTART(GS1)) and (SWINGEND(GS1) > SWINGSTART(GS1, OFFSET=1)) and
// And the current bar high is greater than the previous swing high
(High() > SWINGEND(GS1, OFFSET=1)) and (Low() > SWINGEND(GS1))
Sell Signal
 GS1 = GANNSWING(METHOD=Use Next Bar);
// Look for the upswing and its swing high is lower than the previous swing high
(SWINGEND(GS1) > SWINGSTART(GS1)) and (SWINGEND(GS1) < SWINGSTART(GS1, OFFSET=1)) and
// And the current bar low is lower than the previous swing low
(Low() < SWINGSTART(GS1, OFFSET=1)) and (High() < SWINGSTART(GS1))
Note that the arrows will be applied to the bar where the swing is confirmed, as per the attached weekly chart of CBA.
  • This reply was modified 5 years ago by Darren.

Pin It on Pinterest