vdemydiuk / mtapi

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

bulk multi order at same time? #212

Open meizoel opened 3 years ago

meizoel commented 3 years ago

hai , my question : can you help me for make a bulk multi order? my step : for now i'm using loop but it make the price is different? if anyone know how to optimize it please give me some tips? such execute some script on mql5 using this wrapper

here's the screenshot of different price using loop for multi order Screenshot 2020-10-21 145342

eabase commented 3 years ago

Why do you want to make multiple copies of the same order? Just doesn't make any sense in any use scenario I can think of, except for some kind of order-stuffing scheme.

KptKuck commented 3 years ago

You can use OrderSendAsync instead of OrderSend. MtApi5 OrderSendAsync MQL5 OrderSendAsync

This reduces response time But then you have to check if the order was placed correctly on the trading server.