takeProfitAmount method

C takeProfitAmount(
  1. double takeProfitAmount
)

Implementation

C takeProfitAmount(double takeProfitAmount) {
  return patchState(MatexBaseCoreState(
    takeProfitPrice: 0.0,
    takeProfitPips: 0.0,
    takeProfitAmount: sanitizeDouble(takeProfitAmount),
  ));
}