Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
record interpolating values?

I have an algorithm that records values that are either 0 or 1. However, when I look at the plot of recorded variables it shows all sorts of points in between like 0.8, 0.35, etc. Using log.debug I can clearly see that these values are never actually recorded. What's going on here?

4 responses

Hey Samuel,

Can you post part of the algorithm if you don't mind sharing publicly? That may make it easier to figure out what's going on.

Best,
Ryan

@Samuel, if you are running a minute-step sim, then it uses one of the values (the last i think) for the day. however once you have a simulation run more than 1.5 years it will force-group datapoints into weekly, and at this point it will average your values for the week.

@Samuel, the interpolated values result from the grouping of data (and consequent plotting of the average), as Jason explained. Look at the bottom of the plot: you will find cursors to zoom at portions of the time axis. Zooming you will be able to see the original values.

Ah I see, thanks for the explanation!