I have tried adding parent indicator as parameter when calling the nested indicator however the parent indicator property reference within the nested indicator is always null.
How can I access parent Indicator values from nested?
Thank you
---parent indi script---
State = State.Configure
nestedIndicator = NestedIndicator(this)
OnBarUpdate
{
nestedIndicator.Update();
}
----------------------------
---nested indi script---
[xmlIgnore]
[NinjaScriptProperty]
public Indicator parentIndi {get; set;}
OnBarUpdate
{
if( parentIndi == null ) Print("parent is null");
}
-------------------------------
Comment