MT5 indicators← ATR Trailing Stop Plus 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

ATR Trailing Stop Plus

Shows the relationship between the price and a distance determined from the range as a line that switches between 2 colors.

Indicator name: ATR Trailing Stop PlusMetaTrader 5On the price chart

Read input, calculation and display separately

1Blue and orange2Choosing the distance3Display only
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Blue and orangeBlue is the state trailing below; orange is the state trailing above.

2

Choosing the distanceUses the ATR and a multiplier, or fixed points.

3

Display onlyIt does not place orders or modify stop orders.

Display on the chartCompare the default with the change exampleDisplay only
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 / Method
InpMethod
Volatility Stop (close) → SuperTrend (median bands)
ATR period / ATR Period
InpATRPeriod
14 → 11
EMA smoothing of ATR / ATR EMA Smoothing (0 = off)
InpSmoothPeriod
27 → 0
Distance multiplier / Multiplier
InpMultiplier
2.824 → 2

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 settingsInpMethod = Volatility Stop (close) / InpATRPeriod = 14 / InpSmoothPeriod = 27 / InpMultiplier = 2.824
ATR Trailing Stop Plus default settings
Volatility Stop, ATR Period = 14, ATR EMA Smoothing = 27, Multiplier = 2.824, Close.
View the screen in detail at full size
ATR Trailing Stop Plus default settings (actual size)
Settings change exampleInpMethod = SuperTrend (median bands) / InpATRPeriod = 11 / InpSmoothPeriod = 0 / InpMultiplier = 2
ATR Trailing Stop Plus settings change example
SuperTrend, ATR Period = 11, ATR EMA Smoothing = 0, Multiplier = 2. Part of the line is outside the displayed price range.
View the screen in detail at full size
ATR Trailing Stop Plus settings change example (actual size)

Example shown: 1-minute chart (M1). This is an example for explaining the display. 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

Blue and orange

Blue is the state trailing below; orange is the state trailing above.

Choosing the distance

Uses the ATR and a multiplier, or fixed points.

Display only

It does not place orders or modify stop orders.

3

What it measures

Shows the relationship between the price and a distance determined from the range as a line that switches between 2 colors.

Volatility Stop

When the selected price stays on the same side of the previous line, the lower line keeps the higher value and the upper line keeps the lower value. When the price equals the line, that value is kept.

The bar after an equal value

If the previous price was equal to the line, the next bar is determined again from price ± distance. It does not necessarily "always move in only one direction".

SuperTrend

Based on the median of high and low ± distance, the state switches when the selected price goes beyond the previous upper or lower band. In the upward state, the lower band is kept from falling; in the downward state, the upper band is kept from rising.

Distance

The true range is simple-averaged over ATR Period bars. If ATR EMA Smoothing is positive, the ATR is exponentially smoothed. If Fixed Distance is positive, the specified points are used instead of this ATR distance.

4

Situations for reading the display

Align the calculation conditions

Indicator
Blue and orange
Cross-check
Price, period and method inputs
Check
Check the change before and after under the same conditions.
Caution
Colors, levels and crossings are not presented as trading signals.

Compare by changing settings

Indicator
Choosing the distance
Cross-check
List of changes and vertical axis units
Check
Read the default and the changed example separately to see what changed.
Caution
The changed example shown is not a recommended setting.
5

Steps for checking the display

1

Start from the default

First, check how to read it with the default settings.

2

Check the display conditions

On the Inputs tab, check the price, period, method and display selections.

3

Compare with conditions separated

Change 1 item at a time, and also check the scale of the values and the start position.

6

Installation and checking the package contents

Included filePurpose / location
TRI_ATR_Trailing_Stop_Plus.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 6 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
Method
Input name
InpMethod
Default
Volatility Stop (close)
Allowed range
Volatility Stop (close) / SuperTrend (median bands)
Description
Selects the calculation method. For the average methods: Simple is a simple average, Exponential is exponential smoothing, Smoothed is a smoothed moving average, and Linear Weighted is an average that weights newer bars more heavily.

ATR period

English item name
ATR Period
Input name
InpATRPeriod
Default
14
Allowed range
1 to 1000
Description
The number of bars over which the true range is simple-averaged.

EMA smoothing of ATR

English item name
ATR EMA Smoothing (0 = off)
Input name
InpSmoothPeriod
Default
27
Allowed range
0 to 1000
Description
0 means no smoothing. A positive value applies exponential smoothing starting from the first ATR.

Distance multiplier

English item name
Multiplier
Input name
InpMultiplier
Default
2.824
Allowed range
0.01 to 100
Description
Applied to the ATR or the smoothed ATR. Not used for the distance with fixed points.

Fixed distance

English item name
Fixed Distance (points, 0 = ATR)
Input name
InpFixedPoints
Default
0
Allowed range
0 to 100000 points
Description
0 means ATR distance. A positive value gives priority to fixed points, and the ATR smoothing and multiplier are not used for the distance.

Price used for switching

English item name
Price that turns the line
Input name
InpPrice
Default
Close
Allowed range
7 types
Description
Close = close, Open = open, High = high, Low = low, Median = (high + low)/2, Typical = (high + low + close)/3, Weighted = (high + low + close × 2)/4. The center of the SuperTrend bands is the median of high and low regardless of this setting.
8

Usage specifications

Start

The ATR method starts once ATR Period bars are available. With a fixed distance, it starts from the oldest bar. The initial state is the lower side.

Switching bar

A state switch is reflected in the line of that bar. There is no guarantee that the blue and orange lines always stay above or below the candlesticks.

Forming bar

The latest bar is included in the calculation. Displayed values and colors change with price updates. It calculates on the chart timeframe and has no function to specify a higher timeframe.

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

Nothing is displayed

Check the number of history bars, the input ranges and the display selections. If an input is out of range, loading is refused and the reason is written to the log.

The display is thin or hard to see

The images shown can be checked by opening the full-size view. The scale changes with the settings and the display range.

How to read names and colors

This manual explains functions and operations. Colors and names such as Stop and Signal do not mean instructions to execute trades or to make trading decisions.

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

Volatility Stop conditions

If the previous price and the current price are both above the previous line, max(previous line, price − distance); if both are below, min(previous line, price + distance). If the current price equals the previous line, it is held; otherwise it switches to price ± distance.

Initialization

The first true range is high − low. The ATR EMA seeds with the first ATR. The current bar is included.

Definitions of prices and averages

Close = close, Open = open, High = high, Low = low, Median = (high + low) / 2, Typical = (high + low + close) / 3, Weighted = (high + low + close × 2) / 4. Simple is a simple average, Exponential is exponential smoothing, Smoothed is a smoothed moving average, and Linear Weighted is an average that gives newer bars more weight.

Scope of verification

The descriptions of inputs and calculations are based on the implementation. The actual display in the Data Window and the input screen, and how it looks during long-running operation on actual symbols or with long histories, are not yet verified.