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

AO Color Histogram

Colors the difference between a fast and a slow average by its increase or decrease and by whether it is above or below 0. The default values use the same formula as the Awesome Oscillator. You can also choose the method, price and periods, and a setting that averages each average once more.

Indicator name: AO Color HistogramMetaTrader 5Separate window

Bar height is the average difference; color is the increase or decrease and the side of 0

Fast moving average − slow moving averageIncrease / decrease from the previous bar → color familyWith 4 colors, above 0 / 0 or below is also distinguishedThis coloring is separate from bullish and bearish candlesticks
Schematic diagram of how to read it. This is not an actual terminal screen.
1

HeightThe difference between the 2 moving averages. It is not converted to points.

2

Increase / decreaseIf the value is the same as on the previous bar, the earlier direction of increase or decrease is carried over.

3

Handling of 0With 4 colors, exactly 0 is also on the "0 or below" side.

Default uses the same formula as AO4 averaging methodsChoose 2 colors / 4 colors
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
Fast period
InpFastPeriod
5 → 13
Slow period
InpSlowPeriod
34 → 21
Averaging method
InpMethod
Simple (SMA) → Linear weighted (LWMA)
Price
InpPrice
Median (high + low) ÷ 2 → Weighted close (high + low + close × 2) ÷ 4
Averaging 2 times
InpDoubleAverage
false → true
Coloring
InpColors
4 colors (increase/decrease and side of 0) → 2 colors (increase/decrease)

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 / InpMethod = Simple (SMA) / InpPrice = Median (high + low) ÷ 2 / InpDoubleAverage = false / InpColors = 4 colors (increase/decrease and side of 0)
AO Color Histogram default settings
The separate window at the bottom is the product. The 4 colors show increase/decrease and whether it is above or below 0, which differs in meaning from the colors of the candles above.
View the screen in detail at full size
AO Color Histogram default settings (actual size)
Settings change exampleInpFastPeriod = 13 / InpSlowPeriod = 21 / InpMethod = Linear weighted (LWMA) / InpPrice = Weighted close (high + low + close × 2) ÷ 4 / InpDoubleAverage = true / InpColors = 2 colors (increase/decrease)
AO Color Histogram settings change example
Changed to 13/21, LWMA, weighted close, averaging 2 times and 2 colors. Colors are by increase or decrease regardless of whether the value is above or below 0.
View the screen in detail at full size
AO Color Histogram settings change example (actual 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

Reading the values

Positive if the fast average is above, negative if below.

Read the color

Shows whether the bar value rose or fell from the previous one.

Check the settings

Do not assume that calculations other than the default give the same values as the standard AO.

3

What it measures

A display that lets you read the direction of the average difference and its increase or decrease separately in one bar.

Default calculation

Median=(high+low)/2. SMA 5 bars−SMA 34 bars, the same formula as the standard Awesome Oscillator.

4-color mapping

Above 0: increase is SeaGreen, decrease is Tomato. 0 or below: increase is YellowGreen, decrease is DarkOrange.

2-color mapping

The side of 0 is not used for color; there are only SeaGreen for increases and Tomato for decreases.

Averaging 2 times

The fast and slow averages are each averaged once more with the same period and method before subtracting. It is not a setting that averages the difference series.

4

Situations for reading the display

Increase color while negative

Indicator
Even if the value is negative, moving closer to 0 than before is an increase.
Cross-check
Separate the sign from the difference with the previous bar.
Check
Check the height and the color separately.
Caution
An increase color does not guarantee that price will rise.

Only the color differs from the standard

Indicator
Tiny rounding differences can affect the increase/decrease and 0 decisions.
Cross-check
Check whether the value is near 0 or flat.
Check
Do not judge a large difference from the color alone.
Caution
Values being close does not mean all colors match.
5

Steps for checking the display

1

Look at the separate window

Read the histogram below, not the candlesticks.

2

Separate 0 from increase and decrease

Decide according to the 4-color table.

3

Compare the change example

If you change the method or the 2-times averaging, treat it as a setting separate from the standard AO.

6

Installation and checking the package contents

Included filePurpose / location
TRI_AO_Color_Histogram.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 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.

Fast period

Name shown on screen
Fast Period
Input name
InpFastPeriod
Default
5
Allowed range
1–999 bars, smaller than Slow
Description
Number of bars for the fast moving average.

Slow period

Name shown on screen
Slow Period
Input name
InpSlowPeriod
Default
34
Allowed range
2–1000 bars
Description
Number of bars for the slow moving average. A setting equal to Fast is not allowed.

Averaging method

Name shown on screen
MA Method
Input name
InpMethod
Default
Simple (SMA)
Allowed range
SMA / EMA / SMMA / LWMA
Description
Used for both fast and slow.

Price

Name shown on screen
Applied Price
Input name
InpPrice
Default
Median (high + low) ÷ 2
Allowed range
7 applied prices
Description
The default is the median.

Averaging 2 times

Name shown on screen
Average Twice
Input name
InpDoubleAverage
Default
false
Allowed range
true / false
Description
Each average is averaged once more with the same period and method.

Coloring

Name shown on screen
Colours
Input name
InpColors
Default
4 colors (increase/decrease and side of 0)
Allowed range
2 colors / 4 colors
Description
2 colors show increase/decrease; 4 colors show increase/decrease and the side of 0.
8

Usage specifications

Color for equal values

If the value is the same as the previous one, the previous increase/decrease direction is kept. At the start of drawing there is nothing to compare with, so it is treated as an increase.

Start of display

EMA starts from the 1st bar. Other methods start from bar Slow when applied 1 time, and from bar 2×Slow−1 when applied 2 times. The default is the 34th bar, and the published changed example is the 41st bar.

Notes near 0

Because of rounding, values very close to 0 may remain. Tiny changes in value or color do not indicate the strength of price movement.

Forming bar

The latest value and color change during the bar. It is also recalculated on changes in history or inputs. There is no notification function.

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

It does not start

Fast<Slow is required. Check the reason on the Experts tab and the input ranges.

Bars of the same color continue

With equal values, the previous direction of increase or decrease is carried over. Check the values including their digits.

It does not start after changing inputs

An input outside the allowed range is refused at startup. Check the English reason shown on the Experts tab of the Toolbox, not an explanation on the chart, and confirm by returning to the default values.

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

Color rules

V=fast average−slow average. V>previous V is an increase, V<previous V is a decrease, and equal values keep the direction. 4 colors use the non-positive colors for V≤0; 2 colors do not use the sign.

Scope of cross-check with the standard

The default values with 5/34, SMA, median and averaging 1 time have been cross-checked against the MT5 standard AO within tolerance. Rounding can split the sign of 0 or the increase/decrease decision, so colors can differ. This does not show full identity for other methods, periods, prices or averaging 2 times.