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

Notification

Icon
Error

Options
Go to last post Go to first unread
Benny  
#1 Posted : Tuesday, March 28, 2006 1:10:15 PM(UTC)
Benny

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/23/2006(UTC)
Posts: 22
Location: Melbourne, Australia

Is there a expert adviser for the darvas box indicator located at this link http://forum.equis.com/viewtopic.php?t=352 something along the lines of a bull/bear ribbon at the bottom of the chart to indicate when it is a buy or sell. Thank you for your time.
Benny  
#2 Posted : Wednesday, April 12, 2006 11:00:15 AM(UTC)
Benny

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/23/2006(UTC)
Posts: 22
Location: Melbourne, Australia

It looks like no one has or has come up with an expert or explorer for the darvas box
Jose  
#3 Posted : Wednesday, April 12, 2006 8:47:09 PM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
It looks like you're going to have to do some of the work yourself. ;) Try using the "Darvas Box - Buy & Sell" formula found in the MACDH Divergence kit's documentation. jose '-)
StorkBite  
#4 Posted : Thursday, April 13, 2006 1:43:04 AM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Talk about freebies! Thanks for all of your numerous contributions, Jose. Benny, as for satisfied MACDH customers, there are plenty hanging around the forum. Quality sells itself. My suggestion... buy long!
Benny  
#5 Posted : Thursday, April 13, 2006 10:50:49 AM(UTC)
Benny

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/23/2006(UTC)
Posts: 22
Location: Melbourne, Australia

Ok thanks for all the help. Sorry if I'm being a pain but I dont have the first clue about programing in metastock or any programing at all. I was hoping someone would have a explorer for the darvas box that I could copy and past into my metastock program, but it seems that is not the case and thats fine.
StorkBite  
#6 Posted : Thursday, April 13, 2006 8:01:11 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Jose gave you the formula. Copy it to Notepad and change the input line like this: Change this:--> pds:=Input("Lookback periods",2,2600,100); To this:--> pds:=100; Or, whatever periods you want to look at. Then, plug the entire formula into the Explorer under ColA. Call it Darvas. If you run an Exploration and it finds a match it will list '1' in ColA results; otherwise, it will list '0'. You can filter out the zeros in the Filter section.
henry1224  
#7 Posted : Friday, April 14, 2006 12:59:26 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)
Here is my version for both buy and sell LL:=If(L=LLV(L,5),L,If(Ref(L,-1)=LLV(L,5),Ref(L,-1),If(Ref(L,-2)=LLV(L,5),Ref(L,-2),If(Ref(L,-3)=LLV(L,5),Ref(L,-3),If(Ref(L,-4)=LLV(L,5),Ref(L,-4),0))))); HH:=If(H=HHV(H,5),H,If(Ref(H,-1)=HHV(H,5),Ref(H,-1),If(Ref(H,-2)=HHV(H,5),Ref(H,-2),If(Ref(H,-3)=HHV(H,5),Ref(H,-3),If(Ref(H,-4)=HHV(H,5),Ref(H,-4),0))))); NH:=ValueWhen(1,H>Ref(HHV(H,5),-1),H); NL:=ValueWhen(1,L<Ref(LLV(L,5),-1),L); Set1:=HHV(H,3)<HHV(H,4); Set2:=LLV(L,3)>LLV(L,4); Val1:=ValueWhen(1,BarsSince(H>Ref(HHV(H,5),-1))=3 AND Set1=true,NH); Val2:=ValueWhen(1,BarsSince(L<Ref(LLV(L,5),-1))=3 AND Set2=true,NL); Val3:=ValueWhen(1,BarsSince(H>Ref(HHV(H,5),-1))=3 AND Set1=true,LL); Val4:=ValueWhen(1,BarsSince(L<Ref(LLV(L,5),-1))=3 AND Set2=true,HH); Per1:=Input("max length",10,100,30); RWH:=(H-Ref(L,-Per1))/(ATR(Per1)*Sqrt(Per1)); RWL:=(Ref(H,-Per1)-L)/(ATR(Per1)*Sqrt(Per1)); Pk:=Mov((RWH-RWL),3,W); TB:=If(Pk>0,Val1,Val4); BB:=If(Pk>0,Val3,Val2); If(Cross(C,TB),1,If(Cross(BB,C),-1,0)); Here is the original version for long LL:=If(L=LLV(L,5),L,If(Ref(L,-1)=LLV(L,5),Ref(L,-1),If(Ref(L,-2)=LLV(L,5),Ref(L,-2),If(Ref(L,-3)=LLV(L,5),Ref(L,-3),If(Ref(L,-4)=LLV(L,5),Ref(L,-4),0))))); NH:=ValueWhen(1,H>Ref(HHV(H,5),-1),H); Set1:=HHV(H,3)<HHV(H,4); Val1:=ValueWhen(1,BarsSince(H>Ref(HHV(H,5),-1))=3 AND Set1=true,NH); Val2:=ValueWhen(1,BarsSince(H>Ref(HHV(H,5),-1))=3 AND Set1=true,LL); TB:=Val1; BB:=Val2; If(Cross(C,TB),1,If(Cross(BB,C),-1,0)); The explorations will give +1 for a close crossing above the top band and -1 for a close crossing below the Bottom band
Benny  
#8 Posted : Friday, April 14, 2006 6:12:06 AM(UTC)
Benny

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/23/2006(UTC)
Posts: 22
Location: Melbourne, Australia

Thanks henry your the best but on the 7th line from the bottom of the L/S version Per1:=Input("max length",10,100,30); it says the input is wrong. what should i do?
henry1224  
#9 Posted : Friday, April 14, 2006 7:56:20 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)
LL:=If(L=LLV(L,5),L,If(Ref(L,-1)=LLV(L,5),Ref(L,-1),If(Ref(L,-2)=LLV(L,5),Ref(L,-2),If(Ref(L,-3)=LLV(L,5),Ref(L,-3),If(Ref(L,-4)=LLV(L,5),Ref(L,-4),0))))); HH:=If(H=HHV(H,5),H,If(Ref(H,-1)=HHV(H,5),Ref(H,-1),If(Ref(H,-2)=HHV(H,5),Ref(H,-2),If(Ref(H,-3)=HHV(H,5),Ref(H,-3),If(Ref(H,-4)=HHV(H,5),Ref(H,-4),0))))); NH:=ValueWhen(1,H>Ref(HHV(H,5),-1),H); NL:=ValueWhen(1,L<Ref(LLV(L,5),-1),L); Set1:=HHV(H,3)<HHV(H,4); Set2:=LLV(L,3)>LLV(L,4); Val1:=ValueWhen(1,BarsSince(H>Ref(HHV(H,5),-1))=3 AND Set1=true,NH); Val2:=ValueWhen(1,BarsSince(L<Ref(LLV(L,5),-1))=3 AND Set2=true,NL); Val3:=ValueWhen(1,BarsSince(H>Ref(HHV(H,5),-1))=3 AND Set1=true,LL); Val4:=ValueWhen(1,BarsSince(L<Ref(LLV(L,5),-1))=3 AND Set2=true,HH); Per1:=30; RWH:=(H-Ref(L,-Per1))/(ATR(Per1)*Sqrt(Per1)); RWL:=(Ref(H,-Per1)-L)/(ATR(Per1)*Sqrt(Per1)); Pk:=Mov((RWH-RWL),3,W); TB:=If(Pk>0,Val1,Val4); BB:=If(Pk>0,Val3,Val2); If(Cross(C,TB),1,If(Cross(BB,C),-1,0)); This just uses a default 30 for the peak osc which if >0 displays the long version, <0 displays the short version of a darvas box
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.