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.
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.
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.
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.
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.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
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.
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.
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.
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.
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.
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.
Load the history in MT5, and first apply only this product to the chart.
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.
Put the default and the change example on separate charts, with the same symbol, timeframe and history.
Check whether the N+1 bars up to just before the current bar are nested, not the current bar's movement.
| Included file | Purpose / location |
|---|---|
| TRI_Nested_Inside_Bar_Levels.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. When comparing different settings, using separate charts makes checking easier.
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 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.
InpInsideBarsInpOffsetInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYIt does not place, modify or close orders. There are no notifications or emails either.
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.
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.
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.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
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.
Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.
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.
Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.
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.
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.
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.
Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.
The subwindow name and Data Window items have not been verified. When reading values, check the items in the actual terminal.