MQL4 - automated forex trading   /  

Forum

Importing into an Expert Advisor

Back to topics list To post a new topic, please log in or register

avatar
1
sshaw 2006.05.25 00:15 
We are running an external program that generates a trigger number for trade execution. We want to import that trigger number into an Expert Adviser. How can we go about doing this? Is anybody else trying to do something similar?
Thanks
Interaction between MеtaTrader 4 and MATLAB Engine (Virtual MATLAB Machine)

Interaction between MеtaTrader 4 and MATLAB Engine (Virtual MATLAB Machine)

The article contains considerations regarding creation of a DLL library - wrapper that will enable the interaction of MetaTrader 4 and the MATLAB mathematical desktop package. It describes "pitfalls" and ways to overcome them. The article is intended for prepared C/C++ programmers that use the Borland C++ Builder 6 compiler.


avatar
Moderator
2824
Tatyana 2006.05.30 13:13 

You can save your generated trigger number into a file in the "\MetaTrader 4\experts\files\" folder, then your expert advisor can get the trigger number from this file.
Or, if this is impossible, you can write your own DLL that can receive signals from your external program and transfer it to the expert advisor.


avatar
1272
RickD 2006.06.13 04:16 
Additional you can use Win API synchronization objects (Events, etc.)

avatar
2
fotovat 2006.07.01 01:27 
as one of my friend old me in alpari forum that we can :

1. set ther charting program (omega prosuite) write alerts in a file
2. metatrader open that file and execute order and delet that file

But I don't do that yet :)
Back to topics list  

To add comments, please log in or register