Skip to content
All library documents

Linear Regression Levels with Adjustable Period, Degree, and Spacing

Article MQL5 code base

Summary

XLineRegression is described as an indicator that creates price levels using a linear regression algorithm. Its inputs include the regression period, the degree of the regression, the price series used in the calculation, a horizontal bar shift, and a step that controls spacing between lines. A separate day-count setting is also listed for an average, though the note does not explain how that setting contributes to the plotted levels.

These parameters allow the user to alter the regression window, curve form, source price, and displayed level spacing. The document gives configuration information but no formula for generating the additional levels, chart example, trading interpretation, or backtest results. It therefore explains the indicator’s adjustable components without establishing whether the levels predict price movement or how they should be used in a trading system.

Key ideas

  • The indicator plots levels based on a linear regression algorithm.
  • Its inputs include the regression period, regression degree, applied price, and horizontal shift.
  • A step parameter controls spacing between the plotted lines.
  • The note does not explain the complete level calculation or provide trading evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.