mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-15 04:11:14 +00:00
edge tests fixed for position sizing
This commit is contained in:
@@ -336,6 +336,7 @@ class FreqtradeBot(object):
|
||||
stake_amount = self.edge.stake_amount(
|
||||
pair, self.wallets.get_free(self.config['stake_currency'])
|
||||
)
|
||||
return stake_amount
|
||||
else:
|
||||
stake_amount = self.config['stake_amount']
|
||||
|
||||
@@ -782,9 +783,6 @@ class FreqtradeBot(object):
|
||||
if sell_reason in (SellType.STOP_LOSS, SellType.TRAILING_STOP_LOSS):
|
||||
sell_type = 'stoploss'
|
||||
|
||||
if self.config.get('dry_run', False) and sell_type == 'stoploss':
|
||||
limit = trade.stop_loss
|
||||
|
||||
# Execute sell and update trade record
|
||||
order_id = self.exchange.sell(pair=str(trade.pair),
|
||||
ordertype=self.strategy.order_types[sell_type],
|
||||
|
||||
Reference in New Issue
Block a user