MT5 indicators← Volatility Adaptive Smoother 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

Volatility Adaptive Smoother

Using the distance between the selected price and internal bands, it calculates 1 line while varying the smoothing coefficient and overlays it on the price chart. Length and Phase are inputs that change the shape of the calculation.

Indicator name: Volatility Adaptive SmootherMetaTrader 5Main chart, price units, 1 line

Distance between price and bands → smoothing coefficient → line in price units

① Input price7 types such as Close→② Distance ratioAdjusts the smoothing coefficient→③ 1 lineShown in orangePhase is not a shift in time or in display position
Schematic diagram of how to read it. This is not an actual terminal screen.
1

LengthAn integer from 1 to 500. It is not a window that simply averages the most recent Length bars; it determines the coefficient.

2

Phase−100 to 100. Changes the shape of the line. It is not an input that shifts the drawing to the right or left.

3

Start of the historyDrawing starts from bar 31. The initial prices and the number of bars loaded also affect later values.

MT5 onlyPrice unitsA record of display and calculation
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
Length / Length
InpLength
14 → 30
Shape adjustment / Phase
InpPhase
0 → 50
Price / Applied Price
InpPrice
Close → Weighted

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 settingsInpLength = 14; InpPhase = 0; InpPrice = Close
Volatility Adaptive Smoother default settings
The orange line is this product's line. It uses the same price scale as the candlesticks.
View the screen in detail at full size
Volatility Adaptive Smoother default settings (full size)
Example of changed settingsInpLength = 30; InpPhase = 50; InpPrice = Weighted
Volatility Adaptive Smoother example of changed settings
An example with Length, Phase and Applied Price changed. The shape of the line is the combined result of the 3 inputs and does not show the effect of only 1 item.
View the screen in detail at full size
Volatility Adaptive Smoother example of changed settings (full size)

Example shown: M1. This is an example to explain the display. The example of changed settings is not a recommended value. Details can be checked in the full-size view. Also check the price scale of the main chart and the position of the candlesticks.

2

How to read it in 30 seconds

Length

An integer from 1 to 500. It is not a window that simply averages the most recent Length bars; it determines the coefficient.

Phase

−100 to 100. Changes the shape of the line. It is not an input that shifts the drawing to the right or left.

Start of the history

Drawing starts from bar 31. The initial prices and the number of bars loaded also affect later values.

3

What it measures

Not a fixed-period average but an adaptive smoothing that carries over its past internal state.

Compare the distances

The distance between the price and the farther of the upper and lower internal bands is divided by the typical size of recent distances. If the ratio is 1 or less, the base coefficient is kept as it is; above 1, the bar's price is taken in more strongly, up to a limit determined by Length. A band moves to the price when the price goes outside it, and moves toward the price when the price is inside it.

Length and Phase

The larger Length is, the closer the base coefficient gets to 1 and the more weight the previous value has. It also increases the maximum factor, relative to the base, by which the price intake can be strengthened on bars with a large ratio. Phase is the multiplier for adding the residual: −100 gives 0.5 times, 0 gives 1.5 times and 100 gives 2.5 times.

Exceeding the price range

Because it includes a correction and a smoothing that carries over the previous bar's change, the line can go above the highest or below the lowest of the prices used. It is not necessarily an average that stays within the range of the candlesticks.

Length = 1

The distance ratio has no effect on the coefficient, and the line is almost the same as the input price. However, it is not necessarily always the same value as the price itself.

4

Situations for reading the display

The line and the price are far apart

Indicator
It is a line calculated from the price.
Cross-check
Cross-check the input price and the calculation method.
Check
Check the start of the loaded history and the settings.
Caution
Do not attach any other meaning to the line's position.

The latest point moves

Indicator
The value of the forming bar is being updated.
Cross-check
Check Applied Price.
Check
Distinguish closed bars from the forming bar.
Caution
With prices other than Open, the value changes while the bar is forming.
5

Steps for checking the display

1

Open with the defaults

First, load the needed history with the defaults, and check the price bars and the orange line.

2

Check the inputs

Cross-check the settings section of this manual against the Inputs tab of the properties. All inputs changed in the changed example are shown in the comparison box.

3

Compare over the same range

Align the timeframe and the display range, and compare the shape of the line. Read differences in shape as differences in inputs and calculation.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Volatility_Adaptive_Smoother.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'.

Using this product does not require allowing DLLs. 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 item names defined in the source are shown together with the input names.

Length

English item name
Length
Input name
InpLength
Default
14
Allowed range
Integer 1 to 500
Description
Default 14. Used to calculate the coefficient. Despite the name, it is not the number of bars in a simple moving window.

Shape adjustment

English item name
Phase
Input name
InpPhase
Default
0
Allowed range
−100〜100
Description
Default 0. Changes the correction coefficient. It does not represent a time angle or a display position.

Price

English item name
Applied Price
Input name
InpPrice
Default
Close
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Close is the close, Open is the open, High is the high and Low is the low. Median=(high+low)/2, Typical=(high+low+close)/3, Weighted=(high+low+2×close)/4.
8

Usage specifications

Color and display

The default is an orange (DarkOrange) solid line with width 2. There are no level lines, marks, text or notifications. No value header like that of a separate window appears on the price chart.

Start of drawing

The first 30 bars are not drawn. Bar 31 is that bar's input price. If the input prices of the first 30 bars are all the same, bars 31 to 60 also draw each bar's input price, and smoothing starts from bar 61.

When the history changes

It builds its state from the oldest price. If older bars are added or the loading start changes, the line value at the same time can also change.

The latest bar changes

When Applied Price is not Open, the value of the forming bar changes. With Open, it does not change during the bar unless that bar's open changes.

When the line is not visible

The vertical range of the price chart is based on the candlesticks. It does not automatically expand to fit the indicator line, so the line is not visible if it goes outside the upper or lower display range.

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

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

The line does not appear yet

Check that there are 31 or more bars. Immediately after the history is increased, the older parts of the line are also recalculated.

The settings and the shape do not match intuition

Do not read Phase as a display shift or a time angle; check it, together with Length, as an input to the coefficient.

Out-of-range input

With settings outside the allowed range, it does not start, and 1 line with the reason in English appears on the Experts tab. Return the input to within the range and apply it.

Checking the name and the inputs

The numbers in the display name are rounded or omitted. Check the actual values on the Inputs tab of the indicator's properties. The name alone does not confirm all inputs.

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 flow

The short average of the distance uses 10 bars, and the reference is the average of the middle 65 of the past 127 of those averages, sorted. On the earliest bars, it prepares using the range that is available. A coefficient is made from the distance ratio and Length, and the price smoothing, the residual smoothing, the correction by Phase and the final smoothing are calculated in that order. The bands themselves are not drawn on the screen.

Guide to the start of the history

In a preliminary count on real 1-minute data, changing the oldest 50 to 500 bars produced, with the defaults, differences about the size of a typical 1-bar range, and they affected the values up to about 360 to 520 bars from the start. With Length=500 there was a case where the effect extended to about 1,700 bars, and with Length=1 there was no difference. This size and length change with the settings and the price data, and are not values guaranteed for other symbols or timeframes.

Display name

The name includes Length, Phase and the input price. The line label is Smoother with Length and Phase. It is not a product that shows a value header on the price chart.

Calculation load

On each bar, it sorts up to 127 values. Increasing Length does not increase this number. Actual processing time and the load with long histories are not guaranteed.

Price formulas

Close is the close, Open is the open, High is the high and Low is the low. Median=(high+low)/2, Typical=(high+low+close)/3, Weighted=(high+low+2×close)/4.

Scope of use

The display is a record of the calculation. It is not a function that instructs actions based on the line's position or slope. MT5 only.