mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
update comments to explain what advise methods do
This commit is contained in:
parent
8a9c54ed61
commit
791c5ff071
|
@ -282,10 +282,8 @@ class IStrategy(ABC):
|
|||
|
||||
def advise_indicators(self, dataframe: DataFrame, pair: str) -> DataFrame:
|
||||
"""
|
||||
|
||||
This wraps around the internal method
|
||||
|
||||
Populate indicators that will be used in the Buy and Sell strategy
|
||||
If not overridden, calls the legacy method `populate_indicators to keep strategies working
|
||||
:param dataframe: Raw data from the exchange and parsed by parse_ticker_dataframe()
|
||||
:param pair: The currently traded pair
|
||||
:return: a Dataframe with all mandatory indicators for the strategies
|
||||
|
@ -295,6 +293,7 @@ class IStrategy(ABC):
|
|||
def advise_buy(self, dataframe: DataFrame, pair: str) -> DataFrame:
|
||||
"""
|
||||
Based on TA indicators, populates the buy signal for the given dataframe
|
||||
If not overridden, calls the legacy method `populate_buy_trend to keep strategies working
|
||||
:param dataframe: DataFrame
|
||||
:param pair: The currently traded pair
|
||||
:return: DataFrame with buy column
|
||||
|
@ -305,6 +304,7 @@ class IStrategy(ABC):
|
|||
def advise_sell(self, dataframe: DataFrame, pair: str) -> DataFrame:
|
||||
"""
|
||||
Based on TA indicators, populates the sell signal for the given dataframe
|
||||
If not overridden, calls the legacy method `populate_sell_trend to keep strategies working
|
||||
:param dataframe: DataFrame
|
||||
:param pair: The currently traded pair
|
||||
:return: DataFrame with sell column
|
||||
|
|
Loading…
Reference in New Issue
Block a user