OPEN-SOURCE SCRIPT

3x MTF MA Zones [josseliani]

275
3x MTF MA Zones is a clean multi-timeframe moving average overlay designed for dynamic support/resistance, trend structure and higher-timeframe context.

The indicator combines up to three independently configurable moving averages in one chart overlay. Each MA can use its own type, length, source and timeframe, allowing higher-timeframe moving average structure to be displayed directly on a lower-timeframe chart.

In addition to the three MAs, the indicator can identify the directional relationship between the two longer moving averages and visually highlight changes in that structure.

Three Independent Moving Averages

Each MA can be configured separately.

Available settings include:

MA type: EMA, SMA, WMA or SMMA
Source
Length
Timeframe
Color
Line width
Visibility

The default configuration uses SMMA 50 / 100 / 200.

If the timeframe field is left empty, the MA is calculated using the current chart timeframe.

A different timeframe can be selected independently for each MA. For example, a trader working on a 1-minute chart can display moving averages calculated from the 5-minute or 15-minute timeframe without changing charts.

Confirmed Higher-Timeframe Values

The optional Use Confirmed HTF Values setting controls how higher-timeframe moving averages are displayed.

When enabled, the indicator uses the last completed higher-timeframe MA value. This keeps the higher-timeframe structure stable while the current higher-timeframe candle is still developing.

When disabled, the currently developing higher-timeframe MA value can be displayed instead.

MA Zones

Optional fills can be displayed between:

MA 1 and MA 2
MA 2 and MA 3

This allows nearby moving averages to be viewed as broader dynamic structure zones rather than only as individual lines.

These areas can be useful for observing pullbacks, price reactions and confluence between several moving averages.

MA Cross and Trend Context

The indicator also monitors the relationship between the displayed moving averages.

When all three MAs are visible, the two MAs with the longest selected periods are used for the cross analysis.

If only two MAs are visible, those two are used instead.

A confirmed crossover between the selected pair changes the current directional state:

Green background — bullish MA structure
Red background — bearish MA structure

The background remains active until an opposite crossover changes the directional state.

The crossover itself can also be marked with a small diamond and an optional vertical divider through the chart.

These elements are intended to make changes in the broader MA structure easy to identify without adding separate indicators to the chart.

How I Use It

I mainly use 3x MTF MA Zones to keep higher-timeframe structure visible while trading lower timeframes.

One configuration I use for intraday gold scalping is 5-minute SMMA 50 / 100 / 200 displayed on a 1-minute chart.

I use the moving averages and the areas around them as possible:

trend-structure zones
dynamic support and resistance
reaction areas
pullback areas
continuation levels
higher-timeframe confluence

The background gives an additional visual reference for the current relationship between the longer moving averages.

This is only an example of my own configuration. The MA types, periods and timeframes can be adapted to different markets and trading styles.

Alerts

The indicator includes two types of alerts.

MA Touch Alerts

Each of the three moving averages has an independent touch alert.

A touch is detected when price reaches the corresponding MA. Each MA also has its own cooldown setting to help prevent repeated notifications while price is consolidating around the same level.

MA Cross Alerts

Separate bullish and bearish alerts are available when the selected MA pair crosses and the directional state changes.

This makes it possible to receive notifications both when price reaches an MA area and when the broader moving-average structure changes.

What Makes 3x MTF MA Zones Different

The purpose of 3x MTF MA Zones is to combine several related parts of moving-average analysis in one compact overlay.

Instead of using several separate MA indicators, each moving average can be configured independently with its own type, source, period and timeframe.

The indicator then combines these MAs with optional structure zones, confirmed higher-timeframe values, automatic cross analysis of the relevant longer-period MAs, visual trend-state highlighting and independent touch and crossover alerts.

The result is a simple multi-timeframe structure map that can remain on the trading chart without requiring constant switching between timeframes.

Notes

3x MTF MA Zones does not generate automatic buy or sell signals.

The green and red background represents the directional relationship between the selected moving averages after a confirmed crossover. It should not be interpreted as an automatic instruction to enter a trade.

Moving averages are based on historical price data, and interaction with an MA or MA zone does not guarantee support, resistance, continuation or reversal.

The indicator is intended as a visual market-structure and planning tool and should be combined with the user's own analysis and risk-management process.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.