yes
freqtrade completely ignores my RSI sell/buy signals
def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe.loc[
(
(dataframe['rsi'] > 47) &
(dataframe["close"] < dataframe['bb_lowerband'])
),
'buy'] = 1
return dataframe
def populate_sell_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe.loc[
(
(dataframe['rsi'] > 86) &
(dataframe["close"] > dataframe['bb_upperband'])
),
'sell'] = 1
return dataframe
Well what's the expected behaviour?
You're buying when RSI > 47, and selling when it's > 86 ...
Also, i suspect it's a copy/paste error - but indention looks WAY off in the code-sample above, so please check that in your strategy file.
Sometimes it happens that you copied a strategy into another file, modified it, but forgotten to change the name of the strategy class. The old one will still probably be used without all your recent modifications... Please check this in the log (the name of the file the strategy is resolved from)
Also, your conditions in the strategy is not buy when RSI > 47, it's actually buy when RSI > 47 AND close < BBlower. Are you sure you actually have candles in the backtesting timerange where both comparisons are true for the same candle?
@issamBD is it still actual?
Solved, it was a copy paste error, the program was loading another strategy file. Thanks for the help guys