MT5 indicators← AC Stochastic State 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

AC Stochastic State Histogram

Shows with bars the bars where a state stored from AC and stochastic conditions switched, and shows the position of the close relative to the SMA and the relation of RSI to 50 as independent lines.

Indicator name: AC Stochastic State HistogramMetaTrader 5Separate window

How to read the display

Blue ±1: Regular / Orange ±0.7: AESBars only on switching bars; auxiliary lines are an independent display0
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Blue marks Regular changesA blue bar of +1 when the state changes to the upper condition, and −1 when it changes to the lower one. No bar appears on bars where the same state continues.

2

Orange is AES, hidden by defaultShows state changes based on the direction of AC and the position of the stochastic Main relative to the signal line with ±0.7.

3

Red and purple are independent auxiliary linesRed shows the relation of the close to the SMA, and the purple dotted line the relation of RSI to 50. They are not used as conditions for showing bars.

Record of conditions metMT5 onlyNot a trading instruction
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
Show the AES bars / Show AES
InpShowAES
false → true
Period of the close SMA / SMA Filter Period
InpSMAPeriod
200 → 50
RSI position auxiliary line / Show RSI Filter
InpShowRSI
false → true
Period of the close RSI / RSI Filter Period
InpRSIPeriod
45 → 14

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 settingsInpShowAES = false / InpSMAPeriod = 200 / InpShowRSI = false / InpRSIPeriod = 45
AC Stochastic State Histogram default settings
Default settings. Blue Regular bars and a red line at the SMA position. The red line is continuous, and the blue bars appear only on switch bars.
View the screen in detail at full size
AC Stochastic State Histogram default settings (full size)
Example of changed settingsInpShowAES = true / InpSMAPeriod = 50 / InpShowRSI = true / InpRSIPeriod = 14
AC Stochastic State Histogram example of changed settings
Example change: Show AES = true, SMA Filter Period = 50, Show RSI Filter = true, RSI Filter Period = 14. Orange AES bars and a purple RSI dotted line are added. Check places where lines overlap in the full-size view.
View the screen in detail at full size
AC Stochastic State Histogram example of changed settings (full size)

Published example: M1. This is an example to explain the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the included version has display settings for the brand text and QR code. The example with changed settings is not a set of recommended values. Details can be checked in the full-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the displayed range.

2

How to read it in 30 seconds

Blue marks Regular changes

A blue bar of +1 when the state changes to the upper condition, and −1 when it changes to the lower one. No bar appears on bars where the same state continues.

Orange is AES, hidden by default

Shows state changes based on the direction of AC and the position of the stochastic Main relative to the signal line with ±0.7.

Red and purple are independent auxiliary lines

Red shows the relation of the close to the SMA, and the purple dotted line the relation of RSI to 50. They are not used as conditions for showing bars.

3

What it measures

Shows with bars the bars where a state stored from AC and stochastic conditions switched, and shows the position of the close relative to the SMA and the relation of RSI to 50 as independent lines.

How the calculation works

Regular sets the state to +1 when AC>0, AC rose from the previous bar and Stochastic Main>50, and to −1 under the opposite conditions. AES is +0.7 when AC rose and Main>signal line, and −0.7 in the opposite case. Otherwise the previous bar's state is kept, and bars are drawn only on bars whose state differs from the preceding one. The initial state is 0. The stochastic is fixed at high/low 5 bars, Slowing 3 and signal SMA 3. The red line is +1 if close>SMA, and −1 if equal or below. The purple line is +1 if RSI>=50, and −1 if below.

Conditions and exceptions

Even though the item names contain Filter, the red and purple lines do not filter the bars. The state does not return to 0 just because a condition stops holding, and no bar appears when a condition in the same direction holds again. A bar appears on the first bar where the state is set from 0. The heights ±1 and ±0.7 are fixed values for telling them apart, not strength or price. There is no Closed Bars Only, and the bars and lines on the current bar also update. With every Show set to false, the separate window is empty.

4

Situations for reading the display

Separate the bars from the lines

Indicator
Blue ±1 and orange ±0.7 are state switches; red and purple are the position relations on each bar.
Cross-check
Look at the bars and auxiliary lines at the same point in time.
Check
Confirm that turning on the lines does not change the bar conditions.
Caution
The height is a fixed identification value, not strength.

Reading periods without bars

Indicator
Even when the conditions stop holding, the stored state is kept.
Cross-check
Compare the bar where the state last changed with the current conditions.
Check
If a condition in the same direction merely holds again, it is normal that there is no bar.
Caution
Do not interpret the absence of a bar as neutral or as an instruction not to trade.

Compare the displays separately

Indicator
The example change shows AES and RSI.
Cross-check
Toggle Show 1 type at a time on the same history.
Check
Tell apart the roles of overlapping lines.
Caution
The published example is not a recommended setting.
5

Steps for checking the display

1

Apply with the defaults

Load the history in MT5, and first apply only this product to the chart.

2

Check the role of the display

A blue bar of +1 when the state changes to the upper condition, and −1 when it changes to the lower one. No bar appears on bars where the same state continues.

3

Comparing settings

Put the default and the change example on separate charts, with the same symbol, timeframe and history.

4

Distinguish the forming bar

The bars and lines on the current bar change with price. There is no input to switch to closed bars only.

6

Installation and checking the package contents

Included filePurpose / location
TRI_AC_Stochastic_State_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. When comparing different settings, using separate charts makes checking easier.

4

Check the settings and display

First check with the default values. Changes and removal are done from the chart's 'Indicators List'.

Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.

7

Settings

There are 10 inputs. Change them in the Inputs tab of the properties window. The English item names and input names defined in the source are shown together.

Show the Regular bars

English item name
Show Regular
Input name
InpShowRegular
Default
true
Allowed range
true / false
Description
Default true. Draws blue ±1 on state switching bars.

Show the AES bars

English item name
Show AES
Input name
InpShowAES
Default
false
Allowed range
true / false
Description
Default false. Draws orange ±0.7 on state switching bars.

SMA position auxiliary line

English item name
Show SMA Filter
Input name
InpShowSMA
Default
true
Allowed range
true / false
Description
Default true. A red ±1 line. It does not change the bar conditions.

Period of the close SMA

English item name
SMA Filter Period
Input name
InpSMAPeriod
Default
200
Allowed range
Integer 1 to 1000
Description
Default 200. With period 1 the close equals the average, and the red line is −1. An input within the range is required even when hidden.

RSI position auxiliary line

English item name
Show RSI Filter
Input name
InpShowRSI
Default
false
Allowed range
true / false
Description
Default false. A purple ±1 dotted line. It does not change the bar conditions.

Close RSI period

English item name
RSI Filter Period
Input name
InpRSIPeriod
Default
45
Allowed range
Integer 1 to 1000
Description
Default 45. RSI 50 is on the +1 side. An input within the range is required even when hidden.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Displayed with true. Calculated values do not change.

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left / Bottom left / Bottom right / Top right
Description
The default is bottom left.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Negative values are treated as 0, and values above 4000 are treated as 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Negative values are treated as 0, and values above 4000 are treated as 4000.
8

Usage specifications

Display only

It does not place, modify or close orders. There are no notifications or emails either.

Current bar and history

The bars and lines on the current bar are also updated. There is no Closed Bars Only. Corrections to the history or changes of the start position may change how the state and averages are initialized.

Mark positions

Bars and lines are shown above/below 0 in a separate window. The vertical axis is fixed at −1.2 to +1.2 and differs from the main chart's price scale. The red and purple lines may overlap.

Brand display

Shows Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. When the same medium is used on the same chart, the display is shared. There is no account authentication.

For on-screen display only

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

No bars / the separate window is blank

Even though the item names contain Filter, the red and purple lines do not filter the bars. The state does not return to 0 just because a condition stops holding, and no bar appears when a condition in the same direction holds again. A bar appears on the first bar where the state is set from 0. The heights ±1 and ±0.7 are fixed values for telling them apart, not strength or price. There is no Closed Bars Only, and the bars and lines on the current bar also update. With every Show set to false, the separate window is empty.

The input is not accepted

Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.

The display differs from similar indicators

Regular sets the state to +1 when AC>0, AC rose from the previous bar and Stochastic Main>50, and to −1 under the opposite conditions. AES is +0.7 when AC rose and Main>signal line, and −0.7 in the opposite case. Otherwise the previous bar's state is kept, and bars are drawn only on bars whose state differs from the preceding one. The initial state is 0. The stochastic is fixed at high/low 5 bars, Slowing 3 and signal SMA 3. The red line is +1 if close>SMA, and −1 if equal or below. The purple line is +1 if RSI>=50, and −1 if below.

Displays overlap

Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.

Marks are cut off at the edge of the screen

Some marks near the edge of the published image are partly cut off. On a real chart, adjust the display range of the vertical axis and the horizontal position. The full-size view is for checking details and does not restore information outside the image.

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

Calculation and reference range

Regular sets the state to +1 when AC>0, AC rose from the previous bar and Stochastic Main>50, and to −1 under the opposite conditions. AES is +0.7 when AC rose and Main>signal line, and −0.7 in the opposite case. Otherwise the previous bar's state is kept, and bars are drawn only on bars whose state differs from the preceding one. The initial state is 0. The stochastic is fixed at high/low 5 bars, Slowing 3 and signal SMA 3. The red line is +1 if close>SMA, and −1 if equal or below. The purple line is +1 if RSI>=50, and −1 if below.

Initial values and exceptions

Even though the item names contain Filter, the red and purple lines do not filter the bars. The state does not return to 0 just because a condition stops holding, and no bar appears when a condition in the same direction holds again. A bar appears on the first bar where the state is set from 0. The heights ±1 and ±0.7 are fixed values for telling them apart, not strength or price. There is no Closed Bars Only, and the bars and lines on the current bar also update. With every Show set to false, the separate window is empty.

Package contents and dependencies

Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.

Reservation on data display

The subwindow name and the Data Window items have not been verified. To see the values, check the items on an actual terminal.

Calculation start and smoothing

AO starts at the 34th bar, AC at the 38th bar, and state detection at the 39th bar. The SMA line starts at bar SMA Period, and the RSI line at bar RSI Period+1. RSI starts from the average gain and loss over the first period, and after that updates with the Wilder formula. If the average loss is 0, it is 100 if there was a gain, and 50 if both are 0.

Stochastic

For each bar, the 5-bar highest high H and lowest low L are found, and Main=100×the sum of (close−L) over the last 3 bars÷the sum of (H−L) over the last 3 bars. If the denominator is 0, it is 100. Main has values from the 7th bar, and the signal SMA3 from the 9th bar.