I know the title isn't very descriptive. When I create a BBandUpper.Series, the initial bars of the series are filled with 0's. Instead of starting my for loop at the end of the initial bars, I want to manually fill in the initial bars with shorter periods of BBandUpper.Values. After I do this, Plot Series is still not plotting the initial bars. Is there something I can do to show the plot?
The following simple code demonstrates the "problem". In this example, the first 20 bars are not plotted, even though their values exist in the DataSeries bollinger.
CODE:
Please log in to see this code.
Size:
Color:
And now?
CODE:
Please log in to see this code.
It's about Wealth-Lab making a
shallow copy vs. deep copy.
Size:
Color:
The rules of when WL uses deep and shallow copies is unclear to me and I've never seen it documented. Can you clarify or point me to clarifying documentation?
Size:
Color:
Thanks.
So the concept is that any time you create a new DataSeries from an existing DataSeries, they aren't different unless you perform some kind of math on the existing DataSeries when you create the new one. I've found out the hard way that the following doesn't create a separate DataSeries.
CODE:
Please log in to see this code.
but this does work.
CODE:
Please log in to see this code.
Size:
Color:
Sorry, still doesn't make sense. What I am hearing you say is that, without the dummy operation, there is only one DataSeries pointed to by two variables. If so, your alteration, proven by PrintDebug, occurs on the only DataSeries - so why doesn't the PlotSeries show your hand-tailoring? Where did those values go?
Size:
Color:
Title of post:
QUOTE:
PLOTSERIES NOT PLOTTING ADDED DATASERIES BARS
Why are you using the term added? There were no bars added to the DataSeries, but there were bars modified.
Size:
Color:
Size:
Color: