I have problem to write a time period in wizard. For example, I would like to enter long position between 17:00 to 21:00. But it would enter long position in any time.
// Condition set 1
if (ToTime(Time[Buy]) > ToTime(17, 0, 0)
&& ToTime(Time[Buy]) < ToTime(21, 0, 0)
&& ToDay(Time[0]) > ToDay(2007, 6, 13))
{
EnterLong(DefaultQuantity, "");
}
Would you please tell me what I should do?
Thanks
Comment