DAT MACD

Visualize zero-line cross signal indicator.

Last updated: Compatibility: MetaTrader 4
Jump to Download Read Full Guide
✓ Direct package link available✓ Demo testing recommended
DAT MACD – Zero-Line Cross Signal Indicator
On this page
  1. What is DAT MACD?
  2. How to use DAT MACD
  3. Where it helps
  4. MT4 Indicator Parameters
  5. How to Install .ex4 Indicator in MetaTrader 4
  6. Download DAT MACD

What is DAT MACD?

dat-macd-indicator source overview chart

DAT MACD is a custom MT4 indicator that combines MACD with TRIX and marks signals from moving-average crosses read against the zero line. The line changes color with the direction, so the current state is readable at a glance.

How to use DAT MACD

dat-macd-indicator source usage chart

Color-coded lines and signal marks in the sub-window appear when the fast line crosses the slow line and holds on the same side of the zero line. The line turns green after an upward cross that holds above the zero line and red after a downward cross that holds below it. The TRIX and divergence settings give a separate read on trend strength and possible reversals.

Where it helps

Read the MACD and TRIX views in a single sub-window
Recognize the current directional state from the line color
Compare the display with a standard MACD

MT4 Indicator Parameters

The table below lists the available MT4 indicator parameters. You can customize these options in the MetaTrader Inputs dialog to match your trading preferences.

ParameterDescription
Show_SignalTurns the signal display on or off. Default: true.
_1_Section label for the MACD settings group.
FastPeriodSets the period of the fast MACD moving average. Default: 12.
SlowPeriodSets the period of the slow MACD moving average. Default: 26.
SignalPeriodSets the period of the MACD signal line. Default: 9.
method_selectionSelects the moving-average type used in the calculation. Default: 0:SMA,1:EMA,2:SMMA,3:LWMA.
method_typeSpecifies the calculation method as a numeric value. Default: 3.
price_selectionSelects the applied price used in the calculation. Default: 0:CLOSE,1:OPEN,2:HIGH,3:LOW,4:Median(high....
price_typeSpecifies the price type as a numeric value. Default: 0.
_1__Section label for the TRIX settings group.
Show_TRIXTurns the TRIX display on or off. Default: false.
TrixFastPeriodSets the fast TRIX period. Default: 18.
TrixSlowPeriodSets the slow TRIX period. Default: 35.
Trix_bSets the TRIX smoothing coefficient. Default: 0.1.
Trix_hotSets the threshold used to identify an uptrend. Default: 0.7.
Trix_CoolSets the threshold used to identify a downtrend. Default: 35.0.
_2_Section label for the divergence settings group.
IndicatorLineWindowSpecifies the window number used for the indicator line. Default: 1.
DivergenceUpColorSets the line color used for an upward divergence. Default: DarkGoldenrod.
DivergenceDnColorSets the line color used for a downward divergence. Default: DarkGoldenrod.
ShowChartTrendLinesControls whether trend lines are drawn on the chart. Default: false.
ShowSubWindowTrendLinesControls whether trend lines are drawn in the sub-window. Default: false.
ShowTrendLines1MChartControls whether trend lines are drawn on the one-minute chart. Default: false.
AlertShowOnDivergenceControls whether an alert is shown when a divergence appears. Default: false.
AlertSoundOnDivergenceControls whether a sound plays when a divergence appears. Default: false.
AlertMailOnDivergenceControls whether an email notification is sent when a divergence appears. Default: false.
ClassicUpDivSoundSpecifies the sound file used for an upward divergence. Default: alert.wav.
ClassicDnDivSoundSpecifies the sound file used for a downward divergence. Default: alert.wav.
ReverseUpDivSoundSpecifies the sound file used for a reverse upward divergence. Default: news.wav.
ReverseDnDivSoundSpecifies the sound file used for a reverse downward divergence. Default: news.wav.
NumberOfDivergenceBarsSpecifies the number of bars used to detect divergence. Default: 500.
DAT MACD parameter settings
Default MT4 Indicator Settings

The screenshot above shows the default input parameters in the MT4 settings window.

How to Install .ex4 Indicator in MetaTrader 4

  1. Download the ZIP file and extract it.
  2. In MT4, select File → Open Data Folder.
  3. Open MQL4 → Indicators and copy the EX4 or MQ4 file into it.
  4. If the package includes library files, copy them to MQL4 → Libraries. Copy TPL files to the top-level templates folder.
  5. Restart MT4, find the indicator in the Navigator, and drag it onto a chart.

Test the tool on a demo account first. File contents and required folders can vary between packages.

MT4 indicator package

Download DAT MACD

The current MT4 package is available from the direct link below. Test it in a demo environment before using it with live funds.

  • ✓ MT4 indicator package
  • ✓ Demo testing recommended
Rate this indicator☆☆☆☆☆ 0.0 (0)
Download ZIPdat-macd-indicator.zipFile type: .zip
Before you trade

Indicators are analytical tools, not guarantees of profit. Test every download in a demo environment and make decisions based on your own risk tolerance.