How to return the value of "buystop/sellstop orders" ??

 

Hello everyone, I am new here, so I need a experienced trader to tell me this:

I know how to use "OrdersTotal" function to return the value of all orders (opening+pending),

But how to return the value of those only the pending orders?

I need to know how many buystop/sellstop orders I have while running the program.

Thank you!!!

 
ta24:

Hello everyone, I am new here, so I need a experienced trader to tell me this:

I know how to use "OrdersTotal" function to return the value of all orders (opening+pending),

But how to return the value of those only the pending orders?

I need to know how many buystop/sellstop orders I have while running the program.

Thank you!!!


OrderType() = OP_BUYSTOP || OrderType() = OP_SELLSTOP
Reason: