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.
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.
Vertical valueIt is the converted location of the EMA difference within the period. It is not a price difference or MACD itself.
Line colorGreen if it increased from the previous bar, red if it decreased. An equal value keeps the previous color.
Blue auxiliary lineSetting Average Period to 1 or more adds an EMA of the main line.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
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.
Green is an increase and red is a decrease. With an equal value, the color does not change. The first valid value is green.
1 stage performs one location conversion and smoothing; 2 stages perform the location conversion and smoothing once more on that result.
Rather than the size of the EMA difference, it smooths and displays where that difference lies within the recent range.
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.
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.
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.
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.
Check the 0 to 100 line and the color based on the comparison with the previous bar.
Even with the same period, the shape differs between 1 stage and 2 stages.
Set Average Period to display the blue dashed line.
Check the 4 items, price, the 2 EMA periods and the average period, in the comparison section.
| Included file | Purpose / location |
|---|---|
| TRI_MACD_Cycle_Oscillator.ex5 | The 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.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. Place only 1 instance of the same product on 1 chart.
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.
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.
InpPriceInpFastPeriodInpSlowPeriodInpCyclePeriodInpSmoothingInpStagesInpAveragePeriodEven 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 pop-up or mark appears even when the color of the main line 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.
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.
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.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.
Check that the period is not 0 and that there are Average Period bars after the main line starts.
Display margins are provided outside the calculated values of 0 to 100.
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.
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.
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.
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.
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.
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.