Hi,
How should I add an existing indicator within a new one using NT7 ?
I obtained an indicator from a vendor and I would like to access it from within a newly created indicator (or if not possible from a strategy). For instance to determine the Low in a certain period., etc
In NT8 I would use OnStateChange and test if State equals State.DataLoaded to assign the indicator.
NT8:
public class ClassNameIndicator : Indicator { private NinjaTrader.NinjaScript.Indicators.SomeIndicator SI1; .... protected override void OnStateChange() { if (State == State.SetDefaults) {....} else if (State == State.Configure) { AddPlot(new Stroke(Brushes.Yellow), PlotStyle.Dot , "Dots"); ... } else if (State == State.DataLoaded) { // Instantiate the indicator SI1 = SomeIndicator(Close, true, ..);
How would I do this in NT7 ?
Comment