How to increase the array size of a VariableSeries Object?  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
MarketPrep
Posts: 9
Joined: 24 Apr 2013
Has thanked: 2 times

How to increase the array size of a VariableSeries Object?

Postby MarketPrep » 22 May 2015

Is there a way to increase the array size of a VariableSeries Object using Multicharts.Net?

Example with easy language settings:

ARRAY: OpenEquity[](0);

Observation = Observation + 1;
array_setmaxindex(OpenEquity,Observation);
OpenEquity[Observation]= i_OpenEquity ;

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: How to increase the array size of a VariableSeries Objec  [SOLVED]

Postby JoshM » 22 May 2015

Is there a way to increase the array size of a VariableSeries Object using Multicharts.Net?
That's unfortunately not possible; `VariableSeries<T>` has a length equal to the data series. Source: VariableObject & VariableSeries explained.

You can create your own C# array of course I'd you like.


Return to “MultiCharts .NET”