This has been done before in different ways, however, my goal is to publish a single, simplified copy/paste version of the idea so you can quickly and easily incorporate it into your strategy backtesting. You can designate weekdays, weekdays + weekends for 24/7 markets, and also session range. So, you trade bitcoin? It works. CME futures? It works. You are a...
Year-to-Date (YTD) return describes the return so far this year. It refers to the amount of profit made by an investment since the first day of the current year to the present day. Investors and analysts use YTD returns information to assess the performance of investments. Additionally, the tool allows you to set custom (up to 6) levels to trigger alerts.
Version 0.9 beta: - Takes heavy performance showing history expiry dates
Shows the CBOE and CME settlement dates as horizontal lines, with the option to show a 7 day warning in the background. This should hopefully give ample warning. I intend to update the script as new dates become available but please PM if I've forgotten.