What is averaged
Averages the close position of each bar. With period 1, it is the position of that bar itself.
Treating each bar's low as 0 and high as 100, averages the close position over the most recent specified number of bars. You can choose how bars with no range are handled and color-coding by level.
Position per bar0 at the low and 100 at the high. Anything in between is counted as a proportional position.
Average of positionsA line that averages the positions of Period bars. It is not a method that combines highs and lows first and then calculates.
Handling range 0Zero uses 0; Previous Bar carries over the previous bar's position. It does not copy the previous value of the 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.
Averages the close position of each bar. With period 1, it is the position of that bar itself.
40 and 60 are scale marks, not limits. With color-coding ON, values at or above and at or below the levels are colored.
The result changes depending on how bars with range 0 are counted. The line can move even when the price has stopped.
Even for a price change of the same size, the value differs depending on where it sits relative to the bar's high and low.
For a bar with a range, the position is (close−low)/(high−low). Averages Period bars including the current bar and multiplies by 100.
A bar whose high equals its low enters the average as position 0. It is treated the same as a bar that closed at its low, so when there are many such bars the line shifts toward the low side.
A bar with range 0 uses the position of the previous bar. If such bars continue, the position of the last bar with a range carries over. If the oldest bar has no previous position, it is 0.
Drawing starts at bar Period; by default, the 5th bar. The vertical axis is fixed at 0 to 100, and the 40 and 60 level lines appear even with color-coding OFF.
The window name shows the period, then Zero or Previous. The latest value of the line appears once at the end.
Choose whether a bar that does not move counts as 0 or as the previous position.
Decide the upper and lower levels and set Color Beyond Levels to true.
Colors are decided from the value before display rounding, so even when the heading shows the same number as a level, the color may not match.
| Included file | Purpose / location |
|---|---|
| TRI_Internal_Bar_Strength.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 5 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpPeriodInpZeroRangeInpUpperLevelInpLowerLevelInpColorBeyondLevelsWith Zero, the value becomes 0 once Period bars with a range of 0 have accumulated. With Previous Bar, the average approaches the previous position, and if there was a bar with a range just before, it reaches that position from bar Period−1 (the first bar for period 1). Until then, the line can move even if the price stops.
A new bar may start with high = low. With Zero that bar is counted as 0, and if a range forms while it is forming, the value and color change.
Zero is determined only by the required window. Previous Bar carries over the position from before the window, so if the first bar has a range of 0, values in the initial section may differ from a chart that loads a longer history.
Color is determined by the value before rounding to 2 decimal places. Also, color is applied from the line segment heading toward a bar outside the level, so the color may appear to change before the level line.
The value of the latest bar changes with price updates. If past prices or the start of the history change, values after recalculation may also change. This is not a guarantee of no repainting.
Even when a line is not drawn because the required history is insufficient, the header may show 0 at the display precision. Check whether the line exists together with the number of bars required. %B is shown with 3 decimal places and the other 3 products with 2 decimal places.
Check the input values and their combinations. If it cannot start, a 1-line reason in English appears in the MT5 Experts tab.
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.
Distinguish an actual 0 from a lack of bars. Check that there are at least Period bars of history and whether the line is drawn.
If Color Beyond Levels is false, the line stays blue. Only the positions of the level lines change.
What carries over is the bar's position before averaging. While old positions in the averaging window are being replaced, the line moves.
Check where drawing starts in Chapter 3 and the input ranges in Chapter 7. Distinguish a line hidden by an input from a line that does not yet have the bars its calculation needs.
Check the reason in the MT5 Experts tab and set the inputs back within the allowed range.
Open "View the screen in detail at actual size". Also check the vertical scale and the screen zoom level.
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.
If range > 0, position=(close−low)/(high−low). If the range is 0, the selected rule is used. IBS=100× the simple average of the positions over the latest Period bars. At or above the upper level is green, at or below the lower level is red, and in between is blue.
Even if Smoothed Stochastic is set to High/Low range, Close, Range Period 1, Slowing 1, SMA 5, Average OFF and 0 to 100, it does not necessarily give the same values. That product counts a bar with range 0 as 100 on the high side, so compared with this product set to Zero, the difference can be up to 100 in calculation windows that include such a bar.
On a normal update of the latest bar, that bar's value and color are updated. Closed bars are not changed by later normal updates, but if past data or the history that Previous Bar carries over from changes, the recalculated results can also change.