I’m interested in writing a basic indicator that will show the average variation in the last X years between the previous and current month. This is the first draft, so is nothing fancy, however as simple as it sems it doesn’t show anything. (this code is written for a monthly timeframe).