Indicators: Liner regression - page 2

 
Arthur Albano:
I am always intrigued about doing the right maths. Linear regression model for (x,y) suits well market. I did some experimenting with NumPy using (bars,price,volume) (volume weighting), getting similar results. Also, I did weighting quantile regression by volume by repeating (time,price), sorting and then finding the results. Easy task with NP, impossible for me at MQL5.
Nothing is impossible with mql5 :-D
 

Thanks for sharing your work, Mr. Rakic

Very well conceived and implemented concept.

I was looking for an indicator with channel and linear regression and many of them are very complicated and tremendously consuming of machine resources.

Your code is the simplest I have found so far and I will test further it to verify if it suits my concepts for an EA.

In my EA I added a deviation from center line (+ and -) in order to validate the trade point, but in fixed points.

I believe if there was another buffer with a calculated deviation from center, but based in linear regression, that would help a lot.

Just an idea.

Anyway, thanks for sharing your ideas and hard work

Best regards from Rio de Janeiro

Reason: