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.
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.
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.
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.
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.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
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.
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 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.
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.
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.
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.
Load the history in MT5, and first apply only this product to the chart.
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.
Put the default and the change example on separate charts, with the same symbol, timeframe and history.
The bars and lines on the current bar change with price. There is no input to switch to closed bars only.
| Included file | Purpose / location |
|---|---|
| TRI_AC_Stochastic_State_Histogram.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. When comparing different settings, using separate charts makes checking easier.
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.
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.
InpShowRegularInpShowAESInpShowSMAInpSMAPeriodInpShowRSIInpRSIPeriodInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYIt does not place, modify or close orders. There are no notifications or emails either.
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.
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.
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.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
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.
Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.
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.
Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.
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.
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.
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.
Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.
The subwindow name and the Data Window items have not been verified. To see the values, check the items on an actual terminal.
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.
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.