| | |
| | | .maxPositionPerSide(dto.getMaxPositionPerSide()) |
| | | .addPositionStartThreshold(dto.getAddPositionStartThreshold() >= 0 ? dto.getAddPositionStartThreshold() : 1) |
| | | .placeExcessTakeProfit(normalizeTakeProfitMode(dto.getPlaceExcessTakeProfit())) |
| | | .customStopLossEnabled(nvl(dto.getCustomStopLossEnabled(), false)) |
| | | .longCustomStopLossPrice(dto.getLongCustomStopLossPrice()) |
| | | .shortCustomStopLossPrice(dto.getShortCustomStopLossPrice()) |
| | | .dualStopLossEnabled(nvl(dto.getDualStopLossEnabled(), false)) |
| | | .longStopLossPrice(dto.getLongStopLossPrice()) |
| | | .shortStopLossPrice(dto.getShortStopLossPrice()) |
| | | .build(); |
| | | } |
| | | |