MT5 indicators← Five Vote Combo 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

Five Vote Combo Histogram

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.

Indicator name: Five Vote Combo HistogramMetaTrader 5Separate window

Bars are the current total; the gold line is the carried-forward state

Sum the 5 votes → bar height and colorLWMA / CCI / FO and T3 / RVI / ADX and DI+50−5State line: set by threshold → held / cleared by RVI
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Bar height and colorThe total ranges from −5 to +5. By default +5 is green, −5 is red, and other nonzero values are gray.

2

Gold lineIt has 3 states: +2 / 0 / −2. Even when the bar is gray, the previous state can be carried forward.

3

The latest bar changesThe bar and line change with the forming price. Distinguish them from the record after the bar closes.

Signed total of 5 votesMT5, display onlyNot a probability or 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
Threshold for color and state setting / Threshold (1 to 5)
InpThreshold
5 → 4

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 settingsInpThreshold = 5
Five Vote Combo Histogram default settings
Default Threshold=5. Green and red are bars where the total reached +5 or −5. Read the gray bars and the gold state line separately. Bars at ±5 reach the edge of the fixed scale.
View the screen in detail at full size
Five Vote Combo Histogram default settings (full size)
Settings change exampleInpThreshold = 4
Five Vote Combo Histogram settings change example
Only Threshold is changed from 5 to 4. The bar totals are the same, but ±4 is also colored green or red, and the points where the state line is set also change. Other inputs such as the periods stay at their defaults.
View the screen in detail at full size
Five Vote Combo Histogram settings change example (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

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.

Distinguish the bars from the line

±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 bars and settings

Match the symbol, timeframe and history start position being compared, and check whether it is a forming bar or a closed bar.

3

What it measures

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.

Total and color

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.

State update order

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.

VoteCondition for +1Condition for −1 / 0
LWMAFast LWMA of the close > Slow LWMA−1 when Fast ≤ Slow. Not 0 even when equal.
CCICCI of the close > 0−1 when CCI < 0. 0 when equal.
ForecastFO and T3 both positive, and FO > T3−1 when both are negative and FO < T3. Otherwise 0.
RVIMain line and signal both positive, and main line > signal−1 when both are negative and main line < signal. Otherwise 0.
ADX and DIADX and +DI rise from the previous bar, and both are greater than ADX LevelIf not +1, −1 when ADX and −DI rise from the previous bar and both are greater than Level. Otherwise 0.
The ±4 level lines are not the color threshold.

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.

4

Situations for reading the display

There are green or red bars

Indicator
The current total has reached the positive or negative threshold.
Cross-check
Check the price, timeframe and Threshold for the same bar.
Check
Read it as the relationship between the total and the setting. Threshold=5 means all 5 votes point the same way; 4 or less is a total that includes votes that cancel out.
Caution
Do not reinterpret a strong color as a win rate, profit or order recommendation.

The gold line remains even when gray

Indicator
This is the case where the previous state continues even without a new threshold being reached.
Cross-check
Check the preceding green or red bar and the RVI clearing conditions after it.
Check
Do not confuse the state line with the current total or with positions in a real account.
Caution
The line does not read positions, balances or fills.

The gold line returns to 0

Indicator
This is the case where clearing by the opposite RVI sign or by the distance from the signal remains in the final output.
Cross-check
Also check whether it was set again on the same bar.
Check
Read it as a calculated record of the exit condition.
Caution
It is not a function that closes orders, cuts losses or takes profit.

Compare thresholds 5 and 4

Indicator
The colored bars and the points where the state line is set change.
Cross-check
Keep the other inputs, symbol, timeframe and history the same.
Check
The threshold does not change the vote formulas; it is an input that changes the color and the state setting.
Caution
The settings change examples in this manual are not recommended settings or performance comparisons.
5

Steps for checking the display

1

Apply with the defaults

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.

2

Read the bar total and threshold

Check the positive or negative height and the color. 0 has no bar, and the ±4 level lines are fixed.

3

Read the line state separately

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.

4

Distinguish the forming 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.

6

Installation and checking the package contents

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

Threshold for color and state setting

English item name
Threshold (1 to 5)
Input name
InpThreshold
Default
5
Allowed range
Integer 1 to 5
Description
Default 5. Green when the total is at or above this value, red when at or below its negative. It is also used to set the state. The ±4 horizontal level lines do not change.

Fast LWMA period

English item name
Fast LWMA Period
Input name
InpFastLwma
Default
5
Allowed range
Integer 1 to 500
Description
Default 5. Linear weighted moving average of the close. +1 if Fast is greater than Slow, otherwise (including equal) −1.

Slow LWMA period

English item name
Slow LWMA Period
Input name
InpSlowLwma
Default
20
Allowed range
Integer 1 to 500
Description
Default 20. It is not restricted to a period larger than Fast. With the same period, the MA vote is always −1.

CCI period

English item name
CCI Period
Input name
InpCCIPeriod
Default
5
Allowed range
Integer 1 to 500
Description
Default 5. 1 vote is decided by the sign of the CCI of the close. If the mean deviation is 0, CCI=0. With period 1, this vote is 0.

RVI summation period

English item name
RVI Period
Input name
InpRVIPeriod
Default
1
Allowed range
Integer 1 to 500
Description
Default 1. The body and range of 4 bars are weighted 1, 2, 2, 1, and the ratio of the sums over this period is used. Even with period 1, it does not read only 1 bar.

ADX smoothing period

English item name
ADX Period
Input name
InpADXPeriod
Default
14
Allowed range
Integer 1 to 500
Description
Default 14. +DI, −DI and ADX are exponentially smoothed with coefficient 2/(period+1). They start from 0 at the oldest bar.

Comparison level for ADX and DI

English item name
ADX Level
Input name
InpADXLevel
Default
20
Allowed range
0 to 100 (finite value)
Description
Default 20. It becomes a vote only when both ADX and the relevant DI are greater than this value and both have risen from the previous bar. Equal values do not qualify.

Forecast summation period

English item name
Forecast Period
Input name
InpForecastPeriod
Default
15
Allowed range
Integer 2 to 500
Description
Default 15. Calculates the value at the current end of the linear regression of the close and its relative difference from the close. It does not read future prices.

T3 smoothing period

English item name
T3 Period
Input name
InpT3Period
Default
3
Allowed range
Integer 1 to 100
Description
Default 3. Internally converted to 1+0.5×(period−1) and used for 6 stages of exponential smoothing and a combination of coefficients.

T3 factor

English item name
T3 Volume Factor
Input name
InpT3Factor
Default
0.7
Allowed range
0 to 1 (finite value)
Description
Default 0.7. The coefficient that combines the 6 smoothed values. It is not a multiplier of trade size or volume.

RVI clearing distance

English item name
RVI Exit Gap
Input name
InpExitGap
Default
0.2
Allowed range
0 to 10 (finite value)
Description
Default 0.2. In state +1, signal − main line, and in state −1, main line − signal, becomes a clearing candidate when it exceeds this value. Equal values do not clear, and clearing by the opposite RVI sign remains separately. It is neither points nor a price difference.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Shown when true. The vote calculation does 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
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.

Vertical margin

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

Usage specifications

For on-screen display only

Does 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.

Current bar and history

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.

Fixed scale and visibility

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.

Brand display

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.

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

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.

Everything is gray

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.

The line does not return to 0

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.

Inputs are not accepted

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.

Values differ from other indicators

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.

The gold line is hard to see

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.

10

Technical information and specification details

Vote judgment and state

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.

RVI formula

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.

Forecast Oscillator

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.

T3 formula and initial values

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.

Start position and scale

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.

Package contents and dependencies

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.