Skip to content
All library documents

Using a Linear Regression Slope Oscillator to Read Price Trends

Article MQL5 code base

Summary

The linear regression slope oscillator measures the slope of a linear model fitted to price over a selected period. Its sole configurable parameter is the calculation period. Rising indicator values are described as indicating an uptrend, while falling values suggest a downward trend; crossings of the zero line are also presented as possible signals.

The document additionally says the indicator can help identify chart formations, including multiple tops and bottoms and head-and-shoulders patterns, as well as divergences. It offers no definitions for detecting these patterns, no examples, and no evidence about signal accuracy or returns. The description therefore introduces possible ways to interpret the oscillator but does not establish a standalone trading system or provide guidance on period selection, risk controls, or confirmation.

Key ideas

  • The oscillator reports the fitted price trend’s slope over a chosen period.
  • Increasing values suggest an uptrend, while decreasing values suggest a downtrend.
  • Zero-line crossings are described as potential signals.
  • The indicator is also said to show chart patterns and divergences, without explaining their detection or reliability.
  • The document provides no performance evidence or parameter-selection guidance.

Tags

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