MT5 indicators← Nested Inside Bar Levels 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

Nested Inside Bar Levels

Detects patterns where the bars up to the previous one fit successively inside each other, and updates the upper and lower levels. A point is placed on the bar after the one where the condition is met, and the levels are kept as lines afterwards.

Indicator name: Nested Inside Bar LevelsMetaTrader 5Main chart

How to read the display

OuterInner ①Inner ②Display locationN=2: uses the high/low of Inner ① ±OffsetThe current bar's prices arenot used in the conditions
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Compares the highs and lows of the bars up to the previous onePairs where the newer bar's high is lower than the previous one and its low is higher must continue Inside Bars times. Equal values are not included.

2

Blue is the upper level, orange the lower levelThe levels are built from the high+Offset and low−Offset of the first inside bar. They are not built from the outermost mother bar.

3

Light blue and magenta points show updatesA light blue upper point and a magenta lower point are placed on the bar after the condition is met, and the line values are carried over until the next update.

Record of conditions metMT5 onlyNot a trading instruction
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 times bars fit inside / Inside Bars
InpInsideBars
2 → 1

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 settingsInpInsideBars = 2
Nested Inside Bar Levels default settings
Default Inside Bars=2, Offset=150. The light-blue and magenta dots update the upper and lower levels, and the blue and orange lines hold them.
View the screen in detail at full size
Nested Inside Bar Levels default settings (full size)
Settings change exampleInpInsideBars = 1
Nested Inside Bar Levels settings change example
Change example: Inside Bars = 1. Because 1 pair of inside bars triggers an update, updates increase. Some levels lie outside the top and bottom of the screen.
View the screen in detail at full size
Nested Inside Bar Levels settings change example (full size)

Example shown: M1. This is an example for explaining the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the packaged version has display settings for the brand text and the QR code. The settings change example is not a recommended value. Details can be checked in the full-size view. Please also check the price scale of the main chart and the positions of the candlesticks.

2

How to read it in 30 seconds

Compares the highs and lows of the bars up to the previous one

Pairs where the newer bar's high is lower than the previous one and its low is higher must continue Inside Bars times. Equal values are not included.

Blue is the upper level, orange the lower level

The levels are built from the high+Offset and low−Offset of the first inside bar. They are not built from the outermost mother bar.

Light blue and magenta points show updates

A light blue upper point and a magenta lower point are placed on the bar after the condition is met, and the line values are carried over until the next update.

3

What it measures

Detects patterns where the bars up to the previous one fit successively inside each other, and updates the upper and lower levels. A point is placed on the bar after the one where the condition is met, and the levels are kept as lines afterwards.

How the calculation works

With the current bar as t and Inside Bars as N, the N+1 bars from t−N−1 to t−1 are compared. If in all N pairs the older bar's high>the newer bar's high and the older bar's low<the newer bar's low, the high+Offset×point and low−Offset×point of t−N are placed at t. With N=2, the bar 3 bars back is the outer bar, 2 bars back is the first inside bar, and 1 bar back is the one inside that.

Conditions and exceptions

The current bar's prices are not used in the judgment. It starts from bar N+2 of history at the earliest, and there are no points or lines until the first time the condition is met. There is no Closed Bars Only input. The lines hold the last level, and the change to a new level is drawn by joining the values of adjacent bars diagonally. They are not strict step lines. These are not arrows that detect reaching or breaking through a level.

4

Situations for reading the display

Check the display conditions

Indicator
Pairs where the newer bar's high is lower than the previous one and its low is higher must continue Inside Bars times. Equal values are not included.
Cross-check
Cross-check the prices and settings at the same time.
Check
Check the relationship with the previous bar and how equal values are handled.
Caution
Marks and levels are not instructions to place or close orders.

Compare setting differences

Indicator
Change example: Inside Bars = 1.
Cross-check
Use the same symbol, timeframe and history.
Check
Look at how the changed setting relates to the increase or decrease and the position of the marks.
Caution
The published settings are not recommended values.

Read the sections where a line continues

Indicator
If there is no new nesting condition, the last level is carried over.
Cross-check
Look at the bar where the light blue and magenta points last appeared.
Check
A horizontal line does not necessarily mean the calculation has stopped.
Caution
No separate breakout signal is given when the price crosses a level.
5

Steps for checking the display

1

Apply with the defaults

Load the history in MT5, and first apply only this product to the chart.

2

Check the role of the display

Pairs where the newer bar's high is lower than the previous one and its low is higher must continue Inside Bars times. Equal values are not included.

3

Comparing settings

Put the default and the change example on separate charts, with the same symbol, timeframe and history.

4

Look at the past bars that built the level

Check whether the N+1 bars up to just before the current bar are nested, not the current bar's movement.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Nested_Inside_Bar_Levels.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. When comparing different settings, using separate charts makes checking easier.

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 6 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Number of times bars fit inside

English item name
Inside Bars
Input name
InpInsideBars
Default
2
Allowed range
Integer from 1 to 5
Description
Confirms N nestings using N+1 past bars. 1 compares 2 bars: the outer and the inner.

Distance to move the levels outward

English item name
Offset (points)
Input name
InpOffset
Default
150
Allowed range
Integer from 0 to 100000 points
Description
The amount added to the high and subtracted from the low of the first inside bar. With 0, the levels are that high and low themselves.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Displayed with true. Calculated values do not change.

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left / Bottom left / Bottom right / Top right
Description
The default is bottom left.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Negative values are treated as 0, and values above 4000 are treated as 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Negative values are treated as 0, and values above 4000 are treated as 4000.
8

Usage specifications

Display only

It does not place, modify or close orders. There are no notifications or emails either.

Current bar and history

The current bar is where the result is displayed, and the calculation uses the closed bars up to the previous one. There is no Closed Bars Only. Past levels may change with corrections or additions to the history.

Mark positions

Dots are placed at the calculated upper and lower levels and are not offset in pixels. The blue and orange lines carry over the previous level. They may fall outside the display range of the price screen.

Brand display

Shows Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. When the same medium is used on the same chart, the display is shared. There is no account authentication.

For on-screen display only

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

No marks, or blanks in the middle

The current bar's prices are not used in the judgment. It starts from bar N+2 of history at the earliest, and there are no points or lines until the first time the condition is met. There is no Closed Bars Only input. The lines hold the last level, and the change to a new level is drawn by joining the values of adjacent bars diagonally. They are not strict step lines. These are not arrows that detect reaching or breaking through a level.

The input is not accepted

Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.

Display differs from other products

With the current bar as t and Inside Bars as N, the N+1 bars from t−N−1 to t−1 are compared. If in all N pairs the older bar's high>the newer bar's high and the older bar's low<the newer bar's low, the high+Offset×point and low−Offset×point of t−N are placed at t. With N=2, the bar 3 bars back is the outer bar, 2 bars back is the first inside bar, and 1 bar back is the one inside that.

Displays overlap

Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.

Display is cut off at the screen edge

In the published images, arrows at the edges or lines outside the screen may be missing. Adjust the vertical axis and horizontal position on a real chart to check. Content outside the image cannot be recovered from the full-size view.

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

Calculation and reference range

With the current bar as t and Inside Bars as N, the N+1 bars from t−N−1 to t−1 are compared. If in all N pairs the older bar's high>the newer bar's high and the older bar's low<the newer bar's low, the high+Offset×point and low−Offset×point of t−N are placed at t. With N=2, the bar 3 bars back is the outer bar, 2 bars back is the first inside bar, and 1 bar back is the one inside that.

Initial values and exceptions

The current bar's prices are not used in the judgment. It starts from bar N+2 of history at the earliest, and there are no points or lines until the first time the condition is met. There is no Closed Bars Only input. The lines hold the last level, and the change to a new level is drawn by joining the values of adjacent bars diagonally. They are not strict step lines. These are not arrows that detect reaching or breaking through a level.

Package contents and dependencies

Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.

Reservation on data display

The subwindow name and Data Window items have not been verified. When reading values, check the items in the actual terminal.