Dow Swing

This topic contains 13 replies, has 4 voices, and was last updated by Avatar Lester 3 weeks, 1 day ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #53855
    Avatar
    Lester
    • Topics: 10
    • Replies: 15
    • Posts: 25

    1.       I am looking for a script for Dow Swing.  Dow Swing is a technique taught by Dale Gillham of Wealth Within.

    It is similar to Gann Swing.  However in a Gann Swing; outside bars are always considered.  In Dow Swing they are treated as part of the trend unless they happen to form the peak or trough?

    The GANNSWING() function always includes consideration of Outside bars, even if it is not listed in the parenthesis.  There is no DOWSWING function!

    2.       Also are there any functions that identify Up Bars and Down Bars (i.e. the Green & Red Bars when swing relations is selected on the chart)?

     

    Cheers, Lester

    #53869
    Darren
    Darren
    • Topics: 41
    • Replies: 280
    • Posts: 321

    Hi Lester,

    You can set the GANNSWING() function to ignore outside bars by changing it to Use Next Bar:

    Capture

    For up days use CLOSE() IsUp and CLOSE() IsDown for down days.

    #53871
    Avatar
    Lester
    • Topics: 10
    • Replies: 15
    • Posts: 25

    Help please

    Hi Darren,

    I did try that and it did not work for me.  It still seems to recognize the outside bar.

    I tried it with the Gann Swing Overlay (GSO).  Please see the attached picture.  The outside bar with down bars on each side is still considered!

    I also tried the it with a Show Plot GANNSWING(SWINGCOUNT=1, USEINSIDE=True, METHOD=Use Next Bar).  It produced the same result as the GSO.

    Regards, Lester

    Attachments:
    #53881
    Darren
    Darren
    • Topics: 41
    • Replies: 280
    • Posts: 321

    Hi Lester,

    Outside bars can’t be ignored completely – when ‘use next bar’ is selected we have to wait to see what the next bar is doing to determine whether the outside should be treated as a high or a low swing. If the outside bar is used then it will be both a high and low swing.

    See Mathew’s video here on swing construction and how inside/outside bars are treated:

    Gann Swings Part 1

    Part 2 looks at scripting Gann Swings:

    Gann Swings Part 2

    #53887
    Avatar
    Lester
    • Topics: 10
    • Replies: 15
    • Posts: 25

    New Feature Request?

    Hi Darren,

    Thanks for your answer.  Can I request an additional feature to ignore outside bars within a trend move.

    Should I make a request on another forum topic?

    As I said before it is one of the trading trading methods taught by Dale Gillham of Wealth Within.  Dale teaches students to use both Gann Swing and Dow Swing methods (i.e. ignoring the outside bar).  Depending on the personality of the share, one can work better than the other.  Addition of this feature would save having to back test manually.

    Regards, Lester

     

    #53891
    Avatar
    Jonathan
    • Topics: 31
    • Replies: 46
    • Posts: 77

    I am not sure why Optuma havn’t built these directly into Optuma for all WW students who use Optuma.

     

    Would only make sense, I still don’t have a working Dow Swing system in place using Optuma for automatic detection… I graduated nearly 2 years ago…

    #53897
    Avatar
    Lester
    • Topics: 10
    • Replies: 15
    • Posts: 25

    Up & Down Bars

    Hi Darren,

    Can you please also help with identifying functions that easily identify Up Bars and Down Bars (i.e. the Green & Red Bars when swing relations is selected on the chart)?  There must already be internal coding in Optuma because it can identify them and colour them accordingly.

    Such a feature would easily help to script for back testing of Counter Trend entries.  Counter trend theory is another method taught by Dale Gillham of Wealth Within.

    Regards, Lester

    #53899
    Matthew
    Matthew
    • Topics: 4
    • Replies: 186
    • Posts: 190

    Hi Lester,

    The Bartypes() function is what you’re after:

    https://help.optuma.com/kb/faq.php?id=992

    Ex3

    #53909
    Avatar
    Lester
    • Topics: 10
    • Replies: 15
    • Posts: 25

    Hi Matthew,

    Thank you very much.

    Lester

    #53935
    Avatar
    Jonathan
    • Topics: 31
    • Replies: 46
    • Posts: 77

    Lester,

     

    When you get a script… please feel free to share with community.

    #53953
    Avatar
    Lester
    • Topics: 10
    • Replies: 15
    • Posts: 25

    Hi Jonathan,

    I could be wrong about this, but I believe Dow Swing searching cannot be done with scripting at present.

    There needs to be alteration of the underlying Optuma code to allow the search routine for Out Side bars to be turned off.

    I have added my request for such a feature in the “New Feature” forum.

    It would add more weight if you also add to my request in the “New Feature” forum.

    Cheers, Lester

    #53955
    Avatar
    Jonathan
    • Topics: 31
    • Replies: 46
    • Posts: 77

    Yeh,

     

    It was something I tried to solve over a year back.

     

    We need to marsh together to build scripts on all WW content.

     

    Heck, I dont have time to be manually back testing! haha

    #54099
    Avatar
    Lester
    • Topics: 10
    • Replies: 15
    • Posts: 25

    Hi Johnathan and Forum,

    I don’t think this is a solution for scripting a Dow Swing however, it may be of interest to you.

    The MetaStock Advanced Formula Writing – Formula Primer II seems to cover identification of peaks and troughs as done by the Optuma scripting functions for Gann Swing.

    The document can be found here:

    https://www.metastock.com/customer/resources/formulas/Formula_Primer_II.pdf

    Chapter 7 covers Pivots.  Page 50 headed “Highs & Lows” which seems to describe Dow Swings.

    The text works through various algorithms to identify peaks and troughs.

    I have made translations from MetaStock Formula Language to Optuma Scripting Language.  My formulas complete without error but do not work.

    I have tried some in MetaStock and they produce a binary wave which lines up correctly with peaks.  I attempted to apply the formulas to the MetaStock Expert without success.  I am not well versed with MetaStock as I find Optuma is a way more friendly and capable charting package to use.

    Here are my various translations:

    Page 51 under heading “Step3: The Final Formula”

    HIGH() > VALUEWHEN(HIGHESTHIGH(BARS=40), -1) and HIGH() > VALUEWHEN(HIGH(), +1)

     

    Page 53 under heading “Step3: The Final Formula”

    bar1 = VALUEWHEN(high(OFFSET=-2)) > HIGHESTHIGH(BARS=2) and

    VALUEWHEN(high(OFFSET=-2)) > VALUEWHEN(HIGHESTHIGH(BARS=2),-3);

     

    bar2 = VALUEWHEN(high(OFFSET=-2)) > HIGHESTHIGH(BARS=2) and

    VALUEWHEN(high(OFFSET=-2)) = VALUEWHEN(high(OFFSET=-3)) and

    VALUEWHEN(high(OFFSET=-2)) > VALUEWHEN(HIGHESTHIGH(BARS=2), -4);

     

    bar3 = VALUEWHEN(high(OFFSET=-2)) > HIGHESTHIGH(BARS=2) and

    VALUEWHEN(high(OFFSET=-2)) = VALUEWHEN(high(OFFSET=-3)) and

    VALUEWHEN(high(OFFSET=-2))  =  VALUEWHEN(HIGHESTHIGH(BARS=2), -5);

     

    bar2nc = VALUEWHEN(high(OFFSET=-2)) > HIGHESTHIGH(BARS=2) and

    VALUEWHEN(high(OFFSET=-2)) = VALUEWHEN(high(OFFSET=-3)) and

    VALUEWHEN(high(OFFSET=-2))  =  VALUEWHEN(HIGHESTHIGH(BARS=2), -5);

     

    bar3nc = VALUEWHEN(high(OFFSET=-2)) > HIGHESTHIGH(BARS=2) and

    VALUEWHEN(high(OFFSET=-2)) = VALUEWHEN(high(OFFSET=-4)) and

    VALUEWHEN(high(OFFSET=-2)) = VALUEWHEN(high(OFFSET=-6)) and

    VALUEWHEN(high(OFFSET=-2)) = VALUEWHEN(high(OFFSET=-3)) and

    VALUEWHEN(high(OFFSET=-2)) = VALUEWHEN(high(OFFSET=-5)) and

    VALUEWHEN(high(OFFSET=-2))  =  VALUEWHEN(HIGHESTHIGH(BARS=2), -7);

     

    bar1 or ba3 or bar3nc or bar2nc or bar3nc

     

    Page 56 under heading “Step3: The Final Formula”

    mu= HIGH() > MAX(high(OFFSET=-1), high(OFFSET=1));

    p2 = mu and HIGH() > VALUEWHEN() (2, mu, HIGH());

    p3 = mu and HIGH() < VALUEWHEN()(2, mu, HIGH()) and VALUEWHEN(2, mu, p2);

    time = LAST(MAX(VALUEWHEN(1, p3, BARCOUNT(p2))));

    x = VALUEWHEN(1, p3, ACC(RANGE=Look Back Period, BARS=1) – BARCOUNT(p2));

     

    mju = ACC(RANGE=Look Back Period, BARS=1)  == VALUEWHEN(x, time);

    pj2 = mju and HIGH() > VALUEWHEN(2, mju, high());

    pj3 = mju and HIGH() < VALUEWHEN(2, mju, high()) and VALUEWHEN(2, mju, pj2);

    timej = LAST(MAX(VALUEWHEN(1, p3, BARCOUNT(pj2))));

    xj = VALUEWHEN(1, pj3, ACC(RANGE=Look Back Period, BARS=1) – BARCOUNT(pj2));

     

    ACC(RANGE=Look Back Period, BARS=1)  == VALUEWHEN(x, time) or ACC(RANGE=Look Back Period, BARS=1)  == VALUEWHEN(xj, timej)

     

    Cheers, Lester

     

     

     

    #54489
    Avatar
    Lester
    • Topics: 10
    • Replies: 15
    • Posts: 25

    Hi Forum and any WealthWithin Diploma Students,

    I have posted a request for this Dow Swing feature in the New Feature Forum.

    If you wish to add support, please do so there.

    Regards, Lester

     

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

You must be logged in to reply to this topic.

Pin It on Pinterest

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