MT5 indicators← Inside Outside Bars 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

Inside Outside Bars

Distinguishes an Inside Bar, which fits within the previous bar's high and low, from an Outside Bar, which exceeds the previous bar's high and low on both sides. Inside bars alone can also be limited to bars with a narrow range.

Inside bars and outside barsMetaTrader 5Main chartSite edition, no account authentication

Inside bars and outside bars

STEP 1Previous bar's high and low
STEP 2Determine inside / outside
STEP 3Filter only Inside by range
1

BlueAn Inside bar within the previous bar's range. When the narrow-range condition is used, it is a bar that also meets that condition.

2

OrangeAn Outside bar that extends beyond both the high and the low. The color does not represent an up or down direction.

3

OtherBars that are neither are not overlaid. The original bar color remains.

The figure explains the processDisplay only, no order functionsCreated by Trilogy
1

Checking the display

Settings change example: Show Outside Bars: true → false / Inside Bar Narrowest of Bars: 0 → 4

Everything not listed stays at the default. On a PC the order is 'Default, Change example' from left, and on a smartphone from top. The change example is not a set of recommended values.

Default settings
Inside Outside Bars default screen
Defaults: Blue Inside and orange Outside are overlaid.
Settings change example
Inside Outside Bars change example
Outside is hidden, and only Inside bars with the smallest range among the last 4 bars are blue.

The published images are display examples from before the brand display was added. The product has display settings for the brand text and QR code, but the screen with the brand display has not yet been verified. The timeframe shown in the image does not indicate how often this appears on that timeframe in practice. Marks at the edges may be cut off outside the screen.

Check all inputs of the change example

Show Inside Bars = true、Show Outside Bars = false、Allow Equal Highs and Lows = false、Inside Bar Narrowest of Bars (0 off, 2 to 20) = 4、Range for Narrowest = High-Low Range、Closed Bars Only = true。

The 4 brand display items are not included in the capture.

2

30-second guide

Blue

An Inside bar within the previous bar's range. When the narrow-range condition is used, it is a bar that also meets that condition.

Orange

An Outside bar that extends beyond both the high and the low. The color does not represent an up or down direction.

Other

Bars that are neither are not overlaid. The original bar color remains.

3

What it measures

Distinguishes an Inside Bar, which fits within the previous bar's high and low, from an Outside Bar, which exceeds the previous bar's high and low on both sides. Inside bars alone can also be limited to bars with a narrow range.

Inside / outside

By default, Inside: high < previous high and low > previous low; Outside: high > previous high and low < previous low. Allow Equal permits equality in each comparison.

Priority on equal values

If the high and low are the same as the previous bar's, the bar is treated as Inside when equality is allowed. Even if Inside is hidden or rejected by the range condition, the same bar is not passed on to Outside.

Narrowest range filter

Over N bars including the current bar, if the current bar's range is less than or equal to all of them, the Inside color is applied. An equal smallest range is allowed. This condition is not used for Outside.

Two types of range

High-Low is high − low. True Range is the range that also includes the previous close. Only the first bar of the history uses High-Low.

4

Reading scenarios

When you want to classify the display

An Inside bar within the previous bar's range. When the narrow-range condition is used, it is a bar that also meets that condition.

When you want to switch conditions and compare

Use the same symbol, timeframe and history, and first change only one input. Use separate charts for comparison, and check the Mode and vertical axis of each screen.

The display differs from what you expected

A bar with the same high and low as the previous bar is not colored as Outside because Inside takes priority.

This display alone does not decide whether to trade. The colors, lines and arrows represent the calculation conditions in this manual; they are not a forecast of future price movement or an instruction to buy or sell.

5

Check procedure

1

Start from the defaults

At first, do not change the inputs; cross-check the colors and display location against the default screen above.

2

Distinguish the timing of bars

With Closed Bars Only=true, the latest forming bar is blank. If set to false, the shape, color and marks of that bar change until it closes.

3

Change only the target condition

Show Outside Bars: true → false / Inside Bar Narrowest of Bars: 0 → 4. The comparison images may include more than one change.

4

Check values and units

The angle of lines and visible differences change with the screen zoom. Check the settings together with the price scale and the vertical axis of the separate window.

6

Installation and package contents

ZIP contentsLocation / role
TRI_Inside_Outside_Bars.ex5MQL5/Indicators in MT5. Only 1 item: the indicator itself.

The manual opens on the product's own page on the site. The ZIP does not include the manual or source code. It is for MT5 only and cannot be used in MT4. The site edition has no account authentication or license file settings.

1

Extract the ZIP

Prepare the extracted EX5. Do not place it while it is still compressed.

2

To the MT5 data folder

Place the EX5 in MQL5/Indicators via 'File → Open Data Folder'.

3

Apply to a chart

Refresh the Navigator or restart the terminal, and apply it to the target chart. DLL permission is not required.

4

Change / remove

Change the settings or remove it from the chart's 'Indicators List'. Enabling automated trading is not required.

7

Settings

There are 10 items in total: 6 product-specific items and 4 brand display items. English names are based on the input definitions. Enter numbers in half-width characters. Keep inputs that the mode does not use within range as well.

Inside display

English item name
Show Inside Bars
Input name
InpShowInside
Default
true
Options / range
true / false
Meaning and notes
Whether the blue overlay is shown.

Outside display

English item name
Show Outside Bars
Input name
InpShowOutside
Default
true
Options / range
true / false
Meaning and notes
Whether the orange overlay is shown.

Allow equal high/low

English item name
Allow Equal Highs and Lows
Input name
InpAllowEqual
Default
false
Options / range
true / false
Meaning and notes
With true, equality is included in the inside/outside comparisons.

Number of bars for the Inside narrowest range

English item name
Inside Bar Narrowest of Bars (0 off, 2 to 20)
Input name
InpNarrowestOf
Default
0
Options / range
0: off, 2–20 bars
Meaning and notes
Checks whether the range is the smallest over N bars including the current bar.

Type of range

English item name
Range for Narrowest
Input name
InpRangeType
Default
High-Low Range
Options / range
High-Low Range / True Range
Meaning and notes
With True Range, the previous close of each bar is also read.

Show closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Options / range
true / false
Meaning and notes
With true, the forming bar is left empty.

Brand / QR display

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Options / range
true / false
Meaning and notes
This is a display-only setting. It does not change calculation results. If another product on the same chart has the display enabled, the shared display remains.

Brand corner

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Options / range
Top left / Bottom left / Bottom right / Top right
Meaning and notes
The chart corner where the brand text and QR code are placed.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Options / range
Corrected to 0–4000 px
Meaning and notes
Horizontal distance from the selected corner. Negative values are corrected to 0, and values above 4000 to 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Options / range
Corrected to 0–4000 px
Meaning and notes
Vertical distance from the selected corner. If the screen is narrow, adjust the position or the value.
8

Usage specifications

Forming bar

With Closed Bars Only=true, the latest forming bar is blank. If set to false, the shape, color and marks of that bar change until it closes.

History and recalculation

Settings changes, additions to or corrections of the history, and reloading redo the calculation. This is not a guarantee that "closed bars never change under any circumstances".

Brand display

A common display is shared among products of the same medium on the same chart. If several are loaded, the settings of the registration that enabled the display first are used, so changing one may not change the appearance.

For on-screen display only

This product does not place orders or trade automatically. It does not guarantee accuracy as a trading signal or profits.

9

Troubleshooting

Points that are easy to get confused about in this product

A bar with the same high and low as the previous bar is not colored as Outside because Inside takes priority.

No display

Check whether the required number of history bars is available, whether the forming bar is hidden, and the input ranges and mode. Also check the terminal's Experts tab for input errors.

The display does not update

Check the price feed and the connection status. Changing settings for an unused mode does not change the display.

Looks different from the image

The appearance changes with the symbol, history, timeframe, inputs and scale. Even when compared with the full-size image, the marks are not necessarily at the same positions or of the same count.

10

Specification details

Specification note 1

In the published example data, True Range and High-Low are equal, so the display difference between the two options has not been verified.

Verified scope

The published images and values were checked with the product before the brand display was added. The screen display of the product with the brand display has not yet been verified. Whether the values match other indicators with the same name, the Data Window display, and behavior with long histories or with symbols that have different price digits have not been verified.

Products with a price selection

Median = (high + low)/2, Typical = (high + low + close)/3, Weighted = (high + low + close×2)/4. The unit of periods is the number of chart bars.