Indicator Can't Access Another Indicator

Questions about MultiCharts .NET and user contributed studies.
csswowsers
Posts: 6
Joined: 04 Dec 2013

Indicator Can't Access Another Indicator

Postby csswowsers » 10 Dec 2013

I get a nullreference exception in referencing another indicator value.

tr is a custom indicator.

The below line throws a nullreference.

double a1 = Indicator.TR.tr.Value;

Is this a limitation in MultiCharts.NET? If so, how can I reference indicator values in programming other custom indicators/studies?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Indicator Can't Access Another Indicator

Postby Henry MultiСharts » 11 Dec 2013

Please refer to the following sample code.
Attachments
Test_SignalByIndicator.pln
(1.88 KiB) Downloaded 507 times


Return to “MultiCharts .NET”