working on refacturing of the strategy class

This commit is contained in:
Gert Wohlgemuth
2018-06-14 20:27:41 -07:00
parent bd6ed3ada4
commit 179b10e6e7
4 changed files with 71 additions and 18 deletions

View File

@@ -13,7 +13,6 @@ from typing import Optional, Dict, Type
from freqtrade import constants
from freqtrade.strategy.interface import IStrategy
logger = logging.getLogger(__name__)
@@ -36,6 +35,8 @@ class StrategyResolver(object):
self.strategy: IStrategy = self._load_strategy(strategy_name,
extra_dir=config.get('strategy_path'))
self.strategy.config = config
# Set attributes
# Check if we need to override configuration
if 'minimal_roi' in config: