in Search

Need help with Td-sequential by Tom Demark

Last post 02-01-2008, 8:16 by Ashok. 12 replies.
Sort Posts: Previous Next
  •  09-09-2006, 13:17 20770

    Need help with Td-sequential by Tom Demark

    Hi

    I am trying to use the count version of td-sequential, but when I try to use it I only see a line in the chart. Can someone see or know what i do wrong?

     

    This is the formula  i use:

    {TDSeqBuySignal}
    
    (C < Ref(C,-4) AND 
    Ref(C,-1) < Ref(C,-5) AND 
    Ref(C,-2) < Ref(C,-6) AND 
    Ref(C,-3) < Ref(C,-7) AND 
    Ref(C,-4) < Ref(C,-8) AND 
    Ref(C,-5) < Ref(C,-9) AND 
    Ref(C,-6) < Ref(C,-10) AND 
    Ref(C,-7) < Ref(C,-11) AND 
    Ref(C,-8) < Ref(C,-12) )
    
    
    {TDSeqSellSignal}
    +
    (C > Ref(C,-4) AND 
    Ref(C,-1) > Ref(C,-5) AND 
    Ref(C,-2) > Ref(C,-6) AND 
    Ref(C,-3) > Ref(C,-7) AND 
    Ref(C,-4) > Ref(C,-8) AND 
    Ref(C,-5) > Ref(C,-9) AND 
    Ref(C,-6) > Ref(C,-10) AND 
    Ref(C,-7) > Ref(C,-11) AND 
    Ref(C,-8) > Ref(C,-12) )

    Thanks in advance for any help.

  •  09-09-2006, 14:22 20771 in reply to 20770

    Re: Need help with Td-sequential by Tom Demark

    hey arna.... not sure of the need for the '+' under sell,  other than that everything checks out ok....

    plots a binary 1 for buys and sells perfectly here on everything.......  are you expecting something other than the binary wave?....h

    i just put both in 1 indicator and used colors to differentiate between buy/sell

    (C < Ref(C,-4) AND
    Ref(C,-1) < Ref(C,-5) AND
    Ref(C,-2) < Ref(C,-6) AND
    Ref(C,-3) < Ref(C,-7) AND
    Ref(C,-4) < Ref(C,-8) AND
    Ref(C,-5) < Ref(C,-9) AND
    Ref(C,-6) < Ref(C,-10) AND
    Ref(C,-7) < Ref(C,-11) AND
    Ref(C,-8) < Ref(C,-12) );


    (C > Ref(C,-4) AND
    Ref(C,-1) > Ref(C,-5) AND
    Ref(C,-2) > Ref(C,-6) AND
    Ref(C,-3) > Ref(C,-7) AND
    Ref(C,-4) > Ref(C,-8) AND
    Ref(C,-5) > Ref(C,-9) AND
    Ref(C,-6) > Ref(C,-10) AND
    Ref(C,-7) > Ref(C,-11) AND
    Ref(C,-8) > Ref(C,-12) )

  •  09-09-2006, 14:46 20772 in reply to 20771

    Re: Need help with Td-sequential by Tom Demark

    Thanks for your answer. I thought it was the countin version I got is that Wrong?
  •  09-09-2006, 23:11 20776 in reply to 20772

    Re: Need help with Td-sequential by Tom Demark

    hey arna..... are you talking about counting like this.....h
  •  09-10-2006, 4:39 20778 in reply to 20776

    Re: Need help with Td-sequential by Tom Demark

    Yes, that was what I was talking about.
  •  09-10-2006, 19:19 20795 in reply to 20778

    auto install exe

    hey arna.... in that situation you would want to create an expert with symbols and rules for each day.... place your numbered rules in top down order, so symbol 1 would be day 9 , symbol 2 would be day 8 and so on.....

    as you know, there are more rules than that for demarks deal, such as the buy , perfection buy ,sell and perfection sell..... those can be coded in also....

    it's a risk running exe's from the internet, esp from unknowns.... also as henry has mentioned before there is a risk swapping experts and such.... you should be able to create the expert but if not here is the standard metastock style fosetup exe to auto-install the expert  in your metastock version 9 or higher....  clicking that link leads to the 2 standard warnings.... clicking run on both will auto install the expert.... have metastock running just in case it needs to be....

    i'll code in the rest later.... the expert is named arna version td sequential ..... rename to suit....h

  •  09-12-2006, 11:15 20840 in reply to 20795

    Re: auto install exe

    Thanks for your help.It worked. I have searched for that but could not find it. True I chould not run exe. from unknown, but, it worked well. Guess it is safer to download it from a stockforum then everywhere else.
    Thanks again.

  •  09-12-2006, 17:13 20844 in reply to 20840

    Re: auto install exe

    hey arna.... the code for sell countdown  is the same except replace the '<' with a '>'.... i coded both buy and sell on up to 14.... the exploration would be just the day 9 code.... i ran it last night .... came up with a bunch oil related issues...

    day 9 is the buy signal.... the perfection buy has a few more conditions.... below is a very rough first draft of it......

    i also created a layout  and template with both daily and weekly time frames, looks promising....

    i also created a intraday 5 time frame layout and template.... looks equaly promising.....

    i'll up date that exe later to include everything along with the 4 companion indicators for the layout/template....

    and btw, thanks for the question.....we all learn.....h

     

    -----------------------------------------------

    a:=(C < Ref(C,-4) AND
    Ref(C,-1) < Ref(C,-5) AND
    Ref(C,-2) < Ref(C,-6) AND
    Ref(C,-3) < Ref(C,-7) AND
    Ref(C,-4) < Ref(C,-8) AND
    Ref(C,-5) < Ref(C,-9) );
    aa:=(C < Ref(C,-4) AND
    Ref(C,-1) < Ref(C,-5) AND
    Ref(C,-2) < Ref(C,-6) AND
    Ref(C,-3) < Ref(C,-7) AND
    Ref(C,-4) < Ref(C,-8) AND
    Ref(C,-5) < Ref(C,-9) AND
    Ref(C,-6) < Ref(C,-10) );

    aaa:=(C < Ref(C,-4) AND
    Ref(C,-1) < Ref(C,-5) AND
    Ref(C,-2) < Ref(C,-6) AND
    Ref(C,-3) < Ref(C,-7) AND
    Ref(C,-4) < Ref(C,-8) AND
    Ref(C,-5) < Ref(C,-9) AND
    Ref(C,-6) < Ref(C,-10)AND
    Ref(C,-7) < Ref(C,-11)  );

    aaaa:=(C < Ref(C,-4) AND
    Ref(C,-1) < Ref(C,-5) AND
    Ref(C,-2) < Ref(C,-6) AND
    Ref(C,-3) < Ref(C,-7) AND
    Ref(C,-4) < Ref(C,-8) AND
    Ref(C,-5) < Ref(C,-9) AND
    Ref(C,-6) < Ref(C,-10) AND
    Ref(C,-7) < Ref(C,-11) AND
    Ref(C,-8) < Ref(C,-12) );

    b:=If((a=1) AND (aa<>1),1,0);
    x:=ValueWhen(1,b,L);

    bb:=If((aa=1) AND (aaa<>1),1,0);
    xx:=ValueWhen(1,bb,L);

    bbb:=If((aaa=1) AND (aaaa<>1),1,0);
    xxx:=ValueWhen(1,bbb,L);

    bbbb:=If(aaaa,1,0);
    xxxx:=ValueWhen(1,bbbb AND (BarsSince(bbbb)<BarsSince(bbb)) AND (BarsSince(bbbb)<BarsSince(b)),L);

    y:=(xxxx<x    AND  xxxx<xx)  OR  (xxx<xx AND xxx<x);


    bcon:=y;

    scon:=C>Ref(C,-4);

    bset:=BarsSince(bbbb)<BarsSince(bbb);

    sset:=y;

    setup:=If(bset,1, If(sset,-1,PREV));

    Cross(If(setup=1 AND bcon,1,If(setup=-1 AND scon,-1,PREV)),0.5);

    --------------------------------------------------------

    stop laughing patrick, i said it was rough.....

  •  09-12-2006, 17:43 20846 in reply to 20844

    Re: auto install exe

    h....

    Cannot
    Code:

    a:=(C < Ref(C,-4) AND
    Ref(C,-1) < Ref(C,-5) AND
    Ref(C,-2) < Ref(C,-6) AND
    Ref(C,-3) < Ref(C,-7) AND
    Ref(C,-4) < Ref(C,-8) AND
    Ref(C,-5) < Ref(C,-9) );


    be written as:
    Code:

    a:=Sum(C < Ref(C,-4),6)=6



    This will save you some typing!!!


    wabbit Big Smile [:D]

    MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC & MDK
    For custom MetaStock programming : http://www.wabbit.com.au
    My SkyPE status : wabbit.com.au SkyPE online status
    My SkyPE account : wabbit.com.au

  •  09-13-2006, 19:15 20867 in reply to 20846

    outside the box

    hey wabbit..... neat...  thanks..... thats what we call thinking outside the box....

    it also  simplyfies some other ideas i've been working on but couldn't get past the 'sum if' part... thanks again.....h

  •  10-19-2006, 12:42 21553 in reply to 20778

    Re: Need help with Td-sequential by Tom Demark

    Hi and thanks for all your help. I have made it to count to 13.

    Regards
    Arna
  •  01-20-2008, 22:35 26380 in reply to 20795

    Re: auto install exe

    Hi Hayseed,

    I'm still new in using Metastock programming and  currently, I'm using Metastock Ver 8.0.  I believe that the auto-install the expert you mentioned here is for ver 9.0 or higher.  Do you have the file compatible with ver 8.0?  I'm very glad if you could kindly help me.

    Thanks,

    Richard

  •  02-01-2008, 8:16 26457 in reply to 20770

    Re: Need help with Td-sequential by Tom Demark

    Hi,

     

    I am aware this post is an old one but i just got introduced to Tom demark's sequential indicator. I have used your programming and coding skills and got this on my Metastock. Thanks for the effort.

     

    Just wanted to check the code you have written is for Setup have you attempted the code for countdown? stop loss.Correct me if i am wrong i guess the concept of set up and countdown are different right? 

    Secondly i wanted a clarificaiton

    What is the entry signal in the setup? Is it close above the 8th or 9th bar is it? and stop loss is close below the entry bar is it?

    Can we use the set up as an indicator in itself without using the count down.

     

    Thanks for your support and assistance.

     

    Cheers Ashok

     

     

     

View as RSS news feed in XML