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

Notification

Icon
Error

Options
Go to last post Go to first unread
MS Support  
#1 Posted : Wednesday, June 15, 2022 4:15:47 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)

Note: The original formula was updated to prevent errors caused by zero values in some instruments' Relative Strength calculation.

Markos Katsanos’ article “Using Relative Strength to Outperform the Market” introduces an alternative to the standard Relative Strength Comparative indicator. The MetaStock version of the RSMK is below: 

RSMK:

Formula:

Code:
rsbars:= Input("RS Bars", 10, 300, 90);
sk:= Input("Smoothing Constant", 1, 5, 3);
sec1:= Security("ONLINE:SPY", C);
sk2:= LastValue(Rnd(sk));
rs:= Max(C / sec1, 0.00001);
Mov( Log(rs) - Log(Ref(rs, -rsbars)), sk2, E) * 100;

Edited by user Wednesday, June 22, 2022 4:13:58 PM(UTC)  | Reason: Not specified

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.