MT5 indicators← Block Open Arrows 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

Block Open Arrows

Compares the highs and lows of the last B bars and the B bars before them, and records with an arrow the condition where the target bar's open is outside the opposite side of the earlier group of bars. It checks conditions on highs, lows and the open, but does not determine the time order of events.

Indicator name: Block Open ArrowsMetaTrader 5Price chart

Read whether 2 conditions are met on the same bar

Previous B bars P / last B bars R including the target bar↑: low of R < low of P + open > high of P↓: high of R > high of P + open < low of PIt does not mean the bar opened after the level was crossed
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Divide the bar groupsThe latest group includes the target bar. A previous group with the same number of bars is placed just before it.

2

Opposite-side conditionCombines a condition where the high or low crosses one side with a condition where the open is outside the opposite side.

3

Meaning of the directionThe arrow shows on which side of the previous group the open is. It is not the direction of later price movement.

The close is not usedEqual values do not meet the conditionClosed bars only by default
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
Bars per group B
InpBlockBars
3 → 2

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 settingsInpBlockBars = 3
Block Open Arrows default settings
The default is Block Bars = 3. It is a record of a condition comparing 3 bars including the target bar with the previous 3 bars.
View the screen in detail at full size
Block Open Arrows default settings (actual size)
Settings change exampleInpBlockBars = 2
Block Open Arrows settings change example
Changed to Block Bars = 2. The positions and number of arrows change. Closed bars only and a spacing of 8 pixels remain at their defaults.
View the screen in detail at full size
Block Open Arrows settings change example (actual size)

Example shown: 1-minute chart (M1). This is an example for explaining the display. 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

Green upward

When the low of the latest group is lower than the low of the previous group and the target bar's open is higher than the high of the previous group.

Red downward

When the high of the latest group is higher than the high of the previous group and the target bar's open is lower than the low of the previous group.

Time order does not matter

The latest group includes the target bar itself. This includes cases where the high or low was crossed after that bar's open.

3

What it measures

Compares 2 bar groups, each summarized by its high and low, with the target bar's open.

The 2 groups

With target bar i and B bars per group, the latest group R is i−B+1 to i and the previous group P is i−2B+1 to i−B. The groups do not overlap.

Up condition

Lowest low in R < lowest low in P, and the target bar's open > highest high in P. Both are strict inequalities.

Down condition

Highest high in R > highest high in P, and the target bar's open < lowest low in P. The close is not part of the condition.

Display position

Up arrows are placed below the target bar's low and down arrows above its high, apart by the specified pixels. The values are that low and high.

4

Situations for reading the display

The arrow and the close direction differ

Indicator
The open is outside the previous group
Cross-check
The close is not part of the check
Check
Check with the open and the highs and lows of the 2 groups
Caution
Do not reinterpret the arrow as a sign of that bar rising or falling.

Setting B to 1

Indicator
Comparison of 2 bars
Cross-check
Does the bar straddle both ends of the previous bar?
Check
Check whether any bar meets the condition
Caution
It is not a setting that always produces arrows.
5

Steps for checking the display

1

Check the number of bars

The default is 3 bars each, a span of 6 bars in total.

2

Read the target bar's open

Check whether the open is outside the high and low of the previous group.

3

Check the opposite side of the latest group

Check the condition where the high or low of the latest group, including the target bar, crosses the opposite side of the previous group.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Block_Open_Arrows.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. Place only 1 instance of the same product on 1 chart.

4

Check the settings and display

First check with the default values. Changes and removal are done from the chart's 'Indicators List'.

This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.

7

Settings

There are 3 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Bars per group B

Name shown on screen
Block Bars
Input name
InpBlockBars
Default
3
Allowed range
1〜50
Description
The same number of bars is used for both the latest and the previous group.

Arrows on closed bars only

Name shown on screen
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
If true, the forming bar is excluded. If false, an arrow can appear partway through a bar.

Arrow gap

Name shown on screen
Arrow Gap (pixels)
Input name
InpArrowGap
Default
8
Allowed range
0–100 pixels
Description
Display spacing from the low or high. It is not a price range.
8

Usage specifications

Starting bar

The judgment can be made from bar 2B counted from the oldest. With the default B = 3, it starts from the 6th bar. The latest bar follows the setting that limits judgment to closed bars.

Arrows on the forming bar

With false, the condition is also judged while the bar is forming. Under normal OHLC updates (open fixed, high moving upward, low moving downward), a condition once met is structured to remain met within the same bar. However, the arrow position moves with the high and low, and it is not guaranteed to stay unchanged through events such as history corrections.

Example with B = 1

A down arrow is the pattern where the bar opens below the previous bar's low and its high reaches above the previous bar's high. Where the close is does not matter. An up arrow is the opposite relationship.

Only 1 instance of the same product on 1 chart

This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.

For on-screen display only

This product shows calculation results through plot buffers and does not place trade orders. It does not guarantee profit or future price movement.

9

Troubleshooting and usage notes

There are few arrows

Arrows appear only on bars where both conditions are met at the same time. An open exactly at the high or low of the previous group is excluded.

Nothing appears after input

B is 1–50 and the spacing is 0–100 pixels. Check the number of history bars, and for an invalid input check the English reason on the Experts tab.

The direction does not match what followed

The arrow is a record of the condition and does not guarantee later price movement or outcomes.

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 conditions

With the highest and lowest of R as RH and RL, those of P as PH and PL, and the target bar's open as O, up = RL < PL and O > PH, and down = RH > PH and O < PL. The close, future bars and the order of events are not used.

Recalculation and functions

All bars of the loaded history are calculated, and after that only the needed tail is updated. An arrow is placed on every bar that meets the condition; there is no function that limits it to the first occurrence. There are no alerts.