2022-04-25 05:09:08 +00:00
|
|
|
# type: ignore
|
2020-09-28 17:43:15 +00:00
|
|
|
from pandas import DataFrame
|
2018-07-18 21:23:30 +00:00
|
|
|
|
2021-09-21 05:11:53 +00:00
|
|
|
from freqtrade.strategy import IStrategy
|
2020-09-28 17:43:15 +00:00
|
|
|
|
|
|
|
|
2022-04-25 05:02:09 +00:00
|
|
|
# Dummy strategy - no longer loads but raises an exception.
|
2021-08-26 05:04:33 +00:00
|
|
|
class TestStrategyLegacyV1(IStrategy):
|
2018-07-18 21:23:30 +00:00
|
|
|
|
|
|
|
minimal_roi = {
|
|
|
|
"40": 0.0,
|
|
|
|
"30": 0.01,
|
|
|
|
"20": 0.02,
|
|
|
|
"0": 0.04
|
|
|
|
}
|
|
|
|
stoploss = -0.10
|
|
|
|
|
2022-03-20 08:30:54 +00:00
|
|
|
timeframe = '5m'
|
2018-07-18 21:23:30 +00:00
|
|
|
|
|
|
|
def populate_indicators(self, dataframe: DataFrame) -> DataFrame:
|
|
|
|
|
|
|
|
return dataframe
|
|
|
|
|
|
|
|
def populate_buy_trend(self, dataframe: DataFrame) -> DataFrame:
|
|
|
|
|
|
|
|
return dataframe
|
|
|
|
|
|
|
|
def populate_sell_trend(self, dataframe: DataFrame) -> DataFrame:
|
2022-04-25 05:02:09 +00:00
|
|
|
|
2018-07-18 21:23:30 +00:00
|
|
|
return dataframe
|