Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 06:36:48 +0000



[Programming Help] - Custom Indicator - Slow RSI

View Count: 2143

[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.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account