Overridable attributs as list
This commit is contained in:
parent
5e23442032
commit
a7dc6b18aa
@ -40,15 +40,19 @@ class StrategyResolver(IResolver):
|
|||||||
extra_dir=config.get('strategy_path'))
|
extra_dir=config.get('strategy_path'))
|
||||||
# Set attributes
|
# Set attributes
|
||||||
# Check if we need to override configuration
|
# Check if we need to override configuration
|
||||||
self._override_attribute_helper(config, "minimal_roi")
|
attributes = ["minimal_roi",
|
||||||
self._override_attribute_helper(config, "ticker_interval")
|
"ticker_interval",
|
||||||
self._override_attribute_helper(config, "stoploss")
|
"stoploss",
|
||||||
self._override_attribute_helper(config, "trailing_stop")
|
"trailing_stop",
|
||||||
self._override_attribute_helper(config, "trailing_stop_positive")
|
"trailing_stop_positive",
|
||||||
self._override_attribute_helper(config, "trailing_stop_positive_offset")
|
"trailing_stop_positive_offset",
|
||||||
self._override_attribute_helper(config, "process_only_new_candles")
|
"process_only_new_candles",
|
||||||
self._override_attribute_helper(config, "order_types")
|
"order_types",
|
||||||
self._override_attribute_helper(config, "order_time_in_force")
|
"order_time_in_force"
|
||||||
|
]
|
||||||
|
for attribute in attributes:
|
||||||
|
self._override_attribute_helper(config, attribute)
|
||||||
|
|
||||||
|
|
||||||
# Sort and apply type conversions
|
# Sort and apply type conversions
|
||||||
self.strategy.minimal_roi = OrderedDict(sorted(
|
self.strategy.minimal_roi = OrderedDict(sorted(
|
||||||
|
Loading…
Reference in New Issue
Block a user