Sorry, Ive sorted it, but dont understand the timezone comment?
The script has a comment on Time zones and I need to set it to GMT 0 as in London,England.
where do you set it ?
if (Time[0].DayOfWeek != DayOfWeek.Monday && Time[0].DayOfWeek != DayOfWeek.Friday)
{
/* Checks to see if the time is during the busier hours (format is HHMMSS or HMMSS). Only allow trading if current time is during a busy period.
The timezone used here is (GMT-05:00) EST. */
if ((ToTime(Time[0]) >= 93000 && ToTime(Time[0]) < 120000) || (ToTime(Time[0]) >= 140000 && ToTime(Time[0]) < 154500))
{
// Entry Signal: If current close greater than previous close, enter long
if (Close[0] > Close[1])
EnterLong();
}
}
The first time slot looks like 9-30am to 12pm then 2pm to 3-45? but where do you set the time zone?
Thanks in advance
Comment