PlotSeries not plotting added DataSeries bars
Author: Panache
Creation Date: 10/16/2015 6:23 PM
profile picture

Panache

#1
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.
profile picture

Eugene

#2
And now?

CODE:
Please log in to see this code.


It's about Wealth-Lab making a shallow copy vs. deep copy.
profile picture

LenMoz

#3
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?
profile picture

Panache

#4
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.
profile picture

LenMoz

#5
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?
profile picture

KEVINP

#6
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.
profile picture

KEVINP

#7
What are the different reasons for separating an object variable instantiation from one line into two lines?

The only reason I know of for doing this is explained in my post question here: http://www.wealth-lab.com/Forum/Posts/Can-data-type-objects-other-than-DataSeries-be-Synchronized-37928
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).