{
night = true;
}
if((ToTime(Time[0]) >= 070000 && ToTime(Time[0]) < 151500))
{
night = false;
}
I'm using the above code to designate night sessions. The night flag should prevent the strategy from buying during night sessions. I can only sell. However it bought this morning at 064500. The only thing I can imagine is that (ToTime(Time[0])) is grabbing the end of bar time and not the actual time.
Any ideas?
Comment