MT5 indicators← Fixed-Weight 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

Fixed-Weight Filter Line

Selects 1 of 6 fixed coefficient tables and draws a line that sums past prices multiplied by weights. Each table has different weights, and the shape of the line is not determined by the number of bars used alone.

Indicator name: Fixed-Weight Filter LineMetaTrader 5Main chart, price units, 1 line

Choose a coefficient table → weight past prices → draw the sum as a line

① Coefficient table6 tables of 39 to 99 bars→② Weighted sumPrice × fixed coefficient→③ 1 lineThe sum is not renormalizedBecause it includes negative coefficients, it can exceed the price range
Schematic diagram of how to read it. This is not an actual terminal screen.
1

6 tables39, 44, 45, 65, 91 and 99 Bars. The bar count in each table name is the number of prices used.

2

The default is 45 BarsDrawing starts from bar 45. With 99 Bars, it starts from bar 99, and no line appears while there are not enough bars.

3

Different weights for each table44 and 45, and 91 and 99, also differ in their coefficients as a whole. They are not the same table extended by 1 bar at a time.

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
Coefficient table / Coefficient Table
InpTable
45 Bars → 99 Bars
Price / Applied Price
InpPrice
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 settingsInpTable = 45 Bars; InpPrice = Close
Fixed-Weight Filter Line default settings
The default is 45 Bars and Close. The orange line shows this product's values.
View the screen in detail at full size
Fixed-Weight Filter Line default settings (full size)
Example of changed settingsInpTable = 99 Bars; InpPrice = Typical
Fixed-Weight Filter Line example of changed settings
An example changed to 99 Bars and Typical. In part of the left side, the line is below the screen and not visible. This does not mean that the line has been deleted.
View the screen in detail at full size
Fixed-Weight Filter Line 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

6 tables

39, 44, 45, 65, 91 and 99 Bars. The bar count in each table name is the number of prices used.

The default is 45 Bars

Drawing starts from bar 45. With 99 Bars, it starts from bar 99, and no line appears while there are not enough bars.

Different weights for each table

44 and 45, and 91 and 99, also differ in their coefficients as a whole. They are not the same table extended by 1 bar at a time.

3

What it measures

Draws the weighted sum of prices as it is, without renormalizing it by the sum of the coefficients or the number of bars.

Weights applied from the latest side

Each coefficient of the selected table is multiplied in order from the latest price toward past prices, and the results are summed. It is not a method that carries over a smoothing state from the previous line value.

Why it exceeds the range

Because it includes negative coefficients, it can go above the highest or below the lowest of the prices used in the calculation. The range for comparison is the selected price, which is not always the same as the bars' highs and lows.

Slightly off even at the same price

Because the sum of the coefficients is not renormalized to 1, the line differs slightly from the price depending on the table, even when the input price is constant.

The latest price and the line

For 44, 45, 91 and 99 Bars, where the coefficient on the latest price is negative, the line falls if only the latest price rises with the other bars fixed. For 39 and 65 Bars, it moves in the same direction.

Display nameBars used / drawing startSum of coefficients
39 Bars39 bars / bar 390.9999999999
44 Bars44 bars / bar 441 (excluding rounding)
45 Bars (default)45 bars / bar 451.00000003
65 Bars65 bars / bar 651.0000000001
91 Bars91 bars / bar 911.0000000004
99 Bars99 bars / bar 990.99999999
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_Fixed_Weight_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 2 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Coefficient table

English item name
Coefficient Table
Input name
InpTable
Default
45 Bars
Allowed range
39 / 44 / 45 / 65 / 91 / 99 Bars
Description
Default 45 Bars. Choose from 6 fixed tables. The input name is InpTable.

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.

Drawing start and history

It draws from the bar at which the number of bars in the table is available. Adding history older than the required window does not change the value if the prices in the window are the same. If bars within the window are corrected, the value also changes.

Do not compare by table name alone

A larger number of bars does not always weaken all movements. Each table passes different cycles and has different swing multipliers.

Checking the display

In the modified example, the line goes off the bottom on the left side of the screen. Being off screen alone does not prove the effect of negative coefficients. The older prices used and the display range are also involved.

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

No line on the left side

Check the required number of bars, from 39 to 99, for the selected table. Nothing is drawn before the window is available, and even after that the line can be off screen.

The line falls while the price rises

For 44, 45, 91 and 99 Bars, the coefficient on the latest side is negative. When the other bars do not change, the line moving opposite to a change in the latest price is a property of the calculation.

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

Difference at a constant price

With a constant price P and a coefficient sum S, the difference between the line and the price is P×(S−1). For 45 Bars, with P=40,000 the difference is about +0.0012. Because there is also double-precision rounding, an exact match cannot be claimed for all prices.

Properties of each table

By formula, in the order 39, 44, 45, 65, 91 and 99 Bars, the lag for a linear input is about 0.81, 4.30, 4.88, 4.22, 24.07 and 26.87 bars. The periods at which the swing amplitude is halved are about 5.7, 8.9, 8.8, 26.5, 43.7 and 45.4 bars. There are also frequency bands where 39 Bars gives about 1.46 times at a period of about 9 bars, 65 Bars about 1.43 times at about 55 bars, and 91 Bars about 1.006 times at about 80 bars. These are calculated properties of the coefficients, not numbers that indicate superiority on price data.

Name and inputs

The name includes the number of bars in the table and the price name, and the label is Fixed-Weight with the number of bars in the table. No value header is shown on the price chart. Check the selection fields and the actual input values on the Inputs tab of the properties.

Calculation load

For 1 bar, it calculates products and sums for as many bars as the selected table has, and uses 2 value arrays. The processing load increases as the number of bars in the table and the history increase. Actual processing time is 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.