Stats functions

 

Does anyone know if there is a library for functions such as Coefficient of determination R, correlation,slope of regression in MQL4 ? 

Or you have to write them from scratch ? 

Reason: