I have the following code in an IsUnmanaged = true strategy.
if (UseTrailingStop && Position.MarketPosition != MarketPosition.Flat)
{
lock(Account.Orders)
{
Print("Checking trailstop Account.Orders.Count = " + Account.Orders.Count) ;
foreach (Order Worder in Account.Orders) // loop through orders
Is there an obvious issue here?
Thanks.

Comment