Remove orderBy to improve perfs

This commit is contained in:
2025-11-15 14:17:21 +07:00
parent bed25e7222
commit 49a693b44a
16 changed files with 62 additions and 62 deletions

View File

@@ -37,7 +37,7 @@ public class SuperTrendIndicatorBase : IndicatorBase
ProcessSuperTrendSignals(superTrend, candles);
return Signals.Where(s => s.Confidence != Confidence.None).OrderBy(s => s.Date).ToList();
return Signals.Where(s => s.Confidence != Confidence.None).ToList();
}
catch (RuleException)
{
@@ -64,7 +64,6 @@ public class SuperTrendIndicatorBase : IndicatorBase
// Filter pre-calculated SuperTrend values to match the candles we're processing
superTrend = preCalculatedValues.SuperTrend
.Where(s => s.SuperTrend.HasValue && candles.Any(c => c.Date == s.Date))
.OrderBy(s => s.Date)
.ToList();
}
@@ -76,7 +75,7 @@ public class SuperTrendIndicatorBase : IndicatorBase
ProcessSuperTrendSignals(superTrend, candles);
return Signals.Where(s => s.Confidence != Confidence.None).OrderBy(s => s.Date).ToList();
return Signals.Where(s => s.Confidence != Confidence.None).ToList();
}
catch (RuleException)
{