Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Script | Total Active / Closed orders by order type in MT4

MetaTrader Experts, Indicators, Scripts and Libraries

There are six different type of active or closed  orders which is 

  • OP_BUY
  • OP_SELL
  • OP_BUYSTOP
  • OP_SELLSTOP
  • OP_BUYLIMIT
  • OP_SELLLIMIT

This script will find the count of active /closed orders based on the types

49585