[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Specified Dates For Strategy Please Help



PureBytes Links

Trading Reference Links

 
Please help with the following

I am trying to build and back test a strategy that will only
run between a specified time and on specified days of each month.

Whilst the following  sample will verify no trades result:

If CurrentDate is >=1010816            and CurrentDate is<=1010817
and CurrentDate is >=1010920            and CurrentDate is<=1010921
and CurrentDate is >=1020919            and CurrentDate is<=1020920
and CurrentDate is >=1021017            and CurrentDate is<=1021018
and CurrentDate is >=1021114            and CurrentDate is<=1021115
and CurrentDate is >=1021219            and CurrentDate is<=1021220
and CurrentDate is >=1030116            and CurrentDate is<=1030117
and time >= 1329 and time <= 1458 then begin;


Any help would be most appreciated

Ax