Rate 비율 오류 수정

This commit is contained in:
kyh
2023-04-10 13:06:06 +09:00
parent 98bc353f46
commit 1bd0f1143c
2 changed files with 10 additions and 12 deletions

View File

@@ -350,8 +350,8 @@ namespace Million
var dic = new Dictionary<string, List<SearchResult>>();
Parallel.For(0, tableList.Count, i =>
{
// for (var i = 0; i < tableList.Count; i++)
//{
//for (var i = 0; i < tableList.Count; i++)
//{
var market = tableList[i];
var distinctIndicator = IndicatorSetupManager.Distinct(totalIndicator);
@@ -367,10 +367,10 @@ namespace Million
market, distinctIndicator, overlapBuyManagementList, buyScript, sellScript, sellExceptionScript);
dic[market.CoinFullName] = list;
}
//}
//}
});
foreach (var item in dic.Keys)
foreach (var item in dic.Keys)
{
if(dic.ContainsKey(item))
totalResultList.AddRange(dic[item]);

View File

@@ -416,15 +416,13 @@ namespace Million.Manager
{
itemValue = GetValue(child, setUp);
if (rateVal > itemValue)
{
child.CalculateFlag[setUp.IndexString] = true;
child.IndicatorDic[key] = new IndicatorData();
if (CommonProperty.RealtimeHunterMode)
itemValue = rateVal;
child.IndicatorDic[key].value = itemValue;
}
child.CalculateFlag[setUp.IndexString] = true;
child.IndicatorDic[key] = new IndicatorData();
if (CommonProperty.RealtimeHunterMode)
itemValue = rateVal;
child.IndicatorDic[key].value = itemValue;
}
}
}