chrisleekr / binance-trading-bot

Automated Binance trading bot - Trade multiple cryptocurrencies. Buy low/sell high with Grid Trading. Integrated with TradingView technical analysis
MIT License
5.05k stars 1.09k forks source link

Increase "Stop price percentage" over time/orders #94

Open BramFr opened 3 years ago

BramFr commented 3 years ago

Have you ever consider to increase Stop price percentage over time?

Example: Current price: 1 Trigger percentage : 1.01 Stop price percentage: 0.99

When the current price hits the Trigger percentage a sell order will be placed. When we have a pike to current price 1.20 the stop price percentage are still 0.99.

At this point you have: Current price: 1.20 Trigger percentage : 1.01 Stop price percentage: 0.99

So if the price drops to 1.188 it will sell everything. Because we have already >10% profit i will be happy to change the Stop price percentage from 0.99 to 0.95 to be sure / to increase the chance you don`t miss the next spike.

chrisleekr commented 3 years ago

Hmm, I always surprise that people have many great ideas.

This sounds good. Let me summarise what I understood

  1. New configuration
    • Override profit percentage: 10%
    • Override stop price percentage: 0.95
  2. When the profit is over 10%, then use overridden stop price percentage of 0.95. If less than 10%, then use the original stop price percentage.
Maxoos commented 3 years ago

@chrisleekr you can use ^ to generate a factor that will change the stop price percentages based on the profit amount. Same as here:

https://github.com/chrisleekr/binance-trading-bot/issues/246