I would like to use a ISeries that is the result of a function f that take as parameter the result of a function f'.
I mean instead of using the Instrument Prices plotted in the chart, I would like to use the result
of a FunctionSeries.
By example lets image (without details):
Code: Select all
f: FunctionSeries<System.Double> {
public ISeries<Double> Price { get; set; }
protected override System.Double CalcBar()
{
return Price[0]*2;
}
To have the Close * 4, I would call f(f'(Bars.Close)) in a way the first call apply f on the Bars.Close and the second apply f() to the result of f'.
To resume I want to pass the result of a function as ISeries use to calculate another function.
How could I do that?
Thanks a lot