xelParticipant
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!
Hi xel,
Are you still interested or is it already obsolete?
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.
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.