I'm trying to plot a line which is a moving average of a calculation; that is, I run each bar through a simple formula, then I want to take the moving average of the results.
So far I can create a new dataseries and plot the calculated values, but I would like to plot the moving average of those values instead (or in addition). How can I program it to do that?
Here is my code so far:
CODE:
Please log in to see this code.