How I know symbol or order status?

 
Dear Sir

from the expert that I made from your program, How can I know if there is an open order in any symbol?
Reason: