MT5 indicators← MACD Cycle Oscillator 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 Cycle Oscillator

Converts the difference between the short and long EMAs into a location within the period, smooths it, and displays it from 0 to 100. The line color shows the increase or decrease from the previous bar.

Indicator name: MACD Cycle OscillatorMetaTrader 5Separate window

Read the location value and the increase/decrease color

Read the location value and the increase/decrease colorShort EMA − long EMAConverted to a location within the period → smoothedGreen: increase / red: decrease
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Vertical valueIt is the converted location of the EMA difference within the period. It is not a price difference or MACD itself.

2

Line colorGreen if it increased from the previous bar, red if it decreased. An equal value keeps the previous color.

3

Blue auxiliary lineSetting Average Period to 1 or more adds an EMA of the main line.

Main line: 0 to 100Choose 1 stage / 2 stagesNo notifications or marks
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
Price for calculation
InpPrice
Close → Typical (H+L+C)/3
Short EMA period
InpFastPeriod
23 → 12
Long EMA period
InpSlowPeriod
50 → 26
Auxiliary average period
InpAveragePeriod
0 → 5

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 settingsInpPrice = Close / InpFastPeriod = 23 / InpSlowPeriod = 50 / InpAveragePeriod = 0
MACD Cycle Oscillator default settings
Close, short 23 / long 50, Cycle 10, smoothing 3, 2 stages. The auxiliary average is hidden.
View the screen in detail at full size
MACD Cycle Oscillator default settings (actual size)
Settings change exampleInpPrice = Typical (H+L+C)/3 / InpFastPeriod = 12 / InpSlowPeriod = 26 / InpAveragePeriod = 5
MACD Cycle Oscillator settings change example
Changed to the typical price, short 12 / long 26 and Average 5. A blue dashed average is added.
View the screen in detail at full size
MACD Cycle Oscillator settings change example (actual size)

Published example: M1. This is an example to explain the display. The example with changed settings is not a set of recommended values. Details can be checked in the actual-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 displayed range.

2

How to read it in 30 seconds

Height

The value is 0 to 100. The −10 / 110 scale marks of the display frame are margins, not the lower or upper limits of the calculation.

Colors

Green is an increase and red is a decrease. With an equal value, the color does not change. The first valid value is green.

Number of stages

1 stage performs one location conversion and smoothing; 2 stages perform the location conversion and smoothing once more on that result.

3

What it measures

Rather than the size of the EMA difference, it smooths and displays where that difference lies within the recent range.

Price for calculation

Close is the close, and Typical is (high + low + close) ÷ 3. The 2 EMAs start from the first price. The window name shows price, short period, long period, Cycle, smoothing, number of stages and average (Off or period), in that order. The header values show the main line, then the auxiliary average if it is displayed.

Location conversion

The location of the current value is converted with the minimum within the latest Cycle Period as 0 and the maximum as 100. If the range is 0, the previous converted value of that stage is used. If the range is 0 the first time, it is 0.

Stage 2

The smoothed value of stage 1 is converted again with the minimum and maximum of the recent period and smoothed. It is not a method that simply averages the stage 1 smoothed value 2 times.

Start of drawing

With Cycle Period as C, 1 stage starts from bar C and 2 stages from bar 2C − 1. The default is bar 19. If the auxiliary average is set to N bars, it is displayed N − 1 bars after the main line starts. The average in the change example starts from bar 23.

4

Situations for reading the display

It stays near 0 or 100

Indicator
It is a state close to an end of the location within the period.
Cross-check
It does not mean the price is the same.
Check
Check the line value and the color separately.
Caution
This value alone does not determine the future direction.

Red or green continues even with the same value

Indicator
A bar with an equal value keeps the previous color.
Cross-check
Also watch for small increases or decreases before rounding.
Check
Check the main line at actual size.
Caution
The color is not the sign of the value.

The average overlaps the main line

Indicator
With Average Period 1, it has the same value as the main line.
Cross-check
Check Average Period.
Check
At 0, it is hidden.
Caution
Displaying the average does not add notifications or marks.
5

Steps for checking the display

1

Check the main line

Check the 0 to 100 line and the color based on the comparison with the previous bar.

2

Choose the number of stages

Even with the same period, the shape differs between 1 stage and 2 stages.

3

Add the average

Set Average Period to display the blue dashed line.

4

Cross-check the change example

Check the 4 items, price, the 2 EMA periods and the average period, in the comparison section.

6

Installation and checking the package contents

Included filePurpose / location
TRI_MACD_Cycle_Oscillator.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. Place only 1 instance of the same product on 1 chart.

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 7 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Price for calculation

Name shown on screen
Price
Input name
InpPrice
Default
Close
Allowed range
Close / Typical
Description
The same price is used for the 2 EMAs.

Short EMA period

Name shown on screen
Fast EMA Period
Input name
InpFastPeriod
Default
23
Allowed range
1–999, smaller than Slow
Description
Used to calculate the difference from the long EMA.

Long EMA period

Name shown on screen
Slow EMA Period
Input name
InpSlowPeriod
Default
50
Allowed range
2–1000, larger than Fast
Description
The same value as Fast cannot be used.

Location conversion period

Name shown on screen
Cycle Period
Input name
InpCyclePeriod
Default
10
Allowed range
2〜1000
Description
The period over which the minimum and maximum are searched at each stage.

Smoothing at each stage

Name shown on screen
Smoothing Period
Input name
InpSmoothing
Default
3
Allowed range
1–1000 (decimals allowed)
Description
The coefficient is 2 ÷ (set value + 1). At 1, the converted value of that stage is used as it is.

Number of conversion and smoothing stages

Name shown on screen
Stages
Input name
InpStages
Default
Two stages
Allowed range
One Stage / Two Stages
Description
1 stage or 2 stages. The number of bars of required history also changes.

Auxiliary average period

Name shown on screen
Average Period (0 = off)
Input name
InpAveragePeriod
Default
0
Allowed range
0〜1000
Description
0 hides it. At 1 or more, an EMA of the main line is displayed.
8

Usage specifications

When the range is flat

Even if the conversion window of a stage is flat, the previous converted value is kept. Later smoothing and other stages can still move. It is not necessarily true that “if the price is flat, the display immediately becomes constant.”

No notifications

No pop-up or mark appears even when the color of the main line changes.

The forming bar changes

On the latest bar, values and colors change with price updates. If the timeframe, the start of the history or past prices change, the recalculated values may also change.

Do not judge by the 0 in the header alone

Even for a line that is not drawn because the required history is insufficient, the separate window header may show 0 at the display precision (0.00 for RSI and MACD, 0.0000 for the transform bars, 0.000 for the step band). Check whether the line exists together with the number of bars required. Values of lines hidden by input are not shown in the header either.

Keep unused inputs within range too

Periods of unselected methods and similar inputs are also subject to the input range check. If out of range, it does not start, and a 1-line reason in English appears in the Experts tab.

Only 1 instance of the same product on 1 chart

This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.

For on-screen display only

Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.

9

Troubleshooting and usage notes

The average does not appear yet

Check that the period is not 0 and that there are Average Period bars after the main line starts.

The window shows −10 / 110

Display margins are provided outside the calculated values of 0 to 100.

No lines appear

Check where drawing starts in Chapter 3 and the input ranges in Chapter 7. Depending on the settings, a long history is required. Also distinguish valid lines from lines that have been hidden.

The settings are not accepted

Check the reason on the Experts tab in MT5. Set back within the allowed range not only the inputs of the method being displayed but also the inputs that are not in use.

The line does not look smooth

Check the line at actual size. The impression of the shape also changes with the screen zoom and the scale of the vertical axis.

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

Formula for each stage

K = 100 × (input − window minimum) ÷ (window maximum − minimum). With a range of 0, the previous K is used, and 0 the first time. D = previous D + 2 ÷ (Smoothing + 1) × (K − previous D). The first D of each stage is the first K.

Main line and auxiliary average

With 1 stage, D1 is the main line; with 2 stages, D2. The average is calculated with EMA from the first main-line value and is drawn after the specified number of bars is available.

Distinction from the standard MACD

This product applies further location conversion and smoothing to the EMA difference. It is not described as giving the same output values as the MT5 standard MACD.