Detect a trade before it is executed

 
Hello everyone, I need to detect orders sent to market before they are confirmed by the broker's server and then executed. I tried to read the log file but it is too slow. I need to do this because I have to duplicate on the same account the trades that are executed by an expert but I don't have the source code, and seeing the trades executed on OrdersTotal is too slow because I can only see the trades after they are confirmed by the broker.
 
Credo che sia possibile solo in MetaTrader 5/MQL5, che supporta i gestori di eventi OnTrade e OnTradeTransaction
Documentazione su MQL5: Gestione degli Eventi / OnTrade
Documentazione su MQL5: Gestione degli Eventi / OnTrade
  • www.mql5.com
OnTrade - Gestione degli Eventi - MQL5 Riferimento - Guida al linguaggio di trading algoritmico/automatico per MetaTrader 5