I want to close positions everyday, so I set a IF condition like this:
if (ToTimes(Times[1][0]) =154000)
{
//close anyopen position.
}
The problem is, as I set calculatedOnBar=true; the system waits the last bar to act and at 16.00 the marketclosesand positions arenot closed.
How can I handle it to close at 155200, in case I want to.
Comment