protected override void Initialize() { string IndicatorName = GetType().ToString().Substring(GetType().ToString().LastIndexOf('.') + 1); // returns ClassName Print("Indicator: " + IndicatorName); Print("IndicatorTimeZone: {0} Offset: {1} DST: {2}", TimeZone, TimeZone.BaseUtcOffset, TimeZone.SupportsDaylightSavingTime); PeakCount = 0; LastSlopePeak = paramSlopePeakTolerance; LastSlopeValley = -paramSlopePeakTolerance; LastPeakClose = 0; MA = Indicators.GetIndicator<mySmoothSMA>(MarketSeries.Close, paramPeriods, paramSmoothing); }
protected override void Initialize() { string IndicatorName = GetType().ToString().Substring(GetType().ToString().LastIndexOf('.') + 1); // returns ClassName Print("Indicator: " + IndicatorName); Print("IndicatorTimeZone: {0} Offset: {1} DST: {2}", TimeZone, TimeZone.BaseUtcOffset, TimeZone.SupportsDaylightSavingTime); PeakCount = 0; LastSlopePeak = paramSlopePeakTolerance; LastSlopeValley = -paramSlopePeakTolerance; LastPeakClose = 0; MA = Indicators.GetIndicator <mySmoothSMA>(MarketSeries.Close, paramPeriods, paramSmoothing); }