MT5 indicators← Smoothed AO 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

Smoothed AO

Compares a short-term and a long-term average as a percentage or a price difference, further averages that value, and draws it as bars. The default is a percentage using SMMA, and it is not the standard AO itself.

Indicator name: Smoothed AOMetaTrader 5Separate window

The units of the value change depending on whether it is Percent or Difference

Compares short- and long-term averages as a % or as a differenceSmooths the resulting raw value with the chosen averageShows the smoothed value as bars and its rise or fall by colorThe default percentage is different from the price difference of the standard AO
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Default: PercentSmooths how many % the short-term average is away from the long-term average.

2

DifferenceSmooths the price difference of short-term average − long-term average.

3

Color shows the rise or fall after smoothingGreen means an increase from the previous bar, red a decrease. An equal value keeps the previous color.

Default is percentageColor shows the rise or fall after smoothing1-color display can also be selected
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
Calculation mode
InpMode
Percent (percentage) → Difference (price difference)
Fast average period
InpFastPeriod
5 → 8
Averaging method of the source
InpMAMethod
Smoothed (SMMA) → Simple (SMA)
Smoothing period
InpSmoothPeriod
7 → 2
Smoothing method
InpSmoothMethod
Smoothed (SMMA) → Simple (SMA)

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 settingsInpMode = Percent (percentage) / InpFastPeriod = 5 / InpMAMethod = Smoothed (SMMA) / InpSmoothPeriod = 7 / InpSmoothMethod = Smoothed (SMMA)
Smoothed AO default settings
Percent, SMMA 5/34, SMMA 7. The vertical axis is in %, and 0.0368 means 0.0368%.
View the screen in detail at full size
Smoothed AO default settings (full size)
Example of changed settingsInpMode = Difference (price difference) / InpFastPeriod = 8 / InpMAMethod = Simple (SMA) / InpSmoothPeriod = 2 / InpSmoothMethod = Simple (SMA)
Smoothed AO example of changed settings
Changed to Difference, SMA 8/34 and SMA 2. The vertical axis becomes a price difference, so the bar heights cannot be compared directly with the default image.
View the screen in detail at full size
Smoothed AO example of changed settings (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. The vertical axis of the separate window is adjusted automatically for each image, so do not compare values by on-screen height alone.

2

How to read it in 30 seconds

Unit

Percent is in %, Difference is a price difference.

Smoothing

How the value changes depends on the smoothing period and method.

Colors

Read the rise or fall from the previous value, not the position above or below 0.

3

What it measures

Do not confuse the default percentage based on SMMA with the standard AO, which is a price difference of SMAs.

Percent

The raw value is (fast average ÷ slow average − 1) × 100. If the slow average is 0, the raw value is set to 0.

Difference

The raw value is fast average − slow average. The unit is the difference in price itself.

Smoothing

An average with the Smoothing method and period is applied to the raw value. With a long period, the response to changes tends to lag.

Settings that give the standard AO formula

With Difference, MA Method=SMA, Fast 5/Slow 34, median price and Smoothing Period1, the formula is the same as the standard Awesome Oscillator. This is different from the default.

4

Situations for reading the display

A red bar is above 0

Indicator
The smoothed value is positive, but it has decreased from the previous bar.
Cross-check
Read the color and the position above or below 0 separately.
Check
Check the rise or fall after smoothing, not the raw value.
Caution
Red does not mean that the value is negative.

Changing the mode changed the values greatly

Indicator
The unit switched between percentage and price difference.
Cross-check
Check Mode and the digits on the vertical axis.
Check
Compare values that have the same unit and settings.
Caution
Comparison is not possible from the bar heights of auto-scaled images alone.
5

Steps for checking the display

1

Read with the default

Check the Percent display and the SMMA settings.

2

Distinguish raw values from displayed values

The bars are the values after smoothing.

3

Check the unit with the changed-settings example

Changing to Difference means the display is no longer in %.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Smoothed_AO.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 are 8 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Calculation method

Name shown on screen
Mode
Input name
InpMode
Default
Percent (percentage)
Allowed range
Percent / Difference
Description
Percentage or price difference.

Fast average period

Name shown on screen
Fast Period
Input name
InpFastPeriod
Default
5
Allowed range
1 to 999 bars, less than Slow
Description
The short-term average used as the source.

Slow average period

Name shown on screen
Slow Period
Input name
InpSlowPeriod
Default
34
Allowed range
2 to 1000 bars, larger than Fast
Description
The long-term average used as the source.

Averaging method of the source

Name shown on screen
MA Method
Input name
InpMAMethod
Default
Smoothed (SMMA)
Allowed range
SMA, EMA, SMMA, LWMA
Description
Uses the same method for the fast and slow averages.

Price used for calculation

Name shown on screen
Applied Price
Input name
InpPrice
Default
Median (high + low) ÷ 2
Allowed range
Close, open, high, low, median, typical, weighted close
Description
Uses the same price for the fast and slow averages.

Smoothing period

Name shown on screen
Smoothing Period
Input name
InpSmoothPeriod
Default
7
Allowed range
1–1000 bars
Description
1 means no smoothing. A period longer than Slow can also be set.

Smoothing method

Name shown on screen
Smoothing Method
Input name
InpSmoothMethod
Default
Smoothed (SMMA)
Allowed range
SMA, EMA, SMMA, LWMA
Description
The average applied to the raw percentage or price-difference value.

Bar coloring

Name shown on screen
Colours
Input name
InpColors
Default
Rising / falling (2 colors for rise and fall)
Allowed range
Rising / falling / One colour
Description
2 colors split by rise and fall; 1 color shows everything in DodgerBlue. The calculated values do not change.
8

Usage specifications

Forming bar and recalculation

While the latest bar's price is moving, the displayed values and colors can also change. They are recalculated when history is added or corrected or settings change. Permanent non-repainting is not guaranteed.

Conditions for comparison

Compare with the same symbol, timeframe, settings and loaded history. The display is not a forecast of future price movement.

Start of drawing

If the input method is EMA, the raw value starts from the 1st bar; otherwise from bar Slow. If smoothing is EMA, the bars are drawn from the same bar; otherwise Smoothing−1 bars later. The defaults are the raw value from the 34th bar and the bars from the 40th bar.

Flat prices

EMA and SMMA retain past values, so even when the price moves sideways the value approaches 0 gradually. It does not necessarily stop at 0 right away.

Display of the raw value

The value before smoothing is not drawn as a line. The bars show only the smoothed value. The window header shows the smoothed value and the raw value side by side.

Tiny values and color

Internal differences can remain even in small values that look like 0. The first bar is green; after that, equal values keep the previous color.

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 orders. It does not guarantee profit or future price movement.

9

Troubleshooting and usage notes

It is named AO but differs from the standard AO

The default is a calculation that smooths an SMMA ratio. For the conditions that give the standard AO formula, see Chapter 3.

The window name does not change after switching to 1 color

Colours changes only the color split. The window name does not show the color mode.

Nothing is shown after entering inputs

Check the allowed range of the inputs and the number of history bars. Outside the range, the indicator does not start, and the reason is shown in English in the Experts tab of the Toolbox. No explanation is shown on the chart.

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

F = short-term MA, S = long-term MA. For Percent, R = (F/S − 1) × 100 (R = 0 if S = 0); for Difference, R = F − S. Displayed Y = MA(Smoothing, R). The color compares Y with the previous Y.

Display

2 colors are SeaGreen / Tomato; 1 color is DodgerBlue. The percentage uses 4 decimal places, and the difference uses the symbol's decimal digits + 2. There are no notifications.