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
Adaptive MA Bands
Overlays on a blue AMA line dots where a 1-bar change exceeded a threshold, and 2 pairs of bands based on price dispersion. The dots are placed on the AMA, not on the candlesticks.
Indicator name: Adaptive MA BandsMetaTrader 5Main chart
Line, dots and bands each have a separate role
Schematic diagram of how to read it. This is not an actual terminal screen.
1
Blue lineThe AMA, which follows price adaptively.
2
Dots on the lineBars where the 1-bar AMA change exceeded the threshold. Green for a rise, red for a fall.
3
2 pairs of bandsPrice dispersion centered on the current AMA.
Dot mode is points / deviationDots appear on every bar while the condition continuesClosed bars only applies to dots 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
Efficiency ratio and change period InpPeriod10 → 9
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.
Efficiency ratio period changed to 9, dots to the points mode, and bands to 0. Only the line and dots are shown.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
Dot position
Placed on the AMA line, not on the high or low.
Distinguish the thresholds
You can choose fixed points or a multiple of the standard deviation of the change.
Center of the bands
The center is that bar's AMA, not a simple average.
3
What it measures
Lets you read, on one chart, a tracking average, a change condition on the average, and price dispersion separately.
AMA
An adaptive moving average whose smoothing coefficient changes with the efficiency ratio.
Dots in points mode
A dot is placed on a bar where the absolute value of the 1-bar AMA change exceeds Dot Threshold × point.
Dots in deviation mode
Bars where the change exceeds the population standard deviation of AMA changes over the last n bars × Dot Factor. Even if the change is small, dots continue if the dispersion is small.
Band width
The width uses the root mean square of the differences between the prices of the last B bars and the current AMA. This differs from a standard deviation centered on a simple average.
4
Situations for reading the display
Dots continue on small movements
Indicator
deviation decides by the ratio to the dispersion, not by the size of the change.
Cross-check
Check Dot Mode and recent AMA changes.
Check
Do not read the dots as proof of large price movements.
Caution
Even when price is flat, dots can appear if the AMA keeps approaching it.
The bands widen
Indicator
Both price dispersion and distance from the AMA affect the width.
Cross-check
Compare the center of the bands with the position of price.
Check
Check Band Bars and the width multipliers.
Caution
The bands are not upper or lower limits of future prices.
5
Steps for checking the display
1
Read the 3 roles
Distinguish the blue AMA, the dots on the line and the 2 pairs of bands.
2
Choose the dot mode
points uses the symbol's point unit as the reference; deviation uses the dispersion of changes.
3
Keep only the displays you need
Setting dots to None and Band Bars to 0 hides each of them.
6
Installation and checking the package contents
Included file
Purpose / location
TRI_Adaptive_MA_Bands.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 12 inputs. Change them on the Inputs tab of the properties window. The English display name and the input name in the code are shown together.
Efficiency ratio and change period
Name shown on screen
Efficiency Period
Input name
InpPeriod
Default
10
Allowed range
1–500 bars
Description
n shared by the AMA and the dispersion of changes in deviation mode.
Fast coefficient period
Name shown on screen
Fast Period
Input name
InpFastPeriod
Default
2
Allowed range
1–500 bars
Description
Period that sets the AMA coefficient. There is no constraint Fast<Slow.
Slow coefficient period
Name shown on screen
Slow Period
Input name
InpSlowPeriod
Default
30
Allowed range
1–500 bars
Description
Period that sets the AMA coefficient.
Smoothing coefficient exponent
Name shown on screen
Smoothing Power
Input name
InpPower
Default
2
Allowed range
0.1〜10
Description
2 gives the same form as the standard AMA.
Price
Name shown on screen
Applied Price
Input name
InpPrice
Default
Close
Allowed range
7 applied prices
Description
Used for both the AMA and the bands.
Dot mode
Name shown on screen
Dot Mode
Input name
InpDotMode
Default
deviation (standard deviation of change)
Allowed range
None / points / deviation
Description
Choose from no dots, fixed points, or a multiple of the standard deviation of the change.
Fixed threshold
Name shown on screen
Dot Threshold (points)
Input name
InpDotPoints
Default
2
Allowed range
0〜100000 points
Description
Used in points mode. Not used in deviation mode.
Dispersion multiplier
Name shown on screen
Dot Factor (x deviation)
Input name
InpDotFactor
Default
2
Allowed range
0〜100
Description
Used in deviation mode. Not used in points mode.
Band bars
Name shown on screen
Band Bars
Input name
InpBandBars
Default
10
Allowed range
0–500 bars
Description
0 means no bands. 1 or more is the number of price bars B used to calculate the width.
Inner multiplier
Name shown on screen
Inner Band Width
Input name
InpInnerWidth
Default
1
Allowed range
0〜10
Description
0 hides the inner band. Its size relative to the outer band is not checked.
Outer multiplier
Name shown on screen
Outer Band Width
Input name
InpOuterWidth
Default
2
Allowed range
0〜10
Description
0 hides the outer band. It can also be set smaller than the inner one.
Dots on closed bars only
Name shown on screen
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
true hides the dot on the latest bar. The AMA and bands are also shown on the forming bar.
8
Usage specifications
Dots can appear consecutively
A dot is placed on every bar where the conditions are met. It is not a mark for only the first 1 occurrence. No dot is placed on bars where the change equals the threshold.
Zero threshold
With n=1, deviation has a standard deviation of 0. Dot Factor=0 and Dot Threshold=0 also give a threshold of 0 for the corresponding method, so a dot is placed whenever AMA moves even slightly.
Start of display
Dots for AMA and points start from bar n+3, and dots for deviation from bar 2n+2 onward. The bands start from the later of bar n+3 and bar B.
Forming bar
By default, dots appear after the bar closes, while lines and bands change even during the bar. With false, dots can also appear and disappear.
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 trade orders. It does not guarantee profit or future price movement.
9
Troubleshooting and usage notes
There are few dots
Check the threshold, Dot Mode, Closed Bars Only and the required history.
The bands look reversed
The Inner and Outer multipliers are independent. To make them inner and outer as named, set the inner multiplier smaller.
It does not start after changing inputs
An input outside the allowed range is refused at startup. Check the English reason shown on the Experts tab of the Toolbox, not an explanation on the chart, and confirm by returning to the default values.
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
Dot formula
d=A[i]−A[i−1]. For points, T=Dot Points×point; for deviation, T=Dot Factor×population standard deviation (of the last n values of d). When |d|>T, a dot matching the sign is drawn at A[i].
Band formula
w=√(Σ(price[k]−current AMA)²/B). Inner and outer are each AMA±multiplier×w. The relation w²=population variance of price+(price average−AMA)² holds.
Scope of cross-check with the standard
Values have been cross-checked against the MT5 standard for AMA with Power=2 on the close with 10/2/30, 9/2/30 and 1/2/30, and on the open with 5/3/20. The dots, bands and other Power values are not the same as the standard.