I have a question I hope someone can help me with. I am developing a strategy and as part of it, it calculates a variable every day on the first bar of the session. I am trying to get a running total of the variable for the past 30 days. I am able to get a running total of it indefinitely with =+ but I need it to be limited to the past 30 updates.
Is there any way to limit it?
Any suggestions will be greatly appreciated.
Cheers,

Comment