how can i get the number of pending orders and active trades while using my EA?

 
can someone explain the solution?
 
yameen_akhtar123:
can someone explain the solution?

With your Expert Advisor comments  

 
yameen_akhtar123:
can someone explain the solution?

Calculate Positions and Pendong Orders

How to start with MQL5
How to start with MQL5
  • 2020.12.19
  • www.mql5.com
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors...
 

Thank you so much. but I didn't get it. i just want to know how can your EA get that your pending order is executed or not?

 

I know how to count no of trades either active or Pending orders. Now i am looking for the solution of "How to place a check or something like that, that'll help your EA to find out about the status of pending order". thanks