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

Low-Pass Filter Turn Arrows

Shows with arrows on the price chart either a direction turn of a smoothed line chosen from 7 types, or the close moving to the opposite side of the line. The default is a direction turn of the Fixed Elliptic line on the median price.

Indicator name: Low-Pass Filter Turn ArrowsMetaTrader 5Main chart

How to read the display

1Check the orange line and Signal2Green is a turn up, red a turn down3Equal values keep the previous state
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Check the orange line and SignalThe default orange line is Fixed Elliptic. Signal selects whether to read the line's direction or the close crossing the line.

2

Green is a turn up, red a turn downIn Line Turn, green when the line changes from down to up, and red for the reverse. In Close Cross, green when the close changes from below to above the line, and red for the reverse.

3

Equal values keep the previous stateWhile the line is flat in Line Turn, or while the close equals the line in Close Cross, the previous direction/position is kept. No mark is placed when the first state is merely 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
Arrow rule / Signal
InpSignal
Line Turn → Close Cross

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 settingsInpSignal = Line Turn
Low-Pass Filter Turn Arrows default settings
Default: Fixed Elliptic, Median, Line Turn, line shown. Bars where the direction of the orange line reversed are shown with green and red arrows.
View the screen in detail at full size
Low-Pass Filter Turn Arrows default settings (full size)
Settings change exampleInpSignal = Close Cross
Low-Pass Filter Turn Arrows settings change example
Only Signal is changed to Close Cross. For the same orange line, it shows bars where the close moved to the opposite side. In the change example, the arrows at the top edge are partly cut off and the arrows at the bottom edge touch the border.
View the screen in detail at full size
Low-Pass 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

Check the orange line and Signal

The default orange line is Fixed Elliptic. Signal selects whether to read the line's direction or the close crossing the line.

Green is a turn up, red a turn down

In Line Turn, green when the line changes from down to up, and red for the reverse. In Close Cross, green when the close changes from below to above the line, and red for the reverse.

Equal values keep the previous state

While the line is flat in Line Turn, or while the close equals the line in Close Cross, the previous direction/position is kept. No mark is placed when the first state is merely determined.

3

What it measures

Shows with arrows on the price chart either a direction turn of a smoothed line chosen from 7 types, or the close moving to the opposite side of the line. The default is a direction turn of the Fixed Elliptic line on the median price.

How the calculation works

Let Y be the internal smoothed line. In Line Turn, if Y is greater than on the previous bar the direction is up, if smaller it is down, and if equal it stays as before. A green up arrow is placed on a bar that was down until the previous bar and is up now, and a red down arrow for the reverse. Close Cross determines the state by whether the close is above or below Y on the same bar. If the close equals Y, the previous state is kept; green when it turns from below to above, red when it turns from above to below. Even if the applied price is set to Median or similar, the comparison partner in Close Cross is always the close. In both, no mark is placed when the state is first determined.

Conditions and exceptions

Except for Model Trend, the line is calculated from the first bar of the history; it is not a method that uniformly waits for Period bars. With Model Trend, the line starts from bar Period+1. Counting from the start of the line, the first Line Turn mark is on bar 3 at the earliest, and the first Close Cross mark on bar 2. If the same state or equal values continue, it comes later. With Closed Bars Only=true, no marks appear on the latest forming bar. Because the line and state are recalculated from the entire loaded history each time, past values and marks may change with the history start position, corrections or additions.

Gaussian

Smoothing with coefficients determined from Period and Order is applied Stages times in succession. The first value of each stage is the oldest applied price in the history.

Two-Pole Binomial / Two-Pole

Both determine the coefficients from Period and use the past 2 values of the line. Binomial combines the current and previous 2 prices at 1:2:1; Two-Pole uses the current price.

Three-Pole

Determines the coefficients from Period and combines the current price with the past 3 values of the line.

Fixed Elliptic

The coefficients are fixed at 0.13785, 0.0007, 0.13785, 1.2103 and −0.4867, and it calculates from the current and previous 3 prices and the previous 2 values of the line. It is not a method that stretches or shrinks by changing the period.

Instantaneous Trend

Determines the coefficients from Alpha and combines the current and previous 2 prices with the previous 2 values of the line.

Model Trend

Adds to the simple average of Period bars a smoothed slope and high-frequency component built from price changes. The line starts from bar Period+1 and is blank before that.

Settings that take effect by method

In Fixed Elliptic, changing Period, Gaussian Order, Stages or Alpha does not change the calculated values as long as they are within the allowed range. Instantaneous Trend uses Alpha, and Gaussian uses Period, Order and Stages. Unused inputs are also rejected if out of range. The line is not the same as a typical moving average and can go beyond the range of the price's highs and lows.

Differences from the original product

A separate product that uses the same 7 line methods as Low-Pass Filter Line. The original product defaults to Three-Pole and Close; this product defaults to Fixed Elliptic, Median and Line Turn. This product does not have the Shift and Second Line inputs of the original product and uses the main line equivalent to a shift of 0 and no 2nd line. When comparing, match the method, price, related settings and history.

4

Situations for reading the display

Distinguish the 2 rules

Indicator
Line Turn is the line's direction; Close Cross is whether the close is above or below the line.
Cross-check
Compare the line and the close on the bar with the arrow and in the state before it.
Check
When equal values come in between, trace back to the last state in which they differed.
Caution
The height of an arrow is not the line's value or a trading price.

Compare setting differences

Indicator
Only Signal is changed to Close Cross. For the same orange line, it shows bars where the close moved to the opposite side. In the change example, the arrows at the top edge are partly cut off and the arrows at the bottom edge touch the border.
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
Except for Model Trend, the line is calculated from the first bar of the history; it is not a method that uniformly waits for Period bars. With Model Trend, the line starts from bar Period+1. Counting from the start of the line, the first Line Turn mark is on bar 3 at the earliest, and the first Close Cross mark on bar 2. If the same state or equal values continue, it comes later. With Closed Bars Only=true, no marks appear on the latest forming bar. Because the line and state are recalculated from the entire loaded history each time, past values and 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

The default orange line is Fixed Elliptic. Signal selects whether to read the line's direction or the close crossing the line.

3

Comparing settings

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

4

Distinguish the line and the marks on the latest bar

Even with Closed Bars Only=true, the line is updated up to the latest bar. Only the marks are hidden on the latest bar.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Low_Pass_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 13 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.

Line method

English item name
Filter Type
Input name
InpFilterType
Default
Fixed Elliptic
Allowed range
Gaussian / Two-Pole Binomial / Two-Pole / Three-Pole / Fixed Elliptic / Instantaneous Trend / Model Trend
Description
The default is Fixed Elliptic. The settings used and the initial values differ by method. Check each method in Chapter 3 "What it measures".

Period

English item name
Period
Input name
InpPeriod
Default
14
Allowed range
Integer 2–2000 (4–2000 for Model Trend)
Description
Default 14. For Gaussian, Two-Pole Binomial, Two-Pole and Three-Pole, it is the period that determines the coefficients; for Model Trend, the number of bars in the calculation window. Fixed Elliptic and Instantaneous Trend do not use it in the calculation, but the range check is still performed.

Gaussian order

English item name
Gaussian Order
Input name
InpOrder
Default
3
Allowed range
Integer 1–4
Description
Default 3. An input that determines the Gaussian smoothing coefficient. The other 6 methods do not use it in the calculation. It is a separate setting from Stages.

Gaussian stages

English item name
Stages
Input name
InpStages
Default
4
Allowed range
Integer 1–24
Description
Default 4. The number of stages of smoothing applied in succession in Gaussian. The other 6 methods do not use it in the calculation.

Instantaneous Trend coefficient

English item name
Alpha
Input name
InpAlpha
Default
0.07
Allowed range
A finite number greater than 0 and less than 1
Description
Default 0.07. Determines the coefficient of this method. The other 6 methods do not use it in the calculation.

Price used for the line

English item name
Applied Price
Input name
InpAppliedPrice
Default
Median
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Default Median=(high+low)/2. Typical=(high+low+close)/3, Weighted=(high+low+2×close)/4. Close Cross uses the close for the comparison regardless of this setting.

Arrow rule

English item name
Signal
Input name
InpSignal
Default
Line Turn
Allowed range
Line Turn / Close Cross
Description
The default Line Turn detects a reversal of the line's direction. Close Cross detects the close moving to the opposite side of the line. When equal values come in between, the state before them is carried over.

Show the smoothed line

English item name
Show Line
Input name
InpShowLine
Default
true
Allowed range
true / false
Description
The default true shows the orange line. Even with false, the internal line and state continue to be calculated, and the arrow check 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. With false, arrows are also shown on the latest bar and may appear, disappear or change direction with price changes. This setting does not stop the 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

Except for Model Trend, the line is calculated from the first bar of the history; it is not a method that uniformly waits for Period bars. With Model Trend, the line starts from bar Period+1. Counting from the start of the line, the first Line Turn mark is on bar 3 at the earliest, and the first Close Cross mark on bar 2. If the same state or equal values continue, it comes later. With Closed Bars Only=true, no marks appear on the latest forming bar. Because the line and state are recalculated from the entire loaded history each time, past values and marks may change with the history start position, corrections or additions.

Mark positions

Up arrows are drawn 10 pixels below the low, and down arrows 10 pixels above the high. This is not a fixed distance in price.

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.

Small differences and display

Comparisons are strict, and there is no tolerance for treating a difference as 0. Even a small difference that looks flat to the eye may be counted as a change of direction.

Features not included

There is no line shift, line 2 or notification. Close Cross shows a change in the position of the close relative to the line, and it does not guarantee agreement with marks from other products or crossover indicators.

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

Except for Model Trend, the line is calculated from the first bar of the history; it is not a method that uniformly waits for Period bars. With Model Trend, the line starts from bar Period+1. Counting from the start of the line, the first Line Turn mark is on bar 3 at the earliest, and the first Close Cross mark on bar 2. If the same state or equal values continue, it comes later. With Closed Bars Only=true, no marks appear on the latest forming bar. Because the line and state are recalculated from the entire loaded history each time, past values and 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.

The line differs from Low-Pass Filter Line

A separate product that uses the same 7 line methods as Low-Pass Filter Line. The original product defaults to Three-Pole and Close; this product defaults to Fixed Elliptic, Median and Line Turn. This product does not have the Shift and Second Line inputs of the original product and uses the main line equivalent to a shift of 0 and no 2nd line. When comparing, match the method, price, related settings and history.

Displays overlap

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

Changing Period does not change the line

In Fixed Elliptic, changing Period, Gaussian Order, Stages or Alpha does not change the calculated values as long as they are within the allowed range. Instantaneous Trend uses Alpha, and Gaussian uses Period, Order and Stages. Unused inputs are also rejected if out of range. The line is not the same as a typical moving average and can go beyond the range of the price's highs and lows.

There is a line but no arrow

No mark appears when the first direction/position is merely determined. There are also no marks while equal values or the same direction continue. Check Signal and Closed Bars Only.

The edge of the image is cut off

Check at full size, and on the terminal adjust the chart's 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

Let Y be the internal smoothed line. In Line Turn, if Y is greater than on the previous bar the direction is up, if smaller it is down, and if equal it stays as before. A green up arrow is placed on a bar that was down until the previous bar and is up now, and a red down arrow for the reverse. Close Cross determines the state by whether the close is above or below Y on the same bar. If the close equals Y, the previous state is kept; green when it turns from below to above, red when it turns from above to below. Even if the applied price is set to Median or similar, the comparison partner in Close Cross is always the close. In both, no mark is placed when the state is first determined.

Initial values and exceptions

Except for Model Trend, the line is calculated from the first bar of the history; it is not a method that uniformly waits for Period bars. With Model Trend, the line starts from bar Period+1. Counting from the start of the line, the first Line Turn mark is on bar 3 at the earliest, and the first Close Cross mark on bar 2. If the same state or equal values continue, it comes later. With Closed Bars Only=true, no marks appear on the latest forming bar. Because the line and state are recalculated from the entire loaded history each time, past values and 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.

The 7 methods and the original product

A separate product that uses the same 7 line methods as Low-Pass Filter Line. The original product defaults to Three-Pole and Close; this product defaults to Fixed Elliptic, Median and Line Turn. This product does not have the Shift and Second Line inputs of the original product and uses the main line equivalent to a shift of 0 and no 2nd line. When comparing, match the method, price, related settings and history.

Treatment of initial values

Gaussian starts all stages with the oldest price. The Two-Pole types, Three-Pole, Fixed Elliptic and Instantaneous Trend calculate with the prices and line values before the start of the history taken as the oldest price. Model Trend sets the slope and high-frequency component before the start to 0. The first part is affected by the history start position.

Settings by method

In Fixed Elliptic, changing Period, Gaussian Order, Stages or Alpha does not change the calculated values as long as they are within the allowed range. Instantaneous Trend uses Alpha, and Gaussian uses Period, Order and Stages. Unused inputs are also rejected if out of range. The line is not the same as a typical moving average and can go beyond the range of the price's highs and lows.