Hi,
I created custom dataseries object for day volumes.
CODE:
Please log in to see this code.
But Wealth Lab refuses to apply maths to it.
E.g. Peak.Series(volumes, 7, PeakTroughMode.Percent); gives error in ctor about non-existing object reference.
What's up? Any special properties that I missed ?
Size:
Color:
This is an unsupported way of creating data series. For the supported ones, please see the WealthScript Programming Guide, DataSeries > Filling a Custom DataSeries > How to: Create a DataSeries filled with zeroes.
Size:
Color:
But when I create dataseries like "Close-Close", I can't Add any data to it.
Size:
Color:
My DataSeries store price-indexed volume, not bars.
Size:
Color:
Actually, the following method is better than what the Help writer was aware of at the time -
CODE:
Please log in to see this code.
Like the Close-Close method, this initializes a DataSeries filled with zeroes. You should not try to
add data to it, instead
change the data that exists to different values.
Size:
Color:
My dataseries should be price-based. They keep "price -> volume" relation.
That's why I need to create them from the scratch.
The purpose of making them "dataseries" is: I want to apply WL Maths functions.
Size:
Color:
I guess I don't understand what you're trying to do then, sorry. Is the idea to create a DataSeries that doesn't have the same number of bars as any other DataSeries that the script has access to?
Size:
Color: