Multiple linear regression

 

I'm looking to perform multiple linear regression calculations within MQL4.

Yt = b0 + b1*X1 + b2*X2 + b3*X3 + e  

Does anyone know a solution how to do this? I have written code to perform this calculations for two independent variables. But I need to use more variables. Perhaps anyone can point me to existing code for this? 

 
Line_Trader:

I'm looking to perform multiple linear regression calculations within MQL4.

Yt = b0 + b1*X1 + b2*X2 + b3*X3 + e  

Does anyone know a solution how to do this? I have written code to perform this calculations for two independent variables. But I need to use more variables. Perhaps anyone can point me to existing code for this?

There are several Articles and submissions to the Code Base on Linear Regression and Multiple Regression. So, just do a Search (filtering for either Articles, CodeBase or even Forum discussions) and do some research.

However, it seems more likely that your query is not so much about the maths, but more about the general lack of MQL skills to apply the maths. If that is the case than I suggest first learning MQL and coding a few standard Indicators until you understand how to apply the maths.

Alternatively, if you are in a hurry, just hire someone at the Freelance section to code it for you.