last sell entry price returning zero but last buy entry price returning correct price, help pls - page 2

 
Mohsen Bjp:

place this one instead...its working...OrdersTotal is better choice

This works sir thank you so much :)

 
Keith Watford:

Why would you want to use that?

I repeat 

you should be using OrdersTotal().

Yes sir i tried the code of sir Mohsen. Thank you sir :)