| | |
| | | GridElement upGridElement = GridElement.findById(gridElement.getUpId()); |
| | | if (upGridElement != null){ |
| | | BigDecimal upGridPrice = upGridElement.getGridPrice(); |
| | | TraderParam downLongTraderParam = upGridElement.getLongTraderParam(); |
| | | TraderParam upLongTraderParam = upGridElement.getLongTraderParam(); |
| | | if ( |
| | | !upGridElement.isHasLongOrder() && |
| | | upGridPrice.compareTo(longEntryPrice) <= 0 |
| | | ){ |
| | | placeEntryOrderWithPreFlag(upGridElement, true, |
| | | downLongTraderParam.getEntryPrice(), |
| | | upLongTraderParam.getEntryPrice(), |
| | | FuturesPriceTrigger.RuleEnum.NUMBER_1, |
| | | downLongTraderParam.getQuantity()); |
| | | upLongTraderParam.getQuantity()); |
| | | } |
| | | } |
| | | } |