OPEN-SOURCE SCRIPT
Atualizado

MMA, Mid-Price Moving Averages (Open + Close Based MAs)

128
📝 Script Description

This script introduces a custom set of moving averages based on the mid-price, calculated as the average of the open and close prices:

Mid Price = (Open + Close) / 2

Instead of traditional close-based MAs, this approach reflects the average sentiment throughout the trading session, offering a smoother and more realistic view of price action.

🔍 Key Features:

✅ Gap-aware smoothing
Captures opening gaps, offering a better representation of intraday shifts.

✅ Reduced noise
Less vulnerable to sharp closing moves or one-off spikes, making it easier to identify true trend breaks or supports.

✅ Closer to actual flow
Reflects a more natural midline of price movement, ideal for traders who prioritize clean, sustained trends.

✅ Better support/resistance alignment
Especially useful for identifying stable uptrends and minimizing false breakout signals.

📐 Included Moving Averages:

MA 5

MA 10

MA 20

MA 60

MA 120

MA 200

(All based on mid-price, not close)

🎯 Recommended For:

Traders seeking smoother and more reliable trendlines

Those who want a more realistic depiction of support and resistance

Ideal for filtering out noisy movements while focusing on clean, straight-moving charts

Notas de Lançamento
📝 Script Description

This indicator displays short-term moving averages (5, 10, and 20 days) based on the mid-price, calculated as the average of the open and close prices:

Mid Price = (Open + Close) / 2

Rather than using the traditional close-based moving averages, this script offers a more balanced and realistic view of price movement by incorporating both the session’s open and close.

🔍 Key Features:

✅ Short-Term Focused: Uses only the 5, 10, and 20-day moving averages, which are ideal for identifying near-term trends, momentum, and price structure.

✅ Gap-Sensitive: By including the opening price, this indicator captures price gaps that traditional moving averages might ignore.

✅ Reduced Noise: Smoother than close-based MAs, making it easier to assess trend continuity and filter out false breakouts.

✅ Stronger Support/Resistance Alignment: Especially useful for identifying clean, consistent uptrends where price respects short-term moving averages.

📐 Included Moving Averages:

MA 5 (Mid Price)

MA 10 (Mid Price)

MA 20 (Mid Price)
Notas de Lançamento
📌 English Description
This indicator, called "mma", plots three moving averages (MA 5, MA 10, MA 20)
based on the midpoint price ((Open + Close) / 2).
Each line is drawn with 20% transparency for a softer visual effect.

Key Features:
- Midpoint calculation: (Open + Close) / 2
- Moving averages: SMA of 5, 10, and 20 periods
- Semi-transparent colors for better chart visibility
- Helps identify short, medium, and long-term trends at a glance

Usage:
Apply this indicator to track trend directions and find potential support/resistance levels.
It is especially useful for traders who prefer cleaner charts with subtle moving average lines.


📌 한글 설명
이 지표 "mma"는 (시가 + 종가) / 2 로 계산한 **중간가(midPrice)**를 기반으로
5, 10, 20 기간 단순이동평균선(SMA)을 표시합니다.
각 선은 **투명도 20%**로 설정되어 차트 시각이 부드럽게 보입니다.

핵심 기능:
- 중간가 = (시가 + 종가) / 2
- 5, 10, 20 기간 단순 이동평균선 계산
- 투명도 20% 적용으로 차트 가독성 향상
- 단기, 중기, 장기 추세를 한눈에 파악 가능

활용법:
차트에 적용하면 추세 방향을 쉽게 확인할 수 있으며,
단기/중기/장기 지지·저항 구간 파악에 유용합니다.
깔끔한 차트를 선호하면서도 이동평균선 활용

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.