the thing is that i tell my strategy to execute a long order at the american time market open, in my case 15:30, after the order is executed, i want the strategy to close it at 15:31 independently of the PnL. that's all.
i have this piece of code:
if (ToTime(Time[0]) == 153100 && (PositionAccount.MarketPosition == MarketPosition.Long))
{
ExitLong();
}
thank you

Comment