yasinkuyu / binance-trader

💰 Cryptocurrency Trading Bot for Binance (Experimental)
2.49k stars 825 forks source link

is the lossprice wrong? #307

Open 315960451 opened 2 months ago

315960451 commented 2 months ago

In the app file trading.py:

lossprice = stopprice - (stopprice * self.stop_loss / 100)

I think it should be

lossprice = stop_order['price'] - (stop_order['price'] * self.stop_loss / 100)