revised code
This commit is contained in:
parent
296d3d8bbe
commit
57f683697d
@ -7,10 +7,10 @@ from abc import ABC, abstractmethod
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import Dict, List, NamedTuple, Tuple
|
from typing import Dict, List, NamedTuple, Tuple
|
||||||
|
import warnings
|
||||||
|
|
||||||
import arrow
|
import arrow
|
||||||
from pandas import DataFrame
|
from pandas import DataFrame
|
||||||
import warnings
|
|
||||||
|
|
||||||
from freqtrade import constants
|
from freqtrade import constants
|
||||||
from freqtrade.exchange.exchange_helpers import parse_ticker_dataframe
|
from freqtrade.exchange.exchange_helpers import parse_ticker_dataframe
|
||||||
@ -86,10 +86,7 @@ class IStrategy(ABC):
|
|||||||
:return: DataFrame with buy column
|
:return: DataFrame with buy column
|
||||||
"""
|
"""
|
||||||
warnings.warn("deprecated - please replace this method with advise_buy!", DeprecationWarning)
|
warnings.warn("deprecated - please replace this method with advise_buy!", DeprecationWarning)
|
||||||
dataframe.loc[
|
dataframe.loc[(), 'buy'] = 0
|
||||||
(
|
|
||||||
),
|
|
||||||
'buy'] = 0
|
|
||||||
return dataframe
|
return dataframe
|
||||||
|
|
||||||
def populate_sell_trend(self, dataframe: DataFrame) -> DataFrame:
|
def populate_sell_trend(self, dataframe: DataFrame) -> DataFrame:
|
||||||
@ -99,10 +96,7 @@ class IStrategy(ABC):
|
|||||||
:return: DataFrame with sell column
|
:return: DataFrame with sell column
|
||||||
"""
|
"""
|
||||||
warnings.warn("deprecated - please replace this method with advise_sell!", DeprecationWarning)
|
warnings.warn("deprecated - please replace this method with advise_sell!", DeprecationWarning)
|
||||||
dataframe.loc[
|
dataframe.loc[(), 'sell'] = 0
|
||||||
(
|
|
||||||
),
|
|
||||||
'sell'] = 0
|
|
||||||
return dataframe
|
return dataframe
|
||||||
|
|
||||||
def get_strategy_name(self) -> str:
|
def get_strategy_name(self) -> str:
|
||||||
|
@ -37,7 +37,6 @@ class StrategyResolver(object):
|
|||||||
config=config,
|
config=config,
|
||||||
extra_dir=config.get('strategy_path'))
|
extra_dir=config.get('strategy_path'))
|
||||||
|
|
||||||
self.strategy.config = config
|
|
||||||
|
|
||||||
# Set attributes
|
# Set attributes
|
||||||
# Check if we need to override configuration
|
# Check if we need to override configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user