from freqtrade.strategy.interface import IStrategy class SampleStrategy(IStrategy): minimal_roi = { "0": 0.01 } stoploss = -0.10 timeframe = '5m' def populate_indicators(self, dataframe, metadata): return dataframe def populate_buy_trend(self, dataframe, metadata): dataframe.loc[:, 'buy'] = 0 dataframe.loc[dataframe['close'] > dataframe['open'], 'buy'] = 1 return dataframe def populate_sell_trend(self, dataframe, metadata): dataframe.loc[:, 'sell'] = 0 dataframe.loc[dataframe['close'] < dataframe['open'], 'sell'] = 1 return dataframe