protected override void Initialize()
{
// Triggers the exit on close function 60 seconds prior to session end
ExitOnClose = true;
ExitOnCloseSeconds = 60;
}
Also the Exit on Close method, is it placed as a market order? Or is it placed as a market on close order. I use IB for my brokerage.

Comment