Multiple linear regression

Back to topics list To post a new topic, please log in or register
avatar
2
Line_Trader 2016.09.02 20:45
 

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? 

 

 

  

avatar
1197
FMIC 2016.09.02 21:37 #
 
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.

Back to topics list  

To add comments, please log in or register