Ticker 저장 기능 및 Check List Setting 2가지 추가
This commit is contained in:
168
Million Buyer/MainForm.Designer.cs
generated
168
Million Buyer/MainForm.Designer.cs
generated
@@ -37,6 +37,8 @@
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.lb_StartDate = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.lb_TotalMoneyValue = new System.Windows.Forms.Label();
|
||||
this.lb_TotalRate = new System.Windows.Forms.Label();
|
||||
this.lb_BuyMarketCount = new System.Windows.Forms.Label();
|
||||
@@ -50,14 +52,11 @@
|
||||
this.rd_Realtime = new System.Windows.Forms.RadioButton();
|
||||
this.rd_buyer = new System.Windows.Forms.RadioButton();
|
||||
this.tl_BuyList = new DevExpress.XtraTreeList.TreeList();
|
||||
this.tl_Result = new DevExpress.XtraTreeList.TreeList();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.BuyMarket = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.BuyValue = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.BuyCount = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.BuyDateTime = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.tl_Result = new DevExpress.XtraTreeList.TreeList();
|
||||
this.Market = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.BuyValueData = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.BuyCountData = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
@@ -67,9 +66,12 @@
|
||||
this.SellDateTimeData = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.RateData = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.MoneyData = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.lb_log = new System.Windows.Forms.ListBox();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.lb_StartDate = new System.Windows.Forms.Label();
|
||||
this.cb_IncludeClearIndicator = new System.Windows.Forms.CheckBox();
|
||||
this.cb_UpperMainIndi = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tl_BuyList)).BeginInit();
|
||||
@@ -78,6 +80,8 @@
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.cb_UpperMainIndi);
|
||||
this.groupBox1.Controls.Add(this.cb_IncludeClearIndicator);
|
||||
this.groupBox1.Controls.Add(this.lb_IndiName);
|
||||
this.groupBox1.Controls.Add(this.bt_Modify);
|
||||
this.groupBox1.Controls.Add(this.label6);
|
||||
@@ -87,7 +91,7 @@
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Location = new System.Drawing.Point(12, 52);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(362, 111);
|
||||
this.groupBox1.Size = new System.Drawing.Size(362, 159);
|
||||
this.groupBox1.TabIndex = 5;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "데이터 Setting";
|
||||
@@ -165,13 +169,30 @@
|
||||
this.groupBox2.Controls.Add(this.label5);
|
||||
this.groupBox2.Controls.Add(this.label3);
|
||||
this.groupBox2.Controls.Add(this.label4);
|
||||
this.groupBox2.Location = new System.Drawing.Point(12, 169);
|
||||
this.groupBox2.Location = new System.Drawing.Point(12, 217);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(362, 191);
|
||||
this.groupBox2.TabIndex = 6;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "데이터 현황";
|
||||
//
|
||||
// lb_StartDate
|
||||
//
|
||||
this.lb_StartDate.AutoSize = true;
|
||||
this.lb_StartDate.Location = new System.Drawing.Point(102, 161);
|
||||
this.lb_StartDate.Name = "lb_StartDate";
|
||||
this.lb_StartDate.Size = new System.Drawing.Size(0, 12);
|
||||
this.lb_StartDate.TabIndex = 9;
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(39, 161);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(57, 12);
|
||||
this.label10.TabIndex = 8;
|
||||
this.label10.Text = "시작 시간";
|
||||
//
|
||||
// lb_TotalMoneyValue
|
||||
//
|
||||
this.lb_TotalMoneyValue.AutoSize = true;
|
||||
@@ -291,56 +312,12 @@
|
||||
this.BuyValue,
|
||||
this.BuyCount,
|
||||
this.BuyDateTime});
|
||||
this.tl_BuyList.Cursor = System.Windows.Forms.Cursors.Default;
|
||||
this.tl_BuyList.Location = new System.Drawing.Point(380, 31);
|
||||
this.tl_BuyList.Name = "tl_BuyList";
|
||||
this.tl_BuyList.Size = new System.Drawing.Size(415, 699);
|
||||
this.tl_BuyList.TabIndex = 11;
|
||||
//
|
||||
// tl_Result
|
||||
//
|
||||
this.tl_Result.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] {
|
||||
this.Market,
|
||||
this.BuyValueData,
|
||||
this.BuyCountData,
|
||||
this.BuyDateTimeData,
|
||||
this.SellValueData,
|
||||
this.SellCountData,
|
||||
this.SellDateTimeData,
|
||||
this.RateData,
|
||||
this.MoneyData});
|
||||
this.tl_Result.Location = new System.Drawing.Point(801, 31);
|
||||
this.tl_Result.Name = "tl_Result";
|
||||
this.tl_Result.Size = new System.Drawing.Size(796, 699);
|
||||
this.tl_Result.TabIndex = 12;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(17, 737);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(91, 23);
|
||||
this.button1.TabIndex = 13;
|
||||
this.button1.Text = "데이터 저장";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(378, 9);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(57, 12);
|
||||
this.label8.TabIndex = 14;
|
||||
this.label8.Text = "구매 목록";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(799, 9);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(129, 12);
|
||||
this.label9.TabIndex = 15;
|
||||
this.label9.Text = "구매 및 판매 완료 목록";
|
||||
//
|
||||
// BuyMarket
|
||||
//
|
||||
this.BuyMarket.Caption = "구매 항목";
|
||||
@@ -373,6 +350,24 @@
|
||||
this.BuyDateTime.Visible = true;
|
||||
this.BuyDateTime.VisibleIndex = 3;
|
||||
//
|
||||
// tl_Result
|
||||
//
|
||||
this.tl_Result.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] {
|
||||
this.Market,
|
||||
this.BuyValueData,
|
||||
this.BuyCountData,
|
||||
this.BuyDateTimeData,
|
||||
this.SellValueData,
|
||||
this.SellCountData,
|
||||
this.SellDateTimeData,
|
||||
this.RateData,
|
||||
this.MoneyData});
|
||||
this.tl_Result.Cursor = System.Windows.Forms.Cursors.Default;
|
||||
this.tl_Result.Location = new System.Drawing.Point(801, 31);
|
||||
this.tl_Result.Name = "tl_Result";
|
||||
this.tl_Result.Size = new System.Drawing.Size(796, 699);
|
||||
this.tl_Result.TabIndex = 12;
|
||||
//
|
||||
// Market
|
||||
//
|
||||
this.Market.Caption = "항목";
|
||||
@@ -445,31 +440,66 @@
|
||||
this.MoneyData.Visible = true;
|
||||
this.MoneyData.VisibleIndex = 8;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(17, 737);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(91, 23);
|
||||
this.button1.TabIndex = 13;
|
||||
this.button1.Text = "데이터 저장";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(378, 9);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(57, 12);
|
||||
this.label8.TabIndex = 14;
|
||||
this.label8.Text = "구매 목록";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(799, 9);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(129, 12);
|
||||
this.label9.TabIndex = 15;
|
||||
this.label9.Text = "구매 및 판매 완료 목록";
|
||||
//
|
||||
// lb_log
|
||||
//
|
||||
this.lb_log.FormattingEnabled = true;
|
||||
this.lb_log.ItemHeight = 12;
|
||||
this.lb_log.Location = new System.Drawing.Point(12, 366);
|
||||
this.lb_log.Location = new System.Drawing.Point(12, 414);
|
||||
this.lb_log.Name = "lb_log";
|
||||
this.lb_log.Size = new System.Drawing.Size(362, 364);
|
||||
this.lb_log.Size = new System.Drawing.Size(362, 316);
|
||||
this.lb_log.TabIndex = 16;
|
||||
//
|
||||
// label10
|
||||
// cb_IncludeClearIndicator
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(39, 161);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(57, 12);
|
||||
this.label10.TabIndex = 8;
|
||||
this.label10.Text = "시작 시간";
|
||||
this.cb_IncludeClearIndicator.AutoSize = true;
|
||||
this.cb_IncludeClearIndicator.Checked = true;
|
||||
this.cb_IncludeClearIndicator.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cb_IncludeClearIndicator.Location = new System.Drawing.Point(10, 109);
|
||||
this.cb_IncludeClearIndicator.Name = "cb_IncludeClearIndicator";
|
||||
this.cb_IncludeClearIndicator.Size = new System.Drawing.Size(170, 16);
|
||||
this.cb_IncludeClearIndicator.TabIndex = 8;
|
||||
this.cb_IncludeClearIndicator.Text = "판매 완료 조건으로 Setting";
|
||||
this.cb_IncludeClearIndicator.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lb_StartDate
|
||||
// cb_UpperMainIndi
|
||||
//
|
||||
this.lb_StartDate.AutoSize = true;
|
||||
this.lb_StartDate.Location = new System.Drawing.Point(102, 161);
|
||||
this.lb_StartDate.Name = "lb_StartDate";
|
||||
this.lb_StartDate.Size = new System.Drawing.Size(0, 12);
|
||||
this.lb_StartDate.TabIndex = 9;
|
||||
this.cb_UpperMainIndi.AutoSize = true;
|
||||
this.cb_UpperMainIndi.Checked = true;
|
||||
this.cb_UpperMainIndi.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cb_UpperMainIndi.Location = new System.Drawing.Point(10, 131);
|
||||
this.cb_UpperMainIndi.Name = "cb_UpperMainIndi";
|
||||
this.cb_UpperMainIndi.Size = new System.Drawing.Size(212, 16);
|
||||
this.cb_UpperMainIndi.TabIndex = 9;
|
||||
this.cb_UpperMainIndi.Text = "메인조건이 사전조건보다 높아야함";
|
||||
this.cb_UpperMainIndi.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
@@ -545,6 +575,8 @@
|
||||
private System.Windows.Forms.ListBox lb_log;
|
||||
private System.Windows.Forms.Label lb_StartDate;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.CheckBox cb_UpperMainIndi;
|
||||
private System.Windows.Forms.CheckBox cb_IncludeClearIndicator;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,10 @@ namespace Million_Buyer
|
||||
Million.DbManagement.DBConnection.QueryUpdateExcuter
|
||||
(CommonProperty.DbConnectionResultData, DbServiceFunctions.CreateRealTimeIndicatorTableQuery());
|
||||
|
||||
// 데이터 검증을 위한 DB Table 생성
|
||||
Million.DbManagement.DBConnection.QueryUpdateExcuter
|
||||
(CommonProperty.DbConnectionResultData, DbServiceFunctions.CreateVerifyTickerDataTableQuery());
|
||||
|
||||
_saveResultData = new SavedResultData
|
||||
{
|
||||
BuySetupList = new List<object>(),
|
||||
@@ -214,7 +218,10 @@ namespace Million_Buyer
|
||||
dataList = realTimeMsg.GetRealTimeCandleData(candleTypeList, 200);
|
||||
foreach (var item in realTimeMsg.codeFullNameList)
|
||||
{
|
||||
overlapBuyManagementList[item] = true;
|
||||
if(cb_IncludeClearIndicator.Checked)
|
||||
overlapBuyManagementList[item] = false;
|
||||
else
|
||||
overlapBuyManagementList[item] = true;
|
||||
}
|
||||
firstFlag = 1;
|
||||
InsertLog("Deafult Data Setting 완료..");
|
||||
@@ -260,7 +267,7 @@ namespace Million_Buyer
|
||||
var minDateTime = dic[MCandleTimeType.M1].Select(t => t.DateTime).Min();
|
||||
var maxDateTime = dic[MCandleTimeType.M1].Select(t => t.DateTime).Max().AddHours(1);
|
||||
|
||||
dic = IndicatorSetupManager.CalculateIndicator(dic, totalIndicatorList, minDateTime, maxDateTime, true);
|
||||
dic = IndicatorSetupManager.CalculateIndicator(dic, totalIndicatorList, minDateTime, maxDateTime, cb_UpperMainIndi.Checked, true);
|
||||
#endregion
|
||||
|
||||
#region 사고 파는 로직
|
||||
|
||||
@@ -129,6 +129,7 @@
|
||||
<EmbeddedResource Include="MainForm.resx">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\licenses.licx" />
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
|
||||
Reference in New Issue
Block a user