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.
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.
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.
OrangeAn Outside bar that extends beyond both the high and the low. The color does not represent an up or down direction.
OtherBars that are neither are not overlaid. The original bar color remains.


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.
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.
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.
An Outside bar that extends beyond both the high and the low. The color does not represent an up or down direction.
Bars that are neither are not overlaid. The original bar color remains.
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.
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.
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.
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.
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.
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.
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.
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.
At first, do not change the inputs; cross-check the colors and display location against the default screen above.
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.
Show Outside Bars: true → false / Inside Bar Narrowest of Bars: 0 → 4. The comparison images may include more than one change.
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.
| ZIP contents | Location / role |
|---|---|
TRI_Inside_Outside_Bars.ex5 | MQL5/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.
Prepare the extracted EX5. Do not place it while it is still compressed.
Place the EX5 in MQL5/Indicators via 'File → Open Data Folder'.
Refresh the Navigator or restart the terminal, and apply it to the target chart. DLL permission is not required.
Change the settings or remove it from the chart's 'Indicators List'. Enabling automated trading is not required.
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.
InpShowInsideInpShowOutsideInpAllowEqualInpNarrowestOfInpRangeTypeInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYWith 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.
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".
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.
This product does not place orders or trade automatically. It does not guarantee accuracy as a trading signal or profits.
A bar with the same high and low as the previous bar is not colored as Outside because Inside takes priority.
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.
Check the price feed and the connection status. Changing settings for an unused mode does not change the display.
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.
In the published example data, True Range and High-Low are equal, so the display difference between the two options has not been verified.
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.
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.