PROTECTED SOURCE SCRIPT
Telah dikemas kini Multi Moving Average System with MACD

Detailed Description of "Multi Moving Average System with MACD" Indicator
This indicator is designed to help traders identify the direction and strength of market trends. It combines several technical tools that work together to provide a more complete picture of market conditions.
What are Moving Averages and how do they work?
Moving Averages (MA) are lines on a chart that show the average price over a specific period. They smooth out price fluctuations, making it easier to see the overall direction of price movement.
This indicator uses 5 moving averages with different periods:
- MA1 (9 periods) - the fastest line, reacts to short-term changes
- MA2 (18 periods) - slightly slower, shows short-term trend
- MA3 (50 periods) - medium-term moving average
- MA4 (72 periods) - shows medium-term trend
- MA5 (200 periods) - the slowest, shows long-term trend
When price is above these lines - it may indicate an uptrend, and when below - a downtrend.
What is MACD and how is it used?
MACD (Moving Average Convergence Divergence) is an oscillator that helps determine trend strength and direction, as well as potential reversal points.
In this indicator, MACD is used for:
- Determining trend strength (weak, medium, strong)
- Identifying potential trend changes (MACD line crossovers)
- Confirming signals from moving averages
How candle coloring works (important for understanding the trend)
One of the key features of this indicator is the color marking of candles, which helps visually determine the current market condition:
- **Strong uptrend (green)**: when the closing price is above both MA1 and MA2 simultaneously
- **Strong downtrend (red)**: when the closing price is below both MA1 and MA2 simultaneously
- **Bullish signal (light green)**: when price crosses MA1 from below upward (potential start of an uptrend)
- **Bearish signal (light red)**: when price crosses MA1 from above downward (potential start of a downtrend)
- **Neutral state (gray)**: when none of the other color conditions are met
**It's important to understand the coloring mechanism:**
- Already formed (closed) candles **do not change their color** - their coloring is permanently fixed
- The current (not closed) candle may change color as the price moves during the formation of the bar
- This is not "repainting" in the negative sense (when signals change retroactively), but a natural process of forming the current candle
- This approach does not mislead, as it shows only the current state relative to moving averages
What does the indicator display?
1. **Five colored lines on the chart** - these are moving averages with different periods. Their crossovers help determine the trend.
2. **Information panel**:
- "Trend" - shows current market condition (Max Bullish, Bullish, Weak Bullish, Weak Bearish, Bearish, Max Bearish) with corresponding color
- "RSI" - Relative Strength Index value, showing overbought/oversold conditions
- "ADX" - Average Directional Index value, showing trend strength
3. Support and resistance levels:
- MA4 and MA5 from higher timeframe (e.g., 4-hour chart when trading on 15-minute chart)
- Mirror levels, calculated mathematically using the formula. These are not subjective levels, but strict mathematical calculations based on market symmetry principle mentioned in John Murphy's book "Technical Analysis of Financial Markets". This approach helps identify potential reversal points where price may react to symmetrical reflection relative to a price level.
4. Signals on the chart:
- MACD and signal line crossovers (crosses)
- Signal line crossing zero level (triangles)
- **MACD line crossing zero level (circles)**:
* Green circles below candles - when MACD line crosses zero level from below upward
* Red circles above candles - when MACD line crosses zero level from above downward
How to interpret the signals?
- **Strong uptrend (Max Bullish)**: when price is above MA1 and MA2, MACD is above zero line and above signal line with sufficient histogram amplitude
- **Weak uptrend (Weak Bullish)**: when MACD is above signal line but below zero line (potential reversal)
- **Strong downtrend (Max Bearish)**: when price is below MA1 and MA2, MACD is below zero line and below signal line with sufficient histogram amplitude
- **Weak downtrend (Weak Bearish)**: when MACD is below signal line but above zero line (potential reversal)
Higher timeframe configuration
One of the unique features of this indicator is the flexible configuration of higher timeframe linkage:
- **Auto-detection (Auto)** - the indicator automatically selects the most appropriate higher timeframe based on the current working timeframe
- **Special profiles** - you can choose a preset for a specific market type:
* **Crypto** - optimized for cryptocurrencies (accounts for 24/7 trading mode)
* **Forex** - optimized for forex market (accounts for 24-hour trading with breaks)
* **Stocks** - optimized for stock market (accounts for exchange trading hours)
- **Manual configuration (Manual)** - complete flexibility: you can specify which higher timeframe to use for each specific current timeframe (from 1 minute to monthly)
This feature allows adapting the indicator to the characteristics of any market and any trading style, providing relevant analysis for both scalpers and position traders.
How to customize the indicator?
You can adjust:
- Types and periods of moving averages
- Colors for different signals and levels
- Display of additional elements (levels, mirrors, signals)
- Filters (volume, RSI, ADX)
- Connection to higher timeframes
Important!
This indicator follows standard technical analysis principles and contains no secret algorithms. It is provided exclusively for informational and educational purposes. Technical analysis does not guarantee future results, and before making trading decisions, it is recommended to use additional analysis methods and consider your risk tolerance.
This indicator is designed to help traders identify the direction and strength of market trends. It combines several technical tools that work together to provide a more complete picture of market conditions.
What are Moving Averages and how do they work?
Moving Averages (MA) are lines on a chart that show the average price over a specific period. They smooth out price fluctuations, making it easier to see the overall direction of price movement.
This indicator uses 5 moving averages with different periods:
- MA1 (9 periods) - the fastest line, reacts to short-term changes
- MA2 (18 periods) - slightly slower, shows short-term trend
- MA3 (50 periods) - medium-term moving average
- MA4 (72 periods) - shows medium-term trend
- MA5 (200 periods) - the slowest, shows long-term trend
When price is above these lines - it may indicate an uptrend, and when below - a downtrend.
What is MACD and how is it used?
MACD (Moving Average Convergence Divergence) is an oscillator that helps determine trend strength and direction, as well as potential reversal points.
In this indicator, MACD is used for:
- Determining trend strength (weak, medium, strong)
- Identifying potential trend changes (MACD line crossovers)
- Confirming signals from moving averages
How candle coloring works (important for understanding the trend)
One of the key features of this indicator is the color marking of candles, which helps visually determine the current market condition:
- **Strong uptrend (green)**: when the closing price is above both MA1 and MA2 simultaneously
- **Strong downtrend (red)**: when the closing price is below both MA1 and MA2 simultaneously
- **Bullish signal (light green)**: when price crosses MA1 from below upward (potential start of an uptrend)
- **Bearish signal (light red)**: when price crosses MA1 from above downward (potential start of a downtrend)
- **Neutral state (gray)**: when none of the other color conditions are met
**It's important to understand the coloring mechanism:**
- Already formed (closed) candles **do not change their color** - their coloring is permanently fixed
- The current (not closed) candle may change color as the price moves during the formation of the bar
- This is not "repainting" in the negative sense (when signals change retroactively), but a natural process of forming the current candle
- This approach does not mislead, as it shows only the current state relative to moving averages
What does the indicator display?
1. **Five colored lines on the chart** - these are moving averages with different periods. Their crossovers help determine the trend.
2. **Information panel**:
- "Trend" - shows current market condition (Max Bullish, Bullish, Weak Bullish, Weak Bearish, Bearish, Max Bearish) with corresponding color
- "RSI" - Relative Strength Index value, showing overbought/oversold conditions
- "ADX" - Average Directional Index value, showing trend strength
3. Support and resistance levels:
- MA4 and MA5 from higher timeframe (e.g., 4-hour chart when trading on 15-minute chart)
- Mirror levels, calculated mathematically using the formula. These are not subjective levels, but strict mathematical calculations based on market symmetry principle mentioned in John Murphy's book "Technical Analysis of Financial Markets". This approach helps identify potential reversal points where price may react to symmetrical reflection relative to a price level.
4. Signals on the chart:
- MACD and signal line crossovers (crosses)
- Signal line crossing zero level (triangles)
- **MACD line crossing zero level (circles)**:
* Green circles below candles - when MACD line crosses zero level from below upward
* Red circles above candles - when MACD line crosses zero level from above downward
How to interpret the signals?
- **Strong uptrend (Max Bullish)**: when price is above MA1 and MA2, MACD is above zero line and above signal line with sufficient histogram amplitude
- **Weak uptrend (Weak Bullish)**: when MACD is above signal line but below zero line (potential reversal)
- **Strong downtrend (Max Bearish)**: when price is below MA1 and MA2, MACD is below zero line and below signal line with sufficient histogram amplitude
- **Weak downtrend (Weak Bearish)**: when MACD is below signal line but above zero line (potential reversal)
Higher timeframe configuration
One of the unique features of this indicator is the flexible configuration of higher timeframe linkage:
- **Auto-detection (Auto)** - the indicator automatically selects the most appropriate higher timeframe based on the current working timeframe
- **Special profiles** - you can choose a preset for a specific market type:
* **Crypto** - optimized for cryptocurrencies (accounts for 24/7 trading mode)
* **Forex** - optimized for forex market (accounts for 24-hour trading with breaks)
* **Stocks** - optimized for stock market (accounts for exchange trading hours)
- **Manual configuration (Manual)** - complete flexibility: you can specify which higher timeframe to use for each specific current timeframe (from 1 minute to monthly)
This feature allows adapting the indicator to the characteristics of any market and any trading style, providing relevant analysis for both scalpers and position traders.
How to customize the indicator?
You can adjust:
- Types and periods of moving averages
- Colors for different signals and levels
- Display of additional elements (levels, mirrors, signals)
- Filters (volume, RSI, ADX)
- Connection to higher timeframes
Important!
This indicator follows standard technical analysis principles and contains no secret algorithms. It is provided exclusively for informational and educational purposes. Technical analysis does not guarantee future results, and before making trading decisions, it is recommended to use additional analysis methods and consider your risk tolerance.
Nota Keluaran
Multi Moving Average & MACD IndicatorA visual tool for trend analysis with full interface customization
This indicator provides a comprehensive view of market dynamics through a combination of five moving averages and MACD. Special attention is paid to flexibility — you can adapt each element to your analysis style, including completely disabling unnecessary components.
Full display control:
Moving Averages:
Enable/disable individual lines via transparency (0% = hide)
Set type (EMA/SMA/WMA/VWMA) and period for each of the 5 lines
Adjust line thickness (1-3 pixels)
Color Schemes:
12 customizable color profiles: for lines, candles, panel, and signals
Separate settings for:
Strong/weak trend states
Price and MA1 crossovers
MACD signals (crosses, zero levels)
Inter-timeframe levels:
Enable/disable display of MA4/MA5 from the higher timeframe
Adjust length, width, and line style (solid/dashed)
Activate/deactivate mirror levels independently of the main ones
Flexible interface parameters:
Information Panel:
Change background transparency (0-100%)
Customize text color for better readability
Disable RSI/ADX display if needed
MACD Signals:
Independent enable/disable:
MACD and signal line crossovers
MACD line zero level crossovers
Signal line zero level crossovers
Select marker style (circles, triangles, crosses)
Data Filters:
Set periods for RSI, ADX, volume
Completely disable filters via switch
Unique customization options:
Timeframe Profile System:
Auto — automatic detection of the higher timeframe
Crypto/Forex/Stocks — presets for market specifics
Manual — detailed mapping setup for each timeframe (from 1 minute to monthly)
Dynamic chart adaptation:
Automatic reduction of displayed lines on small timeframes
Adjustment of label size depending on scale
Complete element deactivation:
Any component (candles, panel, levels) can be hidden in 1 click
Keep only the tools that match your analysis method
How to customize:
In the «Display Settings» group, activate required zones and elements
In the «Colors», «Candle Colors», «Table Colors» sections, adjust the palette
Use «Timeframe Profile» to select the appropriate analysis mode
In «MACD Signals», enable only relevant signal types
Use «Manual Timeframe Mapping» for precise timeframe linkage setup
Important:
All settings are saved when the chart is reloaded. The indicator contains no hidden parameters — you see exactly what you configured. This allows creating minimalist setups for scalping or detailed panels for position trading.
Note:
The script provides visual data for technical analysis. It is not financial advice. All decisions should be made based on a comprehensive assessment of the market situation, taking into account your trading rules and risk management.
Nota Keluaran
fixing bugs. changing default settings.
Waiting for feedback.
Nota Keluaran
Multi Moving Average System with MACD v1.9 (Crypto Edition)Advanced trend and market structure analyzer for 24-hour markets.
This indicator is a multifunctional tool optimized for the crypto market, combining moving averages with multiple timeframes, a dynamic trend channel, an adaptive assessment system, and unified price levels to identify the market structure, trend strength, and potential reversal zones. It is specifically tailored to the volatility and 24-hour nature of cryptocurrency markets.
Key improvements in version v1.9:
Smart adaptive trend channel (version 2).
The channel length adapts to the macrotrend, and dynamic width management prevents excessive expansion during volatility spikes. The width is automatically normalized using a hybrid approach:
scaling by the square root (to compensate for statistical dispersion on long windows);
ATR limitation (to account for current volatility).
This is ideal for identifying stable trends without interference from short-term pumps and dumps.
Unified levels from multiple timeframes.
You can choose one of two powerful systems:
Moving average levels (Fibonacci MA) — 144 and 233 — are ideal for continuous price movement in the crypto market;
Classic Pivot levels (R/S) — with full support for R1–R3 and S1–S3.
Both systems use a unified principle of binding to the higher timeframe, so your levels always reflect the dominant market structure.
New feature: Pivot levels with «Marks Timeframe» are now fully optional and can be configured separately, eliminating confusion with mirror levels.
Default settings optimized for the crypto market:
Timeframe mapping: 1–5m → 2h | 15m → 4h | 30m–4h → Daily | Daily → Weekly;
RSI zones: 80/20 (instead of 70/30) — avoids false signals during strong trends;
ATR filter: enabled by default with a 1.0% threshold;
Enhanced MACD filtering: active by default for cleaner signals;
Levels from a separate timeframe: hidden by default for minimalism.
How it works:
Five adaptive moving averages (Fibonacci sequence):
MA1 (21): ultra-fast trend and entry filter;
MA2 (55): short-term impulse;
MA3 (89): medium-term direction;
MA4 (144): key structural level (VWMA);
MA5 (233): long-term trend anchor (SMA).
All types (HMA, TEMA, VWMA, etc.) can be configured independently for each line.
Dynamic trend assessment system.
Combines 6 filters into a single score (0–10):
Price position relative to MA1/MA2;
Alignment of moving averages (bullish/bearish stack);
MACD status (histogram, zero line crossing);
RSI (80/20 zones);
ADX (>25 = strong trend);
Volume (>20% above SMA).
Result: clear visual states — Max Bullish / Bullish / Weak Bullish / Neutral / Weak Bearish / Bearish / Max Bearish.
Intelligent candlestick coloring:
Strong bullish trend: close > MA1 and MA2 — dark green;
Strong bearish trend: close < MA1 and MA2 — dark red;
Bullish signal: price crosses MA1 from bottom to top — light green;
Bearish signal: price crosses MA1 from top to bottom — light red;
Neutral state: all other cases — gray.
No repaint — colors are fixed at bar close.
Mirror levels (MA only).
Mathematically calculated reflection levels based on the price symmetry principle (inspired by John Murphy’s work). Active only when MA Levels are selected — never displayed with Pivot to avoid confusion.
Full customization:
Intelligent timeframe management:
Auto: automatic detection of the higher TF;
Crypto / Forex / Stocks: pre-configured profiles for market specifics;
Manual mode: full control (e.g., 5m → 2h, 15m → 4h, etc.).
Visual control:
Hide/show any element: trend zone, info panel, MACD signals, levels;
Customize colors for each state (12+ palettes);
Change line style, thickness, label size.
Signal filtering:
Enable/disable MACD crossovers, zero levels;
Activate/disable RSI, ADX, volume, ATR filters;
Set custom thresholds (e.g., RSI 80/20, ADX 25).
Why this version is ideal for crypto trading:
No session привязки: Pivot levels are optional; MA system works 24/7;
Volatility consideration: ATR and dynamic channel prevent false breakouts;
Minimalist interface by default: maximum signal, minimum noise;
Multi-frame structure: see the daily trend even on a 5-minute chart without overload;
Transparent logic: no hidden algorithms — everything can be configured and verified.
Important:
This tool provides objective technical data based on standard indicators (MA, MACD, RSI, ADX, ATR, Pivot Points). It is not a financial recommendation. Always combine it with your own risk management rules and overall market analysis. Past results do not guarantee future profitability.
Nota Keluaran
Release InformationMulti Moving Average System with MACD v1.9.1 (Crypto Edition)
This release includes several important fixes and improvements aimed at enhancing the accuracy and usability of the indicator in cryptocurrency markets.
Key changes in version v1.9.1:
Daily Pivot Levels (D-Pivot) Calculation Logic Fixed:
D-Pivot now updates correctly three times a day at 00:00, 08:00, and 16:00 UTC, corresponding to 8-hour trading sessions.
The option to select a specific session has been removed to eliminate confusion.
Pivot Levels Visualization Improved:
A Price Decimals option has been added to the Price Levels settings, allowing precise specification of decimal places for level labels. This resolves the ###.## display issue for small-cap coins.
A short solid blue line representing the main Pivot Point (PP) between R1 and S1 levels has been added when Pivot levels from a separate timeframe are enabled.
Default Pivot Levels Settings:
To reduce initial visual noise, Show Pivot Levels (R1-R3/S1-S3) are now disabled (false) by default. They can be easily enabled via settings.
Adaptive Trend Channel:
Enabled by default.
Channel width parameters adjusted for better volatility response: Deviation Multiplier set to 2.0, Max Channel Width (ATR ×) set to 2.5.
All previous functionality of the indicator has been preserved and remains accessible via settings. You can customize the display of moving averages, levels, signals, filters, and other elements exactly as needed.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
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.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
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.