Quarter-to-Date

Hi,

Can anyone give me a tip on how to script the performance from the end of the last quarter to the current closing price?

The script for the performance from the end of the last month to the current closing price looks like this (%MTD):

(100 * (CLOSE() / (MONTH()[1])) - 100)

This script works as it should, but how to calculate the performance from the end of the last quarter to the current closing price (%QTD)?

Thanks a lot,
Thomas

Hi Thomas,

Click on the MONTH() function and change the Period Amount to 3:

Image