Code cleanup.

This commit is contained in:
2025-02-20 10:34:04 -05:00
parent cc353a4563
commit aebd58be25
2 changed files with 4 additions and 7 deletions

View File

@@ -1,16 +1,12 @@
using MarketData.Cache;
using MarketData.DataAccess;
using MarketData.Generator.Indicators;
using MarketData.Generator.MovingAverage;
using MarketData.Helper;
using MarketData.MarketDataModel;
using MarketData.Numerical;
using MarketData.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MarketData.Generator.CMTrend
{
@@ -206,7 +202,8 @@ namespace MarketData.Generator.CMTrend
}
// Trend #8 check. Evaluate the RSI
RSICollection rsiCollection=RSIGenerator.GenerateRSI(symbol,currentPrice.Date,30); // generate a 14 day standard RSI with 30 days of pricing data
// generate a 14 day standard RSI with 30 days of pricing data
RSICollection rsiCollection=RSIGenerator.GenerateRSI(symbol,currentPrice.Date,30);
if(null==rsiCollection||0==rsiCollection.Count||rsiCollection[rsiCollection.Count-1].RSI<cmtParams.MinRSI)
{
cmtCandidate.Violation=true;