Thank you for your reply.
If you're setting them in OnStateChange you can do that from either State.SetDefaults or State.Configure, you may override the platform settings for IsExitOnSessionCloseStrategy and ExitOnSessionCloseSeconds and these will be used for the strategy in question instead of the set defaults in the platform:
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
// Triggers the exit on close function 30 seconds prior to trading day end
IsExitOnSessionCloseStrategy = true;
ExitOnSessionCloseSeconds = 30;
}
}

Comment