If I ask the wrong question, sorry.
I moved from mql ...
this is a test for the presence of market orders (for example, one of the options):
if (Position.MarketPosition == MarketPosition.Flat)
if (Position.MarketPosition ==MarketPosition.Long)
if (Position.MarketPosition ==MarketPosition.Short)
And how to check if the pending orders? (Stop, Limit, StopLimit)
If a pending order is set one or more?
ps. Sorry for my bad English.

Comment