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

MA Slope Plus

Shows the change of a moving average as a value per 1 bar. An indicator in which you choose the method, the comparison interval and the scale, and tell the value ranges apart by 3 colors.

Indicator name: MA Slope PlusMetaTrader 5Separate window, histogram

Look at the direction from zero, the size of the bars and the color range

Change of the moving average per 1 bar0+threshold−thresholdThe dashed threshold lines are for explanation only. The indicator itself shows only the zero line.
Schematic diagram of how to read it. This is not an actual terminal screen.
1

DirectionAbove zero the average is rising; below zero it is falling.

2

SizeThe absolute value of a bar is the average change per 1 bar over the selected span.

3

ColorDivided into green, red and silver at ±Threshold. The colors are not signals that instruct a decision.

4 moving average methodsPrice / ATRExactly at the threshold is also silver
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
Moving average method / MA Method
InpMethod
Adaptive (AMA) → Simple (SMA)
Moving average period / MA Period (AMA: Efficiency Period)
InpPeriod
9 → 50
Number of bars to compare / Span (bars)
InpSpan
1 → 10
Value scale / Scale
InpScale
Price → ATR
Color threshold / Threshold (+/-)
InpThreshold
0 → 0.05

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 = Adaptive (AMA) / InpPeriod = 9 / InpSpan = 1 / InpScale = Price / InpThreshold = 0
MA Slope Plus default settings
Default example with AMA and Span 1. Small changes expressed in price units are drawn above and below zero.
View the screen in detail at full size
MA Slope Plus default settings (actual size)
Example with changed settingsInpMethod = Simple (SMA) / InpPeriod = 50 / InpSpan = 10 / InpScale = ATR / InpThreshold = 0.05
MA Slope Plus example with changed settings
An example with SMA, Span 10 and the ATR scale. Threshold is set to 0.05, and values near zero are shown in silver. The units differ from the default example, so bar heights alone are not compared directly.
View the screen in detail at full size
MA Slope Plus example with changed settings (actual size)

Example shown: 1-minute chart (M1). This is an example to explain the display. The example of changed settings is not a recommended value. Details can be checked in the full-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the display range.

2

How to read it in 30 seconds

First check zero

Read the direction of the moving average change from plus and minus. This product does not directly color bullish and bearish candlesticks.

Then check the scale

Price is in price units; ATR is a ratio to the recent average of the true range. It is neither a number of points nor an angle.

Colors are value ranges

Green is values above +Threshold, red is values below −Threshold, and silver is everything in between. Only when Threshold is 0 is silver limited to the value 0.

3

What it measures

It is the change of the average divided by the number of bars compared. It is not the visual angle seen when the chart is zoomed in or out.

4 methods

AMA changes the smoothing constant according to the efficiency of price change. SMA is a simple average, EMA is exponential smoothing, and SMMA is a smoothed moving average.

Meaning of Span

The difference between the current average and the average Span bars earlier is divided by Span. Increasing it gives the average change over a longer span, but it does not necessarily become smoother. With AMA and Span 1, the same update amount as the previous version is used.

ATR scale

The Price slope is divided by the simple average of the true range over ATR Period bars. It can be compared as a ratio to the recent range, but it does not necessarily have the same meaning for different symbols or settings. Bars where ATR is 0 are empty.

Threshold and units

Threshold changes only the color, not the value. When you change the scale, the unit of the threshold also changes. With Price, the same threshold means different things depending on the price level of the symbol.

4

Situations for reading the display

Changes that cross zero

Indicator
See which side of zero the bar is on.
Cross-check
Compare before and after with the same method, price and Span.
Check
Read that the direction of the average has changed.
Caution
Colors and zero crossings are not trading instructions.

Separating small changes

Indicator
Bars within Threshold become silver.
Cross-check
Check Threshold and Scale in the Inputs tab.
Check
Confirm that the silver sections also contain positive and negative values.
Caution
The threshold lines are not drawn on the chart.

Comparing settings

Indicator
Use separate charts and change the method or Span.
Cross-check
Check whether the scale is the same and whether the vertical axis values are the same.
Check
Read the shape of the change after aligning the conditions.
Caution
The vertical axis of each window changes automatically, so do not judge which is larger by visual height alone.
5

Steps for checking the display

1

Check with the defaults

Check the zero line and the bars in the separate window. The value of the latest bar changes while it is forming.

2

Choose the method and comparison interval

Check MA Method, MA Period, Applied Price and Span. AMA also uses Fast Period, Slow Period and Smoothing Power.

3

Choose the scale and colors

Select Scale, and for ATR check ATR Period. Specify Threshold in the units of the selected scale.

4

Read it as a value range

After reading the direction and size of the bars, check which range the color indicates. Do not treat the display as a forecast of future prices.

6

Installation and checking the package contents

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

Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.

7

Settings

There are 10 inputs. Change them in the Inputs tab of the properties window. The English item names and input names defined in the source are shown together.

Moving average method

English item name
MA Method
Input name
InpMethod
Default
Adaptive (AMA)
Allowed range
Adaptive (AMA) / Simple (SMA) / Exponential (EMA) / Smoothed (SMMA)
Description
Selects the method. The 3 AMA-related items are not used in the calculation of the other methods.

Moving average period

English item name
MA Period (AMA: Efficiency Period)
Input name
InpPeriod
Default
9
Allowed range
Integer 1–10000
Description
For AMA, the period used to calculate the efficiency ratio of price change; for the other methods, the averaging period.

AMA fast constant period

English item name
Fast Period (AMA)
Input name
InpFastPeriod
Default
2
Allowed range
Integer 1–10000
Description
Used to calculate the AMA smoothing constant. The range check is also performed with the other methods.

AMA slow constant period

English item name
Slow Period (AMA)
Input name
InpSlowPeriod
Default
30
Allowed range
Integer 1–10000
Description
Used to calculate the AMA smoothing constant. The range check is also performed with the other methods.

AMA smoothing power

English item name
Smoothing Power (AMA)
Input name
InpPower
Default
2
Allowed range
0.1〜10
Description
The exponent of the AMA smoothing constant. It is not shown in the window name, so check it in the Inputs tab.

Price used for calculation

English item name
Applied Price
Input name
InpPrice
Default
CLOSE
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Choose from close, open, high, low, or the high-low average, the high-low-close average, or the weighted price with the close counted 2 times.

Number of bars to compare

English item name
Span (bars)
Input name
InpSpan
Default
1
Allowed range
Integer 1–1000
Description
Converts the change from the moving average Span bars earlier into a value per 1 bar.

Value scale

English item name
Scale
Input name
InpScale
Default
Price
Allowed range
Price / ATR
Description
Price expresses the value in price units; ATR expresses it as a ratio to the simple average of the true range.

ATR period

English item name
ATR Period (Scale ATR)
Input name
InpAtrPeriod
Default
10
Allowed range
Integer 1–1000
Description
Used when Scale is ATR. The input range check is also performed with Price.

Color threshold

English item name
Threshold (+/-)
Input name
InpThreshold
Default
0
Allowed range
0〜100000
Description
Values outside ±Threshold are green or red; values inside and on the boundary are silver. The value itself is not changed. It does not appear in the window name, so check it in the Inputs tab.
8

Usage specifications

History needed to start drawing

With MA Period as N and Span as S, counting from the older side, the first value is at bar N+S for AMA, SMA and SMMA, and at bar S+1 for EMA. If Scale is ATR, ATR Period bars must also be available. Nothing is shown when ATR is 0.

Latest bar and history

The latest bar changes while it is forming. AMA, EMA and SMMA carry over the initial value from the older side, so if the start of the loaded history changes, the values may be affected.

Default values and the older version

With the default inputs, the values are the same as Adaptive MA Slope. The colors and drawing style differ from the older version, and results with a changed method, price, Span or scale are not necessarily the same.

No notifications

It only displays colors and a zero line. There are no arrow, sound, pop-up notification or automatic order functions.

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

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

Bars are not displayed

Check that the number of history bars covers the set period and Span. Nothing is displayed either when the average true range is 0 with Scale ATR.

Loading is refused

Set all inputs within the allowed range, including unused items. A message starting with "MA Slope Plus:" appears in the Experts log.

Silver but not zero

When Threshold is greater than 0, values from −Threshold to +Threshold inclusive are silver. Values exactly on the boundary are also silver.

The settings cannot be seen from the window name

Smoothing Power and Threshold are not included in the name. Check them in the Inputs tab. Do not use the DataWindow to check the settings.

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

Slope and AMA calculation

In general, it is (current average − average Span bars earlier) ÷ Span. AMA with Span 1 directly uses the update amount smoothing constant × (current applied price − previous average). For the old section shorter than MA Period, AMA uses the price as the initial value; after that it calculates the constant from the efficiency ratio.

Initial value of the average

SMA is calculated from the bar where an average over the full period can be obtained. EMA uses the oldest price as the initial value and updates with the factor 2/(N+1). SMMA uses the simple average over the period as the initial value and then updates with (previous average×(N−1)+current price)÷N.

Price and true range

Median=(high+low)/2, Typical=(high+low+close)/3, Weighted=(high+low+close×2)/4. The true range is high−low on the first bar, and after that max(high, previous close)−min(low, previous close).

Display digits and scope of use

Price is shown with the symbol's display digits plus 2, and ATR with 4 decimal places. The rounding on screen differs from the internal calculated values. Calculation load with large periods, and operation with every broker and every history, are not guaranteed.