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

Notification

Icon
Error

Options
Go to last post Go to first unread
Sajeel  
#1 Posted : Friday, June 11, 2010 12:26:04 PM(UTC)
Sajeel

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2010(UTC)
Posts: 17

I am generating a signal of 1 and -1 when

RSI>70 =1

RSI<30=-1

However, for all values that do not fit the above criteria I need the previous signal (of 1 or -1)

I tried to use the following Formula in the indicator Builder:

IF(RSI(14)>70, 1, IF(RSI(14)<30, -1, REF (RSI(14)>70, 1, IF(RSI(14)<30, -1), -1)

Kindly assist

mstt  
#2 Posted : Friday, June 11, 2010 2:06:27 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)

Hi Sajeel

Try this.

R:=If(RSI(14)>70,1,If(RSI(14)<30,-1,0));

ValueWhen(1,R,R);

Roy

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.