MT5 indicators← Z-Score 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

Z-Score Balance

A histogram that compares the short-term and long-term deviation of the close, each scaled by its own standard deviation. The bars show half the difference between the 2 Z-scores.

Indicator name: Z-Score BalanceMetaTrader 5Separate window

The sign of the bars is determined by “long-term Z − short-term Z”

Short-term Z and long-term Z are each calculated(long-term Z − short-term Z) ÷ 20 or above: green / below 0: redThe height is the difference between the 2 Z-scores
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Standardized for each periodThe difference between the close and the simple average is divided by the population standard deviation of that period.

2

Take the difference of the 2(long-term Z − short-term Z) ÷ 2 is displayed.

3

Read the color and 00 or above is green, below 0 is red. This is not the rise or fall of the price itself.

Short-term < long-termNot in price unitsNo fixed upper or lower limit
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
Short-term bars
InpFastPeriod
10 → 5
Long-term bars
InpSlowPeriod
252 → 50

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 settingsInpFastPeriod = 10 / InpSlowPeriod = 252
Z-Score Balance default settings
Default short-term 10 and long-term 252. Check the sign of the bars and the position of 0.
View the screen in detail at full size
Z-Score Balance default settings (full size)
Settings change exampleInpFastPeriod = 5 / InpSlowPeriod = 50
Z-Score Balance settings change example
Changed to short-term 5 and long-term 50. Because the periods differ, the sign and value change even on the same bar.
View the screen in detail at full size
Z-Score Balance settings change example (full size)

Example shown: 1-minute chart (M1). This is an example to explain the display. The settings change example is not a recommended value. Details can be checked in the full-size view. The vertical axis of the separate window is adjusted automatically for each image, so do not compare values by on-screen height alone.

2

How to read it in 30 seconds

Green bars

Long-term Z is at or above short-term Z. At 0 the bar has no height.

Red bars

Long-term Z is smaller than short-term Z.

Meaning of the height

The size of the difference. It is not the size of a price change.

3

What it measures

Compares the relative deviation of the close as seen from averages over different periods.

Z-score

Z = (close − simple average of the closes in the period) ÷ population standard deviation. The population standard deviation is the square root of the mean of the squared differences from that average.

Displayed values

(long-term Z − short-term Z) ÷ 2. If short-term Z increases, the displayed value decreases, all else being equal.

Flat window

If all closes in a period are the same, Z for that period is 0. If only the short-term period is flat, the whole display does not necessarily become 0.

Not a fixed range

Values are not limited to a range such as −1 to 1. Their size changes with the periods and history.

4

Situations for reading the display

Bars cross 0

Indicator
Green and red switch
Cross-check
The order of short-term Z and long-term Z on the same bar
Check
Check the position relative to 0
Caution
Do not decide the price direction from color alone.

The short section is flat

Indicator
Short-term Z becomes 0
Cross-check
Whether all long-term closes are the same
Check
Separate the conditions of the two periods
Caution
A halt in short-term price movement alone does not necessarily make the bar 0.
5

Steps for checking the display

1

Apply with the defaults

Check the separate window with short-term 10 and long-term 252 unchanged.

2

Read 0 and the values

In addition to color and height, check the values in the Data Window.

3

Change the periods

Keep the short-term period smaller than the long-term. After a change, compare the same bar.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Z_Score_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'.

This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.

7

Settings

There are 2 inputs. Change them on the Inputs tab of the properties window. The English display names are shown together with the input names in the code.

Short-term bars

Name shown on screen
Fast Period
Input name
InpFastPeriod
Default
10
Allowed range
2 to 500, less than the long-term
Description
Number of bars used for the average and standard deviation of short-term Z.

Long-term bars

Name shown on screen
Slow Period
Input name
InpSlowPeriod
Default
252
Allowed range
3 to 1000, greater than the short-term
Description
Number of bars used for long-term Z. Bars appear once both periods are available.
8

Usage specifications

Start of drawing

The first valid value appears at the bar numbered by the long-term count from the oldest. By default it starts from the 252nd bar.

Forming bar

The height and color of the bars change with changes in the close. Permanent invariance of closed bars is not guaranteed.

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

This product shows calculation results through plot buffers and does not place trade orders. It does not guarantee profit or future price movement.

9

Troubleshooting and usage notes

No bars appear

History for the long-term period is needed. Check the history and the short-term < long-term relationship. If an input is invalid, it does not start, and the reason is shown in English in the Experts tab.

Everything looks like 0

If both periods are flat, the value is 0. Use the Data Window to also tell tiny values and the vertical axis scale apart.

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 division by 0

μ = Σclose/n, σ = √(Σ(close−μ)²/n). If the window is completely flat or σ is 0, Z = 0. Otherwise (close−μ)/σ. The display is (Z long-term − Z short-term)/2.

Display and functions

Green and red histogram, a 0 level, 3 display digits. There are no alerts. Only past closes and the current bar's value are used in the calculation.