gann weekly swing trend query

Optuma Forums Optuma Scripting gann weekly swing trend query

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #56911
    AvatarTim
    • Topics: 10
    • Replies: 17
    • Posts: 27

    gs1 = gannswing(week());

    swingtrendup(gs1);

    The above formula i use to show when the weekly 1 bar swing is trending up and is typically overlaid on a daily chart.  So as an indicator in my scripts I use it with  ‘use as an indicator’ and ‘new tool view’, however it does not appear to register the swings correctly.    If I use monthly instead of week then it works, but for some reason I can’t get the weekly one to work.  Can anybody suggest why its not working

    thanks

    #56913
    AvatarTrevor R
    • Topics: 101
    • Replies: 299
    • Posts: 400

    Hi Guys,

    I can find no reference to SWINGTRENDUP or SWINGTRENDOWN in the Knowledge Base Formula Functions & General Interface  article even though the functions seem to work, but not as expected☹

    A Weekly Gann Swing overlay (cyan) on a Daily chart with Tim’s “Weekly” script (green) as a plot:

    20200206 Tim's Script, Ticket 56911

    I would have to agree the result is not what I’d have expected☹

    Are these Swing functions described somewhere else? Hopefully any such description will include the criteria that define when the swing trend is up.

    Cheers

    Trevor

    • This reply was modified 1 year ago by AvatarTrevor R.
    #56917
    AvatarTim
    • Topics: 10
    • Replies: 17
    • Posts: 27

    Thanks Trev, Swing trend up  is for ganns rules whereby so long as the market was making higher swing lows then the trend was up and of course trend is down when that swing low is broken and so forth.  If you use monthly instead of week you will see that it works but for some reason not when using the weekly term.  ‘swingtrendup’ is an option when doing functions.

    #56919
    AvatarTim
    • Topics: 10
    • Replies: 17
    • Posts: 27

    The only problem when using swingtrendup/down function is that it won’t show trend change until the end of time period, so for example if on a monthly swing chart the previous trend being down suddenly breaks above the most recent swing high mid month to cause a swing trend change on a monthly basis, it will not actually show that trend change until the end of month. I should also add that if you use the same function but use number of bars on the daily chart then it also works.

    #56921
    MathewMathew
    • Topics: 36
    • Replies: 1,810
    • Posts: 1,846

    Ahh, looks like I forgot to add those to the KB.

    Change the colour scheme of your Gann Swings to “Trend” and you will see what this tool is capturing. Gann put forward the idea that the trend is up not when the swing turned up but when a previous high was taken out. It stayed in an up trend until a previous low was taken out.

    If you want the SwingUp(), use that function or do gs1.IsUp

    All the best

    Mathew

    swing

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest