vdemydiuk / mtapi

MetaTrader API (terminal bridge)
MIT License
530 stars 285 forks source link

Connection #200

Open masouddargi opened 4 years ago

masouddargi commented 4 years ago

Thanks for the nice and useful project . I can connect using localhost and port . but i can connect using the login and password and broker ip .
And the second question is what is the fastest wat to get quote and send orders on mt ??? Thanks in advance .

vdemydiuk commented 4 years ago

Hi. 1) MtApi is API-bridge between MT terminal and user's .NET application. It is loaded into MT terminal via MQL expert. This is major limitation of MtApi. It can't work with MT servers directly.

2) you can use event QuoteUpdate to receive updates of quotes and function OrderSend to place orders.

masouddargi commented 4 years ago

Hi and thanks for the reply . I want to connect my Windows Application to several MT4 terminals . How can i do this ???

vdemydiuk commented 4 years ago

Hi @masouddargi . You can create several MtApi clients in the .net application that you will connect with several terminals. If terminals runs on one PC you can use different port defined in MT API expert.