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

Shows an arrow on bars where the value of a filter that multiplies prices by fixed weights changes from rising to falling or from falling to rising. The filter line can be shown if needed.

Indicator name: Fixed-Weight Filter Turn ArrowsMetaTrader 5Main chart

How to read the display

1Green: from down to up2Red: from up to down3Flat values keep the previous direction
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Green: from down to upWhen the filter changes from falling to rising, a green up arrow is placed on the low side.

2

Red: from up to downWhen the filter changes from rising to falling, a red down arrow is placed on the high side.

3

Flat values keep the previous directionWhile the same value continues, the direction does not change. No arrow is placed when the direction is first determined.

Record of conditions metMT5 onlyNot a trading instruction
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
39 Bars → 65 Bars
Show the filter line / Show Line
InpShowLine
false → true

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 = 39 Bars / InpShowLine = false
Fixed-Weight Filter Turn Arrows default settings
The default is 39 Bars, Close, line hidden. The green and red arrows are on bars where the direction of the internally calculated filter reversed.
View the screen in detail at full size
Fixed-Weight Filter Turn Arrows default settings (full size)
Settings change exampleInpTable = 65 Bars / InpShowLine = true
Fixed-Weight Filter Turn Arrows settings change example
Changed to 65 Bars and Show Line=true. The orange filter line and arrows are shown. This example changes the table and the line display at the same time; showing the line is not what changed the arrows.
View the screen in detail at full size
Fixed-Weight Filter Turn Arrows settings change example (full size)

Example shown: M1. This is an example for explaining the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the packaged version has display settings for the brand text and the QR code. The settings change example is not a recommended value. Details can be checked in the full-size view. Please also check the price scale of the main chart and the positions of the candlesticks.

2

How to read it in 30 seconds

Green: from down to up

When the filter changes from falling to rising, a green up arrow is placed on the low side.

Red: from up to down

When the filter changes from rising to falling, a red down arrow is placed on the high side.

Flat values keep the previous direction

While the same value continues, the direction does not change. No arrow is placed when the direction is first determined.

3

What it measures

Shows an arrow on bars where the value of a filter that multiplies prices by fixed weights changes from rising to falling or from falling to rising. The filter line can be shown if needed.

How the calculation works

With N the number of bars in the selected table and P the price, the filter F is 'current bar price×weight 0+price 1 bar earlier×weight 1+…+price N−1 bars earlier×weight N−1'. It is not divided by the sum of the weights. If F is greater than on the previous bar, the direction is up; if smaller, down; if equal, the previous direction is kept. An up arrow is placed only when the previous direction was down and the current one is up, and a down arrow only when the previous was up and the current one is down. It is not a cross of price and line, or a 0 cross of the value.

Conditions and exceptions

Line calculation starts from the bar where N bars are available. The direction is first set on the next bar, and if it changes to the opposite direction, an arrow can be placed on bar N+2 at the earliest. If it stays flat or keeps the same direction, it comes later. With Closed Bars Only=true, no arrow appears on the latest forming bar, so it waits further until the target bar closes. Each time, the direction is recalculated from the entire loaded history. Marks may change with the history start position, corrections or additions.

Properties of the weights and the line

The 6 tables include negative weights, and no normalization by the sum of the weights is done. The line can go beyond the range of the price's highs and lows, and its values and response are not the same as a typical moving average. More bars do not necessarily mean fewer or later marks.

Differences from the original line product

A separate product that uses the same 6 coefficient tables and price calculation as Fixed-Weight Filter Line. The original product shows the line, with a default of 45 Bars. This product defaults to 39 Bars with the line hidden, and adds direction-turn arrows. When comparing, match the table, price and history. Its calculation target differs from Fixed-Weight Filter Spread, which shows the difference in a separate window.

4

Situations for reading the display

Reading direction turns

Indicator
Green is a turn from down to up, red a turn from up to down.
Cross-check
With Show Line=true, you can compare the direction of the line on the same bar as the arrow.
Check
When flat values come in between, trace back to the last direction of increase or decrease.
Caution
The height of an arrow does not show the value of the line at the turn or an execution price.

Compare setting differences

Indicator
Changed to 65 Bars and Show Line=true. The orange filter line and arrows are shown. This example changes the table and the line display at the same time; showing the line is not what changed the arrows.
Cross-check
Use the same symbol, timeframe and history.
Check
Look at how the changed setting relates to the increase or decrease and the position of the marks.
Caution
The published settings are not recommended values.

Reading intervals without marks

Indicator
Line calculation starts from the bar where N bars are available. The direction is first set on the next bar, and if it changes to the opposite direction, an arrow can be placed on bar N+2 at the earliest. If it stays flat or keeps the same direction, it comes later. With Closed Bars Only=true, no arrow appears on the latest forming bar, so it waits further until the target bar closes. Each time, the direction is recalculated from the entire loaded history. Marks may change with the history start position, corrections or additions.
Cross-check
Check the required history and whether the conditions are met.
Check
Do not treat the absence of marks as the calculation having stopped.
Caution
Nothing may be displayed during periods when the conditions are not met.
5

Steps for checking the display

1

Apply with the defaults

Load the history in MT5, and first apply only this product to the chart.

2

Check the role of the display

When the filter changes from falling to rising, a green up arrow is placed on the low side.

3

Comparing settings

Put the default and the change example on separate charts, with the same symbol, timeframe and history.

4

Distinguish the forming bar

Even with Closed Bars Only=true, the line with Show Line=true is updated up to the latest bar. Check the difference in what the arrows and the line update.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Fixed_Weight_Filter_Turn_Arrows.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. When comparing different settings, using separate charts makes checking easier.

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.

Coefficient table

English item name
Coefficient Table
Input name
InpTable
Default
39 Bars
Allowed range
39 Bars / 44 Bars / 45 Bars / 65 Bars / 91 Bars / 99 Bars
Description
The default is 39 Bars. Each name is the number of prices used. The coefficients themselves also differ by table, so it differs from a moving average that only stretches or shrinks the period.

Price used for calculation

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

Show the filter line

English item name
Show Line
Input name
InpShowLine
Default
false
Allowed range
true / false
Description
true shows an orange line. Even with false, the line's value and direction continue to be calculated, and the arrow condition does not change.

Hide arrows on the forming bar

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
Default true. false also shows arrows on the latest bar, which appear, disappear or change direction with price changes in the bar. This setting does not stop the display or update of the line.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Displayed with true. Calculated values do not change.

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left / Bottom left / Bottom right / Top right
Description
The default is bottom left.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Negative values are treated as 0, and values above 4000 are treated as 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Negative values are treated as 0, and values above 4000 are treated as 4000.
8

Usage specifications

Display only

It does not place, modify or close orders. There are no notifications or emails either.

Closed bars and history

Line calculation starts from the bar where N bars are available. The direction is first set on the next bar, and if it changes to the opposite direction, an arrow can be placed on bar N+2 at the earliest. If it stays flat or keeps the same direction, it comes later. With Closed Bars Only=true, no arrow appears on the latest forming bar, so it waits further until the target bar closes. Each time, the direction is recalculated from the entire loaded history. Marks may change with the history start position, corrections or additions.

Arrow position

Green up arrows are 10 pixels below the low, and red down arrows 10 pixels above the high. This is not a fixed price width, and it is neither the line value nor a trading price. Changing the scale of the vertical axis changes the apparent price difference.

Brand display

Shows Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. When the same medium is used on the same chart, the display is shared. There is no account authentication.

When the difference is very small

The direction is decided by whether the difference is strictly positive, negative or 0. Even a small difference that looks flat may be counted as a change of direction. There is no tolerance setting for treating the difference as 0.

Line and latest bar

With Show Line=true, the line is drawn up to the latest bar regardless of Closed Bars Only. When the selected price updates, the line value also changes.

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 marks, or blanks in the middle

Line calculation starts from the bar where N bars are available. The direction is first set on the next bar, and if it changes to the opposite direction, an arrow can be placed on bar N+2 at the earliest. If it stays flat or keeps the same direction, it comes later. With Closed Bars Only=true, no arrow appears on the latest forming bar, so it waits further until the target bar closes. Each time, the direction is recalculated from the entire loaded history. Marks may change with the history start position, corrections or additions.

The input is not accepted

Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.

Looks different from Fixed-Weight Filter Line

A separate product that uses the same 6 coefficient tables and price calculation as Fixed-Weight Filter Line. The original product shows the line, with a default of 45 Bars. This product defaults to 39 Bars with the line hidden, and adds direction-turn arrows. When comparing, match the table, price and history. Its calculation target differs from Fixed-Weight Filter Spread, which shows the difference in a separate window.

Displays overlap

Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.

No lines appear

The default Show Line is false. Even after changing it to true, the line is not drawn until the number of bars in the selected table is available.

The line turned but no arrow appears

No mark is placed on the bar where the direction is first determined. Continuing in the same direction after a flat period is also not a turn. The latest bar is hidden with Closed Bars Only=true.

The line moves away from the price

The 6 tables include negative weights, and no normalization by the sum of the weights is done. The line can go beyond the range of the price's highs and lows, and its values and response are not the same as a typical moving average. More bars do not necessarily mean fewer or later marks.

Arrows at the edge of the image are hard to read

Check at full size, and on the terminal adjust the vertical scale and display range.

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 and reference range

With N the number of bars in the selected table and P the price, the filter F is 'current bar price×weight 0+price 1 bar earlier×weight 1+…+price N−1 bars earlier×weight N−1'. It is not divided by the sum of the weights. If F is greater than on the previous bar, the direction is up; if smaller, down; if equal, the previous direction is kept. An up arrow is placed only when the previous direction was down and the current one is up, and a down arrow only when the previous was up and the current one is down. It is not a cross of price and line, or a 0 cross of the value.

Initial values and exceptions

Line calculation starts from the bar where N bars are available. The direction is first set on the next bar, and if it changes to the opposite direction, an arrow can be placed on bar N+2 at the earliest. If it stays flat or keeps the same direction, it comes later. With Closed Bars Only=true, no arrow appears on the latest forming bar, so it waits further until the target bar closes. Each time, the direction is recalculated from the entire loaded history. Marks may change with the history start position, corrections or additions.

Package contents and dependencies

Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.

Coefficient tables and the original product

A separate product that uses the same 6 coefficient tables and price calculation as Fixed-Weight Filter Line. The original product shows the line, with a default of 45 Bars. This product defaults to 39 Bars with the line hidden, and adds direction-turn arrows. When comparing, match the table, price and history. Its calculation target differs from Fixed-Weight Filter Spread, which shows the difference in a separate window.

Treatment of the weights

The 6 tables include negative weights, and no normalization by the sum of the weights is done. The line can go beyond the range of the price's highs and lows, and its values and response are not the same as a typical moving average. More bars do not necessarily mean fewer or later marks.