Login Page - Create Account

Support Board


Date/Time: Thu, 28 Mar 2024 19:43:29 +0000



Post From: Custom Indicator - Slow RSI

[2018-03-16 19:36:17]
Ez - Posts: 45
Hi, i was wondering if there is a version of "Slow RSI" for Sierra floating about.
looks super simple but i haven't delved into sierra coding as of yet.

"The Slow Relative Strength Index (RSI) was presented by Vitali Apirine. Details can be found in Stocks & Commodities V. 33:4 "Slow Relative Strength Index" (April 2015). "


ToS version:

#################
input emaLength = 6;
input rsiLength = 14;
input over_bought = 80;
input over_sold = 20;

def ema = ExpAverage(close, emaLength);
def netChgAvg = WildersAverage(close - ema, rsiLength);
def totChgAvg = WildersAverage(AbsValue(close - ema), rsiLength);
def chgRatio = if totChgAvg != 0 then netChgAvg / totChgAvg else 0;

plot SlowRSI = 50 * (chgRatio + 1);
plot OverBought = over_bought;
plot MiddleLine = 50;
plot OverSold = over_sold;

#####################

pls let me know thx!

S.