How to minus date in AFL?

I am beginner.
Could you help me to minus date?
example: present date - 365 = date result.
I can minus in excel but I don't know how to minus in amibroker.

Thank you.

Use DateTimeAdd() function: AFL Function Reference - DATETIMEADD

The function supports both adding and subtracting. To subtract simply pass negative amount.

Hi Tomasz
Thank you so much.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.