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 Channels
Draws 3 pairs of bands placed a multiple of ATR away from a moving average at the center. It can also be switched to a method based on each bar's high and low. The bands visualize price range; they are not a range where price stops.
Select the base → place lines above and below at ATR × multiplier
Schematic diagram of how to read it. This is not an actual terminal screen.
1
Blue center lineThe moving average with the selected price, method and period.
2
3 pairs of bandsThe blue-gray solid, orange dashed and purple dotted lines distinguish multipliers 1 to 3.
3
The other baseWith Bar High and Low, bands are drawn using the area above each bar's high and below its low as the base.
ATR is width, not directionMultiplier 0 hides that pairOuter bands can be off screen
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
ATR period InpATRPeriod18 → 14
Band base InpAnchorMoving Average (moving average) → Bar High and Low (each bar's high and low)
Band 1 multiplier InpMultiplier11.6 → 1
Band 2 multiplier InpMultiplier23.2 → 0
Band 3 multiplier InpMultiplier34.8 → 0
Show MA line InpShowMAtrue → false
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.
Bands at 1.6, 3.2 and 4.8 times ATR18 are shown around LWMA49 of the typical price. Parts of the outer lines are outside the price display range.View the screen in detail at full size
Settings change exampleInpATRPeriod = 14 / InpAnchor = Bar High and Low (each bar's high and low) / InpMultiplier1 = 1 / InpMultiplier2 = 0 / InpMultiplier3 = 0 / InpShowMA = false
Changed to ATR 14 with each bar's high and low as the base. Only 1 pair, with multiplier 1, is kept, and the center MA line is hidden.View the screen in detail at full 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
Center
Band Anchor sets the base of the bands.
Width
ATR and the multiplier set the distance from the base.
Colors and line styles
They distinguish the pairs. The colors do not indicate strength.
3
What it measures
Draws the average true range as a price distance above and below the selected base.
ATR
Simple average of the true range TR over the latest N bars. The distance from the previous close is also included in the range.
Moving Average method
MA±ATR×multiplier. The upper and lower lines are the same distance from the MA.
Bar High and Low method
High+ATR×multiplier, low−ATR×multiplier. The bands are placed independently of the MA.
Display and calculation
Even if Show Moving Average is set to false, the calculation of the band center is kept when the base is the MA.
4
Situations for reading the display
The bands widened
Indicator
The distance has increased according to ATR or the multiplier.
Cross-check
Look at changes in price range with the same multiplier.
Check
First check whether the period and base are the same.
Caution
Touching or crossing a band does not mean a future reversal.
No center line
Indicator
Show Moving Average may be false.
Cross-check
Check Band Anchor and the display switch separately.
Check
Check whether the bar range is the base, as in the change example.
Caution
Changing the base and hiding the line are separate operations.
5
Steps for checking the display
1
View the whole with the defaults
Check the center line and the 3 pairs of bands.
2
Confirm the base
Check whether the MA is the center or each bar's high and low is the base.
3
Keep only the pairs you need
Set the multiplier of unneeded pairs to 0. The display example is not a recommended setting.
6
Installation and checking the package contents
Included file
Purpose / location
TRI_ATR_Channels.ex5
The 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 9 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
ATR period
Name shown on screen
ATR Period
Input name
InpATRPeriod
Default
18
Allowed range
1–1000 bars
Description
Number of bars over which TR is simply averaged.
Moving average period
Name shown on screen
MA Period
Input name
InpMAPeriod
Default
49
Allowed range
1–1000 bars
Description
Period of the center line.
Moving average method
Name shown on screen
MA Method
Input name
InpMAMethod
Default
Linear weighted (LWMA)
Allowed range
SMA / EMA / SMMA / LWMA
Description
4 methods: simple, exponential, smoothed and linear weighted.
Moving average price
Name shown on screen
MA Price
Input name
InpPrice
Default
Typical price (high + low + close) ÷ 3
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Select from close, open, high, low, median price, typical price and weighted close.
Band base
Name shown on screen
Band Anchor
Input name
InpAnchor
Default
Moving Average (moving average)
Allowed range
Moving Average / Bar High and Low
Description
Select either above and below the MA, or above each bar's high and below its low.
Band 1 multiplier
Name shown on screen
Multiplier 1
Input name
InpMultiplier1
Default
1.6
Allowed range
0〜100
Description
Blue-gray solid line. 0 hides this 1 upper-and-lower pair.
Band 2 multiplier
Name shown on screen
Multiplier 2
Input name
InpMultiplier2
Default
3.2
Allowed range
0〜100
Description
Orange dashed line. 0 hides this 1 upper-and-lower pair.
Band 3 multiplier
Name shown on screen
Multiplier 3
Input name
InpMultiplier3
Default
4.8
Allowed range
0〜100
Description
Purple dotted line. 0 hides this 1 upper-and-lower pair.
Show MA line
Name shown on screen
Show Moving Average
Input name
InpShowMA
Default
true
Allowed range
true / false
Description
Whether to show the center line. It is not a setting that stops the band calculation.
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
The MA starts from bar M (EMA from the 1st bar). Bands based on the MA start from the later of bar N and the MA start, and bands based on the bar range start from bar N. By default, they start from the 49th bar.
Price scale
Bands with large multipliers may go off screen. Do not assume a line is missing; check the multiplier, history and 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
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
A band of one color is missing
Check whether that pair's multiplier is 0, or whether it may be off screen.
Only the center line does not move
If MA Price is Open, the open of the forming bar is fixed. ATR, on the other hand, can change, so the bands may move.
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
Calculation
TR=max(H,previous C)−min(L,previous C). Only the oldest bar uses H−L. ATR is the N-bar simple average of TR. The MA is calculated from the specified price with the specified method.
MA initialization
EMA uses the oldest price as the seed. SMMA uses the SMA of the first M bars as the seed, then (previous MA×(M−1)+price)/M. LWMA gives more weight to newer bars.
Relation to the standard
The MA uses the same formula as the MT5 standard Moving Average with the same settings. ATR is a simple average, but this is not a statement guaranteeing that values match for all history, all settings or existing products.