Login Page - Create Account

Support Board


Date/Time: Sat, 28 Mar 2020 08:48:50 +0000



[Programming Help] - Custom Indicator - Slow RSI

[2018-03-16 19:36:17]
Ez - Posts: 31 | Ending Date: 2020-04-02
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 login with your Sierra Chart account:

Login

Login Page - Create Account