if (ToTime(Time[0]) <= 93000 || ToTime(Time[0]) >= 153000)
{
if (Position.MarketPosition == MarketPosition.Long)
{
Print("Exit Long at the end of the day");
ExitLong();
}
if (Position.MarketPosition == MarketPosition.Short)
{
Print("Exit Short at the end of the day");
ExitShort();
}
return;
}
Not sure if this is something specific to running a backtest or something I am goind wrong.
Any ideas?
Onn

Comment