MT5 indicators← Accelerated MA 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

Accelerated MA

Reflects the range and the deviation of price in a moving average and draws 1 line on the price chart.

Indicator name: Accelerated MAMetaTrader 5Main chart

A line that adds "range × deviation" to the average

SMA + ATR × CCI ÷ 100Gray: schematic of the average / Red: adjusted line
Schematic diagram of how to read it. This is not an actual terminal screen.
1

The base is a simple average of closesAverages the closes of Period bars.

2

Adjusted by ATR and CCIThe amount of adjustment changes bar by bar according to the range and how far price is from the average.

3

Not a forecast of future pricesThe line does not run ahead; it is calculated from values up to that bar.

SMA + ATR × CCI ÷ 1001 period setting1 red line
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
Common calculation period
InpPeriod
50 → 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 settingsInpPeriod = 50
Accelerated MA default settings
Default Period 50. A red line made by adding a correction based on the range and the deviation to the average of closes.
View the screen in detail at full size
Accelerated MA default settings (full size)
Settings change exampleInpPeriod = 20
Accelerated MA settings change example
Changed to Period 20. An example in which the calculation periods of SMA, ATR and CCI are all shortened at once.
View the screen in detail at full size
Accelerated MA 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.

2

How to read it in 30 seconds

Look at the line's direction and position

Check the position relative to the price together with the slope of the line. Do not confuse the line with the price itself.

Look at how far it moves away

The amount of adjustment moves with the deviation from the average. After a sharp price move it can move far away.

Give priority to price levels

Do not decide trades on line crossings alone; cross-check with highs and lows, support and resistance, and trading conditions.

3

What it measures

Adds to the simple average an adjustment obtained by multiplying the size of the range (ATR) by the deviation from the average (CCI). It is neither a fixed-width parallel shift nor a shift into the future.

Base SMA

The simple average of the closes of the latest Period bars.

ATR

The True Range formed from each bar's high, low and previous close is simple-averaged over the same period.

CCI of closes

Normalizes the difference between the close and the SMA by dividing it by the mean deviation. If all closes are equal, or the mean deviation is 0, CCI is set to 0.

Adjusted line

SMA + ATR × CCI ÷ 100. The direction of the adjustment is the direction of the close's deviation from the average. The line can also go beyond the close.

4

When to use it in decisions

Price and line point upward

Indicator
The red line turns upward.
Price
See whether the price highs and lows are also rising.
Consideration
Use it as supplementary material when considering whether the upward direction continues.
Exclusion condition
Do not predict a rise from the steep angle of the line alone.

Price and line point downward

Indicator
The red line turns downward.
Price
Look at the relationship between the price decline and price levels.
Consideration
Check whether the downside continues and recheck position conditions.
Exclusion condition
Even if the price reverses, the line may move with a delay because of the period.

The line jumps after a sideways phase

Indicator
The line suddenly moves away from the average.
Price
See whether a large bar has occurred after the sideways phase.
Consideration
Read it as a state in which the adjustment has grown, and wait for the price to settle.
Exclusion condition
Do not assume that a protruding line is a target to be reached or a stop-loss price.

Price crosses the line back and forth

Indicator
Crossings between the price and the line become frequent.
Price
Look at the range width and the recent price range.
Consideration
Consider staying out or narrowing the conditions.
Exclusion condition
Trading at every crossing can get you caught in the back-and-forth.
5

Actual decision steps

1

Check with Period 50

First observe the positions of the price and the red line. This product does not display additional average lines.

2

Also check after the bar has closed

The latest line moves with price updates. Read the most recent closed bar and the current bar separately.

3

Distinguish sharp adjustments

After a sudden change following a sideways phase, the adjustment can become large. Do not predict from the shape of the line alone.

4

Change Period if needed

1 input changes 3 calculation periods. After changing it, check that there is enough history and how it looks.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Accelerated_MA.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 is 1 input. Change it on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Common calculation period

Name shown on screen
Period
Input name
InpPeriod
Default
50
Allowed range
Integer 2 to 1000
Description
Number of bars used by SMA, ATR and CCI. Default 50, change example 20. The required history is also this number of bars.
8

Usage specifications

Required bars

Sections with fewer than Period bars are not displayed. By default, the first value is at the 50th bar from the oldest side.

Large deviation

CCI can exceed ±100, and the line can move many times the ATR away from the SMA. Do not use the line as upper or lower price limits or as a fixed stop.

Forming bar

The line changes with the current bar's high, low and close. It is also recalculated when settings change or history is corrected.

Difference from a simple average

A correction amount that differs bar by bar is added to the average. Do not expect the same smoothness as a regular moving average.

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

Calculated values are stored in buffers and shown as lines and bars. It does not place trade orders or issue alerts. It does not guarantee profit or market direction.

9

Troubleshooting and usage notes

No lines appear

Check Period and the number of history bars. If out of range, it cannot be loaded. Also check the Experts log.

The line moved far away

When the price changes sharply after narrow movement, the adjustment becomes large because of its relationship to the mean deviation. First look at the actual price as well.

Changing the period changes the shape greatly

This is because the periods of the 3 calculations change together. Compare before and after the change in the same display range.

Lines and candles overlap

Adjust the zoom and the chart's vertical axis, and check the values in the Data Window. The larger the period and the history, the greater the amount of calculation.

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

Formula

SMA = average of the closes of the latest N bars. TR = max(high, previous close) − min(low, previous close). TR of the first bar = high − low. ATR is the simple average of the TR of the latest N bars.

CCI and equal-value windows

MD = average of |each close − SMA| over the latest N bars. CCI = (current close − SMA) / (0.015 × MD). If all N closes are equal or MD = 0, CCI = 0. Final value = SMA + ATR × CCI / 100.

Display and updates

The line's price is stored in display buffer 0. The first N−1 bars are EMPTY_VALUE. The latest bar is recalculated, and on a new bar the update starts from the previous latest bar. When the history is reinitialized, everything is recalculated.

Settings and external dependencies

The calculation uses the high, low and close of the same chart. It does not use data from other symbols or timeframes, or external files.