- 시뮬레이션 수정
This commit is contained in:
@@ -367,35 +367,38 @@ namespace AutoSellerNS
|
||||
private void btLoad_Click(object sender, EventArgs e)
|
||||
{
|
||||
SimulationHelper helper = new SimulationHelper(m_CybosHelper, tbSimulationLog);
|
||||
helper.LoadExcel();
|
||||
helper.LoadExcel2();
|
||||
}
|
||||
|
||||
private void btSimulate_Click(object sender, EventArgs e)
|
||||
{
|
||||
SimulationHelper helper = new SimulationHelper(m_CybosHelper, tbSimulationLog);
|
||||
helper.StartSimuation2();
|
||||
return;
|
||||
|
||||
int iOrgBidCount = Config.GetBidCount();
|
||||
float fOrgTrailingRate = Config.GetTrailingRate();
|
||||
int iOrgTraililngCount = Config.GetTrailingCnt();
|
||||
|
||||
for(int iBidCount = 4; iBidCount <= 8; iBidCount++)
|
||||
{
|
||||
for(float fTrailingRate=2.5f; fTrailingRate <= 5.0f; fTrailingRate += 0.5f)
|
||||
{
|
||||
for(int iTrailingCount = 2; iTrailingCount <= 4; iTrailingCount++)
|
||||
{
|
||||
Config.SetBidCount(iBidCount);
|
||||
Config.SetTrailing(fTrailingRate, iTrailingCount);
|
||||
//int iOrgBidCount = Config.GetBidCount();
|
||||
//float fOrgTrailingRate = Config.GetTrailingRate();
|
||||
//int iOrgTraililngCount = Config.GetTrailingCnt();
|
||||
|
||||
helper.StartSimuation();
|
||||
}
|
||||
}
|
||||
}
|
||||
//for(int iTrailingCount = 2; iTrailingCount <= 4; iTrailingCount++)
|
||||
//{
|
||||
// for(float fTrailingRate=2.5f; fTrailingRate <= 5.0f; fTrailingRate += 0.5f)
|
||||
// {
|
||||
// for(int iBidCount = 4; iBidCount <= 8; iBidCount++)
|
||||
// {
|
||||
// Config.SetBidCount(iBidCount);
|
||||
// Config.SetTrailing(fTrailingRate, iTrailingCount);
|
||||
|
||||
Config.SetBidCount(iOrgBidCount);
|
||||
Config.SetTrailing(fOrgTrailingRate, iOrgTraililngCount);
|
||||
// helper.StartSimuation();
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
Console.WriteLine("end");
|
||||
//Config.SetBidCount(iOrgBidCount);
|
||||
//Config.SetTrailing(fOrgTrailingRate, iOrgTraililngCount);
|
||||
|
||||
//Console.WriteLine("end");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user