V. 20:1 (62-64, 66): Traders’ Tips
Product Description
Traders’ Tips
TRADESTATION: RELATIVE VIGOR INDEX
John Ehlers’s article “Relative Vigor Index (RVI)” in this
issue includes a version of EasyLanguage code for the
indicator. That version includes hardcoded implementations
of a symmetrically weighted moving average in three places,
and also a hardcoded implementation of two summations.
We provide an alternative version below that replaces these
hardcoded implementations with function calls. This version
produces identical results, except for minor initialization
differences.
The SWMA, also known as a triangular moving average,
can be conveniently implemented as a double simple moving
average, and this code can be separated out into a function
that can than be called from the main body of the code as
many times as necessary. TradeStation includes a TriAverage
function, but the function required here is a little more
generalized, so it we call it TriAverage_gen and provide the
code for it below, following the main indicator code.
Summation is another built-in function in TradeStation, and
we use that as is.
FOR THOSE ORDERING ARTICLES SEPARATELY:
*Note: $2.95-$5.95 Articles are in PDF format only. No hard copy of the article(s) will be delivered. During checkout, click the "Download Now" button to immediately receive your article(s) purchase. STOCKS & COMMODITIES magazine is delivered via mail. After paying for your subscription at store.traders.com users can view the S&C Digital Edition in the subscriber's section on Traders.com. Take Control of Your Trading. |
Professional Traders' Starter Kit |
All these items shown below only $299.99! |
5-year subscription to Technical Analysis of STOCKS & COMMODITIES, The Traders' magazine. (Shipping outside the US is extra. Washington state addresses require sales tax based on your locale.) 5 year access to S&C Archive 5 year access to S&C Digital Edition5-year subscription to Traders.com Advantage. 5-year subscription to Working Money. Free book selection. |
|
Click Here to Order |
|