added tests for position sizing

This commit is contained in:
misagh
2018-11-30 17:59:51 +01:00
parent abd88767f8
commit 12471e012e
2 changed files with 38 additions and 4 deletions

View File

@@ -164,7 +164,7 @@ class Edge():
if pair not in self._cached_pairs:
logger.warning("cannot find %s in calculated pairs, "
"stake_amount of strategy is used instead.", pair)
return self.strategy.stake_amount
return self.config['stake_amount']
stoploss = self._cached_pairs[pair].stoploss
available_capital = total_capital * self._capital_percentage