mtapi icon indicating copy to clipboard operation
mtapi copied to clipboard

2connection on the same MTAPIPort

Open Kimo11335 opened this issue 6 years ago • 3 comments

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

Kimo11335 avatar May 02 '19 16:05 Kimo11335

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.

vdemydiuk avatar May 04 '19 07:05 vdemydiuk

Hi Demidyuk, Thank you very much Best regards Karim

On Sat, May 4, 2019 at 9:46 AM Vyacheslav Demidyuk [email protected] 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 .

Kimo11335 avatar May 04 '19 09:05 Kimo11335

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?

cychrn avatar May 15 '19 21:05 cychrn