XEATrade.com Forex Trading Systems - experts advisors, indicators for Metatrader, Metastock, Tradestation.
  
         
   
# A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
   
Home
Forex Forum
+ Add Script
 
Contact us
 
 
 
Newsletter

 

 
 
Group: Tradestation Indicators
Title: Relative Vigor Index by John Ehlers
Description: 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 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.
 
Author/Source: John Ehlers
   
   
Forex Directory | Free Forex Strategies | Forex Trading Systems | Privacy | Disclaimer | Contact