MT5 indicators← Internal Bar Strength 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

Internal Bar Strength

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.

Indicator name: Internal Bar StrengthMetaTrader 5Separate window

Not price, but position within the bar

What carries over is the position, not the lineEach bar's low 0 ← close position → high 100Range 0: Zero or the previous bar's positionAverage the positions of the latest Period bars
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Position per bar0 at the low and 100 at the high. Anything in between is counted as a proportional position.

2

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.

3

Handling range 0Zero uses 0; Previous Bar carries over the previous bar's position. It does not copy the previous value of the line.

Default: 5-bar averageVertical axis: 0 to 100Color-coding OFF by default
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
Number of bars to average
InpPeriod
5 → 4
Bars with range 0
InpZeroRange
Zero → Previous Bar
Upper level
InpUpperLevel
60 → 76.4
Lower level
InpLowerLevel
40 → 23.6
Color-coding by level
InpColorBeyondLevels
false → true

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 settingsInpPeriod = 5 / InpZeroRange = Zero / InpUpperLevel = 60 / InpLowerLevel = 40 / InpColorBeyondLevels = false
Internal Bar Strength default settings
Period 5, bars with a range of 0 use Zero. Shows levels 40 and 60 and a blue line.
View the screen in detail at full size
Internal Bar Strength default settings (actual size)
Settings change exampleInpPeriod = 4 / InpZeroRange = Previous Bar / InpUpperLevel = 76.4 / InpLowerLevel = 23.6 / InpColorBeyondLevels = true
Internal Bar Strength settings change example
Period 4, Previous Bar, levels 23.6 and 76.4, color-coding ON. Green and red show the relation to the levels. This image alone cannot show the difference in how bars with range 0 are handled.
View the screen in detail at full size
Internal Bar Strength settings change example (actual size)

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.

2

How to read it in 30 seconds

What is averaged

Averages the close position of each bar. With period 1, it is the position of that bar itself.

Distinguish levels from colors

40 and 60 are scale marks, not limits. With color-coding ON, values at or above and at or below the levels are colored.

Watch quiet stretches

The result changes depending on how bars with range 0 are counted. The line can move even when the price has stopped.

3

What it measures

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.

From bar position to average

For a bar with a range, the position is (close−low)/(high−low). Averages Period bars including the current bar and multiplies by 100.

Zero

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.

Previous Bar

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 start and scale

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.

4

Situations for reading the display

The color changed

Indicator
Green, blue, red
Cross-check
Compare the levels with the unrounded value
Check
Read green as at or above the upper level, red as at or below the lower level, and blue as in between
Caution
These are not colors for price rises and falls.

The line moves even though the price has stopped

Indicator
Movement of the average line
Cross-check
Check Zero/Previous Bar and the period
Check
Read it as the effect of old positions leaving the calculation window
Caution
Even Previous Bar does not fix the value of the line.

Initial values differ even with the same settings

Indicator
The initial section with Previous Bar
Cross-check
Compare where the chart history starts
Check
If the first bar has range 0, consider whether there is a position to carry over from
Caution
It is not necessarily independent of where the history starts.
5

Steps for checking the display

1

View the line with the defaults

The window name shows the period, then Zero or Previous. The latest value of the line appears once at the end.

2

Choose the rule for range 0

Choose whether a bar that does not move counts as 0 or as the previous position.

3

Add colors if needed

Decide the upper and lower levels and set Color Beyond Levels to true.

4

Look at the line, not just the heading

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.

6

Installation and checking the package contents

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

Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.

7

Settings

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.

Number of bars to average

Name shown on screen
Period
Input name
InpPeriod
Default
5
Allowed range
1〜1000
Description
The number of bars over which each bar's close position is averaged. Making it longer tends to make the line settle toward the average position over that span. It does not necessarily approach 50.

Bars with range 0

Name shown on screen
Zero-Range Bars
Input name
InpZeroRange
Default
Zero
Allowed range
Zero / Previous Bar
Description
What Previous Bar carries over is the bar's position, not the value of the line after averaging.

Upper level

Name shown on screen
Upper Level
Input name
InpUpperLevel
Default
60
Allowed range
0 to 100, a value greater than the lower level
Description
With color-coding ON, values at or above this level are green. Even when OFF, the level line is drawn.

Lower level

Name shown on screen
Lower Level
Input name
InpLowerLevel
Default
40
Allowed range
0 to 100, a value less than the upper level
Description
With color-coding ON, values at or below this level are red. The upper and lower levels cannot be set to the same value.

Color-coding by level

Name shown on screen
Color Beyond Levels
Input name
InpColorBeyondLevels
Default
false
Allowed range
false / true
Description
false gives a blue line. true makes values at or above the upper level green, at or below the lower level red, and blue in between.
8

Usage specifications

The line in sections without movement

With 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.

First price update

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.

Start of the history

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 boundaries

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 forming bar changes

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.

Do not judge by the 0 in the header alone

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.

It does not start with out-of-range inputs

Check the input values and their combinations. If it cannot start, a 1-line reason in English appears in the MT5 Experts tab.

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

Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.

9

Troubleshooting and usage notes

It shows 0.00

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.

The levels were changed but no colors appear

If Color Beyond Levels is false, the line stays blue. Only the positions of the level lines change.

The line is not flat even with Previous Bar

What carries over is the bar's position before averaging. While old positions in the averaging window are being replaced, the line moves.

No lines appear

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.

The settings are not accepted

Check the reason in the MT5 Experts tab and set the inputs back within the allowed range.

Details are hard to read

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.

10

Technical information and specification details

Formula and color decision

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.

Difference from Smoothed Stochastic

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.

Forming bar and recalculation

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.