The opinions expressed in these forums do not represent those of C2, and any discussion of profit/loss is not indicative of future performance or success. There is a substantial risk of loss in trading. You should therefore carefully consider whether such trading is suitable for you in light of your financial condition. You should read, understand, and consider the Risk Disclosure Statement that is provided by your broker before you consider trading. Most people who trade lose money.

DateTimeAdd help


#1

Anyone know how to use DateTimeAdd? I just want to add one day to the date of the current bar. I have this:

      date = GetDateNum();   
      nextDate = DateTimeAdd(date,1,inDaily);


AddColumn(date,“date”,1.0);
AddColumn(nextDate,“nextDate”,1.0);

And I get the results shown in the screenshot.
Thanks


Back to C2 Platform