logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
gorachand  
#1 Posted : Monday, December 30, 2013 10:29:49 PM(UTC)
gorachand

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 2/19/2012(UTC)
Posts: 103

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
A De Mark Count Down is completed when:-

1. The low of TD Buy Countdown bar thirteen must be less than, or equal to, the
close of TD Buy Countdown bar eight, and
2. The close of TD Buy Countdown bar thirteen must be less than, or equal to, the
low two bars earlier

I first plot the following indicators

TD - SetUp-buy
TD1:=If(CLOSE<Ref(CLOSE,-4),1,0);
TD2:=If(TD1=1 AND Ref(TD1,-1)=1 AND Ref(TD1,-2)=1 AND Ref(TD1,-3)=1 AND Ref(TD1,-4)=1 AND Ref(TD1,-5)=1 AND Ref(TD1,-6)=1 AND Ref(TD1,-7)=1 AND Ref(TD1,-8)=1, 1,0);
TD3:=If(Ref(C,-9)>=Ref(C,-13),1,0); {>= may be changed in >}
TD4:=If(TD2=1 AND TD3=1,1,0);
TD5:=If(HIGH>=Ref(LLV(LOW,5),-3),1,0);
D8:=If(Ref(TD4,-1)=1 AND TD5=1,1,0);
D9:=If(TD4=1 AND TD5=1 AND Ref(D8,-1)<>1,1,0);
D10:=If(Ref(TD4,-1)=1 AND TD5=1 AND Ref(D8,-2)<>1 AND Ref(D9,-1)<>1,1,0);
D11:=If(Ref(TD4,-2)=1 AND TD5=1 AND Ref(D8,-3)<>1 AND Ref(D9,-2)<>1 AND Ref(D10,-1)<>1,1,0);
D12:=If(Ref(TD4,-3)=1 AND TD5=1 AND Ref(D8,-4)<>1 AND Ref(D9,-3)<>1 AND Ref(D10,-2)<>1 AND Ref(D11,-1)<>1,1,0);
D13:=If(Ref(TD4,-4)=1 AND TD5=1 AND Ref(D8,-5)<>1 AND Ref(D9,-4)<>1 AND Ref(D10,-3)<>1 AND Ref(D11,-2)<>1 AND Ref(D12,-1)<>1,1,0);
D14:=If(Ref(TD4,-5)=1 AND TD5=1 AND Ref(D8,-6)<>1 AND Ref(D9,-5)<>1 AND Ref(D10,-4)<>1 AND Ref(D11,-3)<>1 AND Ref(D12,-2)<>1 AND Ref(D13,-1)<>1,1,0);
D15:=If(Ref(TD4,-6)=1 AND TD5=1 AND Ref(D8,-7)<>1 AND Ref(D9,-6)<>1 AND Ref(D10,-5)<>1 AND Ref(D11,-4)<>1 AND Ref(D12,-3)<>1 AND Ref(D13,-2)<>1 AND Ref(D14,-1)<>1,1,0);
D16:=If(Ref(TD4,-7)=1 AND TD5=1 AND Ref(D8,-8)<>1 AND Ref(D9,-7)<>1 AND Ref(D10,-6)<>1 AND Ref(D11,-5)<>1 AND Ref(D12,-4)<>1 AND Ref(D13,-3)<>1 AND Ref(D14,-2)<>1 AND Ref(D15,-1)<>1,1,0);
D17:=If(Ref(TD4,-8)=1 AND TD5=1 AND Ref(D8,-9)<>1 AND Ref(D9,-8)<>1 AND Ref(D10,-7)<>1 AND Ref(D11,-6)<>1 AND Ref(D12,-5)<>1 AND Ref(D13,-4)<>1 AND Ref(D14,-3)<>1 AND Ref(D15,-2)<>1 AND Ref(D16,-1)<>1,1,0);
SetUp:=D8+D9+D10+D11+D12+D13+D14+D15+D16+D17;
SetUp

TD Count Down Buy A

Cum(If(CLOSE<Ref(CLOSE,-2),1,0))-ValueWhen(1,Ref( Fml( "TD - SetUp-buy" ), -1)=1, Cum(If(CLOSE<Ref(CLOSE,-2),1,0)))

the Expert Advisor Countdown buy Bar 13 and Bar 8

Fml( "TD Count Down Buy A" ) =14
AND Ref( Fml( "TD Count Down Buy A" ) ,-1 )<> 14


Fml( "TD Count Down Buy A" ) =9
AND Ref( Fml( "TD Count Down Buy A" ) ,-1 )<> 9

Then I plot the exploration formula

A:=Fml( "TD Count Down Buy A" ) =9
AND Ref( Fml( "TD Count Down Buy A" ) ,-1 )<> 9;
B:=Fml( "TD Count Down Buy A" ) =14
AND Ref( Fml( "TD Count Down Buy A" ) ,-1 )<> 14;
B AND L<=A AND C<= Ref(L,-2)

I plug this into filter but the exploration gives a 100% rejection. Where am I going wrong?
Can anybody help?
If Bar 13
Fml( "TD Count Down Buy A" ) =14
AND Ref( Fml( "TD Count Down Buy A" ) ,-1 )<> 14
can be modified in the expert code including the conditions
1. The low of TD Buy Countdown bar thirteen must be less than, or equal to, the
close of TD Buy Countdown bar eight, and
2. The close of TD Buy Countdown bar thirteen must be less than, or equal to, the
low two bars earlier
----that would definitely solve the problem.
Regards,

Dr.Chatterjee

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.