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
SizingMethodin the MT5 connector is set toPS_PercentageOfEquity, and thePositionSizeis set to0.0. - If a
riskvalue 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
riskparameter is optional. If not specified, the position size will be determined by other factors in the MT5 connector. - If
riskis specified, ensure that theSizingMethodandPositionSizein 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
riskis specified. Failure to do so will result in an error and the order will not be sent.