Thanks
if (!Historical && !safetyStop)
{
// Check the account realized PnL and if the max loss exceeded
if (((AccountItem) Account.GetAccountItem(Cbi.AccountItemType.Realize dProfitLoss, Cbi.Currency.Unknown)).Value < -100);
{
// Close any open position
safetyStop = true;
ExitLong();
ExitShort();
}
}
Comment