TRIX
The one-bar change of a triple smoothed EMA.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 14 | 1 to 5000 |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| trix | value | Optional | color theme.accent, style line, width 1 |
- Warm-up
- max(3 * period - 3, 1) bars (39 at the defaults)
- Repaints
- No
- Parity
- MetaTrader 5, within 1e-12
Formula
E1 = EMA(source, period), E2 = EMA(E1, period), E3 = EMA(E2, period)
TRIX = (E3[i] - E3[i-1]) / E3[i-1], a fraction and not a percent
E2 starts at bar period - 1 and E3 at bar 2 * (period - 1).