Adaptive MA Slope
Shows how much a moving average, whose tracking coefficient changes with how price movement progresses, moved in 1 bar. The size is affected by the coefficient and by the distance between the close and the previous average. The values are in the same units as the price.
Adjust the coefficient with the efficiency ratio → distance between price and previous average → change in the average
Above or below 0Shows whether the internal moving average moved up or down on that bar. It is not the rise or fall of the price itself.
Distance from 0The movement of the average per 1 bar. 0.00010 means the average moved by 0.00010. The size is determined by both the tracking coefficient and the distance between the close and the previous average.
Stuck at 0The internal moving average is barely moving. Whether the price is moving back and forth or the tracking is slow cannot be determined from this value alone.
MT5 display and examples of changed settings
Only the price chart and this product are shown. Compare the default settings and the example of changed settings with the same symbol, timeframe and display range.
View the screen in detail at full size
View the screen in detail at full size
Example shown: synthetic data, 1-minute timeframe (M1). This is not the price movement of an actual symbol. The changed settings are an example to show the difference, not recommended values. You can enlarge it from "View the screen at full size".
How to read it in 30 seconds
What it measures
Measures the change per 1 bar of an average adjusted by the efficiency ratio
It finds the ratio of how far the price advanced net over the period (the difference between the start and end points) divided by the total of the up-and-down movement during that time. A ratio closer to 1 means the price moved steadily in one direction; a ratio closer to 0 means there was a lot of back-and-forth. This ratio changes the tracking coefficient. With the usual settings, where the fast period is smaller than the slow period, a larger ratio means faster tracking. If the two periods are the same, efficiency does not change the coefficient, and if the order of the periods is reversed, the relationship is reversed too. A reversed order can also be entered. The displayed value is the difference between the current and previous values of that moving average, that is, the change per 1 bar.
Above or below 0
Shows whether the internal moving average moved up or down on that bar. It is not the rise or fall of the price itself.
Distance from 0
The movement of the average per 1 bar. 0.00010 means the average moved by 0.00010. The size is determined by both the tracking coefficient and the distance between the close and the previous average.
Stuck at 0
The internal moving average is barely moving. Whether the price is moving back and forth or the tracking is slow cannot be determined from this value alone.
When to use it in decisions
Read in the order "indicator → confirm with price → consider → conditions that do not apply". This is not a trading instruction; it is a way to organize the material for your decisions.
Crossed 0 and turned back
- Indicator
- When the value crosses 0, it shows that the direction of the internal moving average changed on that bar.
- Price
- Check on the price side as well whether higher highs and higher lows, or lower highs and lower lows, have changed.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not use a crossing of 0 alone as a trading signal.
Far from 0
- Indicator
- The movement of the internal average per 1 bar is large. Not only the coefficient but also the distance between the price and the previous average has an effect, so it does not necessarily mean a one-directional market.
- Price
- Check the size of the price's rise or fall and whether it has retraced afterward.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not decide from a large value alone that the direction will continue.
Moving up and down slightly near 0
- Indicator
- The change in the internal average is small. This can be because the coefficient is small or because the price is close to the previous average.
- Price
- Check whether the price is moving back and forth in the same band.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not decide that a large move will come next just because the value is near 0.
The price moved, but the value stays near 0
- Indicator
- The change in the internal average remains small. Consider the coefficient from efficiency and the distance from the price separately, and do not conclude from this line alone that the price is moving back and forth.
- Price
- Look separately at the price's swing range and the net difference from the start point to the end point.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not compare the size of values between symbols with different price units.
Actual decision steps
Choose the symbol and timeframe
Choose the symbol and timeframe, and confirm that at least as many bars of history as the period are displayed.
Read the position relative to the reference
Using the dotted line at 0 as the reference, read whether the line is above or below it, and whether it is far from it or stuck to it.
Cross-check against the price evidence
Check the same situation on the price chart as well, and see whether it is consistent with the movement of the highs and lows.
Decide how to treat the current bar
On the current bar, the value changes as the close updates. Decide in advance whether to judge only on closed bars or to wait for the bar to close.
What to decide before entering
This product does not place or close orders. If you trade, decide your reasons, acceptable loss and exit conditions separately, and do not leave them to the indicator alone.
What to check while holding a position
Give priority to your plan made in advance and to the price movement. Do not postpone a stop-loss or exit just because the indicator moves up or down.
Installation and checking the package contents
| Included file | Location and purpose |
|---|---|
| TRI_Adaptive_MA_Slope.ex5 | The indicator itself for MetaTrader 5. Place it in MQL5/Indicators. |
| TRI_Adaptive_MA_Slope_Manual.html | The manual for this product. Open it in a browser. |
Extract the ZIP first. MT5 only. This product does not require placing a license file or account authentication. Use the files without renaming them.
Open the data folder
In MT5, select "File → Open Data Folder".
Place the indicator file
Place the included TRI_Adaptive_MA_Slope.ex5 in MQL5/Indicators.
Place it on a chart
Refresh the Navigator or restart MT5, and apply this product to a chart of the symbol and timeframe you want.
Check the settings and display
Check with the default settings first. To change them, open this product's properties from the Indicators List. For the required number of history bars and where it is displayed, see Chapters 7 and 8.
To remove it, select this product in the chart's Indicators List and delete it.
Settings
There are 4 calculation inputs. Open the properties from the Indicators List and change them there.
Efficiency period
- Input name
- InpPeriod
- Default
- 9
- Allowed range
- An integer from 1 to 10000. Out of range, the indicator cannot be applied.
- Description
- The number of bars over which the net advance and the total up-and-down movement are measured. A larger value judges over a longer section, and the line becomes smoother.
Fast period
- Input name
- InpFastPeriod
- Default
- 2
- Allowed range
- An integer from 1 to 10000. Out of range, the indicator cannot be applied.
- Description
- Determines the coefficient when the efficiency ratio is close to 1. The smaller it is, the larger the coefficient. The usual description of the "fast side" assumes settings where this period is smaller than the slow period.
Slow period
- Input name
- InpSlowPeriod
- Default
- 30
- Allowed range
- An integer from 1 to 10000. Out of range, the indicator cannot be applied.
- Description
- Determines the coefficient when the efficiency ratio is close to 0. The larger it is, the smaller the coefficient. The defaults are 2 for the fast side and 30 for the slow side. If they are the same, efficiency causes no change; if the order is reversed, the tracking relationship is reversed too.
Coefficient exponent
- Input name
- InpPower
- Default
- 2.0
- Allowed range
- 0.1 to 10.0. Out of range, the indicator cannot be applied.
- Description
- The exponent applied to the coefficient. When the coefficient is greater than 0 and less than 1, a larger exponent makes the coefficient smaller.
Line color and width
- Default
- Blue (DodgerBlue) solid line, width 2. Only 1 line is shown in a subwindow, with a gray dotted line at 0.
- Where to change
- You can adjust it on the Colors tab of the properties.
- How to read
- Read whether the line is above or below the dotted line at 0 and how far from it.
Usage specifications
Where the display starts
Display starts from the bar after as many bars as the efficiency period have passed. With the default of 9, the first displayed bar is the 10th bar counted from the oldest bar. Bars before that have no value.
Internal initial value
The close of the bar 1 before the first displayed bar is used as the starting point of the internal moving average. If the history before the displayed range increases or decreases, this starting point changes, and the values may change.
Unit
Same unit as the price. For a currency pair quoted with 5 digits, 0.00010 corresponds to 1.0 pips. The unit changes with the symbol, so do not directly compare the size of values across symbols.
When price movement stops completely
If the total of up and down movements in the period is 0, the efficiency ratio is calculated as 0. The coefficient in that case is determined by the slow period and the coefficient's exponent.
Handling of the current bar
The current bar is recalculated each time the close moves. When the bar closes, its value is also fixed.
Additions and corrections to history
If the data provider adds or corrects past bars, recalculation runs from that range.
When removing
Select this product in the Indicators List and delete it. This product has no recovery procedure using a license file.
Troubleshooting and usage notes
The line is not displayed
The number of bars displayed may be smaller than the efficiency period. Make the period smaller, or load the history and then check. Also check that the subwindow has not been closed.
The line looks stuck at 0
The vertical scale of the subwindow is set automatically. The values may simply be small, so check the digits of the scale on the right edge.
The display does not change after changing the settings
If a value is outside the allowed range (period 1–10000, exponent 0.1–10.0), this product is not applied. Check whether it remains in the Indicators List.
The shape changed after changing the timeframe
The period is counted in bars. When the timeframe changes, the length of time covered changes even with the same period, so the shape changes.
The values differ from another terminal
If the history starts at a different position, the starting point of the internal moving average changes. Compare using history covering the same range.
Notes on use
- The indicator is information calculated from past and current prices. It does not guarantee profit, the future direction or the success of a trade.
- It does not place orders, close positions, send alerts or send email.
- Changing the period, symbol or timeframe also changes the values. Distinguish changes in the current bar from recalculation caused by added or corrected history.
Technical information and specification details
Calculation approach and display specifications
It holds 1 adaptive moving average internally and shows only its change per 1 bar. The tracking speed is determined from the ratio of the net advance within the period divided by the total up-and-down movement. The larger the ratio, the closer the coefficient is to the one derived from the fast input; the smaller, the closer to the one from the slow input. That coefficient is raised to the exponent. Only when the fast period is smaller than the slow period does a larger ratio mean faster tracking. The displayed value is also affected by the distance between the close and the previous average. It uses 1 buffer for drawing and 1 internal buffer for calculation. It does not use other indicators, external libraries, communication or order functions.
| Item | Content |
|---|---|
| Version | 1.00 |
| Platform | MetaTrader 5 |
| Display | 1 blue line in a subwindow, gray dotted line at 0 |
| Unit | Same units as the price (price difference) |
| Copyright notice | Trilogy Inc. |
Status of the general reading
The situations and steps on this page are examples of linking calculated values to observation of the price. They do not guarantee the future direction, full compatibility, non-repainting or a light calculation load.