MT5 indicators← Smoothed Heiken Ashi 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

Smoothed Heiken Ashi

Smooths the four prices, converts them into Heiken Ashi, and then smooths them again. Overlays calculated open, high, low and close values that differ from the original candlesticks.

Heiken Ashi viewed through two-stage smoothingMetaTrader 5Main chartSite edition, no account authentication

Heiken Ashi viewed through two-stage smoothing

STEP 1Smooth the four prices
STEP 2Convert to Heiken Ashi
STEP 3Smooth again and color
1

Blue and redIf the calculated close is above the open, the candle is blue (DodgerBlue); otherwise it is red (Crimson).

2

Not the same as priceThe open and close of the blue candles are not actual traded prices. Their position can differ from the original bars.

3

Latest barBy default, the forming bar is not displayed. If Closed Bars Only is set to false, its shape and color change while it forms.

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

Checking the display

Settings change example: Price Smoothing: SMMA → None / Candle Smoothing: LWMA → None

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
Smoothed Heiken Ashi default screen
Defaults: In places, the blue and red smoothed Heiken Ashi bars appear away from the original bars. The Gold doji line is disabled.
Settings change example
Smoothed Heiken Ashi change example
Heiken Ashi with the first and second stages set to None. Finer changes remain than with the default. This is not an example of the Gold display.

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

Candle Type = Heiken Ashi、Price Smoothing = None、Price Smoothing Period (1 to 500) = 6、Candle Smoothing = None、Candle Smoothing Period (1 to 500) = 2、Doji Body Percent of Range (0 off, 1 to 100) = 0、Closed Bars Only = true。

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

2

30-second guide

Blue and red

If the calculated close is above the open, the candle is blue (DodgerBlue); otherwise it is red (Crimson).

Not the same as price

The open and close of the blue candles are not actual traded prices. Their position can differ from the original bars.

Latest bar

By default, the forming bar is not displayed. If Closed Bars Only is set to false, its shape and color change while it forms.

3

What it measures

Smooths the four prices, converts them into Heiken Ashi, and then smooths them again. Overlays calculated open, high, low and close values that differ from the original candlesticks.

Default calculation order

The order is: smooth the four prices with SMMA 6 → Heiken Ashi → smooth the Heiken Ashi four prices with LWMA 2.

Heiken Ashi four prices

The open is the average of the previous Heiken Ashi open and close, and the close is the average of the four prices from the first stage. The high and low are made from the maximum and minimum of the first stage's smoothed high/low and the Heiken Ashi open/close.

Smoothed Price

Skips the Heiken Ashi conversion and uses the smoothed ordinary four prices. If both stages are set to None and Heiken Ashi is selected, the result is Heiken Ashi without smoothing.

Doji display priority

When Doji is enabled, bars whose final body is at or below the specified percentage of the final range are colored Gold. This takes priority over the rising and falling colors.

4

Reading scenarios

When you want to classify the display

If the calculated close is above the open, the candle is blue (DodgerBlue); otherwise it is red (Crimson).

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

Overlapping with or moving away from the original bars is the result of the smoothing and the Heiken Ashi conversion. To read actual prices, check the four prices on the original chart.

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

Price Smoothing: SMMA → None / Candle Smoothing: LWMA → None. 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_Smoothed_Heiken_Ashi.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 11 items in total: 7 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.

Bar type

English item name
Candle Type
Input name
InpType
Default
Heiken Ashi
Options / range
Heiken Ashi / Smoothed Price
Meaning and notes
Chooses whether to use the Heiken Ashi conversion or the smoothed ordinary price.

First-stage smoothing

English item name
Price Smoothing
Input name
InpPreMethod
Default
SMMA
Options / range
None / SMA / EMA / SMMA / LWMA
Meaning and notes
Applied to each of the four prices. None skips this stage.

First-stage period

English item name
Price Smoothing Period (1 to 500)
Input name
InpPrePeriod
Default
6
Options / range
1–500 bars
Meaning and notes
Period of Price Smoothing. Not used in the calculation with None.

Later-stage smoothing

English item name
Candle Smoothing
Input name
InpPostMethod
Default
LWMA
Options / range
None / SMA / EMA / SMMA / LWMA
Meaning and notes
Applied to the four prices after the Heiken Ashi conversion. Set to None to use only the first stage.

Second-stage period

English item name
Candle Smoothing Period (1 to 500)
Input name
InpPostPeriod
Default
2
Options / range
1–500 bars
Meaning and notes
Period of Candle Smoothing. Not used in the calculation with None.

Doji ratio

English item name
Doji Body Percent of Range (0 off, 1 to 100)
Input name
InpDojiPercent
Default
0
Options / range
0: off, 1–100%
Meaning and notes
Gold if body ÷ range is at or below this ratio.

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 latest 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

Overlapping with or moving away from the original bars is the result of the smoothing and the Heiken Ashi conversion. To read actual prices, check the four prices on the original chart.

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

EMA uses the first value as its seed, while SMA, SMMA and LWMA wait until the period is complete. Because the waits of the two stages add up, a blank appears at the start of the history.

Specification note 2

Smoothed values and Heiken Ashi also depend on where the history starts. The same shape is not guaranteed across additions or corrections to the history, or setting changes.

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.