Shouldn't it drop out of there?
Jim
// This will exit the strategy immediately after 12:00PM EST
if (ToTime(Time[0]) > ToTime(12,00,00)&& ToTime(Time[0]) < ToTime(8,00,00 ))
{
ExitLong("lg8AM3");
ExitShort("sht8AM3");
}
}
privatevoid StopStrategy()
{
// If we have a position we will need to close the position
if (Position.MarketPosition == MarketPosition.Long)
ExitLong("lg8AM3");
elseif (Position.MarketPosition == MarketPosition.Short)
ExitShort("sht8AM3");
}

Comment