Within Initialize() I add dataseries with add(). One special dataseries is my riskfree-data and I must know at which position in the dataseries arry it is saved.
Example A:
Instrument1: SP500
Instrument2: RiskFreeData Series
--> The riskfree data series is saved with index=1
Example B:
Instrument1: SP500
Instrument2: WorldIndex
Instrument3: RiskFreeData Series
--> The riskfree data series is saved with index=2
I want to save this during Initialize(), e.g.:
RiskFreeIndex=
however when I want to assign count to a variable, then I get the error that this is not accessible during.
Is there a way to save it?
Comment