if (ToTime(Time[0]) >= timeStart && ToTime(Time[0]) <= timeStop)
{
// execute strategy
}
where timeStart=94500 and timeStop=161000 for example. Why is it that the strategy is randomly started before the start time? Today for example the first trade was placed at
9:10 AM.
What am I doing wrong? Is three another way to set limits on trading times?

Comment