SMA missing data at the beginning
Author: karla2010
Creation Date: 7/9/2010 9:39 AM
profile picture

karla2010

#1
Here is a deceptively simple piece of code that does not appear to work:

CODE:
Please log in to see this code.


This code should fill in the missing data points at the beginning of the SMA series with a smooth ramp of average values, but it does not. Please go to the beginning of the plot and look at the SMA curve overlay on the data Bars. The first 12 points are missing.

Any ideas?
profile picture

Cone

#2
Assign csma.FirstValidValue to 0 and you'll be able to see the values (that I assume are actually there).
profile picture

karla2010

#3
Cone,

Perfect. Thanks very much.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).