示例#1
0
        public override TradeAction SuggestedAction(decimal value, Trend moneyTrend)
        {
            var trend = FilterNearZero.Trend(value);

            this.IsCrossDown = FilterNearZero.CrossDown;
            this.IsCrossUp   = FilterNearZero.CrossUp;

            return(FilterNearZero.SuggestedAction(trend));
        }
示例#2
0
        public override TradeAction SuggestedAction(decimal value, Trend moneyTrend)
        {
            var trend = FilterNearZero.Trend(value);

            if (trend == Trend.Fall && FilterNearZero.CrossDown || trend == Trend.Raise && FilterNearZero.CrossUp)
            {
                return(FilterNearZero.SuggestedAction(trend));
            }

            return(TradeAction.Hold);
        }