Look inside the bar
Compares the bar's own open and close, not the previous close.
Aggregates recent candle bodies and shows the share of the total taken by bodies whose close is above the open. It is not a ratio of bar counts or of wick lengths.
Uses bodies onlySplits each bar's close − open into positive and negative. Wicks and gaps between bars are not included.
Shows a ratioDivides the total of upward bodies by the total of both upward and downward bodies, and multiplies by 100.
Weights and averageLinear gives newer bars more weight, and the orange average line is a simple average of the main line.
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.
Compares the bar's own open and close, not the previous close.
The value is 50 both when the totals of upward and downward bodies are equal and when all bodies are 0.
Equal uses the same weight; Linear counts the latest bars more heavily.
Measures the ratio of bodies within bars. It aggregates something different from Up-Down Move Balance, which measures price changes between bars.
If close > open, the difference is added to P; if close < open, the absolute value of the difference is added to Q. If they are equal, the bar counts as 1 bar in the period but is added to neither P nor Q.
100 × P ÷ (P + Q). Upward bodies only give 100, downward bodies only give 0, and P = Q gives 50. If both are 0, the value is also set to 50.
Equal gives each bar a weight of 1. Linear gives the latest bar a weight of Period, decreasing by 1 for each bar that is 1 bar older, and 1 for the oldest.
70, 50 and 30 are scale marks for the share taken by upward bodies. With Linear, it is the share of the weighted total. The orange dashed line is a simple average of the main line.
Check the number of recent bars, including the current bar.
With Equal and Linear, the same bodies are aggregated with different weights.
Check the meaning of 0, 50 and 100 by going back to the body totals.
If Average Period is 0, read the main line only; if it is 1 or more, read the average line as well.
| Included file | Purpose / location |
|---|---|
| TRI_Candle_Body_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 3 inputs. Change them on the Inputs tab of the properties. The English item names defined in the source are shown together with the input names.
InpPeriodInpWeightingInpAveragePeriodThe main line starts from bar Period and the average from bar Period+Average Period−1 (average 1 or more). The defaults are bar 10 and bar 19.
A main line of 0 means there are no up bodies and there are down bodies; 50 means they balance or all bodies are 0. Do not judge from the header alone that it has been calculated; check the required number of bars and whether the line is drawn.
When the close of the latest bar moves, the main line and the average change. Closed bars are calculated with the window at that time, but if the original price history is corrected, the results can also change.
A fixed vertical axis of 0 to 100, with 2 decimal places. 0 and 100 overlap the window frame. An internal value of 100 may deviate up or down in the last digit.
When the average is shown, the header lists the main line and then the average. There are no notifications, sounds or emails, and it does not draw objects on the price chart.
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.
The main line and the average require different numbers of bars. Outside the input range, the indicator does not calculate and outputs the reason in English to the Experts tab.
Check whether Average Period is 0 or whether the history needed for the average is insufficient. With 1, it overlaps the main line.
Changes from the previous bar, wicks and gaps are not aggregated. Check the open and close within each bar, and Weighting.
The line alone does not show whether 50 is a balance or all bodies being 0. Read a 0 display as well after checking the number of history bars.
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.
Each bar's positive body is added to the weighted P, and the absolute value of its negative body to the weighted Q. If P + Q is 0, the value is 50; otherwise it is 100 × P / (P + Q).
The average is a simple average of the latest Average Period main-line values. As long as the required window is the same, it does not depend on where the older history starts. Blanks before the main line are not averaged as 0.
To convert this ratio of P and Q to −100 to +100, use 2 × main line − 100. However, Up-Down Move Balance aggregates different change ranges, so this does not mean the two products give the same value.
Draws a solid blue line, an orange dashed line and silver level lines in a separate window. Equality with MT5 standard indicators or other products is not guaranteed. The display is a record of the calculation results.