public MetSignalMstGrid() { InitializeComponent(); ost = OpenSystemTrading.GetInstance(); dbm = new DBManager(); ost.OnReceiveSignalMst += OST_OnReceiveSignalMst; }
public MetKOrderGrid() { InitializeComponent(); ost = OpenSystemTrading.GetInstance(); ost.OnReceivedAutoTradingOrderAccept += OST_OnReceivedAutoTradingOrderAccept; ost.OnReceivedAutoTradingOrderBalance += OST_OnReceivedAutoTradingOrderBalance; ost.OnReceivedAutoTradingOrderConclusion += OST_OnReceivedAutoTradingOrderConclusion; }
public MetFinChart() { InitializeComponent(); ost = OpenSystemTrading.GetInstance(); ost.OnReceivedChartData += OST_OnReceivedChartData; priceSeries = metChart.Series["priceSeries"]; volumeSeries = metChart.Series["volumeSeries"]; maSeries = metChart.Series["maSeries"]; priceChartArea = metChart.ChartAreas["priceChartArea"]; volumeChartArea = metChart.ChartAreas["volumeChartArea"]; priceSeries["priceUpColor"] = "Red"; priceSeries["PriceDownColor"] = "Blue"; metChart.MouseMove += Chart_MouseMove; }
public Form1() { InitializeComponent(); ost = OpenSystemTrading.GetInstance(); ost.SetAxKHOpenAPI(axKHOpenAPI1); dbm = new DBManager(); // *** 초기 세팅 ********************************************* lbItemInfo.Text = "종목명 : 종목코드 (일자) "; txtYmd.Text = DateTime.Now.ToString("yyyyMMdd"); cbAvgTerm.SelectedIndex = 2; cbTickType.SelectedIndex = 1; cbDayMinute.SelectedIndex = 0; // 이벤트 로그인ToolStripMenuItem.Click += Login; ost.OnLoged += UI_OnLoged; ost.OnReceivedStockItems += UI_OnOnReceivedStockItems; ost.OnReceivedLogMessage += UI_OnReceivedRealState; ost.OnReceivedItemInfo += UI_OnReceivedItemInfo; dbm.OnReceivedDBLogMessage += UI_OnReceivedDbLog; ost.OnReceivedStockItems += UI_OnReceivedStockItems; ost.OnReceivedAutoTradingOrderAccept += UI_OnReceivedAutoTradingOrderAccept; ost.OnReceivedAutoTradingOrderConclusion += UI_OnReceivedAutoTradingOrderConclusion; ost.OnReceivedOutstandingOrderList += UI_OnReceivedOutstandingOrderList; dg급거종목.CellClick += UI_OnCellClick; dg급거종목.SelectionMode = DataGridViewSelectionMode.FullRowSelect; txtYmd.TextChanged += UI_Text_Changed; cbAvgTerm.SelectedIndexChanged += UI_Cb_Changed; cbDayMinute.SelectedIndexChanged += UI_Cb_Changed; cbTickType.SelectedIndexChanged += UI_Cb_Changed; btnSave.Click += Btn_Click; btnSearch.Click += Btn_Click; btn검색사용자관심.Click += Btn_Click; btnReal.Click += Btn_Click; btnAtRealStart.Click += Btn_Click; btn미체결현황조회.Click += Btn_Click; btnAtItemSearch.Click += Btn_Click; }
public MetATItemGrid() { InitializeComponent(); ost = OpenSystemTrading.GetInstance(); dbm = new DBManager(); }