MT5 indicators← Momentum Agreement Bars 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

Momentum Agreement Bars

Compares the change from the previous bar of AO and AC, or of the EMA and the MACD histogram. Cases where both rise, both fall, and all other cases are sorted by candlestick color.

Coloring bars where two momentum measures agreeMetaTrader 5Main chartSite edition, no account authentication

Coloring bars where two momentum measures agree

STEP 1Calculate two values
STEP 2Compare the change from the previous bar
STEP 3Color the agreeing direction
1

Blue / redBlue if both are larger than on the previous bar, red if both are smaller. It is not about whether the values are above or below 0.

2

SilverIf the changes do not agree, or include an unchanged value, the bar is Silver.

3

Check the mode firstAO and AC and Elder Impulse compare different pairs of values.

The figure explains the processDisplay only, no order functionsCreated by Trilogy
1

Checking the display

Settings change example: Mode: AO and AC → Elder Impulse

Everything not listed stays at the default. On a PC the order is 'Default, Change example' from left, and on a smartphone from top. The change example is not a set of recommended values.

Default settings
Momentum Agreement Bars default screen
Defaults: bars where the increase/decrease of AO and AC agree are shown in blue or red, others in silver.
Settings change example
Momentum Agreement Bars change example
Changed to Elder Impulse. Because it uses the change in the EMA and the MACD histogram, the colored sections change.

The published images are display examples from before the brand display was added. The product has display settings for the brand text and QR code, but the screen with the brand display has not yet been verified. The timeframe shown in the image does not indicate how often this appears on that timeframe in practice. Marks at the edges may be cut off outside the screen.

Check all inputs of the change example

Mode = Elder Impulse、Elder EMA Period (1 to 500) = 13、MACD Fast EMA (1 to 500) = 12、MACD Slow EMA (2 to 500, above Fast) = 26、MACD Signal Period (1 to 500) = 9、MACD Signal Method = EMA、Show Neutral Candles = true、Closed Bars Only = true。

The 4 brand display items are not included in the capture.

2

30-second guide

Blue / red

Blue if both are larger than on the previous bar, red if both are smaller. It is not about whether the values are above or below 0.

Silver

If the changes do not agree, or include an unchanged value, the bar is Silver.

Check the mode first

AO and AC and Elder Impulse compare different pairs of values.

3

What it measures

Compares the change from the previous bar of AO and AC, or of the EMA and the MACD histogram. Cases where both rise, both fall, and all other cases are sorted by candlestick color.

AO and AC

AO is SMA 5 − SMA 34 of the median price. AC is AO − its SMA 5. The change of both from the previous bar is compared.

Elder Impulse

Compares the change in the close EMA and the MACD histogram. The histogram is the close EMA Fast − Slow minus its signal average.

Neutral display

With Show Neutral Candles=false, this product is not overlaid on neutral bars. It does not hide the original candlesticks.

Start of the calculation

AO/AC also needs the previous bar for the comparison. The EMA uses the first value of the history as its seed, and the SMA signal waits until the period is complete.

4

Reading scenarios

When you want to classify the display

Blue if both are larger than on the previous bar, red if both are smaller. It is not about whether the values are above or below 0.

When you want to switch conditions and compare

Use the same symbol, timeframe and history, and first change only one input. Use separate charts for comparison, and check the Mode and vertical axis of each screen.

The display differs from what you expected

A bar can be blue even when the price is falling. The color shows the change of the two indicators from the previous bar, not whether the bar is bullish or bearish.

This display alone does not decide whether to trade. The colors, lines and arrows represent the calculation conditions in this manual; they are not a forecast of future price movement or an instruction to buy or sell.

5

Check procedure

1

Start from the defaults

At first, do not change the inputs; cross-check the colors and display location against the default screen above.

2

Distinguish the timing of bars

With Closed Bars Only=true, the latest forming bar is blank. If set to false, the shape, color and marks of that bar change until it closes.

3

Change only the target condition

Mode: AO and AC → Elder Impulse. The comparison images may include more than one change.

4

Check values and units

The angle of lines and visible differences change with the screen zoom. Check the settings together with the price scale and the vertical axis of the separate window.

6

Installation and package contents

ZIP contentsLocation / role
TRI_Momentum_Agreement_Bars.ex5MQL5/Indicators in MT5. Only 1 item: the indicator itself.

The manual opens on the product's own page on the site. The ZIP does not include the manual or source code. It is for MT5 only and cannot be used in MT4. The site edition has no account authentication or license file settings.

1

Extract the ZIP

Prepare the extracted EX5. Do not place it while it is still compressed.

2

To the MT5 data folder

Place the EX5 in MQL5/Indicators via 'File → Open Data Folder'.

3

Apply to a chart

Refresh the Navigator or restart the terminal, and apply it to the target chart. DLL permission is not required.

4

Change / remove

Change the settings or remove it from the chart's 'Indicators List'. Enabling automated trading is not required.

7

Settings

There are 12 items in total: 8 product-specific items and 4 brand display items. English names are based on the input definitions. Enter numbers in half-width characters. Keep inputs that the mode does not use within range as well.

Evaluation mode

English item name
Mode
Input name
InpMode
Default
AO and AC
Options / range
AO and AC / Elder Impulse
Meaning and notes
Selects the pair to compare.

Elder EMA period

English item name
Elder EMA Period (1 to 500)
Input name
InpEmaPeriod
Default
13
Options / range
1–500 bars
Meaning and notes
The close EMA for Elder Impulse.

MACD fast period

English item name
MACD Fast EMA (1 to 500)
Input name
InpFast
Default
12
Options / range
1–500 bars, less than Slow
Meaning and notes
Used with Elder Impulse.

MACD slow period

English item name
MACD Slow EMA (2 to 500, above Fast)
Input name
InpSlow
Default
26
Options / range
2–500 bars, greater than Fast
Meaning and notes
Used with Elder Impulse.

Signal period

English item name
MACD Signal Period (1 to 500)
Input name
InpSignal
Default
9
Options / range
1–500 bars
Meaning and notes
Length for averaging MACD main.

Signal averaging method

English item name
MACD Signal Method
Input name
InpSignalMethod
Default
EMA
Options / range
EMA / SMA
Meaning and notes
Used to calculate the Elder Impulse histogram.

Neutral bars

English item name
Show Neutral Candles
Input name
InpShowNeutral
Default
true
Options / range
true / false
Meaning and notes
With false, the Silver overlay is skipped.

Show closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Options / range
true / false
Meaning and notes
With true, the forming bar is left empty.

Brand / QR display

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Options / range
true / false
Meaning and notes
This is a display-only setting. It does not change calculation results. If another product on the same chart has the display enabled, the shared display remains.

Brand corner

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Options / range
Top left / Bottom left / Bottom right / Top right
Meaning and notes
The chart corner where the brand text and QR code are placed.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Options / range
Corrected to 0–4000 px
Meaning and notes
Horizontal distance from the selected corner. Negative values are corrected to 0, and values above 4000 to 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Options / range
Corrected to 0–4000 px
Meaning and notes
Vertical distance from the selected corner. If the screen is narrow, adjust the position or the value.
8

Usage specifications

Forming bar

With Closed Bars Only=true, the latest forming bar is blank. If set to false, the shape, color and marks of that bar change until it closes.

History and recalculation

Settings changes, additions to or corrections of the history, and reloading redo the calculation. This is not a guarantee that "closed bars never change under any circumstances".

Brand display

A common display is shared among products of the same medium on the same chart. If several are loaded, the settings of the registration that enabled the display first are used, so changing one may not change the appearance.

For on-screen display only

This product does not place orders or trade automatically. It does not guarantee accuracy as a trading signal or profits.

9

Troubleshooting

Points that are easy to get confused about in this product

A bar can be blue even when the price is falling. The color shows the change of the two indicators from the previous bar, not whether the bar is bullish or bearish.

No display

Check whether the required number of history bars is available, whether the forming bar is hidden, and the input ranges and mode. Also check the terminal's Experts tab for input errors.

The display does not update

Check the price feed and the connection status. Changing settings for an unused mode does not change the display.

Looks different from the image

The appearance changes with the symbol, history, timeframe, inputs and scale. Even when compared with the full-size image, the marks are not necessarily at the same positions or of the same count.

10

Specification details

Specification note 1

The color is a classification of the current combination and does not mean a future direction or a buy or sell signal.

Specification note 2

Periods for unused modes are also checked against the input ranges. If an out-of-range input remains, loading is refused.

Verified scope

The published images and values were checked with the product before the brand display was added. The screen display of the product with the brand display has not yet been verified. Whether the values match other indicators with the same name, the Data Window display, and behavior with long histories or with symbols that have different price digits have not been verified.

Products with a price selection

Median = (high + low)/2, Typical = (high + low + close)/3, Weighted = (high + low + close×2)/4. The unit of periods is the number of chart bars.