示例#1
0
        protected override decimal Calculate()
        {
            var emaShort = Short.Calculate();
            var emaLong  = Long.Calculate();
            var macd     = emaShort - emaLong;

            Signal.Add(macd);
            var signalLine = Signal.Calculate();

            currentmacd       = macd;
            currentSignalLine = signalLine;

            return(macd - signalLine);
        }