NathanJames
New member
Hello Expert,
Pardon my newbie question, is there anyway the RSI which displayed as a line graph (scale of zero to 100) can be display as a price line?
Nathan
#
# TD Ameritrade IP Company, Inc. (c) 2015-2024
#
declare lower;
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;
SlowRSI.SetDefaultColor(GetColor(8));
OverBought.SetDefaultColor(GetColor(5));
MiddleLine.SetDefaultColor(GetColor(5));
MiddleLine.SetStyle(Curve.LONG_DASH);
OverSold.SetDefaultColor(GetColor(5));
Pardon my newbie question, is there anyway the RSI which displayed as a line graph (scale of zero to 100) can be display as a price line?
Nathan
#
# TD Ameritrade IP Company, Inc. (c) 2015-2024
#
declare lower;
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;
SlowRSI.SetDefaultColor(GetColor(8));
OverBought.SetDefaultColor(GetColor(5));
MiddleLine.SetDefaultColor(GetColor(5));
MiddleLine.SetStyle(Curve.LONG_DASH);
OverSold.SetDefaultColor(GetColor(5));