trail_price
Parameter: trail_price
Type: decimal
Required: No
Description:
- The price at which to start trailing the position.
- This parameter is optional. If not specified, no trailing will be enabled.
- The
TpMethod
in the MT5 connector determines how the trailing is activated:TpPrice
: Trailing starts when the specified price is reached.TpTick
: Trailing starts when the specified number of ticks is reached.TpPercent
: Trailing starts when the specified percentage from the entry price is surpassed.
Example:
JSON
{
"trail_price": 1.1220
}
Note:
- The
trail_price
parameter is only relevant if trailing is enabled in the MT5 connector. - Ensure that the
TpMethod
in the MT5 connector is set correctly to match the desired trailing behavior. - Incorrect or missing
trail_price
values may result in unexpected behavior.