コード例 #1
0
ファイル: mySmoothSMASlope.cs プロジェクト: Mikai47/cAlgoBot
        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);
        }
コード例 #2
0
        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);
        }