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

Notification

Icon
Error

Options
Go to last post Go to first unread
klkoo  
#1 Posted : Tuesday, June 7, 2011 10:21:28 AM(UTC)
klkoo

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/21/2005(UTC)
Posts: 16

Anybody can program the darvas box channel line which tracking tracking the high & low of the previous 4 days
johnl  
#2 Posted : Tuesday, June 7, 2011 7:37:11 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

Here is Darvis Box from the Interent:


LowL:=If(LOW=LLV(LOW,5),LOW,If(Ref(LOW,-1)=LLV(LOW,5),Ref(LOW,-1), If(Ref(LOW,-2)=LLV(LOW,5),Ref(LOW,-2),If(Ref(LOW,-3)=LLV(LOW,5),Ref(LOW,-3), If(Ref(LOW,-4)=LLV(LOW,5),Ref(LOW,-4),0)))));
NewH:=ValueWhen(1,HIGH>Ref(HHV(HIGH,5),-1),HIGH);
box1:=HHV(HIGH,3)<HHV(HIGH,4);
box2:=ValueWhen(1,BarsSince(HIGH>Ref(HHV(HIGH,5),-1))=3 AND box1=true,NewH);
box3:=ValueWhen(1,BarsSince(HIGH>Ref(HHV(HIGH,5),-1))=3 AND box1=true,LowL);
TopBox:=box2;
BottomBox:=box3;
TopBox;
BottomBox;

You can modify the code to your liking.
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.