Introduce strategy_version variable
This commit is contained in:
@@ -153,6 +153,10 @@ class StrategyResolver(IResolver):
|
||||
strategy._populate_fun_len = len(getfullargspec(strategy.populate_indicators).args)
|
||||
strategy._buy_fun_len = len(getfullargspec(strategy.populate_buy_trend).args)
|
||||
strategy._sell_fun_len = len(getfullargspec(strategy.populate_sell_trend).args)
|
||||
if any([x == 2 for x in [strategy._populate_fun_len,
|
||||
strategy._buy_fun_len,
|
||||
strategy._sell_fun_len]]):
|
||||
strategy.strategy_version = 1
|
||||
|
||||
try:
|
||||
return import_strategy(strategy, config=config)
|
||||
|
Reference in New Issue
Block a user