calculate_trailing_stop
Automate trailing stop loss calculations for Bybit trades, enabling breakeven and profit protection based on market price, entry price, and specified triggers.
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 |