Can I find " Polynomial regression" in the same way do you have it?
that is useful code.
is it better to pass an array for input and another one as out put? your code is ok and useful. just to develop it. better to have as an array because we normally use these functions over an array. If we call them in a loop it will be a waste of time and makes code slow. inside of function it is easy to repeat code for like N times and N is size of input array as source of data. src[]
Mahdi Ebrahimzadeh #:
that is useful code. is it better to pass an array for input and another one as out put? your code is ok and useful. just to develop it. better to have as an array because we normally use these functions over an array. If we call them in a loop it will be a waste of time and makes code slow. inside of function it is easy to repeat code for like N times and N is size of input array as source of data. src[]
that is useful code. is it better to pass an array for input and another one as out put? your code is ok and useful. just to develop it. better to have as an array because we normally use these functions over an array. If we call them in a loop it will be a waste of time and makes code slow. inside of function it is easy to repeat code for like N times and N is size of input array as source of data. src[]
Thanks Mahdi. I appreciate your motivation. I modified per your suggestion. I hope this meets what you expect else I am ready to hear from you.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Linear Regression calculation based on pine script v4:
This is the exact conversion of linreg function from pine script v4 as an mql5 indicator.
Author: Yashar Seyyedin