private void m_listStrat_DoubleClick(object sender, EventArgs e) { if (m_listStrat.SelectedItem.ToString().Equals("FDDL")) { FDDLUIBinder.openWindow(); } }
private void FDDLSummary_FormClosing(object sender, FormClosingEventArgs e) { FDDLUIBinder.getBeforeWrapper().closedSummaryWindow(); FDDLUIBinder.getRegularWrapper().closedSummaryWindow(); FDDLUIBinder.getAfterWrapper().closedSummaryWindow(); FDDLUIBinder.getAAfterWrapper().closedSummaryWindow(); }
private void FDDLSummary_Load(object sender, EventArgs e) { FDDLUIBinder.getBeforeWrapper().openedSummaryWindow(m_before, null); FDDLUIBinder.getRegularWrapper().openedSummaryWindow(m_regular, m_regularUnitCtr); FDDLUIBinder.getAfterWrapper().openedSummaryWindow(m_after, null); FDDLUIBinder.getAAfterWrapper().openedSummaryWindow(m_nregular, m_nregularUnitCtr); }
private void forthTrial(object sender, ElapsedEventArgs e) { int orderQuantity = getQuantity() - getAchieved(); var exeData = new FDDLExecutionData(m_stockName, OrderType.BUY, getQuantity(), orderQuantity); var evcall = new FDDLContractionEventCallback(this, exeData, FDDLUIBinder.getAAfterWrapper()); ContractionEventManager.addCallback("FDDL-AAfter", evcall); int res = ProgramControl.getGateway().SendOrder("FDDL-AAfter", Screens.SCREEN_FDDLORDER, SystemInfo.ACCOUNT, 1, getStockCode(), orderQuantity, getPrice(), "62", ""); if (res != 0) { //Debug Log -> 리턴코드 값 / 리턴코드표 참고 } }
private void secondTrial(object sender, ElapsedEventArgs e) { var exeData = new FDDLExecutionData(m_stockName, OrderType.SELL, getQuantity(), getQuantity() - getAchieved()); FDDLContractionEventCallback evcall = new FDDLContractionEventCallback(null, exeData, FDDLUIBinder.getAfterWrapper()); ContractionEventManager.addCallback("FDDL-SecondSell", evcall); int res = ProgramControl.getGateway().SendOrder("FDDL-SecondSell", Screens.SCREEN_FDDLORDER, SystemInfo.ACCOUNT, 2, getStockCode(), getQuantity(), 0, "81", ""); if (res != 0) { //Debug Log -> 리턴코드 값 / 리턴코드표 참고 } }
private void firstTrial(object sender, ElapsedEventArgs e) { var exeData = new FDDLExecutionData(m_stockName, OrderType.BUY, getQuantity(), getQuantity()); FDDLContractionEventCallback evcall = new FDDLContractionEventCallback(this, exeData, FDDLUIBinder.getBeforeWrapper()); ContractionEventManager.addCallback("FDDL-Before", evcall); int res = ProgramControl.getGateway().SendOrder("FDDL-Before", Screens.SCREEN_FDDLORDER, SystemInfo.ACCOUNT, 1, getStockCode(), getQuantity(), 0, "61", ""); if (res != 0) { //Debug Log -> 리턴코드 값 / 리턴코드표 참고 } }
public void eventCallback(TrInfoWrapper wrapper) { int ep = int.Parse(wrapper.getData("현재가", 0)); if (ep <= m_parent.getPrice()) { int orderQuantity = m_parent.getQuantity() - m_parent.getAchieved(); var exeData = new FDDLExecutionData(m_parent.getStockName(), OrderType.BUY, m_parent.getQuantity(), orderQuantity); FDDLContractionEventCallback evcall = new FDDLContractionEventCallback(m_parent, exeData, FDDLUIBinder.getAfterWrapper()); ContractionEventManager.addCallback("FDDL-AfterOrder", evcall); int res = ProgramControl.getGateway().SendOrder("FDDL-AfterOrder", Screens.SCREEN_FDDLORDER, SystemInfo.ACCOUNT, 1, m_parent.getStockCode(), orderQuantity, 0, "81", ""); if (res != 0) { //Debug Log -> 리턴코드 값 / 리턴코드표 참고 } } }