Either:
(1) A function or a string naming the function to be called, or
(2) a list with the first component like (1) above, and additional parameters
specified as named components. See Examples.
percent
logical; if TRUE, the rate of change is calculated using the ROC
function, otherwise the momentum function is used.
...
Other arguments to be passed to the maType function in case (1) above.
Value
A object of the same class as price or a vector (if try.xts
fails) containing the TRIX values.
Details
The TRIX is calculated as follows:
3MA = MA( MA( MA(price) ) )
trix = 100 * [ 3MA(t) / 3MA(t-1) - 1 ]
References
The following site(s) were used to code/document this indicator:
http://www.fmlabs.com/reference/default.htm?url=TRIX.htmhttp://www.equis.com/Customer/Resources/TAAZ/?c=3&p=114http://www.linnsoft.com/tour/techind/trix.htmhttp://stockcharts.com/education/IndicatorAnalysis/indic_trix.htm
See Also
See EMA, SMA, etc. for moving average options; and note
Warning section.