MT5 indicators← Regression Fit Oscillator 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

Regression Fit Oscillator

Measures how closely recent prices follow a straight line, or how far they are from the end point of the regression line. If needed, a simple average or T3 signal line is overlaid.

Fit to a straight line and distance from the regressionMetaTrader 5Separate windowSite edition, no account authentication

Fit to a straight line and distance from the regression

STEP 1Regress recent prices
STEP 2Fit / distance
STEP 3Main line + optional signal line
1

R-SquaredThe strength of the fit, from 0 to 100. Even close to 100, it does not tell you whether prices are rising or falling.

2

ForecastShows the difference of the price from the regression end point in %. It is not a probability of predicting future prices.

3

2nd lineThe red line is the average of the main line. There are no crossover dots or notifications.

The figure explains the processDisplay only, no order functionsCreated by Trilogy
1

Checking the display

Settings change example: Mode: Forecast Oscillator / Regression Period: 15 / Signal Line: T3 / Signal Period: 3

Everything not listed stays at the default. On a PC the order is 'Default, Change example' from left, and on a smartphone from top. The change example is not a set of recommended values.

Default settings
Regression Fit Oscillator default screen
Defaults: R-Squared and simple average. The height of the blue is the fit to a straight line, not the strength of a price rise.
Settings change example
Regression Fit Oscillator change example
Changed to Forecast, period 15 and T3 period 3. Read the distance above and below 0 in %.

The published images are display examples from before the brand display was added. The product has display settings for the brand text and QR code, but the screen with the brand display has not yet been verified. The timeframe shown in the image does not indicate how often this appears on that timeframe in practice. Marks at the edges may be cut off outside the screen.

Check all inputs of the change example

Mode = Forecast Oscillator、Regression Period (bars) = 15、Price = close、Signal Line = T3、Signal Period = 3、T3 Volume Factor = 0.7。

The 4 brand display items are not included in the capture.

2

30-second guide

R-Squared

The strength of the fit, from 0 to 100. Even close to 100, it does not tell you whether prices are rising or falling.

Forecast

Shows the difference of the price from the regression end point in %. It is not a probability of predicting future prices.

2nd line

The red line is the average of the main line. There are no crossover dots or notifications.

3

What it measures

Measures how closely recent prices follow a straight line, or how far they are from the end point of the regression line. If needed, a simple average or T3 signal line is overlaid.

R-Squared

The coefficient of determination between time and the selected price, multiplied by 100. If all prices in the window are the same, it is 0. It is blank until the period is filled.

Forecast Oscillator

100×(selected price−end point of the regression line)/regression end point. If the end point is 0, it returns 0. Positive means above the end point; negative means below.

Simple average signal

Shown once Signal Period bars of the main line are available. In terms of price, it depends on Regression Period+Signal Period−1 bars.

T3

Combines 6 stages of exponential smoothing, seeded with the first value of the main line. The effective period is 1+0.5×(Signal Period−1). It also depends on the previous recursive state and the start of the history.

4

Reading scenarios

When you want to classify the display

The strength of the fit, from 0 to 100. Even close to 100, it does not tell you whether prices are rising or falling.

When you want to switch conditions and compare

Use the same symbol, timeframe and history, and first change only one input. Use separate charts for comparison, and check the Mode and vertical axis of each screen.

The display differs from what you expected

A high R-Squared while the price falls is not a contradiction. A falling straight line also fits well.

This display alone does not decide whether to trade. The colors, lines and arrows represent the calculation conditions in this manual; they are not a forecast of future price movement or an instruction to buy or sell.

5

Check procedure

1

Start from the defaults

At first, do not change the inputs; cross-check the colors and display location against the default screen above.

2

Distinguish the timing of bars

The value of the latest forming bar changes. There is no Closed Bars Only input. Read it separately from bars after they close.

3

Change only the target condition

Mode: Forecast Oscillator / Regression Period: 15 / Signal Line: T3 / Signal Period: 3. Comparison images may include multiple changes.

4

Check values and units

The angle of lines and visible differences change with the screen zoom. Check the settings together with the price scale and the vertical axis of the separate window.

6

Installation and package contents

ZIP contentsLocation / role
TRI_Regression_Fit_Oscillator.ex5MQL5/Indicators in MT5. Only 1 item: the indicator itself.

The manual opens on the product's own page on the site. The ZIP does not include the manual or source code. It is for MT5 only and cannot be used in MT4. The site edition has no account authentication or license file settings.

1

Extract the ZIP

Prepare the extracted EX5. Do not place it while it is still compressed.

2

To the MT5 data folder

Place the EX5 in MQL5/Indicators via 'File → Open Data Folder'.

3

Apply to a chart

Refresh the Navigator or restart the terminal, and apply it to the target chart. DLL permission is not required.

4

Change / remove

Change the settings or remove it from the chart's 'Indicators List'. Enabling automated trading is not required.

7

Settings

There are 10 items in total: 6 product-specific items and 4 brand display items. English names are based on the input definitions. Enter numbers in half-width characters. Keep inputs that the mode does not use within range as well.

Display mode

English item name
Mode
Input name
InpMode
Default
R-Squared
Options / range
R-Squared / Forecast Oscillator
Meaning and notes
Selects either the fit or the price distance.

Regression period

English item name
Regression Period (bars)
Input name
InpPeriod
Default
14
Options / range
2–1000 bars
Meaning and notes
The number of prices to which the line is fitted.

Price used

English item name
Price
Input name
InpPrice
Default
Close (close)
Options / range
Close (close) / Open (open) / High (high) / Low (low) / Median (midpoint of high and low) / Typical (average of high, low and close) / Weighted (average of high, low and 2 times the close)
Meaning and notes
Close, Open, High, Low, Median, Typical, Weighted.

Signal line

English item name
Signal Line
Input name
InpSignal
Default
Simple Average
Options / range
None / Simple Average / T3
Meaning and notes
None shows only the main line.

Signal period

English item name
Signal Period
Input name
InpSignalPeriod
Default
14
Options / range
1–1000 bars
Meaning and notes
The length of the average. For T3, it is converted to the effective period described in the text.

T3 factor

English item name
T3 Volume Factor
Input name
InpT3Factor
Default
0.7
Options / range
0〜1
Meaning and notes
The combination coefficient of the 6-stage T3 smoothing. Its input range is checked even with None or SMA.

Brand / QR display

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Options / range
true / false
Meaning and notes
This is a display-only setting. It does not change calculation results. If another product on the same chart has the display enabled, the shared display remains.

Brand corner

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Options / range
Top left / Bottom left / Bottom right / Top right
Meaning and notes
The chart corner where the brand text and QR code are placed.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Options / range
Corrected to 0–4000 px
Meaning and notes
Horizontal distance from the selected corner. Negative values are corrected to 0, and values above 4000 to 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Options / range
Corrected to 0–4000 px
Meaning and notes
Vertical distance from the selected corner. If the screen is narrow, adjust the position or the value.
8

Usage specifications

Forming bar

The value of the latest forming bar changes. There is no Closed Bars Only input. Read it separately from bars after they close.

History and recalculation

Settings changes, additions to or corrections of the history, and reloading redo the calculation. This is not a guarantee that "closed bars never change under any circumstances".

Brand display

A common display is shared among products of the same medium on the same chart. If several are loaded, the settings of the registration that enabled the display first are used, so changing one may not change the appearance.

For on-screen display only

This product does not place orders or trade automatically. It does not guarantee accuracy as a trading signal or profits.

9

Troubleshooting

Points that are easy to get confused about in this product

A high R-Squared while the price falls is not a contradiction. A falling straight line also fits well.

No display

Check whether the required number of history bars is available, whether the forming bar is hidden, and the input ranges and mode. Also check the terminal's Experts tab for input errors.

The display does not update

Check the price feed and the connection status. Changing settings for an unused mode does not change the display.

Looks different from the image

The appearance changes with the symbol, history, timeframe, inputs and scale. Even when compared with the full-size image, the marks are not necessarily at the same positions or of the same count.

10

Specification details

Specification note 1

Past main line values are determined by the prices in their window, but not all display, including T3, is determined only by the most recent period.

Specification note 2

The value of the latest bar changes. There is no Closed Bars Only switch. Matching the initial values of standard indicators or other software is not guaranteed.

Verified scope

The published images and values were checked with the product before the brand display was added. The screen display of the product with the brand display has not yet been verified. Whether the values match other indicators with the same name, the Data Window display, and behavior with long histories or with symbols that have different price digits have not been verified.

Products with a price selection

Median = (high + low)/2, Typical = (high + low + close)/3, Weighted = (high + low + close×2)/4. The unit of periods is the number of chart bars.