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?
Indicator Can't Access Another Indicator
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Indicator Can't Access Another Indicator
Please refer to the following sample code.
- Attachments
-
- Test_SignalByIndicator.pln
- (1.88 KiB) Downloaded 507 times