vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
521 stars 281 forks source link

2connection on the same MTAPIPort #156

Open Kimo11335 opened 5 years ago

Kimo11335 commented 5 years ago

Hello, This is just a question. If 2 independent thread, connecting the the same mtapiclient on the same port. Is that possible, or is it, only 1 port pr thread pr mtapi EA.

Thanks in advance KG

vdemydiuk commented 5 years ago

Hi. Yes, it is possible. You can create several mtapi clients connected to the same port. This clients can be located in same application or in separate applications. Also it is possible create several mtapi clients connected to different ports on MetaTrader (defined via MtApi.ex property "Port").

MtApi was designed to be flexible for connections.

Kimo11335 commented 5 years ago

Hi Demidyuk, Thank you very much Best regards Karim

On Sat, May 4, 2019 at 9:46 AM Vyacheslav Demidyuk notifications@github.com wrote:

Hi. Yes, it is possible. You can create several mtapi clients connected to the same port. This clients can be located in same application or in separate applications. Also it is possible create several mtapi clients connected to different ports on MetaTrader (defined via MtApi.ex property "Port").

MtApi was designed to be flexible for connections.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vdemydiuk/mtapi/issues/156#issuecomment-489304288, or mute the thread https://github.com/notifications/unsubscribe-auth/AL5CCLGNGKUISTP5S3QE7GLPTU5MXANCNFSM4HJ74AOQ .

cychrn commented 5 years ago

Hello, so what about 2 MtApi terminals to be connected by 1 MtApi client at the same time? if possible, do the 2 MtApi terminals have to be with different port?