Moving Average - Triple Exponential (TRIX)
<< Click to Display Table of Contents >> Moving Average - Triple Exponential (TRIX) |
The triple exponential average (TRIX) indicator is an oscillator used to identify oversold and overbought markets, and it can also be used as a momentum indicator.
... Courtesy of Investopedia
TRIX(int period, int signalPeriod)
TRIX(ISeries<double> input, int period, int signalPeriod)
Returns trix value
TRIX(int period, int signalPeriod)[int barsAgo]
TRIX(ISeries<double> input, int period, int signalPeriod)[int barsAgo]
Returns signal value
TRIX(int period, int signalPeriod).Signal[int barsAgo]
TRIX(ISeries<double> input, int period, int signalPeriod).Signal[int barsAgo]
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.
input |
Indicator source data (?) |
period |
Number of bars used in the calculation |
signalPeriod |
Period for signal line |
// Prints the current value of a 20 period TRIX using default price type |
You can view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.