Is it possible to perform automated trading using Matlab on meta trader 4?

Hi,
I am currently doing my research on different algorithmic trading strategies and I wanted to know if it was possible to have meta trader 4 feeding its data into Matlab on a daily basis( the day's open, close , high and low at the end of day as I am not working high-frequency stuff and don't need access to tick data), then for Matlab to run the necessary analysis and feed the output back to meta trader for trade executions for example send buy and sell orders to meta trader to execute as soon as the market reaches those prices?
I would be very grateful if someone could please help me with this, as a mathematician I do not have a high understanding of programming apart from what has been needed for me to do on Matlab.
Regards,
Nima

1 Comment

It is possible. You have to compile your matlab code into a dll, and have that dll called from within MT4. It's a bit of a process, but once it is set up it works fine. There are also other ways to do it through the file system or a database. It really depends on what you are looking for.

Sign in to comment.

Answers (0)

Asked:

on 22 Oct 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!