stopLossPrice method

C stopLossPrice(
  1. double stopLossPrice
)

Implementation

C stopLossPrice(double stopLossPrice) {
  final sanitizedValue = sanitizeDouble(stopLossPrice);

  return patchState(MatexBaseCoreState(
    stopLossPrice: sanitizedValue,
    stopLossPips: 0,
  ));
}