NullReferenceException by new VariableSeries<Double>(this)  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
Posts: 100
Joined: 28 Apr 2008
Has thanked: 18 times
Been thanked: 1 time

NullReferenceException by new VariableSeries<Double>(this)

Postby radekj » 25 Aug 2012

NullReferenceException by

protected override void StartCalc()
{ = new VariableSeries<Double>(this);

this works:

protected override void Create()
{ = new VariableSeries<Double>(this);

Error text snap:


indicator implements: IChartCustomDrawer

User avatar
Henry MultiСharts
Posts: 8663
Joined: 25 Aug 2011
Has thanked: 1218 times
Been thanked: 2788 times

Re: NullReferenceException by new VariableSeries<Double>(thi  [SOLVED]

Postby Henry MultiСharts » 27 Aug 2012

Hello Radekj,

New variables should be introduced only through "Create" method.
These users thanked the author Henry MultiСharts for the post:

Return to “MultiCharts .NET”