I have certain past and future dates for certain holdiays which are floating. Therefore I had write down every single date. I am struggling with the counter if those dates fall into weekends:
I am defining a variable first to hold the date:
Code: Select all
var:datexyz(0);
datexyz=dayofweek(1100407)
If (datexyz= 6) or (datexyz=0) then
weekendCount = weekendCount + 1;
datexyz= datexyz - weekendCount;
I just want to add 1 to the original date so the strategy can start working.
Can somebody help?