calculate_trailing_stop
Calculate dynamic trailing stop loss levels with breakeven and profit protection for Bybit trading positions. Input entry price, current price, and trailing distance to manage risk effectively.
Instructions
Calculate trailing stop loss with breakeven and profit protection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
breakevenTrigger | No | Price distance from entry to activate breakeven protection (optional) | |
category | Yes | Category (linear, inverse) | |
currentPrice | Yes | Current market price | |
entryPrice | Yes | Entry price of the position | |
initialStopLoss | Yes | Initial stop loss price | |
profitProtectionTrigger | No | Price distance from entry to activate profit protection (optional) | |
side | Yes | Position side (Buy for long, Sell for short) | |
symbol | Yes | Symbol (e.g., ETHUSDT) | |
trailingDistance | Yes | Trailing distance in price units |