Code: Select all
https://www.mql5.com/en/forum/180002/page89#comment_4432739Mladen Rakic 2016.09.12 05:07 #889 EN
This is a sort of regression explorer, ...
What it does is the following : calculates regression of any degree, converts that value into an "end-pointed regression" (ie : average, ie: non-recalculating, non-repainting value) draws that as a kind of average, and for the current bar it draws the regression channel too, including the extrapolated (future) projection of the current channel. So, the "average" itself does not recalculate/repaint (ever) but the channel itself is doing what any regression channel does : it fits itself (recalculates) depending on the current price changes
As a comparison : if you use degree 1, then it is a linear regression and the values in that case have to be exactly the same as linear regression sketcher (if the parameters are the same)
In short : this can be treated as an end-point (non-repainting) regression too (not just as a "regression explorer")