From 1bd0f1143c87b684fee2e70fb2122b4b1f539606 Mon Sep 17 00:00:00 2001 From: kyh <1329522@naver.com> Date: Mon, 10 Apr 2023 13:06:06 +0900 Subject: [PATCH] =?UTF-8?q?Rate=20=EB=B9=84=EC=9C=A8=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Million Hunter/HunterMainForm.cs | 8 ++++---- Million/Manager/CalculateManager.cs | 14 ++++++-------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Million Hunter/HunterMainForm.cs b/Million Hunter/HunterMainForm.cs index 6c74c38..b116843 100644 --- a/Million Hunter/HunterMainForm.cs +++ b/Million Hunter/HunterMainForm.cs @@ -350,8 +350,8 @@ namespace Million var dic = new Dictionary>(); 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]); diff --git a/Million/Manager/CalculateManager.cs b/Million/Manager/CalculateManager.cs index 32cfd00..9f456e7 100644 --- a/Million/Manager/CalculateManager.cs +++ b/Million/Manager/CalculateManager.cs @@ -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; } } }