CODE:
Please log in to see this code.
is more than enough. No need in conversion to double of what is already a
double.
Actually, it's documented in the WealthScript Programming Guide > DataSeries >
Accessing a Single Value from a DataSeries. It's simple. See the QuickRef for what WL expects you to pass on as argument for e.g.
Position.Priority, and pass such data type.