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

Notification

Icon
Error

Options
Go to last post Go to first unread
budfox45  
#1 Posted : Friday, November 20, 2009 9:29:39 PM(UTC)
budfox45

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 8/24/2006(UTC)
Posts: 7
Location: Ohio

I need help[:(] in placing a buy arrow on the next higher low AFTER b:=if(L>A,1,L);

B would be a set up bar the next low thats higher then the high of b would be

the Symbol bar

Thanks

A:=(HHV(L,50) + LLV(L,50))/2;

b:=If(L>A,1,L);

SELL:=b=-1 AND Ref(b,-1)<>-1;

BUY:=b=1 AND Ref(b,-1)<>1;

buy-sell;

BUY:=b=1 AND Ref(b,-1)<>1;

;

johnl  
#2 Posted : Saturday, November 21, 2009 7:03:54 PM(UTC)
johnl

Rank: Advanced Member

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

Play around with latch by Wabbit:

x:=BarsSince(i OR a1)<BarsSince(i OR a2); {latch}
x:=Alert(x,2) AND a2; {first a2 after a1}
x;

and see if it helps.
budfox45  
#3 Posted : Sunday, November 22, 2009 12:50:10 AM(UTC)
budfox45

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 8/24/2006(UTC)
Posts: 7
Location: Ohio

[:$] I cant get it to work where should this go in the formula
johnl  
#4 Posted : Sunday, November 22, 2009 7:56:10 PM(UTC)
johnl

Rank: Advanced Member

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

It would work something like this.

a1:=(HHV(L,50) + LLV(L,50))/2;
a2:=If(L>a1,C,0);
a3:=(a2>0)*(Ref(a2,-1)=0);
a4:={next higher low};
b1:=BarsSince(a3)<BarsSince(a4);
b1:=Alert(b1,2) AND a4;
b1
You have to code a4 to your definition of "higher low", probably in two steps, seeing if
the current price meets your definition of a low and seeing if it is greater than a2 which
I made the close of the signal, not 1.
b1 is the "latch" which selects the first a4 after the a3 signal.


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.