Meaning of the line
Read the difference between the upward and downward change ranges as a ratio.
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.
Separate the changesTotals the difference between the chosen price and the price 1 bar earlier.
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.
Reading 0A balance between up and down and the case where every change is 0 both give the same 0.
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.
Read the difference between the upward and downward change ranges as a ratio.
Period changes require Period + 1 bars.
With Median, Typical and Weighted, watch for the effect of tiny price differences that do not appear in the display.
Shows the bias of recent changes as 1 line. This is a different calculation from the ratio of candle bodies.
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.
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.
+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.
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.
First fix which price the changes are taken from.
Count it as the number of changes, not the number of bars; 1 more bar of history is required.
Read it as a ratio of up and down ranges, and do not use it as a forecast or a basis for action.
Changing 1 item at a time on separate charts makes differences easier to follow. The published example changes 2 items.
| Included file | Purpose / location |
|---|---|
| TRI_Up_Down_Move_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'.
Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.
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.
InpPeriodInpPriceStarts from bar Period+1. The default is bar 15. With a history of Period bars or fewer, the line is not drawn.
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.
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.
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.
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.
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 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.
Values at the edge of the fixed vertical axis overlap the frame. Check also by using the window size and the full-size display.
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.
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.
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.
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.