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)); }
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); }