Is there a simple way to apply calculations (say, average of its values for the last 10 bars) to a variable that is NOT part of the return of any function?
I am trying to define a (reusable) function with a generic input that does this.
Any suggestions?
Thanks.
I am trying to define a (reusable) function with a generic input that does this.
Any suggestions?
Thanks.
Comment