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.
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.
Divide the bar groupsThe latest group includes the target bar. A previous group with the same number of bars is placed just before it.
Opposite-side conditionCombines a condition where the high or low crosses one side with a condition where the open is outside the opposite side.
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.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
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.
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.
The latest group includes the target bar itself. This includes cases where the high or low was crossed after that bar's open.
Compares 2 bar groups, each summarized by its high and low, with the target bar's open.
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.
Lowest low in R < lowest low in P, and the target bar's open > highest high in P. Both are strict inequalities.
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.
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.
The default is 3 bars each, a span of 6 bars in total.
Check whether the open is outside the high and low of the previous 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.
| Included file | Purpose / location |
|---|---|
| TRI_Block_Open_Arrows.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. Place only 1 instance of the same product on 1 chart.
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.
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.
InpBlockBarsInpClosedBarsOnlyInpArrowGapThe 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.
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.
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.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
This product shows calculation results through plot buffers and does not place trade orders. It does not guarantee profit or future price movement.
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.
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 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.
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.
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.