MT5 indicators← Low-Pass Filter Line 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

Low-Pass Filter Line

Overlays on the price chart a line chosen from 7 calculation methods. The meaning of the inputs differs by method, and with settings such as a short Period, swings may be enlarged rather than weakened.

Indicator name: Low-Pass Filter LineMetaTrader 5Main chart, price units, main line and an optional 2nd line

Choose the method → the inputs that method uses → draw the main line

① MethodChoose from 7 types→② InputsRoles differ by method→③ LineMain line + optional 2nd lineNot all settings weaken short-cycle swings
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Filter Type firstWhen changing values such as Period, Alpha or Stages, check whether the input is used by the selected method.

2

Beware of a short PeriodSettings such as Period=2 or 3 in methods 2 and 3 enlarge short-cycle movements. Do not assume the smoothing effect from the name alone.

3

Shift is the drawing positionWithout changing the values, it shifts the line to the right by the specified number of bars. The points on the right side are also values calculated up to the forming bar.

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
Method / Filter Type
InpFilterType
Three-Pole → Gaussian
Period / Period
InpPeriod
14 → 20
Coefficient design order / Gaussian Order
InpOrder
3 → 2
Number of smoothing stages / Stages
InpStages
4 → 3
Price / Applied Price
InpAppliedPrice
Close → Typical

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 settingsInpFilterType = Three-Pole; InpPeriod = 14; InpOrder = 3; InpStages = 4; InpAppliedPrice = Close
Low-Pass Filter Line default settings
The main line with the default Three-Pole and Period=14. Second Line is false.
View the screen in detail at full size
Low-Pass Filter Line default settings (full size)
Example of changed settingsInpFilterType = Gaussian; InpPeriod = 20; InpOrder = 2; InpStages = 3; InpAppliedPrice = Typical
Low-Pass Filter Line example with changed settings
An example with Gaussian, Period=20, Gaussian Order=2, Stages=3 and Typical. The difference from the default is a combination of 5 inputs, not the effect of only 1 input.
View the screen in detail at full size
Low-Pass Filter Line example with changed settings (actual 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

Filter Type first

When changing values such as Period, Alpha or Stages, check whether the input is used by the selected method.

Beware of a short Period

Settings such as Period=2 or 3 in methods 2 and 3 enlarge short-cycle movements. Do not assume the smoothing effect from the name alone.

Shift is the drawing position

Without changing the values, it shifts the line to the right by the specified number of bars. The points on the right side are also values calculated up to the forming bar.

3

What it measures

Distinguishing each method's calculation from the roles of the inputs is the starting point for reading it.

Method 0

Repeats a 1-stage smoothing with the same coefficients Stages times. Gaussian Order is the coefficient design, and Stages is the actual number of stages.

Methods 1 to 4

Methods 1 and 2 use 2-stage feedback, and method 3 uses 3-stage feedback. Method 1 applies weights of 1, 2 and 1 to 3 prices. Method 4 uses fixed coefficients and does not use Period.

Method 5

A 2-stage feedback whose coefficients are determined by Alpha. It takes the form of subtracting the high-frequency component from the price; with a small Alpha, it stays near the oldest price for a long time.

Method 6

Adds half of the smoothed slope and the smoothed high-frequency component to a simple average of Period bars. Because the high-frequency component feeds back on the previous value, it is not a calculation over a finite window only.

Filter Type as shownInputs that take effectMeaning of Period
0 GaussianPeriod, Gaussian Order, StagesCycle used to design the coefficients
1 Two-Pole BinomialPeriodCycle used to design the coefficients
2 Two-PolePeriodCycle used to design the coefficients
3 Three-Pole (default)PeriodCycle used to design the coefficients
4 Fixed EllipticPrice, ShiftNot used
5 Instantaneous TrendAlpha, Second LineNot used
6 Model TrendPeriodSimple average window (4 or more)

Price and Shift are used in all methods. Inputs that have no effect are also range-checked. The English in the table is the name that corresponds to the selection field.

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_Low_Pass_Filter_Line.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 8 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Method

English item name
Filter Type
Input name
InpFilterType
Default
Three-Pole
Allowed range
7 methods, 0 to 6
Description
Default 3 (Three-Pole). See the table above for each method's calculation and the inputs it uses.

Period

English item name
Period
Input name
InpPeriod
Default
14
Allowed range
Integer 2 to 2000. Method 6 only: 4 or more
Description
Default 14. For methods 0 to 3 it is the design cycle; for method 6 it is the window length. Methods 4 and 5 do not use it in the calculation, but its range is checked.

Coefficient design order

English item name
Gaussian Order
Input name
InpOrder
Default
3
Allowed range
Integer 1 to 4
Description
Default 3. The order used to design the coefficients for method 0. The range is checked for methods other than 0 as well.

Number of smoothing stages

English item name
Stages
Input name
InpStages
Default
4
Allowed range
Integer 1 to 24
Description
Default 4. The number of times actually stacked in method 0. It can be set to a value different from the design order.

Coefficient Alpha

English item name
Alpha
Input name
InpAlpha
Default
0.07
Allowed range
Greater than 0 and less than 1
Description
Default 0.07. Used in method 5. The range is checked for other methods as well. With small values, the influence of the start remains for a long time.

Price

English item name
Applied Price
Input name
InpAppliedPrice
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.

Display shift to the right

English item name
Shift (bars, to the right)
Input name
InpShift
Default
0
Allowed range
Integer 0 to 100
Description
Default 0. Shifts only the drawing position to the right without changing the values. The 2nd line is shifted by the same number of bars.

2nd line

English item name
Second Line
Input name
InpSecondLine
Default
false
Allowed range
false / true
Description
Default false. Only in method 5, draws 2 × main line − main line 2 bars earlier as a blue dotted line. In other methods it is not drawn even if set to true.
8

Usage specifications

Start of drawing

Methods 0 to 5 draw from the oldest bar. They start by treating everything before it as the oldest price, so the first value is the price, apart from rounding. Method 6 starts from bar Period+1, and line 2 from bar 3.

Lines that exceed the range

Method 0 is an average within the range of the prices used. Methods 1 to 6 and line 2 include negative weights and can go above the highest or below the lowest of the prices used. The frequency and size are not uniform.

Main line and line 2

The main line is an orange solid line with width 2. Line 2 is a blue dotted line with width 1. Line 2 is also calculated from values up to now and carries no separate meaning. There are no level lines, marks, text or notifications.

Shift and updates

Even the rightmost point shifted to the right moves with the value of the forming bar. However, if the input price is Open, it does not move unless that bar's open changes. Using Second Line and Shift together does not change the formula.

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

It does not start because of an unused input

The ranges of all inputs are checked regardless of the method. For example, even with method 3, it does not start if Alpha=0.

The 2nd line is not visible

Check that Filter Type=5 is combined with Second Line=true, and that there are 3 or more bars. It is not drawn in other methods.

No line appears with a long Period

Method 6 needs Period+1 bars or more. With Period=2000, 2,001 bars are needed. With a small Alpha, the line can also be outside the display range.

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

Cycle and swing size

In method 0, Period is the cycle at which the swing amplitude becomes about 0.71 times only when Stages and Gaussian Order are the same. With more stages that cycle is longer, and with fewer it is shorter. In methods 1 to 3, a short Period does not become the boundary as designed. In methods 2 and 3, Period=2 and 3 enlarge short-cycle swings, and in method 3 with Period=2, the swing at a 2-bar cycle becomes about 2 times. Because methods 2 to 6 have bands where swings are enlarged beyond 1 times, they cannot be read unconditionally as "removing short cycles".

Method 6 window and slope

The slope is half of the price change from Period−1 bars earlier. That slope is smoothed with 1, 2, 2, 1, and half of the result is then added to the line. In other words, 1/4 of the smoothed price change goes into the line. Period is the window of the simple average, not a boundary that uniformly removes short cycles.

Guide to the start of the history

A preliminary count with the oldest 50 to 500 bars changed on real 1-minute data. The last bar at which the difference from the new start exceeded 1×10⁻⁹ was bar 36 to 52 with the defaults (maximum difference 1.26×10⁻⁴), bar 5,059 to 6,190 with Model Trend and Period=2000 (6.25×10⁻⁴), and bar 6,609 to 8,700 with Three-Pole and Period=2000 (8.57×10⁻⁴). With Alpha=0.000001, the difference remained until the end in all 19 cases, with a maximum of 9.20×10⁻⁴. There is no guarantee of the same length or difference with other data.

Reading the name

The name includes the method, the Period used and the price; for method 0 also the order and the number of stages, for method 5 Alpha, and the shift if it is not 0. Alpha is shown to 3 significant digits, and 0.9995 or more may appear as 1. Second Line and unused inputs cannot be identified from the name. Check them on the Inputs tab.

Calculation and memory

The calculation per bar is proportional to Period in method 6 and to Stages in method 0. In the other methods, the number of operations does not increase with Period. All methods hold 30 buffers, and memory increases with the number of bars and the number of instances placed at the same time. Actual time and actual memory use are not guaranteed.

Distinction from other averages

Because the coefficients are designed from Period, the values are not necessarily the same as those of a general exponential-type average given the same period number. Even with order 1 and 1 stage in method 0, you need to check how the coefficients are determined.

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.