protected override PatternResult <Match?> ComputeByIndexImpl(int index) { bool isHighest = Equity.Skip(Equity.Count - PeriodCount).Max(c => c.Close) == Equity[index].Close; return(new PatternResult <Match?>(Equity[index].DateTime, Decision.IsMatch(isHighest))); }
protected override PatternResult <Match?> ComputeByIndexImpl(int index) { var result = _smaIndicator.ComputeByIndex(index); return(new PatternResult <Match?>(Equity[index].DateTime, Decision.IsMatch(Equity[index].Close.IsLargerThan(result.Sma)))); }