From indicatorB, when I code IndicatorA().PropertyName from within onbarupdate(), I get the original default value as set in indicatorA variable section and not the value the user set via indicatorA's dialog.
I use configurable properties all the time and the work great when only reference by the indicator that set them.
Is there a way to get the value the user has set in the dialog from another indicator?
///****IndicatorA
private int propertyTest = 2;
// Initialize has nothing related
// OnBarUpdate has nothing related
#region Properties
[Category("Whatever")]
[Description("Sets the whatever")]
[NinjaTrader.Gui.Design.DisplayName("Whatever Property)")]
public int PropertyTest
{
get { return propertyTest ; }
set { propertyTest = value; }
}
#endregion
//**** IndicatorB
...OnBarUpdate()
{
Print("Test: " + IndicatorA().PropertTest) <----- always prints "2"
}
Test: 2 Test: 10

Comment