I found this one: https://www.prorealcode.com/prorealtime-indicators/seasonality-analysis/
I don’t see how to adapt it because for a daily timeframe there are some important differences:
- For the same day there won’t be data every year as for example, maybe that same day in one year can be friday and the next year it will be Saturday. For the monthly approach every year you’ll have the same months
- If you use the barindex as reference, Calculation of previous years months in terms of bars is easier to implement as every year will always have 12 months. For daily time frame, not all years has the same amount of days (365 or 366 if is a leap year).
For these reasons i wanted to know if there is a way to refer to the price value of an specific date. My idea is to take the current day (for example March 12) and request the price of, for example, the last ten years and average them.
I didn’t find any function to do it in the probuilder manual, is there a way to do it?