MT5 indicators← Oscillator Side Averages 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

Oscillator Side Averages

Compares the difference between the short-term and long-term SMAs with separate average lines for the positive and negative sides.

Indicator name: Oscillator Side AveragesMetaTrader 5Shown in a separate window

The positive and negative sides update their averages on different bars

The average that updates depends on which side of 00Green updates on bars at or above 0 and holds on negative barsRed updates on bars below 0 and holds on positive bars
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Bars are short − longWhich side's average updates depends on whether the value is 0 or above, or below 0.

2

Green is the positive-side averageIt updates only on bars at or above 0, and holds the previous value on negative bars.

3

Red is the negative-side averageIt updates only on bars below 0, and holds the previous value on positive bars.

0 counts as positiveThe average is held on the opposite sideDefault bars = AO
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
Short SMA period
InpFastPeriod
5 → 3
Long SMA period
InpSlowPeriod
34 → 10
Side average period
InpAveragePeriod
38 → 5
Applied price
InpPrice
Median (high + low) ÷ 2 → Close

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 settingsInpFastPeriod = 5 / InpSlowPeriod = 34 / InpAveragePeriod = 38 / InpPrice = Median (high + low) ÷ 2
Oscillator Side Averages default settings
Default 5, 34, 38, median price. The purple bars are the SMA difference, and green and red are the average lines for the positive and negative sides respectively.
View the screen in detail at full size
Oscillator Side Averages default settings (full size)
Settings change exampleInpFastPeriod = 3 / InpSlowPeriod = 10 / InpAveragePeriod = 5 / InpPrice = Close
Oscillator Side Averages settings change example
Changed to 3, 10, 5 and close. Both the periods and the applied price are changed, so do not attribute the difference to just 1 item.
View the screen in detail at full size
Oscillator Side Averages 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. 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

Read the bars relative to 0

The bars are the price difference of the short SMA minus the long SMA.

Look at the average on the same side

Compare positive bars with the green average and negative bars with the red average.

Read the flat sections

When bars on the opposite side continue, the average line stays flat at its previous value.

3

What it measures

The average lines are not an average of the positive and negative values of the last N bars together; they are exponential averages updated only with the values that appear on that side.

Oscillator

Short SMA − long SMA of the selected price. The difference is in price units, not pips or percentages.

Positive-side average

Starts from the first value at or above 0, and after that updates exponentially only on bars at or above 0.

Negative-side average

Starts from the first value below 0, and after that updates exponentially only on bars below 0.

Relationship to the standard AO

With the default 5, 34 and median, the bar values use the same calculation as the standard Awesome Oscillator. The additional average lines and the single-color bars are specifications of this product.

4

Situations for reading the display

A positive bar is higher than the green line

Indicator
The positive difference of that bar is larger than the positive-side average.
Cross-check
Compare the bar and the green line on the same bar.
Check
Check the size of the difference in price units.
Caution
It is not a rate of price increase.

A negative bar is lower than the red line

Indicator
The negative difference is larger than the negative-side average.
Cross-check
Compare the bar and the red line on the same bar.
Check
Read the sign and the absolute value separately.
Caution
The negative-side average is not updated on every bar.

The line on one side is flat

Indicator
The value is held while the bars are on the opposite side.
Cross-check
Cross-check which side of 0 the bars are on.
Check
Check whether it is a hold by design.
Caution
Do not conclude that the feed has stopped from flatness alone.

The line on one side is not shown yet

Indicator
No value on that side has appeared yet.
Cross-check
Check the bars in the loaded history.
Check
Wait until the first value on that side.
Caution
Do not fill missing values with a line at 0.
5

Steps for checking the display

1

Look at the whole with the defaults

Check the purple bars, the 0 line, and the green and red average lines.

2

Compare with the line on the same side as the bar

Refer to green for the positive side and red for the negative side.

3

Check the average period

38 is the number that sets the smoothing coefficient shared by both sides. It is not the average of all of the last 38 bars.

4

Test setting differences separately

After viewing the example that changes Fast, Slow, the average period and the price at once, compare 1 item at a time.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Oscillator_Side_Averages.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 4 inputs. Change them on the Inputs tab of the properties window. The English display names are shown together with the input names in the code.

Short SMA period

Name shown on screen
Fast Period
Input name
InpFastPeriod
Default
5
Allowed range
Integer 1 to 500, less than Slow
Description
Number of bars for the shorter simple average.

Long SMA period

Name shown on screen
Slow Period
Input name
InpSlowPeriod
Default
34
Allowed range
Integer 2 to 500, greater than Fast
Description
Number of bars for the longer simple average.

Side average period

Name shown on screen
Side Average Period
Input name
InpAveragePeriod
Default
38
Allowed range
Integer 1 to 500
Description
Sets the coefficient 2/(period+1) of the exponential average on each side.

Applied price

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
The default median is (high+low)/2. Changing the price type changes both the bars and the average lines.
8

Usage specifications

Initial section

The bars start displaying at the Slow-th bar from the oldest. The positive-side and negative-side averages each start after their first applicable value appears.

0 and the forming bar

Exactly 0 goes to the positive side. Price changes on the current bar can switch the side, and the display also changes.

No notifications

There are no alerts or orders. It is not a product that reproduces the color switching of AO.

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

9

Troubleshooting and usage notes

The average on one side stays flat for a long time

It is held while values on the opposite side continue. Also check the latest bar and the price feed.

Differs from AO

Check whether it is Fast 5, Slow 34 and median. The average lines are an additional display that AO does not have.

Bars do not appear yet

Slow bars of history are needed. It cannot start with Fast ≥ Slow or with out-of-range values.

Values are very small

Because it is a price difference, the number of digits depends on the symbol's price units. Check the values in the Data Window.

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

Average update

Osc=SMA(Fast)−SMA(Slow). a=2/(Average+1). On the positive side U=a×Osc+(1−a)×U(previous); on the negative side D=a×Osc+(1−a)×D(previous). The first value on a side takes Osc as it is, and the opposite side is held.

Applied price

Median=(H+L)/2, Typical=(H+L+C)/3, Weighted=(H+L+2C)/4. SMA is the simple average over the specified number of bars.

Scope of comparison with the standard

Under the conditions compared with the standard AO, the default bar values match. This does not mean that the 2 additional lines, the colors, or the values after changing settings are identical to the standard AO.