I want to test a date against the current time i have the folowing foif
if (TimeCurrent() >= iStartTime) // test for signal
where iStartTime is a datetime variable assigned a specific date and time ie "2009.01.01 00:00"
i thought i would use the year 2009 as abacktest year hence the use of that point
but the backtest does not seem to compare the current time which i assumed for backtest purposes would be the current time min by min as it moved forward.
So can anyone help how i can test the current time as the backtest progress forward against my ea
hope it makes some sense thank you
if (TimeCurrent() >= iStartTime) // test for signal
where iStartTime is a datetime variable assigned a specific date and time ie "2009.01.01 00:00"
i thought i would use the year 2009 as abacktest year hence the use of that point
but the backtest does not seem to compare the current time which i assumed for backtest purposes would be the current time min by min as it moved forward.
So can anyone help how i can test the current time as the backtest progress forward against my ea
hope it makes some sense thank you