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

Notification

Icon
Error

Options
Go to last post Go to first unread
Praconta  
#1 Posted : Saturday, August 28, 2010 6:59:58 PM(UTC)
Praconta

Rank: Newbie

Groups: Registered, Registered Users
Joined: 8/29/2010(UTC)
Posts: 1

Hi, this is my first message, and I would like to know if somebody from Equis Forum could help me fixing a Explorer that I am trying to build but I had no sucssess until now.

With this Explorer I want that Metastock tells me the HIGH value of the two recent Peaks Bars and the LOW value of the 2 recent Trough Bars.

The formulas are:

Col A = TOPO1

TOPO:=H > Ref(H,1) AND H > Ref(H,2) AND H > Ref(H,-1) AND H > Ref(H,-2);
ValueWhen(1,topo=1,H);



Col B = TOPO2

TOPO:=H > Ref(H,1) AND H > Ref(H,2) AND H > Ref(H,-1) AND H > Ref(H,-2);
ValueWhen(2,topo=1,H);



Col C = FUNDO1

FND:=L < Ref(L,1) AND L < Ref(L,2) AND L < Ref(L,-1) AND L < Ref(L,-2);
ValueWhen(1,FND=1,L);



Col D = FUNDO2

FND:=L < Ref(L,1) AND L < Ref(L,2) AND L < Ref(L,-1) AND L < Ref(L,-2);
ValueWhen(2,FND=1,L);


;)
wiked  
#2 Posted : Monday, August 30, 2010 4:15:58 PM(UTC)
wiked

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 31

your formulas should work fine as indicators, but not in the explorer. The explorer does not like formulas that use Ref() with a positive reference for the periods. Try it this way:

Col A

TOPO:= Ref(H,-2) > Ref(H,-1) AND Ref(H,-2) > H AND Ref(H,-2) > Ref(H,-3) AND Ref(H,-2) > Ref(H,-4);
ValueWhen(1,topo=1,Ref(H,-2));
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.