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

Bar Shape Bars

Colors bars by a chosen criterion: where the close lies within 1 bar, whether the open and close are at opposite ends, or whether the body exceeds a specified size.

Position of the open and close, and body sizeMetaTrader 5Main chartSite edition, no account authentication

Position of the open and close, and body size

STEP 1The four prices of 1 bar
STEP 2Measure the position or the body
STEP 3Blue, red, neutral
1

Blue and redBlue is the upper-side condition and red the lower-side condition. The condition used depends on the mode.

2

Ratio and pointPositions are ratios of the range; Body Size is an absolute size in the symbol's points.

3

Boundaries are neutralBars equal to a threshold are not counted as blue or red.

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

Checking the display

Settings change example: Mode: Close Position → Open and Close Ends

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
Bar Shape Bars default screen
Defaults: Classified by whether the close falls within the zone 33% from the top or bottom of the range.
Settings change example
Bar Shape Bars change example
Changed to Open and Close Ends. Because the condition is that the open and close are split between the 25% zones at both ends, neutral bars increase.

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

Mode = Open and Close Ends、Close Position Percent of Range (1 to 49) = 33、Open and Close Ends Percent of Range (1 to 49) = 25、Body Size in Points (0 to 100000) = 7、Show Neutral Candles = true、Closed Bars Only = true。

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

2

30-second guide

Blue and red

Blue is the upper-side condition and red the lower-side condition. The condition used depends on the mode.

Ratio and point

Positions are ratios of the range; Body Size is an absolute size in the symbol's points.

Boundaries are neutral

Bars equal to a threshold are not counted as blue or red.

3

What it measures

Colors bars by a chosen criterion: where the close lies within 1 bar, whether the open and close are at opposite ends, or whether the body exceeds a specified size.

Close Position

Blue if the close is within the specified % of the top of the high-low range, red if within the same percentage of the bottom (boundaries excluded).

Open and Close Ends

Blue if the open is in the bottom zone and the close in the top zone. Red if the open is in the top zone and the close in the bottom zone. Otherwise neutral.

Body Size

Blue if close − open exceeds the specified points, red if it exceeds them on the negative side. It uses the direction as well as the absolute size of the body.

Bars with no range

In the two modes that use ratios, bars with high = low are neutral.

4

Reading scenarios

When you want to classify the display

Blue is the upper-side condition and red the lower-side condition. The condition used depends on the mode.

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

If there are few colors, check that the end conditions and the body condition are not being confused, and check the Mode and units.

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

Mode: Close Position → Open and Close Ends. 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_Bar_Shape_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.

Mode

English item name
Mode
Input name
InpMode
Default
Close Position
Options / range
Close Position / Open and Close Ends / Body Size
Meaning and notes
Three types: position, both ends, body.

Close end ratio

English item name
Close Position Percent of Range (1 to 49)
Input name
InpClosePercent
Default
33
Options / range
1〜49%
Meaning and notes
Used with Close Position.

Open/close end ratio

English item name
Open and Close Ends Percent of Range (1 to 49)
Input name
InpEndsPercent
Default
25
Options / range
1〜49%
Meaning and notes
Used with Open and Close Ends.

Body size

English item name
Body Size in Points (0 to 100000)
Input name
InpBodyPoints
Default
7
Options / range
0〜100000 point
Meaning and notes
Used with Body Size. With 0, positive and negative bodies are separated.

Neutral bars

English item name
Show Neutral Candles
Input name
InpShowNeutral
Default
true
Options / range
true / false
Meaning and notes
With false, the neutral overlay is skipped.

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

If there are few colors, check that the end conditions and the body condition are not being confused, and check the Mode and units.

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

Points are different from pips. With 5 decimal places and Point=0.00001, 7 points is 0.00007. On a different symbol, the same number gives a different price width.

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.