From 05f31515290499786077fa45662750276c45edd8 Mon Sep 17 00:00:00 2001 From: kyh <1329522@naver.com> Date: Sat, 24 Sep 2022 22:32:48 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=98=EB=AF=B8=EC=97=86=EB=8A=94=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Million Buyer/MainForm.cs | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/Million Buyer/MainForm.cs b/Million Buyer/MainForm.cs index 01c8b77..2b2e5a3 100644 --- a/Million Buyer/MainForm.cs +++ b/Million Buyer/MainForm.cs @@ -457,22 +457,7 @@ namespace Million_Buyer else { winRate = (win * 100 / (win + lose)); - } - - double tt = 0; - double t1 = 0; - foreach (var item in resultDataList) - { - var buy = item.BuyList.CandleDataLists_Im[0]; - var sell = item.SellData; - - tt += ((sell.SellValue - buy.BuyValue) / buy.BuyValue) * 100; - - if (buy.BuyValue < sell.SellValue) t1++; - } - - - tt /= resultDataList.Count; + } _saveResultData.ResultDataCount = resultDataList.Count; _saveResultData.FirstWinRate = (firstWin * 100) / resultDataList.Count; _saveResultData.FirstProfitRate = firstProfitRate; @@ -488,9 +473,9 @@ namespace Million_Buyer DBConnection.QueryInsertExcuter_SavedResultData(_saveResultData); _saveResultData.StartDateTime = DateTime.Now; - resultDataList.Clear(); - } - MessageBox.Show("데이터 저장 완료"); + resultDataList.Clear(); + MessageBox.Show("데이터 저장 완료"); + } } ///