InvestorsHub Logo
Followers 11
Posts 2531
Boards Moderated 1
Alias Born 04/03/2009

Re: desertcynlite post# 936

Tuesday, 02/21/2012 10:17:08 PM

Tuesday, February 21, 2012 10:17:08 PM

Post# of 3640
Thanks for your message...I'll check it out :)

Here's the TOS script on the RVI with a midline in case you want to play with it. I thought 58 was the "number" and then realized that it's like using TTM_LRC. Just adjust it to where the chart tells you it should be.

######

declare lower;

input length = 14;
input over_sold = 30;
input over_bought = 70;
input mid_line = 60;

def highPrice = stDev(high, 10);
def lowPrice = stDev(low, 10);

def highAvgUp = ExpAverage(if high > high[1] then highPrice else 0, length);
def highAvgDown = ExpAverage(if high < high[1] then highPrice else 0, length);

def lowAvgUp = ExpAverage(if low > low[1] then lowPrice else 0, length);
def lowAvgDown = ExpAverage(if low < low[1] then lowPrice else 0, length);

def highRVI = 100 - 100 / (1 + highAvgUp / highAvgDown);
def lowRVI = 100 - 100 / (1 + lowAvgUp / lowAvgDown);

plot RVI = (highRVI + lowRVI) / 2;
plot OverBought = over_bought;
plot OverSold = over_sold;
plot Midline = mid_line;

RVI.setDefaultColor(GetColor(1));
OverBought.setDefaultColor(GetColor(5));
overSold.setDefaultColor(GetColor(5));

Join InvestorsHub

Join the InvestorsHub Community

Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.