Hi !

Could you help me to prevent entry orders after a certain time ?

I am searching on the forum and no issue.

I already implement Schedule.Event to close all order at a certain time and day.

Schedule.Event().Every(DayOfWeek.Friday).At(15, 44).Run(() =>
{
foreach (var holding in Portfolio.Values)
{
if (holding.HoldStock)
{
MarketOnCloseOrder(holding.Symbol, -holding.Quantity, tag: "Liquidate Market Close");
}
}
});

But what i read that not prevent algo to send order after this time.