StockFetcher Forums · General Discussion · "Normalizing" an indicator<< >>Post Follow-up
Icculi
9 posts
msg #57880
Ignore Icculi
12/10/2007 11:04:47 AM

I'm trying to create a series of variables that creates a RVI ratio from 0 to 1. Where, 0 is the RVI 2 year low and 1 is RVI 2 year high. Here's what I have so far.

SET{RVIX,RVI(101,2)}
SET{RVIXLOW,RVIX 2 YEAR LOW}
SET{RVIXHIGH,RVIX 2 YEAR HIGH}
SET{RVIXRANGE,RVIXHIGH - RVIXLOW}
SET{RVIXDIFF, RVIX - RVIXLOW}
SET{RVIXRATIO, RVIXDIFF / RVIXRANGE}
DRAW RVIXRATIO
DRAW RVIXRATIO 2 YEAR LOW
DRAW RVIXRATIO 2 YEAR HIGH
DRAW RVIX
DRAW RVIX 2 YEAR HIGH
DRAW RVIX 2 YEAR LOW
CLOSE IS ABOVE 0


Something is not right, and I'm not sure exactly what it is, but it looks like the 2 year high and 2 year lows are not working the way I anticipated they would. Anyone have any ideas? Maybe there's something I'm overlooking? Thanks!

Tony



TheRumpledOne
6,358 posts
msg #57886
Ignore TheRumpledOne
12/10/2007 1:15:30 PM

Here's how I do it:

Fetcher[
/* NORMALIZE accumulation distribution */

set{adval, INDPOSITION(accumulation distribution, 60) * 100 }

/* NORMALIZE momentum(12) */

set{moval, INDPOSITION(momentum(12), 60) * 100}

/* NORMALIZE rsi(2) */

set{rsval, RSI(2) }

/* NORMALIZE williams %r(10) */

set{wrval, INDPOSITION(williams %r(10), 60) * 100 }

/* DISPLAY THE COLUMNS */

add column wrval
add column adval
add column rsval
add column moval

/* DRAW THE MP RSIWLR CHART */

and draw wrval
and draw adval on plot wrval
and draw moval on plot wrval
and draw rsval on plot wrval


]



Icculi
9 posts
msg #57924
Ignore Icculi
12/10/2007 10:12:01 PM

Thanks, I knew there had to be a better way.

StockFetcher Forums · General Discussion · "Normalizing" an indicator<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2016 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus