Gann Swing Trend Style Output

Optuma Forums Optuma Scripting Gann Swing Trend Style Output

This topic contains 2 replies, has 2 voices, and was last updated by Matthew Matthew 2 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46743

    Steven
    • Topics: 5
    • Replies: 5
    • Posts: 10

    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?)

    Attachments:
    #46751

    Steven
    • Topics: 5
    • Replies: 5
    • Posts: 10

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

    #46759
    Matthew
    Matthew
    • Topics: 3
    • Replies: 58
    • Posts: 61

    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:

    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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

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