|
|
Need help with Td-sequential by Tom Demark
Last post 02-01-2008, 8:16 by Ashok. 12 replies.
-
09-09-2006, 13:17 |
-
Arna
-
-
-
Joined on 09-09-2006
-
-
Posts 5
-
-
|
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 |
-
hayseed
-
-
-
Joined on 03-07-2005
-
-
Posts 1,352
-
-
|
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 |
-
Arna
-
-
-
Joined on 09-09-2006
-
-
Posts 5
-
-
|
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 |
-
09-10-2006, 4:39 |
-
Arna
-
-
-
Joined on 09-09-2006
-
-
Posts 5
-
-
|
Re: Need help with Td-sequential by Tom Demark
Yes, that was what I was talking about.
|
|
-
09-10-2006, 19:19 |
-
hayseed
-
-
-
Joined on 03-07-2005
-
-
Posts 1,352
-
-
|
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, 17:13 |
-
hayseed
-
-
-
Joined on 03-07-2005
-
-
Posts 1,352
-
-
|
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 |
-
wabbit
-
-

-
Joined on 10-28-2004
-
Perth, Western Australia
-
Posts 1,609
-
-
|
h.... Cannot |
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: |
a:=Sum(C < Ref(C,-4),6)=6
|
This will save you some typing!!! wabbit
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 :  My SkyPE account : wabbit.com.au
|
|
-
-
10-19-2006, 12:42 |
-
Arna
-
-
-
Joined on 09-09-2006
-
-
Posts 5
-
-
|
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 |
-
kanglc
-
-
-
Joined on 01-19-2008
-
-
Posts 1
-
-
|
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 |
-
Ashok
-
-
-
Joined on 10-02-2006
-
-
Posts 2
-
-
|
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
|
|
|
|