trading-signals
    Preparing search index...

    Class LinearRegression

    Linear Regression (LINREG) Type: Trend

    It fits a straight line to price data over a chosen period using the least-squares method. The slope of the line shows the trend direction and strength. It’s similar in use to moving averages but mathematically more precise, since it minimizes the squared distance between price points and the fitted line.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    interval: number
    prices: number[] = []

    Accessors

    Methods