New backtester function: DELTADAYS
DELTADAYS(date1, date2) returns the number of days between the two dates. If date2 is later than date1 the number will be positive, or else negative. The typical usage will typically be:
Keep: DELTADAYS([SI Weekly data date], [SI Date--Current fiscal year]) > numberofdays
I am not sure how useful it is, but somebody might figure out something clever to do with it. A couple of "challenges" arose when implementing this feature. SIPRO actually stores some dates as 20051232 and similar which are not actual valid dates. Whenever such dates appear, I replace "32" with "31".
Add new comment