Library for Stochastic Calculus

 

Not sure yet, but I'm planning to study stochastic calculus.


I could not find so much info on the Internet.

Which language has a library for stochastic calculus/processes?

Does MQL have one?

 
Alp.Oguz:

Not sure yet, but I'm planning to study stochastic calculus.

Which language has a library for stochastic calculus/processes?

I could not find so much info on the Internet.

Does MQL have one?

No, MetaTrader is for Trading, not really for mathematics studies!

For studying Stochastic Calculus, you would be better off with an application or programing language, dedicated to Mathematics or Statistical calculations and/or analysis.

Maybe something like MathCAD, MatLab or R programing language, or maybe even Python (not sure, I don't use it).

I've only really used MathCAD for Engineering math, so can't be sure of which would be the best suited for you!

 
Fernando Carreiro:

No, MetaTrader is for Trading, not really for mathematics studies!

For studying Stochastic Calculus, you would be better off with an application or programing language, dedicated to Mathematics or Statistical calculations and/or analysis.

Maybe something like MathCAD, MatLab or R programing language, or maybe even Python (not sure, I don't use it).

I've only really used MathCAD for Engineering math, so can't be sure of which would be the best suited for you!

I am not sure about that, as I don't have much experience with such libraries and mathematics.

At least there are several libraries, notably ALGLIB which the OP could try. See also this article about how R was used to build these library.

mql5 has also an interesting graphic library.

Anyway the tools you named are of course the reference, but I think a lot can be done with mql5.

Statistical Distributions in MQL5 - taking the best of R and making it faster
Statistical Distributions in MQL5 - taking the best of R and making it faster
  • 2016.10.10
  • MetaQuotes Software Corp.
  • www.mql5.com
The functions for working with the basic statistical distributions implemented in the R language are considered. Those include the Cauchy, Weibull, normal, log-normal, logistic, exponential, uniform, gamma distributions, the central and noncentral beta, chi-squared, Fisher's F-distribution, Student's t-distribution, as well as the discrete binomial and negative binomial distributions, geometric, hypergeometric and Poisson distributions. There are functions for calculating theoretical moments of distributions, which allow to evaluate the degree of conformity of the real distribution to the modeled one.
 
Alain Verleyen:

I am not sure about that, as I don't have much experience with such libraries and mathematics.

At least there are several libraries, notably ALGLIB which the OP could try. See also this article about how R was used to build these library.

mql5 has also an interesting graphic library.

Anyway the tools you named are of course the reference, but I think a lot can be done with mql5.

Well that may be true, but using that line of thinking, I could also say that most languages such as C, C++, C#, Java (and even JavaScript) have such libraries, but I would not recommend those (and even less MQL) for serious mathematics studies!

 
Fernando Carreiro:

Well that may be true, but using that line of thinking, I could also say that most languages such as C, C++, C#, Java (and even JavaScript) have such libraries, but I would recommend those (and even less MQL) for serious mathematics studies!

May I ask why ? Are these mql libraries not good ?

I suppose the goal is to apply these maths to trading, so why using several languages ? (of course in case the mql libraries are good enough in terms of features and performance).

 
Alain Verleyen: May I ask why ? Are these mql libraries not good ?

I suppose the goal is to apply these maths to trading, so why using several languages ? (of course in case the mql libraries are good enough in terms of features and performance).

Because when you are studying math, you want to be able to quickly do other things, such as view Graph plots, see Equations in the usual math formats and other such things.

With applications like MathCAD and MatLab (not much so the pure languages like R and Python), one can easily do it in just a few clicks, and bring up such functionality.

For R and Python, obviously this would require some more work, but there are very large Mathematics, Statistics and Scientific communities behind them, that makes it easier for students in the fields to exchange ideas, thoughts, code examples, etc.

You don't really expect such a communities, to suddenly appreciate engaging in such matters in MQL code, do you?

PS! Obviously, after the studies, he is free to apply that knowledge in MQL for trading purposes!

 
Fernando Carreiro:

Because when you are studying math, you want to be able to quickly do other things, such as view Graph plots, see Equations in the usual math formats and other such things.

With applications like MathCAD and MatLab (not much so the pure languages like R and Python), one can easily do it in just a few clicks, and bring up such functionality.

For R and Python, obviously this would require some more work, but there are very large Mathematics, Statistics and Scientific communities behind them, that makes it easier for students in the fields to exchange ideas, thoughts, code examples, etc.

You don't really expect such a communities, to suddenly appreciate engaging in such matters in MQL code, do you?

PS! Obviously, after the studies, he is free to apply that knowledge in MQL for trading purposes!

Thanks for the explanation :-)
 
Alain Verleyen: Thanks for the explanation :-)

Here is an example of a MathCAD page with equations, vector and graph:


 

Thank you both.

As Fernando indicated, Matlab or R seem to be the reasonable choices for studying the subject, developing algorithms ...

And MQL for implementing them later.