MT5 indicators← MACD Plus product page日本語の取扱説明書

This product is in preparation for release. Product files are not yet distributed; the manual is published so that you can review its content. This manual is an English translation of the Japanese manual. Images (screens and figures) are not translated and may contain Japanese text or earlier names.

For Trilogy users

MACD Plus

Shows the difference between 2 moving averages, its average, and the difference between the two as lines and a histogram so they can be read separately.

Indicator name: MACD PlusMetaTrader 5Separate window

Read MACD, the signal and the histogram separately

Fast MA − slow MA× MACD Multiplier → MACD (blue line)Average of MACD → Signal (orange dotted line)Histogram: difference, MACD or hiddenThe bar colors reflect the selected calculation conditions. They are not trading instructions.
Schematic diagram of how to read it. This is not an actual terminal screen.
1

MACDThe blue line: the difference between the fast MA and the slow MA, multiplied by a multiplier.

2

SignalA moving average of MACD, shown as an orange dotted line.

3

HistogramMACD − Signal by default. MACD itself or hidden can also be selected.

6 methods for each average3 choices for the bar content5 coloring methods
1

MT5 display and examples of changed settings

Compares the default settings and a settings change example on a screen with only this product applied.

Settings change example: these items are changed
Bar content / Histogram
InpHistogram
MACD minus Signal → MACD
Bar coloring / Histogram Colours
InpColorMode
One Colour → Above / Below Zero and Rising / Falling
Show the MACD line / Show MACD Line
InpShowMacdLine
true → false

All other inputs remain at their defaults. On a PC, the default is on the left and the change example on the right; at smartphone width they appear in the same order from top to bottom.

Default settingsInpHistogram = MACD minus Signal; InpColorMode = One Colour; InpShowMacdLine = true
MACD Plus default settings
EMA 12/26, SMA 9 Signal, and bars of MACD minus Signal.
View the screen in detail at full size
MACD Plus default settings (full size)
Example of changed settingsInpHistogram = MACD; InpColorMode = Above / Below Zero and Rising / Falling; InpShowMacdLine = false
MACD Plus example of changed settings
Histogram = MACD, Histogram Colours = Above / Below Zero and Rising / Falling, Show MACD Line = false. The Signal line is shown.
View the screen in detail at full size
MACD Plus example of changed settings (full size)

Example shown: 1-minute chart (M1). This is an example to explain the display. The example of changed settings is not a recommended value. Details can be checked in the full-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the display range.

2

How to read it in 30 seconds

Distinguish the lines from the bars

MACD is RoyalBlue, and Signal is a DarkOrange dotted line. The default bars are SteelBlue.

Meaning of 0

MACD at 0 means the 2 averages are equal; a difference bar at 0 means MACD and Signal are equal.

Do not judge by color alone

The meaning of the colors changes with Histogram Colours, and they are not trading signals.

3

What it measures

Even under the same name MACD, changing the averaging method or the bar content gives different calculation results. Check the settings first.

MA types

The fast, slow and signal averages can each use a different method. LSMA is the regression value, and DEMA is 2×EMA−EMA(EMA).

Separate multipliers

MACD Multiplier affects MACD and its Signal. Histogram Multiplier applies only to the bars.

Hide displays

Lines can be hidden with Show MACD Line and Show Signal Line. Hiding them does not change the calculation definitions.

Histogram ColoursMeaning of the colors
One ColourA single SteelBlue color.
Above / Below ZeroLimeGreen when the bar is 0 or above, Crimson when it is negative.
Rising / FallingLimeGreen when above the previous bar, Crimson when below. An equal value keeps the previous color, and the first bar uses the rising color.
MACD against Zero and SignalLimeGreen when MACD is above 0 and above Signal. Crimson when it is below both. DimGray in other cases and before Signal is ready.
Above / Below Zero and Rising / FallingAt 0 or above, rising is LimeGreen and falling is PaleGreen. When negative, rising is LightSalmon and falling is Crimson. An equal value keeps the previous direction.
4

Situations for reading the display

Read what the bars contain

Indicator
Histogram setting
Cross-check
MACD minus Signal or MACD
Check
Before looking at the relationship with the 0 line, check what value is shown as bars.
Caution
Even with the same color, the meaning is not the same if the displayed content differs.

Change the averaging methods

Indicator
Fast, Slow and Signal methods
Cross-check
Keep the periods and Price the same
Check
Compare how the line responses differ between methods.
Caution
Crossings are not presented as trading signals or as a guarantee of future direction.
5

Steps for checking the display

1

Read the default

Check the difference between EMA 12 and 26, the SMA 9 Signal, and the difference bars.

2

Check the bar content

If you change Histogram, also re-read the meaning of 0 and of the colors.

3

Choose the displays you need

Change the line display and the coloring separately, and keep the comparison conditions.

6

Installation and checking the package contents

Included filePurpose / location
TRI_MACD_Plus.ex5The MT5 main file. Place it in MQL5/Indicators.

The ZIP contains only 1 item, the main file. The manual is opened from the product page on the site. Source code is not included. MT5 only; registration, account authentication and placing a license file are not required. Use it without changing the file name.

1

Extract the ZIP

Extract the ex5 main file rather than leaving it in the compressed file.

2

Open the data folder

In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.

3

Apply this product

Refresh the Navigator or restart MT5, and apply it to the target chart. When comparing different settings, using separate charts makes checking easier.

4

Check the settings and display

First check with the default values. Changes and removal are done from the chart's 'Indicators List'.

Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.

7

Settings

There are 13 inputs. Change them on the Inputs tab of the properties. The English item names defined in the source are shown together with the input names.

Fast average period

English item name
Fast Period
Input name
InpFastPeriod
Default
12
Allowed range
1 to 1000
Description
MA period on the fast side. Which is larger relative to Slow Period is not enforced.

Slow average period

English item name
Slow Period
Input name
InpSlowPeriod
Default
26
Allowed range
1 to 1000
Description
MA period on the slow side. With the same method and the same period, MACD is 0.

Signal period

English item name
Signal Period
Input name
InpSignalPeriod
Default
9
Allowed range
1 to 1000
Description
The period for averaging MACD.

Fast average method

English item name
Fast MA Method
Input name
InpFastMethod
Default
Exponential
Allowed range
Simple | Exponential | Smoothed | Linear Weighted | Linear Regression (LSMA) | Double Exponential (DEMA)
Description
Simple is a simple average, Exponential is exponential smoothing, Smoothed is a smoothed moving average, and Linear Weighted is an average that gives newer bars more weight. LSMA is the regression value, and DEMA is the double exponential method.

Slow average method

English item name
Slow MA Method
Input name
InpSlowMethod
Default
Exponential
Allowed range
Simple | Exponential | Smoothed | Linear Weighted | Linear Regression (LSMA) | Double Exponential (DEMA)
Description
It can use a different method from the fast side.

Signal method

English item name
Signal MA Method
Input name
InpSignalMethod
Default
Simple
Allowed range
Simple | Exponential | Smoothed | Linear Weighted | Linear Regression (LSMA) | Double Exponential (DEMA)
Description
The method used to average MACD.

Price

English item name
Price
Input name
InpPrice
Default
Close
Allowed range
7 types
Description
Close = close, Open = open, High = high, Low = low, Median = (high + low) / 2, Typical = (high + low + close) / 3, Weighted = (high + low + close × 2) / 4. Common to the fast and slow sides.

MACD multiplier

English item name
MACD Multiplier
Input name
InpMacdMultiplier
Default
1
Allowed range
0.0001 to 100000
Description
Multiplies the difference between the 2 MAs. Signal is also calculated from MACD after the multiplier is applied.

Bar content

English item name
Histogram
Input name
InpHistogram
Default
MACD minus Signal
Allowed range
MACD minus Signal | MACD | None
Description
Choose from the difference, MACD itself or hidden.

Bar multiplier

English item name
Histogram Multiplier
Input name
InpHistMultiplier
Default
1
Allowed range
0.0001 to 100000
Description
Applies only to the bar values.

Bar coloring

English item name
Histogram Colours
Input name
InpColorMode
Default
One Colour
Allowed range
The 5 methods in the main text
Description
Choose from the position relative to 0, comparison with the previous bar, or the relationship between MACD and Signal.

Show the MACD line

English item name
Show MACD Line
Input name
InpShowMacdLine
Default
true
Allowed range
true / false
Description
Turns the display of the blue line on or off.

Show the Signal line

English item name
Show Signal Line
Input name
InpShowSignalLine
Default
true
Allowed range
true / false
Description
Turns the display of the orange dotted line on or off.
8

Usage specifications

The latest bar is forming

The current bar is included in the calculation. The latest displayed values change with price updates.

Calculated on the chart timeframe

There is no function to specify a higher timeframe. Changing the timeframe or the history range also changes what is calculated.

Start of display

MACD is shown once both MAs can be calculated, and the difference bars once Signal can be calculated. EMA and DEMA start from the beginning of the series, so not every setting waits dozens of bars.

For on-screen display only

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

Nothing is displayed

Check the input ranges and the number of history bars. If an input is out of range, loading is refused and the reason is written to the Experts log.

Colors or thin lines are hard to see

Check the combination with the background and the display scale. Details of the published images can be checked in the full-size view.

Everything is hidden

With Histogram = None, Show MACD Line = false and Show Signal Line = false, no calculated lines or bars are displayed.

A bar at 0 is not visible

If the value is 0, the bar height is also 0. Check the content of the lines and bars.

If the first display does not appear, check history loading and the input ranges. If an earlier display has stopped updating, first check the price feed and the terminal's connection status.

10

Technical information and specification details

Start position and calculation

EMA and DEMA use the first value of the series as the seed. SMA, LWMA, LSMA and SMMA start once the bars for the period are available. Signal is calculated starting from the position where MACD begins.

Colors for equal values

Rising / Falling carries over the previous color, and the 4 colors by sign and slope carry over the previous direction. The first valid bar takes the rising direction.

Price and average types

Close = close, Open = open, High = high, Low = low, Median = (high + low)/2, Typical = (high + low + close)/3, Weighted = (high + low + close×2)/4. Simple is a simple average, Exponential is exponential smoothing, Smoothed is a smoothed moving average, and Linear Weighted is an average that weights newer bars more heavily.

Distinguishing what is displayed from what is not yet verified

The inputs and calculations in this document are based on the product's implementation. The actual display in the Data Window and the input screen, and how it looks during long operation on actual symbols or with long history, have not been verified.