mtapi icon indicating copy to clipboard operation
mtapi copied to clipboard

Monitor Order Change

Open jneindonesia opened this issue 6 years ago • 4 comments

Hi,

I want to ask. Can I monitor order changes? (like modified Take Profit and Stop Loss) In sample I only see when order opened and closed.

Thanks.

jneindonesia avatar May 14 '19 10:05 jneindonesia

For that you can use the TransActionEvent. See documentation on mql5.com https://github.com/vdemydiuk/mtapi/blob/master/MtApi5/Events/OnTradeTransactionEvent.cs https://www.mql5.com/en/docs/event_handlers/ontradetransaction

KptKuck avatar May 14 '19 15:05 KptKuck

Is that available on MT4/MQ4?

jneindonesia avatar May 14 '19 15:05 jneindonesia

Unfortunately, MQL4 does not have order events like MQL5. I have implemented trade monitors in MtApi [MT4]: TimeframeTradeMonitor, TimerTradeMonitor. But they are looking for created and closed orders only. If you want to monitor of created orders you should create custom monitor that will check orders by timer.

vdemydiuk avatar May 14 '19 15:05 vdemydiuk

Is that available on MT4/MQ4?

The author has already answered. However, I recommend that you do not spend time in old technology. MT5 is the future. greetings

KptKuck avatar May 14 '19 15:05 KptKuck