I'm trying to open orders at specific time and day (monday).
I tried entering DayOf(time) =2 for monday, but it seems this opens an order on the 2nd of the first month i test. I tried a loop adding 7 days, but no order triggered after the initial month ended.
How are days counted in ForexTester?
[Are they numbered from 1899 like you explained in the sticky?, then why did an order open for the 2nd,9th,16th... of the 1st month?]
Code: Select all
if (HourOf(time) = 8) and (DayOf(time) =?) then
begin ...
Any help would be appreciated!