OnTrade triggers TWICE ?

 

I tested it with manual trades, each trade triggers OnTrade twice.

Bogdan Caramalac , mqlmagazine.com 

MQLmagazine.com | All things MetaTrader
  • mqlmagazine.com
Portfolio expert advisors, as well as the more complex multiasset expert advisors, were awaited by the retail trading community ever since limitations of the MT4 backtester became obvious, that is, about 4 – 5 years ago. The difference between multiasset and portfolio EAs is that multiasset EAs have... Read more »
 
Trading system in MetaTrader5 is different from MetaTrader4 one so one trade order can be executed by chain of trade transactions. Each trade transaction means separate trade event so the client terminal can receive several messages based only one  order.
Reason: