Triangular Moving Average (TRIMA)
period
= 14 (5–100) Overview
The Triangular Moving Average achieves its unique smoothing characteristics through a clever mathematical approach: it calculates a simple moving average of a simple moving average. This double-smoothing process naturally creates a triangular weighting pattern where data points in the middle of the lookback period receive the most weight, while the newest and oldest values have less influence. This triangular distribution gives the indicator its name and distinctive smoothing properties that exceed those of traditional moving averages.
The calculation process first determines an intermediate period by adding 1 to the chosen period and dividing by 2 (rounding up if necessary). A simple moving average is then calculated using this intermediate period, followed by another SMA of the same length applied to the first average. This double application effectively filters out short-term price fluctuations while maintaining the indicator's ability to track genuine trend changes, though with slightly more lag than single moving averages due to the additional smoothing layer.
Interpretation & Trading Signals
Primary Trading Signals:
- Buy Signal: Price or shorter MA crosses above TRIMA
- Sell Signal: Price or shorter MA crosses below TRIMA
- Trend Direction: TRIMA slope indicates overall market trend
- Support/Resistance: TRIMA acts as dynamic price level
Trading Strategy Applications:
- Trend Following: Enter long when price consistently above TRIMA
- Mean Reversion: Fade moves far from TRIMA expecting return
- Crossover Systems: Fast/slow TRIMA crosses for entry signals
- Breakout Confirmation: Use TRIMA direction to validate breakouts
Characteristics & Considerations:
- Smoothest MA: More smoothing than SMA or EMA
- Lag Factor: Slower to react due to double smoothing
- Noise Reduction: Excellent for filtering false signals
- Best Timeframes: Most effective on longer-term charts
Example Usage
Code examples will be available once the Rust implementation is complete.
Performance Analysis
Related Indicators
Pivot Moving Average
Technical analysis indicator
Variable Index Dynamic Average
Technical analysis indicator
Variable Length Moving Average
Technical analysis indicator
Arnaud Legoux Moving Average
Moving average indicator
Centered Weighted Moving Average
Moving average indicator
Double Exponential Moving Average
Moving average indicator