PDA

View Full Version : MT4 interface


heikobear
09-19-2010, 10:42 AM
Hi

I am looking for a interface in order to send orders to MT4.
Ideally, I would accomplish also to feed NT with prices from MT.
Thanks,
Heiko

NinjaTrader_Josh
09-19-2010, 01:03 PM
Unfortunately this is outside the scope of what we support. NT can send order signals to NT supported brokerages.

werido
12-20-2010, 12:13 AM
Do you know of any way to get a NT Strategy to send out a market order to buy/sell that MetaTrader can understand and automatically execute?
Thanks

NinjaTrader_Josh
12-20-2010, 08:16 AM
werido,

Unfortunately this is not supported.

salehi
04-14-2011, 02:06 PM
Hi
You can use MT4 API for dotnet.
It's good
send pm. I can help you more

njaisson
05-19-2011, 03:24 PM
Hi
You can use MT4 API for dotnet.
It's good
send pm. I can help you more

Hello,

I would be quite interested too by a bridge between MT4 and NT in order to transfer my trades to Metatrader. Thanks in advance.

AlgoInvest
06-26-2011, 08:54 AM
If you don't mind coding you might have a look at: http://www.algoinvest.net/2011/06/metatrader-4-programming-in-net-c_25.html

AlgoInvest
06-26-2011, 08:55 AM
Hi

I am looking for a interface in order to send orders to MT4.
Ideally, I would accomplish also to feed NT with prices from MT.
Thanks,
Heiko

Have a look at MTAPI.net. Check: http://www.algoinvest.net/2011/06/metatrader-4-programming-in-net-c_25.html

Beljevina
06-26-2011, 11:10 AM
heikobear, werido, njaisson

I am fairly certain this low-tech yet effective solution would work to get trades out of NT into MT4. http://paulsfxrandomwalk.blogspot.com/2009/12/crude-api-for-metatrader-4.html

It is basically an EA that you attach to 1 instrument chart in your target MT4 platform, which monitors a specific directory for a text file with a specific format, that will execute a trade (against any MT4 instrument) within that MT4 instance. The textfile can be written out of a NT indicator via the WriteFile command as part of the StreamWriter facility. (and presumably a NT strategy) I am currently learning the basics of NT indicator/strategy development, but, as with the WriteFile command which I am currently using to create NT trades via the OIF facility (creating a OIFxxx.txt file), I don't see why the needs for this MT4 EA could not be met in the same way by writing a commandfile.txt, per the EA's specific (CSV) format.

I have successfully used this to get trades from Tradestation, using basic easylanguage code, and shortly hope to be implementing the same technique within NT. The MQL code is accessible, so you can customize trade management once the signal is received by the MT4 EA - I used the 'comment' field to send conditions specific to the signal generated within TS, and then built logic within the MT4 EA that would act accordingly.

It is a somewhat low-tech solution, but I found it to work fantastically well. Of course once it is in the MT4 environment it needs to be exclusively managed from within there. Hope that helps.

vlc
11-23-2011, 04:31 PM
MT is working with quite a few desirable brokers now ( e.g. nationally advertised UK Financial Spread-betting firms, OandA.com, etc. ). Would be great if we could get a solution using MT4 as a bridge between NT4 and those services.