Risk

Parameter: risk

Type: decimal Required: No

Description:

  • The percentage of equity to risk per position.
  • This parameter is only taken into account if the SizingMethod in the MT5 connector is set to PS_PercentageOfEquity, and the PositionSize is set to 0.0.
  • If a risk value is specified, a stop-loss (SL) must also be defined either by price or as a percentage from the current price.

Example:

JSON

{
    "risk": 2.0,
    "sl": 1.2001
}

Note:

  • The risk parameter is optional. If not specified, the position size will be determined by other factors in the MT5 connector.
  • If risk is specified, ensure that the SizingMethod and PositionSize in the MT5 connector are set correctly.
  • A stop-loss (SL) must be defined either by price or as a percentage from the current price when risk is specified. Failure to do so will result in an error and the order will not be sent.