Wanting the Rate of Change of a Moving Average

L

Leslie

New member
I would like a study that would get a percentage change (rate of change) on a moving average from today to x number of days back. So for exampe, take todays value of the XMA divided by the XMA value of 10 bars ago. Seems like this should be easy but I am not getting it done. Thanks for any help.
 
korygill

korygill

Active member
VIP
Warehouse
def roc = XMA / XMA[10];
would do what you describe.

fyi, there is a Questions forum what might be better suited for this kind of post.
 

Top