Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Advanced MACD indicator with additional Moving Average overlay for MT4/MT5. Features customizable MACD histogram, signal line, and trend-confirming MA. Perfect for momentum analysis, trend identification, and divergence spotting. Educational tool with risk warnings included.

License

Notifications You must be signed in to change notification settings

tradingfinder/MACD-2-Line-Indicator-Metatrader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MACD2L Indicator for MetaTrader 4 & 5

A powerful MetaTrader custom indicator that enhances the traditional MACD with an additional Moving Average line for superior technical analysis and trend confirmation.

Description

Advanced MACD indicator with additional Moving Average overlay for MT4/MT5. Features customizable MACD histogram, signal line, and trend-confirming MA. Perfect for momentum analysis, trend identification, and divergence spotting. Educational tool with risk warnings included.

The MACD2L indicator displays three essential components in a separate window:

  • MACD Histogram: Shows momentum between MACD and Signal lines
  • Signal Line: EMA of the MACD line (dotted blue line)
  • Moving Average: Additional MA line for trend confirmation (red line)

This versatile indicator works on both MetaTrader 4 and MetaTrader 5 platforms, providing traders with enhanced technical analysis capabilities.

Features

  • ✅ Compatible with both MetaTrader 4 and MetaTrader 5
  • ✅ Traditional MACD with customizable periods
  • ✅ Configurable Signal line calculation
  • ✅ Additional Moving Average overlay for trend confirmation
  • ✅ Customizable colors and line styles
  • ✅ Works on all timeframes
  • ✅ Clear separate window display
  • ✅ Multiple price mode options

Installation

For MetaTrader 5:

  1. Download the .mq5 file
  2. Copy to: MT5 Data Folder/MQL5/Indicators/
  3. Restart MT5 or refresh Navigator
  4. Find "MACD2L" in Custom Indicators

For MetaTrader 4:

  1. Download the .mq4 file
  2. Copy to: MT4 Data Folder/MQL4/Indicators/
  3. Restart MT4 or refresh Navigator
  4. Find "MACD2L" in Custom Indicators

Parameters

MACD Settings

Parameter Default Description
fast_period 12 Fast EMA period for MACD
slow_period 26 Slow EMA period for MACD
signal_period 9 Signal line EMA period
price_mode Close Price type (Close, Open, High, Low)

Moving Average Settings

Parameter Default Description
average 21 Period for additional Moving Average
mode EMA MA method (SMA, EMA, SMMA, LWMA)

Visual Elements

  • MACD Histogram: Silver bars showing momentum strength
  • Signal Line: Blue dotted line (9-period EMA of MACD)
  • MA Line: Red solid line (21-period MA for trend filter)

Trading Applications

Entry Signals

  • Buy: MACD crosses above Signal line + MA trending up
  • Sell: MACD crosses below Signal line + MA trending down

Trend Analysis

  • Bullish Trend: MACD histogram positive, above MA line
  • Bearish Trend: MACD histogram negative, below MA line

Advanced Techniques

  • Divergence Trading: Price vs. MACD divergences
  • Zero Line Crosses: MACD crossing above/below zero
  • MA Filter: Use MA line to filter false signals

Compatibility

Platform Version Status
MetaTrader 4 Build 1380+ ✅ Supported
MetaTrader 5 Build 3440+ ✅ Supported
All Timeframes M1 to MN1 ✅ Compatible
All Instruments Forex, Stocks, Crypto, Commodities ✅ Compatible

Usage Tips

  1. Bullish Signals: MACD histogram above zero, Signal line trending up
  2. Bearish Signals: MACD histogram below zero, Signal line trending down
  3. Trend Confirmation: Use the MA line to confirm overall trend direction
  4. Divergences: Look for price vs. MACD divergences for potential reversals

Version History

  • v1.05 - Enhanced stability and MT4/MT5 compatibility
  • v1.04 - Added customizable MA methods
  • v1.03 - Improved visual elements
  • v1.02 - Bug fixes and optimizations
  • v1.01 - Initial release

Technical Requirements

Minimum System Requirements

  • MetaTrader 4 (Build 1380+) or MetaTrader 5 (Build 3440+)
  • Windows 7/8/10/11 or compatible system
  • 50MB available storage space
  • Stable internet connection for real-time data

Risk Warning

⚠️ Important Disclaimer:

  • Trading involves substantial risk of loss
  • Past performance doesn't guarantee future results
  • This indicator is for educational purposes only
  • Always use proper risk management
  • Never risk more than you can afford to lose
  • Consider seeking professional financial advice

Contributing

We welcome contributions to improve this indicator:

  1. Fork the repository
  2. Create feature branch
  3. Submit pull request with detailed description
  4. Follow MQL4/MQL5 coding standards

Support & Resources

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Developed by TFLab | TradingFinder.com
Empowering traders with professional-grade technical analysis tools

About

Advanced MACD indicator with additional Moving Average overlay for MT4/MT5. Features customizable MACD histogram, signal line, and trend-confirming MA. Perfect for momentum analysis, trend identification, and divergence spotting. Educational tool with risk warnings included.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published