Linear Regression Intercept ?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44994 quote
    xelxel
    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_LuxVagus_Lux
    Participant
    Average

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

    #71463 quote
    NicolasNicolas
    Keymaster
    Legend

    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_LuxVagus_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.

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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_LuxVagus_Lux
8 years, 4 months ago.

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