Rank: Newbie
Groups: Registered Users, Subscribers, Unverified Users Joined: 11/15/2014(UTC) Posts: 4
|
Help please with coding this indicator. Looked very clean when giving signals in the article !
Slow RSI = 100 - [100/(1 +SRS)]
SRS = Average positive Difference/Average negative Difference
SRSI measures the strength of the stock relative to a 6 day EMA
Where Positive Difference = (Close - EMA6)
Negative Difference = (Close - EMA6) Expressed as a positive value
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,971
Thanks: 94 times Was thanked: 156 time(s) in 151 post(s)
|
Hi,
You can try the following formula to see if this meets your criteria:
tp:= 14; { time periods in RSI calculation}
diff:= C-Mov(C,6,E);
Z1:=If(diff>0,diff,0);
Z:=If(Cum(1)=tp,Cum(Z1)/tp,(PREV*(tp-1)+Z1)/tp);
Y1:=If(diff<0,Abs(diff),0);
Y:=If(Cum(1)=tp,Cum(Y1)/tp,(PREV*(tp-1)+Y1)/tp);
temp:=If(Y=0,-1,Y);
If(temp=-1, 100, 100-(100/(1+(Z/temp))))
|
|
|
|
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.