MT5 indicators← Candle Pattern Marks 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

Candle Pattern Marks

Classifies the shape of 1–3 candlesticks according to this product's definitions. A pattern that forms is shown with an up or down arrow or a doji dot; if several form on the same bar, only one is shown according to priority.

Organizing candlestick patterns with marksMetaTrader 5Main chartSite edition, no account authentication

Organizing candlestick patterns with marks

STEP 1Shape of 1–3 bars
STEP 2Evaluate enabled patterns in order
STEP 3One mark on that bar
1

Up, down, dotBlue is a bullish-pattern classification, red a bearish-pattern classification, and the Goldenrod dot a doji. The names are shape classifications, not buy or sell instructions.

2

PriorityThe order is 3-bar patterns → 2-bar patterns → 1-bar patterns. Patterns of the same length also have a fixed order, and only the first pattern that forms is displayed.

3

Wait for the closeBy default, no mark is placed on the latest bar. With false, whether a pattern forms changes while the bar is forming.

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

Checking the display

Settings change example: Divergent Bars: false → true / Doji: false → true

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
Candle Pattern Marks default screen
Defaults: Evaluates 8 groups of patterns. Some arrows at the top and bottom edges are cut off.
Settings change example
Candle Pattern Marks change example
Divergent Bars and Doji are enabled. Because of the priority, the visible differences are limited to a few bars.

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

Evening and Morning Stars = true、Three Outside Down and Up = true、Three Inside Down and Up = true、Three Black Crows and White Soldiers = true、Engulfing = true、Harami = true、Dark Cloud Cover and Piercing = true、Shooting Star and Hammer = true、Divergent Bars = true、Doji = true、Long Body Percent of Range (1 to 99) = 60、Star Middle Range per Body (1 to 20) = 3、Hammer Wick per Body and Other Wick (1 to 20) = 2、Hammer Extreme Beyond Previous Bars (0 to 50) = 3、Doji Body Percent of Range (0 exact, to 50) = 10、Closed Bars Only = true。

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

2

30-second guide

Up, down, dot

Blue is a bullish-pattern classification, red a bearish-pattern classification, and the Goldenrod dot a doji. The names are shape classifications, not buy or sell instructions.

Priority

The order is 3-bar patterns → 2-bar patterns → 1-bar patterns. Patterns of the same length also have a fixed order, and only the first pattern that forms is displayed.

Wait for the close

By default, no mark is placed on the latest bar. With false, whether a pattern forms changes while the bar is forming.

3

What it measures

Classifies the shape of 1–3 candlesticks according to this product's definitions. A pattern that forms is shown with an up or down arrow or a doji dot; if several form on the same bar, only one is shown according to priority.

3-bar patterns

In the order Stars, Three Outside, Three Inside, Three Black Crows / White Soldiers. Outside requires an engulfing pattern formed with the previous bar and the next bar extending the close in the same direction. Inside checks the same condition after a harami.

2-bar patterns

Engulfing is a larger current body engulfing the previous body of the opposite direction. Harami is a small opposite-direction body within the previous body. Cloud / Piercing retraces beyond half of the previous body and closes on the inner side of the previous open.

1-bar patterns

Hammer / Shooting Star requires one wick to exceed the specified multiple of both the body and the opposite wick, and also to exceed the past high or low over the set number of bars. Divergent is a new high with the close below the bar's midpoint, or a new low with the close above the midpoint.

Definitions specific to this product

The gap condition for Stars includes equality, and there is no condition that the close retraces to the middle of the previous long body. The pattern detection is not necessarily identical to general descriptions of the terms.

4

Reading scenarios

When you want to classify the display

Blue is a bullish-pattern classification, red a bearish-pattern classification, and the Goldenrod dot a doji. The names are shape classifications, not buy or sell instructions.

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 no dot appears even with Doji enabled, a higher-priority pattern may have formed first.

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

Divergent Bars: false → true / Doji: false → true. 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_Candle_Pattern_Marks.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 20 items in total: 16 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.

Evening star / morning star

English item name
Evening and Morning Stars
Input name
InpStars
Default
true
Options / range
true / false
Meaning and notes
Highest priority among 3-bar patterns.

Three Outside

English item name
Three Outside Down and Up
Input name
InpThreeOutside
Default
true
Options / range
true / false
Meaning and notes
Close extension after an engulfing pattern.

Three Inside

English item name
Three Inside Down and Up
Input name
InpThreeInside
Default
true
Options / range
true / false
Meaning and notes
Close extension after a harami.

Three black crows / three white soldiers

English item name
Three Black Crows and White Soldiers
Input name
InpSoldiersCrows
Default
true
Options / range
true / false
Meaning and notes
Evaluates the direction of the three bodies and the order of their opens and closes.

Engulfing

English item name
Engulfing
Input name
InpEngulfing
Default
true
Options / range
true / false
Meaning and notes
Highest priority among 2-bar patterns.

Harami

English item name
Harami
Input name
InpHarami
Default
true
Options / range
true / false
Meaning and notes
A small opposite-direction body that fits within the previous body.

Dark cloud cover / piercing line

English item name
Dark Cloud Cover and Piercing
Input name
InpCloudPiercing
Default
true
Options / range
true / false
Meaning and notes
Condition of retracing beyond the midpoint of the previous body.

Shooting star / hammer

English item name
Shooting Star and Hammer
Input name
InpHammerStar
Default
true
Options / range
true / false
Meaning and notes
Uses the wick multiple and the past extreme condition.

Divergent pattern

English item name
Divergent Bars
Input name
InpDivergent
Default
false
Options / range
true / false
Meaning and notes
A new high or low, and the position of the bar's close relative to its midpoint.

Doji

English item name
Doji
Input name
InpDoji
Default
false
Options / range
true / false
Meaning and notes
Used only when none of the preceding patterns has formed.

Long body ratio

English item name
Long Body Percent of Range (1 to 99)
Input name
InpBodyPercent
Default
60
Options / range
1〜99%
Meaning and notes
Body condition for the first bar of Stars and for the current bar of Cloud/Piercing.

Stars middle bar multiple

English item name
Star Middle Range per Body (1 to 20)
Input name
InpStarRange
Default
3.0
Options / range
1〜20
Meaning and notes
Condition that the middle bar's range exceeds this multiple of its body.

Hammer wick multiple

English item name
Hammer Wick per Body and Other Wick (1 to 20)
Input name
InpWickMultiple
Default
2.0
Options / range
1〜20
Meaning and notes
Multiple by which the long wick must exceed each of the body and the opposite wick.

Hammer lookback bars

English item name
Hammer Extreme Beyond Previous Bars (0 to 50)
Input name
InpLocationBars
Default
3
Options / range
0–50 bars
Meaning and notes
0 means no position condition. Otherwise, the bar must strictly exceed the high or low of all of those past bars.

Doji ratio

English item name
Doji Body Percent of Range (0 exact, to 50)
Input name
InpDojiPercent
Default
10
Options / range
0〜50%
Meaning and notes
0 means open = close only. A positive value means the body is at or below the specified % of the range.

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 no dot appears even with Doji enabled, a higher-priority pattern may have formed first.

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

The hammer position check reads the set number of past bars. The reference range is not always just 2 bars.

Specification note 2

The height of a mark is the bar's high or low; for a doji it is the close. Arrows are drawn shifted up or down on the screen for visibility.

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.