Importing into an Expert Advisor

 
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
 

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.
 
Additional you can use Win API synchronization objects (Events, etc.)
 
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 :)
Reason: