CODE:
Please log in to see this code.
No. This call is not required in this code snippet, unless you have omitted something when posting. Additionally, the syntax would be incorrect as you seem to be confusing Bars and DataSeries here.
QUOTE:
I want to pass Dataseries bars from "PS" into pivot-point function that calculate highs and lows.
If a method accepts a
Bars parameter, it was usually made so for a very good reason. In particular, it means that the indicator's calculation is based on more than one standard OHLC DataSeries, like using High and Low or even the 4 of them together. Otherwise, why not just accept a single
DataSeries as the parameter, isn't it? Consequently, passing an arbitrary DataSeries instead of "Bars" does not make any sense and is in conflict with the indicator's internal logic. Thus, your pivot point method is not likely to function properly as usually it's based on tracking Highs and Lows of a Bars object. An indicator such as PremierStochastic just doesn't have highs and lows - it's a single value per bar, not 4 as in OHLC.
So, let's redefine/clarify your question to find a solution:
* What are "highs" and "lows" for the PremierStochastic?
* How different they are from applying Highest.Series and Lowest.Series to it?
* What has inspired you, i.e. how do envision the thing to look like?