public static int?FindLastCandleIndexOrDefault(this Equity equity, Predicate <Candle> predicate) { int index = equity.ToList().FindLastIndex(predicate); return(index == -1 ? (int?)null : index); }
public static int?FindLastCandleIndexOrDefault(this Equity equity, Predicate <Candle> predicate) { int index = equity.ToList().FindLastIndex(predicate); return(index == -1 ? (int?)null : index); }