코드

Simple check open orders filter boolean function for Expert Advisors MetaTrader 4용

This is a simple boolean function for the EA to detect if there is any previous open market orders without using the "OrdersTotal()" built-in function which might cause the EA to calculate positions not opened by each specific magicnumber provided by the EA

Code for counting open orders by Order Type individually MetaTrader 4용

This is an Expert Advisor code for counting open running orders for each type: OP_BUY or OP_SELL