Read the bars relative to 0
The bars are the price difference of the short SMA minus the long SMA.
Compares the difference between the short-term and long-term SMAs with separate average lines for the positive and negative sides.
Bars are short − longWhich side's average updates depends on whether the value is 0 or above, or below 0.
Green is the positive-side averageIt updates only on bars at or above 0, and holds the previous value on negative bars.
Red is the negative-side averageIt updates only on bars below 0, and holds the previous value on positive bars.
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. The vertical axis of the separate window is adjusted automatically for each image, so do not compare values by on-screen height alone.
The bars are the price difference of the short SMA minus the long SMA.
Compare positive bars with the green average and negative bars with the red average.
When bars on the opposite side continue, the average line stays flat at its previous value.
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.
Short SMA − long SMA of the selected price. The difference is in price units, not pips or percentages.
Starts from the first value at or above 0, and after that updates exponentially only on bars at or above 0.
Starts from the first value below 0, and after that updates exponentially only on bars below 0.
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.
Check the purple bars, the 0 line, and the green and red average lines.
Refer to green for the positive side and red for the negative side.
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.
After viewing the example that changes Fast, Slow, the average period and the price at once, compare 1 item at a time.
| Included file | Purpose / location |
|---|---|
| TRI_Oscillator_Side_Averages.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 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.
InpFastPeriodInpSlowPeriodInpAveragePeriodInpPriceThe 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.
Exactly 0 goes to the positive side. Price changes on the current bar can switch the side, and the display also changes.
There are no alerts or orders. It is not a product that reproduces the color switching of AO.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
This product shows calculation results through plot buffers and does not place trade orders. It does not guarantee profit or future price movement.
It is held while values on the opposite side continue. Also check the latest bar and the price feed.
Check whether it is Fast 5, Slow 34 and median. The average lines are an additional display that AO does not have.
Slow bars of history are needed. It cannot start with Fast ≥ Slow or with out-of-range values.
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.
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.
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.
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.