Height
Read the distance from 0 and the sign.
Draws the difference between short-term and long-term SMAs of the median price as bars and overlays its moving average as a gold line. If needed, crossings of the average line on closed bars and crossings of 0 can be notified.
Bar value: AOThe fast SMA of the median price minus the slow SMA.
Bar color: increase or decrease from the previous barGreen is an increase, red a decrease. If the value is the same, the previous color continues.
Gold line: AverageA line that averages AO itself. It is not a moving average of price.
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.
Read the distance from 0 and the sign.
Read whether it increased or decreased from the previous bar.
Compare the tip of the bar with the position of the gold line.
Even if AO is positive, it becomes red when it decreases; even if negative, it becomes green when it increases.
Median price=(high+low)÷2. AO is its fast SMA−slow SMA. The default 5/34 uses the same formula as the standard Awesome Oscillator.
One of SMA, EMA, SMMA or LWMA is applied to AO. This setup overlays an average line that the standard AO does not have.
SeaGreen for an increase, Tomato for a decrease. For an equal value, the previous color is kept, and the first value starts with green.
Handles bars where the sign of the difference from the average, or of AO relative to 0, becomes opposite. Bars with an equal value carry over the previous sign.
Tell apart the bars, the average line and the 0 line.
Check the difference when the AO periods and the averaging method and period are changed.
Average crossings and 0 crossings can be enabled separately.
| Included file | Purpose / location |
|---|---|
| TRI_AO_Average_Line.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 6 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpFastPeriodInpSlowPeriodInpAveragePeriodInpAverageMethodInpAlertAverageCrossInpAlertZeroCrossWhile 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.
Compare with the same symbol, timeframe, settings and loaded history. The display is not a forecast of future price movement.
AO starts from bar Slow. The average starts on the same bar with EMA, and with other methods Average−1 bars later. The defaults are AO from the 34th bar and the average from the 38th bar.
On the first price update of a new bar, the immediately preceding closed bar is judged. The time in the message is the start time of the bar where the crossing occurred. Times during market closures or feed interruptions are not guaranteed.
In the first calculation after attaching or changing settings, it only records and does not notify past crossings. Even if several bars close at once, it checks only the latest closed bar and does not notify past ones all together.
Merely touching the average or 0 and returning to the same side is not counted as a crossing. A bar that passes through an equal value to the opposite side is counted. Because the judgment uses exact internal values, small rounding differences also have an effect.
If both conditions are met on the same closed bar, each becomes a notification target. Notifications are in English and include the symbol, timeframe and bar time. They are a record of a crossing and do not indicate the direction of the next bar.
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 orders. It does not guarantee profit or future price movement.
Both of the 2 kinds are false by default. Crossings that occur only on the forming bar and past crossings at the time of attaching are not notification targets.
If Average Period is 1, the average overlaps AO, and no crossing with the average occurs.
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.
EMA starts from the first AO value; SMA, SMMA and LWMA start once the required number of bars is available. The AO colors and average line do not mean the display is identical to the standard AO.
The sign of AO−average, or of AO, is kept for each bar, and when it is exactly equal to 0, the previous sign is carried over. A change to the opposite non-zero sign is judged on closed bars.
The bars are SeaGreen/Tomato, the average line is Gold and the 0 line is Silver. Display rounding is the symbol's decimal places + 2 digits.