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, May 20, 2013 11:37:36 AM(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 buy using De Mark's Differential indicator must fulfill the following conditions

The following are the conditions necessary to produce an up arrow:
1. There must be two consecutive closes, each one less than the one prior,
2. Buying pressure for the current price bar must exceed buying pressure from the
previous price bar, and
3. Selling pressure for the current price bar must be less than selling pressure from
the previous price bar.

Where
Buying pressure is defined as the difference between
the close of the current price bar and its true low (the true low is the
lesser of either the current bar’s low or the previous price bar’s close
and

Selling pressure is represented by the difference between the close of the
current bar and its true high (the true high is the greater of the current
price bar’s high or the previous price bar’s close).

I coded it in the expert advisor using a graphic up arrow for the buy with condition:-

Cond1:=(C<Ref(C,-1)AND Ref(C,-1)<Ref(C,-2));

TL:=(If(L<Ref(C,-1),L,If(Ref(C,-1)<L,Ref(C,-1),L)));
BP:=(C-TL);
TLP:=(If(Ref(L,-1)<Ref(C,-2),Ref(L,-1),If(Ref(C,-2)<Ref(L,-1),Ref(C,-2),Ref(C,-2))));
BPP:=(Ref(C,-1)-TLP);
TH:=(If(H>Ref(C,-1),H,If(Ref(C,-1)>H,Ref(C,-1),H)));
THP:=(If(Ref(H,-1)>Ref(C,-2),Ref(H,-1),If(Ref(C,-2)>Ref(H,-1),Ref(C,-2),Ref(C,-2))));
SP:=(C-TH);
SPP:=(Ref(C,-1)-THP);
Cond2:=(BP>BPP);
Cond3:=(SP<SPP);
Cond1 AND Cond2 AND Cond3

Where TL=True low; TLP=True low of previous bar similarly TH=True High THP=True High previos bar
BP=Buying pressure; BPP=Buying pressure previous bar
SP=Selling pressure;SPP=Selling pressure previous bar

It works but gives some false signals uncharacteristic of De Mark indicators.

I think my coding has some errors---can someone help?

Regards,
Dr.Chatterjee

henry1224  
#2 Posted : Friday, May 24, 2013 6:54:02 AM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
This is a revised version, it gives both long and short setups

Code:

Cond1:=If(Sum(C<Ref(C,-1),2)>1,1,If(Sum(C>Ref(C,-1),2)>1,-1,0));
BP:=C-Min(L,Ref(C,-1));
SP:=Max(H,Ref(C,-1))-C;
Cond2:=If(BP>Ref(BP,-1),1,If(BP<Ref(BP,-1),-1,0));
Cond3:=If(SP<Ref(SP,-1),1,If(SP>Ref(SP,-1),-1,0));
If(Cond1+Cond2+Cond3=3,1,If(Cond1+Cond2+Cond3=-3,-1,0));

gorachand  
#3 Posted : Saturday, May 25, 2013 11:07:44 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)
I tried it out. I gives as many false signals as my version. Maybe the indicator is faulty----but considering De Mark's reputation I think that is unlikely.
Thanks anyway.

Regards,

Dr.Chatterjee
henry1224  
#4 Posted : Monday, May 27, 2013 2:57:43 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
from the few web sites that give an explanation of this indicator, the coding is correct! as to the false signals, if you are in a strong trend , I would assume that there would be false signals!
gorachand  
#5 Posted : Wednesday, May 29, 2013 10:40:45 AM(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)
All of De Mark's indicators have many qualifiers which have to be satisfied before a buy or sell signal can be generated.Information about this indicator or it's qualifiers does not appear in too many places. If you are privy to additional information about the indicator or it's qualifiers could you please share it?

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.