시뮬레이션 파라미터 조정하며 테스트
This commit is contained in:
@@ -129,7 +129,12 @@ namespace AutoSellerNS
|
||||
|
||||
string strOutFileName = Util.GetSimulationPath() + "/" + strCodeName + "-" + StartDT.ToString("yyyy-MM-dd") + ".xlsx";
|
||||
if(File.Exists(strOutFileName) == true)
|
||||
continue;
|
||||
{
|
||||
if(StartDT.DayOfYear == DateTime.Now.DayOfYear)
|
||||
File.Delete(strOutFileName);
|
||||
else
|
||||
continue;
|
||||
}
|
||||
|
||||
CPStockChart.SetInputValue(0, "A"+strCode);
|
||||
CPStockChart.SetInputValue(1, '1');
|
||||
@@ -172,6 +177,8 @@ namespace AutoSellerNS
|
||||
}
|
||||
|
||||
m_tbLogView.AppendText(string.Format("[Load] All End\n\n"));
|
||||
m_tbLogView.SelectionStart = m_tbLogView.TextLength;
|
||||
m_tbLogView.ScrollToCaret();
|
||||
}
|
||||
|
||||
public void StartSimuation()
|
||||
@@ -245,7 +252,7 @@ namespace AutoSellerNS
|
||||
|
||||
if(iAskCount >= Config.GetBidCount())
|
||||
{
|
||||
m_tbLogView.AppendText(string.Format("[{0}] 시뮬레이션 매도 {1} {2} {3} ({4} : {5:n2}%)\n",
|
||||
m_tbLogView.AppendText(string.Format("[{0}] 시뮬레이션 매도 {1} line:{2} {3:n0}원 ({4} : {5:n2}%)\n",
|
||||
strCodeName,
|
||||
RowDT.ToString("yyyy-MM-dd HH:mm:00"),
|
||||
iRow,
|
||||
@@ -266,7 +273,7 @@ namespace AutoSellerNS
|
||||
|
||||
if(iTrailingCount >= Config.GetTrailingCnt())
|
||||
{
|
||||
m_tbLogView.AppendText(string.Format("[{0}] 트레일링 매도 {1} {2} {3} ({4} : {5:n2}%)\n",
|
||||
m_tbLogView.AppendText(string.Format("[{0}] 트레일링 매도 {1} line:{2} {3:n0}원 ({4} : {5:n2}%)\n",
|
||||
strCodeName,
|
||||
RowDT.ToString("yyyy-MM-dd HH:mm:00"),
|
||||
iRow,
|
||||
@@ -285,7 +292,9 @@ namespace AutoSellerNS
|
||||
}
|
||||
}
|
||||
|
||||
m_tbLogView.AppendText(string.Format("[시뮬레이션 종료] 총수익 : {0:n0} : {1:n2}%\n\n", iTotalProfit, iTotalProfit*100/iTotalBid));
|
||||
m_tbLogView.AppendText(string.Format("[시뮬레이션 종료] 총수익 : {0:n0}원 : {1:n2}%\n\n", iTotalProfit, iTotalProfit*100/(float)iTotalBid));
|
||||
m_tbLogView.SelectionStart = m_tbLogView.TextLength;
|
||||
m_tbLogView.ScrollToCaret();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user