When trying to program an indicator (on the DAX for now), the “Month” and “Year” will give inconsistent values, for example January might sometimes have a value of 2, Both November and December could have values of 12 etc. The way in which the values are incorrect is not consistent (I viewed the variable on a monthly chart, but the same applies to smaller time frames). Similarly, the year sometimes changes in January, but other times December will already show the next year (eg Dec 2024 is displayed as being 2025). This will sometimes be correct, for example in 2022, the new year correctly only shows in January.
I saw a post of 4 years ago where this issue was discussed, with a promise that it will be fixed soon?
Not having a solid point of reference makes it harder to write an indicator if I don’t want it to repaint based on whatever history is on display, so assistance would be much appreciated.