Wealth-Lab Version 5 (.NET) 5.0
I need a pointer to a thread or documentation or code snippet to on how to create a named series in WL5.
TIA
Size:
Color:
See WealthScript Programming Guide, "DataSeries".
Size:
Color:
I read through the programmer's guide. I am looking for the piece about how to register a dataseries to a bar object.
from quick ref:
Locates a "Named DataSeries" that exists within the Bars object. Named DataSeries can be registered with a Bars object by specific Data Providers. A common example of a possible Named DataSeries is open interest for futures data. Another example are additional data fields that are imported in ASCII files.
tia
Size:
Color:
I am looking for the piece about how to register a dataseries to a bar object.
Named DataSeries are "attached" to a Bars object by specific Data Providers. It's not an arbitrary operation. For example, suppose you were given a CSV file containing standard DataSeries e.g. Date, Close etc. plus a couple of specific columns like "Unadjusted close" and "Contract Expiration". If you choose to declare them rather than skip, Wealth-Lab will be able to find them later (using FindNamedSeries).
P.S.
Since you didn't specify why'd you want to register a DataSeries to a Bars object, maybe there's some specific task on your mind?
Size:
Color:
I am trying to port the KaseDev stops and I want to do a dataseries "cache" like DrKoch does in the following example:
CODE:
Please log in to see this code.
But I don't know how to port the CreateSeries call from WL4
Size:
Color:
Here it goes:
CODE:
Please log in to see this code.
Size:
Color:
Thank you Eugene!
Even better than a pointer.
Size:
Color:
So can I turn the DevStops into sell at trailing stops? I tried SellingAtTrailingStop(bar +1, p, Dev1, "Dev") but I get an error stating DevStops cannot be converted to 'double'. I also tried
public double DevStops(Bars bars, int period, DataSeries TR2DSeries, int trFactor, double sdFactor): base(bars, "Kase DevStops")
but still get an error.
BTW, this thread should be transferred to WL .NET forum.
Size:
Color:
Please read any basic C# 101 book/resource from the Wealth-Lab Wiki FAQ (Support - Knowledge Base) first, then check out the WealthScript Programming Guide on DataSeries and how to get a single value.
Size:
Color: