nofx icon indicating copy to clipboard operation
nofx copied to clipboard

[FEATURE] Add Trailing Stop Functionality

Open sametkat opened this issue 1 year ago • 1 comments

📋 Feature Description

Add a trailing stop functionality to the bot, allowing stop-loss levels to move automatically as the market price moves in favor of a position.

🎯 Problem to Solve

Currently, the bot only supports fixed stop-loss and take-profit levels. Users cannot secure profits dynamically or reduce losses efficiently during market swings.

💡 Proposed Solution

  • Implement a trailing stop that adjusts the stop-loss level based on a set percentage or fixed price interval.
  • The trailing stop should work for both long and short positions.
  • Users can configure trailing stop parameters in the bot settings.
  • The bot updates the trailing stop in real-time according to market movements.

🔧 Technical Details

  • Integrate with existing stop-loss logic.
  • Consider update frequency per candle or per time interval to avoid excessive API calls.
  • Ensure compatibility with existing order execution logic.

✅ Acceptance Criteria

  • [ ] Users can enable/disable trailing stop in settings.
  • [ ] Trailing stop updates automatically as price moves favorably.
  • [ ] Supports both long and short positions.
  • [ ] Works alongside existing fixed stop-loss and take-profit orders.
  • [ ] Thoroughly tested in simulated and live trading environments.

📚 Additional Context

Trailing stop is a widely used risk management tool in trading. It allows traders to lock in profits while giving the trade room to grow, reducing the need for constant manual monitoring.

sametkat avatar Nov 01 '25 14:11 sametkat

+1

x1Seven avatar Nov 02 '25 14:11 x1Seven