protected override void Initialize() { // Initialize and create nested indicators _fastMA = Indicators.MovingAverage(Source, FastPeriodParameter, MovingAverageType.Exponential); _slowMA = Indicators.MovingAverage(Source, SlowPeriodParameter, MovingAverageType.Exponential); _swingHighLowIndicator = Indicators.GetIndicator <SwingHighLow>(Bars.HighPrices, Bars.LowPrices, SwingHighStrength); _atr = Indicators.AverageTrueRange(14, MovingAverageType.Exponential); }
protected override void Initialize() { // Initialize and create nested indicators Print("Initializing Resistence Break indicator"); _swingHighLowIndicator = Indicators.GetIndicator <SwingHighLow>(Bars.ClosePrices, Bars.ClosePrices, SwingHighStrength); _atr = Indicators.AverageTrueRange(14, MovingAverageType.Exponential); _latestSignalIndex = 0; Print("Finished initializing"); //GoToTestDate(); }