stopLossPips method

C stopLossPips(
  1. double stopLossPips
)

Implementation

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

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