Gann Swing Trend Style Output

Hi,

 

Seems my support query hasn't been automatically transferred to the forum so here goes - duplication!

 

I'm trying to match a Gann Swing trend colour on a Gann Swing overlay in a showview window. The script I'm using is below and the definition of the Gann Swing matches the overlay on my candlestick charts - yet the SWINGTRENDOWN function is completely out of whack with what I'm seeing on the chart.

 

I suspect I'm not using the functions correctly..

 

Anyone know what part of GannSwing (Gannswing has only SwingList, SwingStart and SwingEnd attributes) or what function I can use to replicate the trend style of a Gann Swing overlay?

 

Thanks in advance

 

Steve

 

 

 

GS = GANNSWING(SWINGCOUNT=2, METHOD=Use Next Bar, USEINSIDE=False);
GSTrendUp = SWINGTRENDUP(GS);
GSTrendDown = SWINGTRENDDOWN(GS);
GSTrendDown {Assume this is either true for a trending down swing or not?)

Seems this maybe a "bug" between showview and showbar. Showview is good and shows bar by bar yet showbar only shows first occurrence...

Hi Steven,

Not all bars include Swing Data, and the Show View / Show Bar indicators handles this differently. The Show View will automatically “pad” the data between signals, where as the Show Bar will show just the signal (This has been done by design).

You can however make a small adjustment to the script so that the Show Bar displays the same results as Show View:

GS = GANNSWING(SWINGCOUNT=2, METHOD=Use Next Bar, USEINSIDE=False);
GSTrendUp = SWINGTRENDUP(GS);
GSTrendDown = SWINGTRENDDOWN(GS);
GSTrendDown and CLOSE() > 0

By adding the “and CLOSE() > 0” to the end of the script, the Show Bar will be forced to pad the signal out the same way Show View does.

Ex1