And what if I want to close all positions at a specific time?
I used to close each position like this, but I think we need to change..
if (ToTime(Time[0]) >= closeTrades)
{
if (Position.MarketPosition == MarketPosition.Long)
{
ExitLong();
}
if (Position.MarketPosition == MarketPosition.Short)
{
ExitShort();
}
}

Comment