MT5 indicators← Up-Down Move Balance 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

Up-Down Move Balance

Totals the bar-to-bar changes of the chosen price separately as gains and losses. Shows the difference in the size of the changes, not the number of bars, on a scale of −100 to +100.

Indicator name: Up-Down Move BalanceMetaTrader 5Separate window

Divide the "difference" between the up and down amounts by their "total"

Up amount U / down amount DValue = 100 × (U − D) ÷ (U + D)Up amountDown amount
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Separate the changesTotals the difference between the chosen price and the price 1 bar earlier.

2

Compare the sizesDivides the difference between the total upward change and the total downward change by the sum of the two, and multiplies by 100.

3

Reading 0A balance between up and down and the case where every change is 0 both give the same 0.

Period = number of changesA single blue lineNo 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
Change aggregation period
InpPeriod
14 → 28
Applied price
InpPrice
Close → Median

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 settingsInpPeriod = 14 / InpPrice = Close
Up-Down Move Balance default settings
Shows a summary of 14 changes in the close. The line's 0 also appears when the sizes of rises and falls balance.
View the screen in detail at full size
Up-Down Move Balance default settings (full size)
Example of changed settingsInpPeriod = 28 / InpPrice = Median
Up-Down Move Balance example of changed settings
The period is changed to 28 and the price to Median. This example changes both the period and the price, so it does not show the effect of the period alone.
View the screen in detail at full size
Up-Down Move Balance example of changed settings (full 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

Meaning of the line

Read the difference between the upward and downward change ranges as a ratio.

Check the number of bars

Period changes require Period + 1 bars.

Check the price

With Median, Typical and Weighted, watch for the effect of tiny price differences that do not appear in the display.

3

What it measures

Shows the bias of recent changes as 1 line. This is a different calculation from the ratio of candle bodies.

Aggregating up and down

If the difference of the Applied Price from 1 bar earlier is positive, it is added to the upward range; if negative, its absolute value is added to the downward range. If the price is the same, it is added to neither.

Formula for the value

100 × (sum of up − sum of down) ÷ (sum of up + sum of down). A denominator of 0 gives 0. By calculation, up only gives +100 and down only gives −100.

Fixed levels

+50 means the sum of up is 3 times the sum of down, −50 the reverse, and 0 a balance. The levels are a scale for reading the position of the value.

Distinguishing 0

The value is 0 both when up and down are balanced and when every change in the period is 0. Check not only the number in the heading but also that the required number of bars is available and the line is drawn.

4

Situations for reading the display

The line is at 0

Indicator
The line represents the sum of up and the sum of down.
Cross-check
See whether the price has not moved, or whether it moved and ended up balanced.
Check
Check that there are at least Period + 1 bars of history and that the line is drawn.
Caution
Do not judge from the heading alone that the value has been calculated.

Reaching the edge with a short period

Indicator
The line is near +100 or −100.
Cross-check
See whether the changes in the aggregation window are on one side only.
Check
With a short period, the line reaches the edge more easily.
Caution
Separate an overlap with the window frame from the meaning of the value.

The price looks the same

Indicator
A calculated price such as Median is being used.
Cross-check
Check the applied price and Period.
Check
Price differences smaller than the displayed digits also enter the numerator and denominator.
Caution
Even in a section that looks the same, the value can be other than 0, up to ±100.
5

Steps for checking the display

1

Check Applied Price

First fix which price the changes are taken from.

2

Check Period

Count it as the number of changes, not the number of bars; 1 more bar of history is required.

3

Read 0 and the levels

Read it as a ratio of up and down ranges, and do not use it as a forecast or a basis for action.

4

Compare with different settings

Changing 1 item at a time on separate charts makes differences easier to follow. The published example changes 2 items.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Up_Down_Move_Balance.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 2 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Change aggregation period

English item name
Period
Input name
InpPeriod
Default
14
Allowed range
2〜1000
Description
The number of recent changes. The first value requires this number + 1 bars.

Applied price

English item name
Applied Price
Input name
InpPrice
Default
Close
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Close is the close, Median is (high + low) ÷ 2, Typical is (high + low + close) ÷ 3, and Weighted is (high + low + close × 2) ÷ 4. The actual wording of the options depends on the terminal language.
8

Usage specifications

Initial display

Starts from bar Period+1. The default is bar 15. With a history of Period bars or fewer, the line is not drawn.

Forming bar

The latest value changes with the price. If Applied Price is Open, the bar's open is fixed, so the value does not change during the bar.

Vertical axis and display digits

Fixed at −100 to +100 and shown with 2 decimal places. The last digit of the internal calculation can deviate not only inside ±100 but also outside it.

History and calculation

On each bar it recalculates the most recent Period changes. If the required window is the same, it does not depend on where older history starts.

Rounding of the calculated price

With Median, Typical and Weighted, the last digit of the calculated price may differ even when it looks the same on screen, so the value may not be 0 and may reach ±100. With Close, Open, High and Low, a window where the input price does not change gives 0.

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

Nothing is displayed

Check the required history and the input ranges. Outside the range, the indicator does not calculate, and the reason appears in English on the Experts tab.

The line overlaps the edge of the window

Values at the edge of the fixed vertical axis overlap the frame. Check also by using the window size and the full-size display.

Only 0.00 appears

A value of 0 covers both a balance and all changes being 0. Do not rely only on the number in the heading; also check the number of history bars and whether the line is present. Do not assume one fixed way the heading appears for bars without a value.

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 and end points

With upward range U and downward range D, the value is 100 × (U − D) / (U + D), and 0 if the denominator is 0. U − D corresponds to the difference between the latest price and the price Period bars earlier. The size of the price changes in between enters the denominator.

Repeated calculation

Each window is summed in order from the oldest change. Longer periods and history increase what is calculated. Processing speed and waiting time are not guaranteed.

Scope of functions

Draws 1 solid blue line and the +50, 0 and −50 levels in a separate window. There are no marks, notifications, sounds or objects on the chart. Do not assume the values equal a standard indicator.