Trailing Stop Examples
Examples using trailing stop functionality. The trailing stop replaces the take-profit order and is activated at take_profit_price, so every example sets one. Trailing stops are not placed for paper bots.
Basic Trailing Stop
{
"strategy_key": "your_encrypted_strategy_key_here",
"exchange": "BINANCE",
"ticker": "BTCUSDT.P",
"position_side": "LONG",
"action": "BUY",
"entry_price": 50000,
"stop_loss_price": 48000,
"take_profit_price": 53000,
"is_trailing_stop_enabled": true,
"callback_rate": 1.0,
"leverage": 10
}
Tight Trailing for Scalping
{
"strategy_key": "your_encrypted_strategy_key_here",
"position_side": "LONG",
"action": "BUY",
"entry_price": 50000,
"stop_loss_price": 49700,
"take_profit_price": 53000,
"is_trailing_stop_enabled": true,
"callback_rate": 0.3,
"leverage": 20
}
Wide Trailing for Swing Trading
{
"strategy_key": "your_encrypted_strategy_key_here",
"position_side": "LONG",
"action": "BUY",
"entry_price": 50000,
"stop_loss_price": 47000,
"take_profit_price": 53000,
"is_trailing_stop_enabled": true,
"callback_rate": 2.0,
"leverage": 5
}
No Take Profit - Let Winners Run
{
"strategy_key": "your_encrypted_strategy_key_here",
"position_side": "LONG",
"action": "BUY",
"entry_price": 50000,
"stop_loss_price": 48000,
"is_trailing_stop_enabled": true,
"callback_rate": 1.5,
"leverage": 10
// No take_profit_price - trail indefinitely
}