Skip to main content
Glama

Bybit MCP Server

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

NameRequiredDescriptionDefault
breakevenTriggerNoPrice distance from entry to activate breakeven protection (optional)
categoryYesCategory (linear, inverse)
currentPriceYesCurrent market price
entryPriceYesEntry price of the position
initialStopLossYesInitial stop loss price
profitProtectionTriggerNoPrice distance from entry to activate profit protection (optional)
sideYesPosition side (Buy for long, Sell for short)
symbolYesSymbol (e.g., ETHUSDT)
trailingDistanceYesTrailing distance in price units

Input Schema (JSON Schema)

{ "properties": { "breakevenTrigger": { "description": "Price distance from entry to activate breakeven protection (optional)", "type": "number" }, "category": { "description": "Category (linear, inverse)", "type": "string" }, "currentPrice": { "description": "Current market price", "type": "number" }, "entryPrice": { "description": "Entry price of the position", "type": "number" }, "initialStopLoss": { "description": "Initial stop loss price", "type": "number" }, "profitProtectionTrigger": { "description": "Price distance from entry to activate profit protection (optional)", "type": "number" }, "side": { "description": "Position side (Buy for long, Sell for short)", "type": "string" }, "symbol": { "description": "Symbol (e.g., ETHUSDT)", "type": "string" }, "trailingDistance": { "description": "Trailing distance in price units", "type": "number" } }, "required": [ "category", "symbol", "entryPrice", "currentPrice", "side", "initialStopLoss", "trailingDistance" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kondisettyravi/mcp-bybit-node'

If you have feedback or need assistance with the MCP directory API, please join our Discord server