| | |
| | | .dualStopLossEnabled(nvl(dto.getDualStopLossEnabled(), false)) |
| | | .longStopLossPrice(dto.getLongStopLossPrice()) |
| | | .shortStopLossPrice(dto.getShortStopLossPrice()) |
| | | .tpTriggerOppositeAddEnabled(nvl(dto.getTpTriggerOppositeAddEnabled(), false)) |
| | | .tpTriggerOppositeAddQuantity(dto.getTpTriggerOppositeAddQuantity() != null && dto.getTpTriggerOppositeAddQuantity() > 0 ? dto.getTpTriggerOppositeAddQuantity() : 0) |
| | | .baseTakeProfitPerGrid(dto.getBaseTakeProfitPerGrid() != null && dto.getBaseTakeProfitPerGrid() > 0 ? dto.getBaseTakeProfitPerGrid() : 0) |
| | | .baseTakeProfitGridCount(dto.getBaseTakeProfitGridCount() != null && dto.getBaseTakeProfitGridCount() > 0 ? dto.getBaseTakeProfitGridCount() : 0) |
| | | .build(); |
| | | } |
| | | |