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("데이터 저장 완료"); + } } ///