However, trying to access a public property in `ExposingIndicator` from `CallingIndicator` using:
protected override void OnBarUpdate()
{
Print(ExposingIndicator().BarMarginOffset);
}
ERROR: Indicator 'ExposingIndicator': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
ERROR: Indicator 'CallingIndicator': Error on calling 'EventHandlerBarsUpdate' method: Object reference not set to an instance of an object.
The value for `BarMarginOffset` is returned but then `CallingIndicator` crashes. My guess is that something is null somewhere.
This one has me stumped. Any pointers would be greatly appreciated.
Just to clarify, I'm trying to access a value from another running indicator. So, I guess what I am asking is, how do I hook into a currently running indicator in order to access its properties?

Comment