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.
Reflects the range and the deviation of price in a moving average and draws 1 line on the price chart.
The base is a simple average of closesAverages the closes of Period bars.
Adjusted by ATR and CCIThe amount of adjustment changes bar by bar according to the range and how far price is from the average.
Not a forecast of future pricesThe line does not run ahead; it is calculated from values up to that bar.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
Check the position relative to the price together with the slope of the line. Do not confuse the line with the price itself.
The amount of adjustment moves with the deviation from the average. After a sharp price move it can move far away.
Do not decide trades on line crossings alone; cross-check with highs and lows, support and resistance, and trading conditions.
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.
The simple average of the closes of the latest Period bars.
The True Range formed from each bar's high, low and previous close is simple-averaged over the same period.
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.
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.
First observe the positions of the price and the red line. This product does not display additional average lines.
The latest line moves with price updates. Read the most recent closed bar and the current bar separately.
After a sudden change following a sideways phase, the adjustment can become large. Do not predict from the shape of the line alone.
1 input changes 3 calculation periods. After changing it, check that there is enough history and how it looks.
| Included file | Purpose / location |
|---|---|
| TRI_Accelerated_MA.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.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. Place only 1 instance of the same product on 1 chart.
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.
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.
InpPeriodSections with fewer than Period bars are not displayed. By default, the first value is at the 50th bar from the oldest side.
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.
The line changes with the current bar's high, low and close. It is also recalculated when settings change or history is corrected.
A correction amount that differs bar by bar is added to the average. Do not expect the same smoothness as a regular moving average.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
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.
Check Period and the number of history bars. If out of range, it cannot be loaded. Also check the Experts log.
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.
This is because the periods of the 3 calculations change together. Compare before and after the change in the same display range.
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.
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.
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.
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.
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.