larrydudash
The easiest way to resolve the update of the Linear Regression line is to draw it using drawLineRelative rather than plotting the value. Insert the following line of code just above the return statement
Then replace getSeries(xMidLR) in the return statement with formatPriceNumber(xMidLR.getValue(0)) which will display the values in the Cursor Window without plotting them on the chart.
Alex
Originally posted by larrydudash Need code to update linear regression calculation after each 3 minute bar.
Larry
You are most welcome.
1-2) No that is just an artifact of how the line gets redrawn by the formula engine.
3) "Mid" is just a tag name that I already had in my revised version of the Linear Regression study from which I copied that command.
Alex
Comment