Green bars
Long-term Z is at or above short-term Z. At 0 the bar has no height.
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.
Standardized for each periodThe difference between the close and the simple average is divided by the population standard deviation of that period.
Take the difference of the 2(long-term Z − short-term Z) ÷ 2 is displayed.
Read the color and 00 or above is green, below 0 is red. This is not the rise or fall of the price itself.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
Long-term Z is at or above short-term Z. At 0 the bar has no height.
Long-term Z is smaller than short-term Z.
The size of the difference. It is not the size of a price change.
Compares the relative deviation of the close as seen from averages over different periods.
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.
(long-term Z − short-term Z) ÷ 2. If short-term Z increases, the displayed value decreases, all else being equal.
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.
Values are not limited to a range such as −1 to 1. Their size changes with the periods and history.
Check the separate window with short-term 10 and long-term 252 unchanged.
In addition to color and height, check the values in the Data Window.
Keep the short-term period smaller than the long-term. After a change, compare the same bar.
| Included file | Purpose / location |
|---|---|
| TRI_Z_Score_Balance.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'.
This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.
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.
InpFastPeriodInpSlowPeriodThe first valid value appears at the bar numbered by the long-term count from the oldest. By default it starts from the 252nd bar.
The height and color of the bars change with changes in the close. Permanent invariance of closed bars is not guaranteed.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
This product shows calculation results through plot buffers and does not place trade orders. It does not guarantee profit or future price movement.
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.
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.
μ = Σ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.
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.