From: Franco on 22 Jun 2010 06:02 Hey there, I have used simulink for control system simulation before in my engineering studies a while ago, so my knowledge about matlab is limited. The past four months I have been busy with forex trading as a hobby of mine, and I started out with metatrader 4 and the metaquotes language to write trading software. The problem with metaquotes language is it is very basic. You cannot do complicated calculations with it without writing hundreds of lines of code. That is where I decided to start learn Matlab from scratch. Now my question is this: I want to write the shell of the trading software in metaquotes language. The metaquotes code will call functions from matlab to do the calculations. So matlab will only be used to do the calculations. What is the easiest way to make this happen? How can I send information to matlab, do the calculations, and send it back to metatrader 4 ? I know I need to compile the matlab code into a .dll file and import it into the metaquotes language file, but I don't understand this concept and how it is supposed to work. I have read an article about doing it with csv files, but I don't think that will be good enough for me. It needs to be dynamic. Metatrader will send the latest price data to matlab, matlab will do the calculations and send the answers back to metatrader. That is what I need, and it needs to be instant. Also, can simulink be used for such an application or does it need to be matlab and a .m file ? I know this question is a bit broad so if you need any more info to help please ask. Thanks for your time and help Regards Franco
|
Pages: 1 Prev: Combining different indexing methods Next: cognitive radio |