Times Series Forecast (TSF)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30263 quote
    tempiotrad
    Participant
    New
    Good morning, I ask politely if possible to obtain the Times Series Forecast indicator formulas.This is the definition: The Time Series Forecast (TSF) is a linear regression calculation that plots each bar’s current regression value using the least square fit method. This indicator is sometimes referred to as a moving linear regression similar to a moving average. For example, the TSF value that covers 10 days will have the same value as a 10-day Time Series Forecast. This differs slightly from the Linear Regression indicator in that the Linear Regression indicator does not add the slope to the ending value of the regression line.
    Formula
    The best fit line associated with the n points (x1, y1), (x2, y2), . . . , (xn, yn) has the form

    y = mx + b

    Thank you for the reply

    #30470 quote
    Nicolas
    Keymaster
    Master
    The Time Series Forecast is nothing more than the linear regression expected for the next period. It is calculated by adding the linear regression slope of the same period to the current linear regression value:
    TSF=LinearRegression[10](close)+LinearRegressionSlope[10](close)
    
    return tsf as "time series forecast"
    Please tell me if it suits your query. Thank you.
    #30613 quote
    tempiotrad
    Participant
    New
    Nicolas, the indicator is perfect! Thank you for your response.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Times Series Forecast (TSF)


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
tempiotrad @tempiotrad Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by tempiotrad
8 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/30/2017
Status: Active
Attachments: No files
Logo Logo
Loading...