OnTradeTransaction() in Service

 

It appears that in a Service, neither OnTradeTransaction nor OnTrade is called.

This is the case if i create an order with OrderSend and OrderSendAsync.

Am I missing something?

Is there perhaps a workaround? I don't really need a callback, polling for the result would also works, as long as I can get all the relevant data and error messages.

Thanks!

Documentation on MQL5: Language Basics / Functions / Event Handling Functions
Documentation on MQL5: Language Basics / Functions / Event Handling Functions
  • www.mql5.com
Event Handling Functions - Functions - Language Basics - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: