Do not judge by color alone
Green and red show the relationship between the total and the set threshold. Gray bars can also be positive or negative, and bars with a total of 0 are not drawn.
Read separately the bars that sum the directions of 5 kinds of calculation and the line for the state carried forward after the conditions are met.
Bar height and colorThe total ranges from −5 to +5. By default +5 is green, −5 is red, and other nonzero values are gray.
Gold lineIt has 3 states: +2 / 0 / −2. Even when the bar is gray, the previous state can be carried forward.
The latest bar changesThe bar and line change with the forming price. Distinguish them from the record after the bar closes.
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.
Green and red show the relationship between the total and the set threshold. Gray bars can also be positive or negative, and bars with a total of 0 are not drawn.
±2 on the line is not a vote count. It is the state multiplied by 2 and drawn. Even when the gold line is 0, the bars can be positive or negative.
Match the symbol, timeframe and history start position being compared, and check whether it is a forming bar or a closed bar.
The 5 votes are calculation results made from the same price history. They are not the opinions of 5 independent people, nor probabilities of a future rise or fall.
The MA vote is +1 or −1; the remaining 4 votes are +1, 0 or −1. If the total is Threshold or more it is green, if it is −Threshold or less it is red, and otherwise it is gray (0 has no bar). Colored bars appear not only on the first 1 bar but on every bar where the condition continues.
It inherits the previous state, first judges clearing by RVI, and then sets the state by the current green or red bar. If clearing and setting coincide on the same bar, the final result is +2 or −2 after setting. It is not cleared merely because the bar is gray or there is no bar.
| Vote | Condition for +1 | Condition for −1 / 0 |
|---|---|---|
| LWMA | Fast LWMA of the close > Slow LWMA | −1 when Fast ≤ Slow. Not 0 even when equal. |
| CCI | CCI of the close > 0 | −1 when CCI < 0. 0 when equal. |
| Forecast | FO and T3 both positive, and FO > T3 | −1 when both are negative and FO < T3. Otherwise 0. |
| RVI | Main line and signal both positive, and main line > signal | −1 when both are negative and main line < signal. Otherwise 0. |
| ADX and DI | ADX and +DI rise from the previous bar, and both are greater than ADX Level | If not +1, −1 when ADX and −DI rise from the previous bar and both are greater than Level. Otherwise 0. |
The horizontal level lines are fixed at ±4. They do not move when Threshold is changed. With the default Threshold=5, bars with a total of ±4 are gray.
Load it in MT5 and load the history. By default, judgment for the bars and line starts from the 45th bar counted from the oldest side.
Check the positive or negative height and the color. 0 has no bar, and the ±4 level lines are fixed.
The gold line is +2, 0 or −2. It does not return just because the votes weaken; check the RVI clearing and whether it is set again on the same bar.
The latest bar changes with price updates. There is no input named Closed Bars Only. Even closed bars are recalculated if the history itself is corrected or added to.
| Included file | Purpose / location |
|---|---|
| TRI_Five_Vote_Combo_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 15 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpThresholdInpFastLwmaInpSlowLwmaInpCCIPeriodInpRVIPeriodInpADXPeriodInpADXLevelInpForecastPeriodInpT3PeriodInpT3FactorInpExitGapInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYDoes not place, modify or close orders. There are no notifications or emails. The English label Trade State is a calculated state, not an actual position.
Calculates every time from the oldest bar of the loaded history. The current bar changes, and if older history is added or corrected, this also affects the initial values and the chain of states.
The vertical axis is −5 to +5. Bars at ±5 reach the edge because of the upper and lower limits of the calculated value. Gold may be hard to see on a light background; adjust the color settings in the properties or the background.
Displays Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. There is no account authentication. The brand text is white or black depending on the background, but the bars and the gold state line are not subject to this automatic switching.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
No bar is drawn on bars with a total of 0. In the early section with insufficient history, the line is also hidden. After calculation starts, a gold line at 0 is also a valid state.
Threshold=5 colors a bar only when all 5 votes point the same way. Also watch out for settings that fix some votes to one side or to 0, such as Fast=Slow or CCI period 1.
Gray or a total of 0 alone does not clear it. Even after RVI clearing, if the same bar reaches the color threshold, the state is set again.
Check the range of each item. Enter finite values for decimal levels, coefficients and widths. Out-of-range values are refused at load and the reason is written to the log.
Check this product's calculation: CCI uses the close, ADX uses exponential smoothing, and T3 starts from an initial value of 0. Even with the same name, results change with differences in price, smoothing and start position.
It is a thin line separate from the bars. Open the full-size image and, if needed, adjust the terminal's color settings or background. Only the brand text changes color automatically to match the background.
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.
The 5 votes are added. LWMA is +1 only when Fast>Slow, and −1 when equal. CCI uses its sign; FO/T3 and RVI/signal are ±1 only when they have the same sign and the main line leads in that direction. ADX and the corresponding DI must rise from the previous bar and both must strictly exceed Level. The state starts at 0. In state +1, it becomes 0 if RVI<0 or signal−RVI>Exit Gap; in state −1, it becomes 0 if RVI>0 or RVI−signal>Exit Gap. After that it is set to +1 if total≥Threshold and to −1 if total≤−Threshold, and the state × 2 is drawn.
For each bar, the body C−O and the range H−L are multiplied by weights 1, 2, 2, 1 from the current bar back into the past. The sum of bodies ÷ the sum of ranges over RVI Period bars is the main line (if the denominator is 0, the numerator). The signal averages the main line over the 4 bars from the current one back into the past with weights 1, 2, 2, 1 and divides by 6. The main line starts from bar P+3 counted from the oldest side, and the signal from bar P+6 onward.
Taking the L closes in oldest-first order as k=1 to L, WT=6Σ[(k−(L+1)/3)×Close(k)]/[L(L+1)]. This is the value at the current end of the linear regression. FO=100×(current close−WT)/WT. When WT=0, FO=0. It does not mean forecasting performance or future prices.
n=1+0.5×(T3 Period−1), w=2/(n+1). FO is exponentially smoothed in sequence through e1 to e6, all starting from 0. With b=T3 Volume Factor, T3=−b³e6+3(b²+b³)e5−3(2b²+b+b³)e4+(1+3b+b³+3b²)e3. The first 30 bars from the start of FO are not used for the bar judgment.
With the oldest bar as bar 0, display starts at max(Fast−1,Slow−1,CCI−1,RVI Period+5,Forecast Period+29,1). The default is bar 44 = the 45th bar. It is not a method that waits for ADX Period. A bar value of 0 is an empty value; a state line of 0 is a valid value. The scale of −5 to +5 and the ±4 level lines are fixed.
The ZIP contains only 1 item, the MT5 indicator itself, and the manual is opened from the product page on the site. No external indicators, DLLs, account authentication or license files are needed.