In response to Ludosm's request to publish this utility, here it is. Using this API, any other software can drive trade functions in MT4 by generating simple one line CSV files in a similar format to the original MQL4 trade commands.
So where you would write the following in an EA ....
OrderSend(symbol, cmd, volume, price, slippage, stoploss, takeprofit, comment, magic, expiration, arrow_color);
.... the CSV file looks like this
OrderSend, symbol, cmd, volume, price, slippage, stoploss, takeprofit, comment, magic, expiration, arrow_color
A price of Bid or Ask is interpreted correctly.
An important difference is that open orders are located using their Comment, meaning that comments should have a numerical sequence.
So OrderClose(ticket); becomes OrderClose,Comment
There are additional comments at the top of the script. Hope it's useful.