private void setupOrderAndContext(AppOrder appOrder, String buySell, double triggerPrice, String remark, int indexExecution) { appOrderManager.addAppOrUpdateOrder(appOrder); appOrderManager.addOpenAppOrder(stgIndex, appOrder); if (indexExecution == 1) { execution.setPendingSignal1(buySell, triggerPrice, appOrder, remark); } else { execution.setPendingSignal2(buySell, triggerPrice, appOrder, remark); } }