sthewissen / Mynt

An Azure Functions-based crypto currency trading bot; featuring 10 exchanges, 25 indicators, custom strategy support, backtester and more
BSD 3-Clause "New" or "Revised" License
237 stars 128 forks source link

Add bugfix #4 - Wrong calculation of profit #6

Closed rjovic closed 6 years ago

rjovic commented 6 years ago

Wrong calculation of profit in ExecuteSellOrder method if the AmountOfBtcToInvestPerTrader is changed after the buy fixed by usingtrade.StakeAmount instead of Constants.AmountOfBtcToInvestPerTrader