MT5 indicators← Triple Weighted ATR 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

Triple Weighted ATR

Takes linear weighted averages of the true range over 3 periods and shows each after a further simple average. Orange, light blue and blue indicate the input sets; they are not colors that show price direction.

Indicator name: Triple Weighted ATRMetaTrader 5Separate window

True range → linear weighted average → simple average

Calculate the true range TRAverage each period with more weight on newer barsSimple-average again over each set's Smoothing barsOrange, light blue and blue distinguish settings 1, 2 and 3
Schematic diagram of how to read it. This is not an actual terminal screen.
1

OrangeThe set of Period1 and Smoothing1.

2

Light blueThe set of Period2 and Smoothing2.

3

BlueThe set of Period3 and Smoothing3.

Same units as priceThe 3 are set independentlyAveraging method differs from the standard ATR
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
Set 1 weighted average period
InpPeriod1
14 → 5
Set 1 smoothing period
InpSmooth1
2 → 1
Set 2 weighted average period
InpPeriod2
25 → 20
Set 2 smoothing period
InpSmooth2
5 → 4
Set 3 weighted average period
InpPeriod3
50 → 100
Set 3 smoothing period
InpSmooth3
10 → 20

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 settingsInpPeriod1 = 14 / InpSmooth1 = 2 / InpPeriod2 = 25 / InpSmooth2 = 5 / InpPeriod3 = 50 / InpSmooth3 = 10
Triple Weighted ATR default settings
3 pairs are shown: 14/2, 25/5 and 50/10. Each pair is “weighted average period / smoothing period”.
View the screen in detail at full size
Triple Weighted ATR default settings (full size)
Settings change exampleInpPeriod1 = 5 / InpSmooth1 = 1 / InpPeriod2 = 20 / InpSmooth2 = 4 / InpPeriod3 = 100 / InpSmooth3 = 20
Triple Weighted ATR settings change example
Changed to 5/1, 20/4 and 100/20. Orange moves in small steps without additional smoothing, and blue represents the range over a long period.
View the screen in detail at full size
Triple Weighted ATR settings change example (full size)

Example shown: 1-minute chart (M1). This is an example to explain the display. The settings change example is not a recommended value. Details can be checked in the full-size view. The vertical axis of the separate window is adjusted automatically for each image, so do not compare values by on-screen height alone.

2

How to read it in 30 seconds

Period

Number of bars over which the true range is linearly weighted and averaged.

Smoothing

Number of bars over which that value is further simply averaged.

Colors

Colors are fixed to sets 1 to 3, not to the order of the periods.

3

What it measures

Compares range lines with different periods and smoothing in the same window.

True range

The range including that bar's high and low and the previous close.

Linear weighting

Newer values get larger weights. With N bars, the latest has weight N and the oldest 1.

Smoothing

Simply averages the latest M values of the weighted average. With 1, no additional smoothing is applied.

Meaning of the comparison

Compares the average ranges of the 3 sets at the same time. Line crossings do not show future direction.

4

Situations for reading the display

Orange moves in small steps

Indicator
This is the effect of a short period or little smoothing.
Cross-check
Check Period1 and Smoothing1.
Check
Always confirm in the settings which color corresponds to which period.
Caution
Orange is not necessarily the shortest.

The lines are at different heights

Indicator
Ranges of different periods are averaged with different weights.
Cross-check
Look at the 3 values on the same bar and the settings.
Check
Compare using the numbers on the vertical axis.
Caution
Even if the automatic scale includes values below 0, the calculated line values are non-negative.
5

Steps for checking the display

1

Read the 3 sets of settings

Match each color to its Period/Smoothing.

2

Change the periods 1 set at a time

Keep the other 2 sets fixed and look at the difference.

3

Compare the smoothing

Smoothing 1 means no additional averaging; larger values make changes smoother and slower.

6

Installation and checking the package contents

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

This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.

7

Settings

There are 6 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Set 1 weighted average period

Name shown on screen
Period 1
Input name
InpPeriod1
Default
14
Allowed range
1–1000 bars
Description
Linear weighted average with more weight on newer TR. There is no limit on its size relative to the other sets.

Set 1 smoothing period

Name shown on screen
Smoothing 1
Input name
InpSmooth1
Default
2
Allowed range
1 to 100 bars
Description
Further simple average of the weighted average. 1 means no additional smoothing.

Set 2 weighted average period

Name shown on screen
Period 2
Input name
InpPeriod2
Default
25
Allowed range
1–1000 bars
Description
Linear weighted average with more weight on newer TR. There is no limit on its size relative to the other sets.

Set 2 smoothing period

Name shown on screen
Smoothing 2
Input name
InpSmooth2
Default
5
Allowed range
1 to 100 bars
Description
Further simple average of the weighted average. 1 means no additional smoothing.

Set 3 weighted average period

Name shown on screen
Period 3
Input name
InpPeriod3
Default
50
Allowed range
1–1000 bars
Description
Linear weighted average with more weight on newer TR. There is no limit on its size relative to the other sets.

Set 3 smoothing period

Name shown on screen
Smoothing 3
Input name
InpSmooth3
Default
10
Allowed range
1 to 100 bars
Description
Further simple average of the weighted average. 1 means no additional smoothing.
8

Usage specifications

Forming bar

Values and drawing change with the latest bar's high, low and close. They are also recalculated when history is added or corrected or settings change.

Conditions for comparison

Compare with the same symbol, timeframe, period and loaded history. The display is not a forecast of future prices.

Starting position

Each line starts from bar Period+Smoothing−1. The 3 default lines are displayed from the 15th, 29th and 59th bars.

Difference from the standard

The averaging method differs from the simple average of the MT5 standard ATR. The colors of the 3 lines are not a ranking of strength.

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

This product shows calculation results through plot buffers and does not place orders. It does not guarantee profit or future price movement.

9

Troubleshooting and usage notes

Only blue starts late

Each line needs a different number of history bars. The default blue line needs 59 bars.

The vertical axis shows negative values

The automatic scale may add margin. Distinguish the line values themselves from the scale.

Nothing is shown after entering inputs

Check the allowed range of the inputs and the number of history bars. Outside the range, the indicator does not start, and the reason is shown in English in the Experts tab of the Toolbox. No explanation is shown on the chart.

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

Formulas

W_N[i]=Σ(TR[i−k]×(N−k))/(N×(N+1)/2), k=0..N−1. The line is the simple average of W_N over the latest M bars.

Required range

1 displayed value uses the TR of the latest N+M−1 bars. The oldest TR is high−low; after that it is the true range including the previous close.