OPEN-SOURCE SCRIPT
Triple Moving Averages (TriMA)

Triple Moving Averages (TriMA)
Triple Moving Averages (TriMA) is a flexible multi-timeframe trend analysis indicator that displays up to three independently configurable moving averages on a single chart. Each moving average can use its own calculation method, price source, length, and timeframe, making it ideal for trend following, market structure analysis, and higher-timeframe context without switching charts.
────────────────────────────────────
Key Features
Three Independent Moving Averages
Display up to three moving averages simultaneously. The 2nd and 3rd MAs can be enabled or disabled independently for simplified or advanced analysis.
Multiple Moving Average Types
Each MA supports:
- Hull Moving Average (HMA)
- Simple Moving Average (SMA)
- Weighted Moving Average (WMA)
- Volume Weighted Moving Average (VWMA)
- Smoothed Moving Average (SWMA)
- Running Moving Average (RMA)
All moving averages operate independently and can be combined freely.
Independent Timeframes
Each MA can be calculated from a different timeframe while plotted on the current chart.
Example:
- 180 HMA on 1-minute
- 288 SMA on 5-minute
- 720 VWMA on 10-minute
This provides built-in multi-timeframe trend context.
Independent Lengths & Sources
Each MA has its own:
- Length
- Price source (Close, HLCC4, OHLC4, etc.)
- Calculation type
- Timeframe
────────────────────────────────────
Automatic Time Labels
Optional labels show:
- MA type
- Effective timeframe duration (real-world time equivalent)
Examples:
- HMA 3 h
- SMA 5 d
- VWMA 2.5 mnth
The indicator converts Length × Timeframe into intuitive time duration, making it easier to understand the real smoothing strength of each MA.
────────────────────────────────────
Smart Label Positioning
Labels are:
- Plotted directly on each MA
- Offset from the latest price action
- Automatically oriented based on slope (up/down)
This keeps the chart clean while maintaining readability.
────────────────────────────────────
Visual Customization
You can customize:
- Line colors
- Transparency
- Label text color
- Label size
- Label visibility
- Offset position
Each MA is fully independent in styling.
────────────────────────────────────
Typical Uses
Trend Identification
Detect overall market direction using slower MAs.
Multi-Timeframe Analysis
Combine higher timeframe trend context with lower timeframe execution.
Dynamic Support & Resistance
Use MAs as dynamic reaction zones in trending markets.
Trend Alignment
Identify when multiple timeframes align for higher-probability setups.
Market Context
Avoid trading against higher timeframe direction.
────────────────────────────────────
Default Setup
- MA1: 180 HMA (1-minute)
- MA2: 288 HMA (5-minute)
- MA3: 720 HMA (10-minute)
This creates a balanced short/medium/long trend structure.
────────────────────────────────────
Highlights
- Up to 3 independent moving averages
- 6 MA calculation methods
- Full multi-timeframe support
- Independent settings per MA
- Automatic time-based labeling
- Clean visual structure
- Fully customizable appearance
TriMA is designed for traders who want a clean but powerful multi-timeframe trend system combining multiple moving averages into one structured view.
Triple Moving Averages (TriMA) is a flexible multi-timeframe trend analysis indicator that displays up to three independently configurable moving averages on a single chart. Each moving average can use its own calculation method, price source, length, and timeframe, making it ideal for trend following, market structure analysis, and higher-timeframe context without switching charts.
────────────────────────────────────
Key Features
Three Independent Moving Averages
Display up to three moving averages simultaneously. The 2nd and 3rd MAs can be enabled or disabled independently for simplified or advanced analysis.
Multiple Moving Average Types
Each MA supports:
- Hull Moving Average (HMA)
- Simple Moving Average (SMA)
- Weighted Moving Average (WMA)
- Volume Weighted Moving Average (VWMA)
- Smoothed Moving Average (SWMA)
- Running Moving Average (RMA)
All moving averages operate independently and can be combined freely.
Independent Timeframes
Each MA can be calculated from a different timeframe while plotted on the current chart.
Example:
- 180 HMA on 1-minute
- 288 SMA on 5-minute
- 720 VWMA on 10-minute
This provides built-in multi-timeframe trend context.
Independent Lengths & Sources
Each MA has its own:
- Length
- Price source (Close, HLCC4, OHLC4, etc.)
- Calculation type
- Timeframe
────────────────────────────────────
Automatic Time Labels
Optional labels show:
- MA type
- Effective timeframe duration (real-world time equivalent)
Examples:
- HMA 3 h
- SMA 5 d
- VWMA 2.5 mnth
The indicator converts Length × Timeframe into intuitive time duration, making it easier to understand the real smoothing strength of each MA.
────────────────────────────────────
Smart Label Positioning
Labels are:
- Plotted directly on each MA
- Offset from the latest price action
- Automatically oriented based on slope (up/down)
This keeps the chart clean while maintaining readability.
────────────────────────────────────
Visual Customization
You can customize:
- Line colors
- Transparency
- Label text color
- Label size
- Label visibility
- Offset position
Each MA is fully independent in styling.
────────────────────────────────────
Typical Uses
Trend Identification
Detect overall market direction using slower MAs.
Multi-Timeframe Analysis
Combine higher timeframe trend context with lower timeframe execution.
Dynamic Support & Resistance
Use MAs as dynamic reaction zones in trending markets.
Trend Alignment
Identify when multiple timeframes align for higher-probability setups.
Market Context
Avoid trading against higher timeframe direction.
────────────────────────────────────
Default Setup
- MA1: 180 HMA (1-minute)
- MA2: 288 HMA (5-minute)
- MA3: 720 HMA (10-minute)
This creates a balanced short/medium/long trend structure.
────────────────────────────────────
Highlights
- Up to 3 independent moving averages
- 6 MA calculation methods
- Full multi-timeframe support
- Independent settings per MA
- Automatic time-based labeling
- Clean visual structure
- Fully customizable appearance
TriMA is designed for traders who want a clean but powerful multi-timeframe trend system combining multiple moving averages into one structured view.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.