Linear Regression Intercept ?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44994 quote
    xel
    Participant
    Average

    Hello!

    On must platforms, there is a way to know the value of a certain iteration from a linear regression calculation, on some platforms like AmiBroker this is called by Linregintercept function, in tradingview by offset as defined in the same linreg(array,lenght,OFFSET) function.

    ProRealCode currently plots the last pont of the linreg.  What should we do for calculate, for example, from a 30 period linreg, the value of the 21’st period (9 periods offset back from last point) and then plot the MA generated..?

    Thanks in advance!

    #71368 quote
    Vagus_Lux
    Participant
    Average

    Hi xel,
    Are you still interested or is it already obsolete?

    #71463 quote
    Nicolas
    Keymaster
    Master

    Hi Vagus, do you have any answer to the Xel question? Even if he doesn’t respond, any given reply would be of interest for future purpose, thank you.

    #71526 quote
    Vagus_Lux
    Participant
    Average

    Hi Nicolas,
    I am currently working on that topic but I am still struggling with an inaccuracy. In the following lines you can see that the line of Linear Regression made by coding is not the same as made with the function of the ProRealTime Toolbar. The lines starts at the same point[1] but ends at different values. If you vary the depth of calculation the mistake also varies.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Linear Regression Intercept ?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
xel @xel Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Vagus_Lux
7 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 08/31/2017
Status: Active
Attachments: 2 files
Logo Logo
Loading...