6 tables
39, 44, 45, 65, 91 and 99 Bars. The bar count in each table name is the number of prices used.
Selects 1 of 6 fixed coefficient tables and draws a line that sums past prices multiplied by weights. Each table has different weights, and the shape of the line is not determined by the number of bars used alone.
6 tables39, 44, 45, 65, 91 and 99 Bars. The bar count in each table name is the number of prices used.
The default is 45 BarsDrawing starts from bar 45. With 99 Bars, it starts from bar 99, and no line appears while there are not enough bars.
Different weights for each table44 and 45, and 91 and 99, also differ in their coefficients as a whole. They are not the same table extended by 1 bar at a time.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: M1. This is an example to explain the display. The example of changed settings is not a recommended value. Details can be checked in the full-size view. Also check the price scale of the main chart and the position of the candlesticks.
39, 44, 45, 65, 91 and 99 Bars. The bar count in each table name is the number of prices used.
Drawing starts from bar 45. With 99 Bars, it starts from bar 99, and no line appears while there are not enough bars.
44 and 45, and 91 and 99, also differ in their coefficients as a whole. They are not the same table extended by 1 bar at a time.
Draws the weighted sum of prices as it is, without renormalizing it by the sum of the coefficients or the number of bars.
Each coefficient of the selected table is multiplied in order from the latest price toward past prices, and the results are summed. It is not a method that carries over a smoothing state from the previous line value.
Because it includes negative coefficients, it can go above the highest or below the lowest of the prices used in the calculation. The range for comparison is the selected price, which is not always the same as the bars' highs and lows.
Because the sum of the coefficients is not renormalized to 1, the line differs slightly from the price depending on the table, even when the input price is constant.
For 44, 45, 91 and 99 Bars, where the coefficient on the latest price is negative, the line falls if only the latest price rises with the other bars fixed. For 39 and 65 Bars, it moves in the same direction.
| Display name | Bars used / drawing start | Sum of coefficients |
|---|---|---|
| 39 Bars | 39 bars / bar 39 | 0.9999999999 |
| 44 Bars | 44 bars / bar 44 | 1 (excluding rounding) |
| 45 Bars (default) | 45 bars / bar 45 | 1.00000003 |
| 65 Bars | 65 bars / bar 65 | 1.0000000001 |
| 91 Bars | 91 bars / bar 91 | 1.0000000004 |
| 99 Bars | 99 bars / bar 99 | 0.99999999 |
First, load the needed history with the defaults, and check the price bars and the orange line.
Cross-check the settings section of this manual against the Inputs tab of the properties. All inputs changed in the changed example are shown in the comparison box.
Align the timeframe and the display range, and compare the shape of the line. Read differences in shape as differences in inputs and calculation.
| Included file | Purpose / location |
|---|---|
| TRI_Fixed_Weight_Filter_Line.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. Place only 1 instance of the same product on 1 chart.
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 2 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpTableInpPriceThe default is an orange (DarkOrange) solid line with width 2. There are no level lines, marks, text or notifications. No value header like that of a separate window appears on the price chart.
It draws from the bar at which the number of bars in the table is available. Adding history older than the required window does not change the value if the prices in the window are the same. If bars within the window are corrected, the value also changes.
A larger number of bars does not always weaken all movements. Each table passes different cycles and has different swing multipliers.
In the modified example, the line goes off the bottom on the left side of the screen. Being off screen alone does not prove the effect of negative coefficients. The older prices used and the display range are also involved.
When Applied Price is not Open, the value of the forming bar changes. With Open, it does not change during the bar unless that bar's open changes.
The vertical range of the price chart is based on the candlesticks. It does not automatically expand to fit the indicator line, so the line is not visible if it goes outside the upper or lower display range.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Check the required number of bars, from 39 to 99, for the selected table. Nothing is drawn before the window is available, and even after that the line can be off screen.
For 44, 45, 91 and 99 Bars, the coefficient on the latest side is negative. When the other bars do not change, the line moving opposite to a change in the latest price is a property of the calculation.
With settings outside the allowed range, it does not start, and 1 line with the reason in English appears on the Experts tab. Return the input to within the range and apply it.
The numbers in the display name are rounded or omitted. Check the actual values on the Inputs tab of the indicator's properties. The name alone does not confirm all inputs.
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.
With a constant price P and a coefficient sum S, the difference between the line and the price is P×(S−1). For 45 Bars, with P=40,000 the difference is about +0.0012. Because there is also double-precision rounding, an exact match cannot be claimed for all prices.
By formula, in the order 39, 44, 45, 65, 91 and 99 Bars, the lag for a linear input is about 0.81, 4.30, 4.88, 4.22, 24.07 and 26.87 bars. The periods at which the swing amplitude is halved are about 5.7, 8.9, 8.8, 26.5, 43.7 and 45.4 bars. There are also frequency bands where 39 Bars gives about 1.46 times at a period of about 9 bars, 65 Bars about 1.43 times at about 55 bars, and 91 Bars about 1.006 times at about 80 bars. These are calculated properties of the coefficients, not numbers that indicate superiority on price data.
The name includes the number of bars in the table and the price name, and the label is Fixed-Weight with the number of bars in the table. No value header is shown on the price chart. Check the selection fields and the actual input values on the Inputs tab of the properties.
For 1 bar, it calculates products and sums for as many bars as the selected table has, and uses 2 value arrays. The processing load increases as the number of bars in the table and the history increase. Actual processing time is not guaranteed.
Close is the close, Open is the open, High is the high and Low is the low. Median=(high+low)/2, Typical=(high+low+close)/3, Weighted=(high+low+2×close)/4.
The display is a record of the calculation. It is not a function that instructs actions based on the line's position or slope. MT5 only.