Haehnchen / crypto-trading-bot

Cryptocurrency trading bot in javascript for Bitfinex, Bitmex, Binance, Bybit ... (public edition)
MIT License
3.09k stars 979 forks source link

Profit, stop and limit are not accurate when leveraged #56

Open doftorul opened 5 years ago

doftorul commented 5 years ago

When the position is leveraged (eg: 25x) the profit % displayed in the Trades page is not accurate.

Setting a % for the stop loss or TP in instance.js is also wrongly interpreted when leverage is used.

mrseeker commented 5 years ago

Bot does not take leverage into account.