Dow Swing

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #53855
    AvatarLester
    • Topics: 19
    • Replies: 29
    • Posts: 48

    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
    DarrenDarren
    • Topics: 62
    • Replies: 503
    • Posts: 565

    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
    AvatarLester
    • Topics: 19
    • Replies: 29
    • Posts: 48

    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
    DarrenDarren
    • Topics: 62
    • Replies: 503
    • Posts: 565

    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
    AvatarLester
    • Topics: 19
    • Replies: 29
    • Posts: 48

    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
    AvatarJonathan
    • Topics: 36
    • Replies: 55
    • Posts: 91

    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
    AvatarLester
    • Topics: 19
    • Replies: 29
    • Posts: 48

    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
    MatthewMatthew
    • Topics: 5
    • Replies: 317
    • Posts: 322

    Hi Lester,

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

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

    Ex3

    #53909
    AvatarLester
    • Topics: 19
    • Replies: 29
    • Posts: 48

    Hi Matthew,

    Thank you very much.

    Lester

    #53935
    AvatarJonathan
    • Topics: 36
    • Replies: 55
    • Posts: 91

    Lester,

     

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

    #53953
    AvatarLester
    • Topics: 19
    • Replies: 29
    • Posts: 48

    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
    AvatarJonathan
    • Topics: 36
    • Replies: 55
    • Posts: 91

    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
    AvatarLester
    • Topics: 19
    • Replies: 29
    • Posts: 48

    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
    AvatarLester
    • Topics: 19
    • Replies: 29
    • Posts: 48

    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

     

    #58797
    AvatarCharles
    • Topics: 0
    • Replies: 2
    • Posts: 2

    Hi Lester and Forum,

    For those who aren’t students of The Wealth Within the Dow theory they teach ignore outside bars.  The challenge we face is tracking the low of the a trough, finding a peak, then finding a higher trough and finally triggering the Dow Theory entry.

    The below script attempts this.

     

    While it does get most of the signals, there is an issue it appears with the BARS= being set to the previous troughs or peaks location. It does not accept the variable for bars so it appears to always be looking back 8 bars.

    To see an example of the issue

    1. Open a weekly chart of ASX:CBA
    2. Right Click and select the tool “Show Bar”
    3. On the property panel, edit the Condition [Script]
    4. Paste in the above script
    5. Look at bar February 1, 2002
    6. There should be a buy signal

    The two commented out variables at the bottom can be used to verify the state machine using a number display, and P1 is the number of bars from the previous peak.

    My question is am I not using the BARS= correctly in the HIGHESTHIGH() function or is a limitation of the Vector table (Monad) engine?

    Cheers,
    Chip

Viewing 15 posts - 1 through 15 (of 17 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