TRIX(price, n=20, nSig=9, maType="EMA", percent=TRUE, ...)
TRUE
, the rate of change is calculated using the ROC
function, otherwise the momentum
function is used.maType
function in case (1) above.MA
( MA
( MA
(price
) ) )
trix = 100 * [ 3MA(t) / 3MA(t-1) - 1 ]EMA
, SMA
, etc. for moving average options; and note
Warning section.data(ttrc)
trix <- TRIX( ttrc[,"Close"] )
Run the code above in your browser using DataLab