OPEN-SOURCE SCRIPT

Super MTF Clouds (4x3 Pairs)

2 679
Overview:
This script is based on Ripster's MTF clouds, which transcends the standard moving average cloud indicator by offering a powerful and deeply customizable Multi-Timeframe (MTF) analysis. Instead of being limited to the moving averages of your current charts from the current timeframe, this tool allows you to project and visualize the trend and key support/resistance zones from up to 4 different timeframes simultaneously. User can input up to 6 different EMA values which will form 3 pairs of EMA clouds, for each of the timeframes.

The primary purpose is to provide traders with immediate confluence. By observing how price interacts with moving average clouds from higher timeframes (e.g., Hourly, Daily, Weekly), you can make more informed decisions on your active trading timeframe (e.g., 10 Minute). It's designed as a complete MTF Cloud toolkit, allowing you to display all necessary MTFs in a single script to build a comprehensive view of the market structure without having to flick to different timeframe to look for cloud positions.

Key features:
  • Four Independent Multi-Timeframe Slots: Each slot can be assigned any timeframe available on TradingView (e.g., D, W, M, 4H).
  • Three MA Pairs Per Timeframe: For each timeframe, configure up to three separate MA clouds (e.g., a 9/12 EMA pair, a 20/50 EMA pair, and a 100/200 SMA pair).
  • Complete Customisation: For every single moving average (24 in total), you can independently control:
  • MA Type: Choose between EMA or SMA.
  • Length: Any period you require.
  • Line Color: Full colour selection.
  • Line Thickness: Adjust the visual weight of each line.
  • Cloud Control: For every pair (12 in total), you can set the fill colour and transparency.


How To Use This Script:
This tool is best used for confirmation and context. Here are some practical strategies that one can adopt:
  • Trend Confluence: Before taking a trade based on a signal on your current timeframe, glance at the higher timeframe clouds. If you see a buy signal on the 15-minute chart and the price is currently trading above a thick, bullish Daily cloud, the probability of that trade succeeding is significantly higher. Conversely, shorting into strong HTF support is a low-probability trade.
  • Dynamic Support & Resistance: The edges of the higher timeframe clouds often act as powerful, dynamic levels of support and resistance. A pullback to the 4-Hour 50 EMA on your 15-minute chart can be a prime area to look for entries in the direction of the larger trend.
  • Gauging Market Regimes: Use the toggles in the settings to quickly switch between different views. You can have a "risk-on" view with short-term clouds and a "macro" view with weekly and monthly clouds. This helps you adapt your trading style to the current market conditions.


Key Settings:
1. Global Setting
Source For All MAs: This determines the price data point used for every single moving average calculation.
Default: hl2 (an average of the High and Low of each bar). This gives a smooth midpoint price.
Options: You can change this to Close (the most common method), Open, High, Low, or ohlc4 (an average of the open, high, low, and close), among others.
Recommendation: For most standard trend analysis, the default hl2 is the common choice.
2. The Timeframe Group Structure
The rest of the settings are organized into four identical, collapsible groups: "Timeframe 1 Settings" through "Timeframe 4 Settings". Each group acts as a self-contained control panel for one multi-timeframe view.

Within each timeframe group, you have two master controls:
  • Enable Timeframe: This is the main power switch for the entire group. Uncheck this box to instantly hide all three clouds and lines associated with this timeframe. This is perfect for quickly decluttering your chart or focusing on a different set of analyses.
  • Timeframe: This dropdown menu is the heart of the MTF feature. Here, you select the higher timeframe you want to analyse (e.g., 1D for Daily, 1W for Weekly, 4H for 4-Hour). All calculations for the three pairs within this group will be based on the timeframe you select here.


3. Pair-Specific Controls
Inside each timeframe group, there are three sections for "Pair 1", "Pair 2", and "Pair 3". These control each individual moving average cloud.
Enable Pair: Just like the master switch for the timeframe, this checkbox turns a single cloud and its two MA lines on or off.
For each pair, the settings are further broken down:
  • Moving Average Lines (A and B): These two rows control the two moving averages that form the cloud. 'A' is typically used for the shorter-period MA and 'B' for the longer-period one.
  • Type (A/B): A dropdown menu to select either EMA (Exponential Moving Average) or SMA (Simple Moving Average). EMAs react more quickly to recent price changes, while SMAs are smoother and react more slowly.
  • Length (A/B): The lookback period for the moving average (e.g., 21, 50, 200).
  • Color (A/B): Sets the specific colour of the MA line itself on your chart.
  • Cloud Fill Settings
  • Fill Color: This controls the colour of the shaded area (the "cloud") between the two moving average lines. For a consistent look, you can set this to the same colour as your shorter MA line.
  • Transparency: Controls how see-through the cloud is, on a scale of 0 to 100. 0 is a solid, opaque colour, while 100 is completely invisible. The default of 85 provides a light, "cloud-like" appearance that doesn't obscure the price action.


----------------------------------------------------------------------
If anything is not clear please let me know!

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.