The NFIX_BB_RPB strategy is a trading strategy that involves backtesting various indicators and conditions to determine buy signals. Here is a breakdown of what the strategy does:
Populating Indicators:
The strategy retrieves BTC price data based on the stake currency specified. If available, it retrieves BTC daily timeframe indicators and merges them with the main dataframe.
If available, it retrieves BTC informative timeframe (1h) indicators and merges them with the main dataframe.
If available, it retrieves BTC base timeframe (5m) indicators and merges them with the main dataframe.
It also merges informative timeframe indicators (1d and 1h) with the main dataframe. If specified, the main dataframe can be resampled to another timeframe and merged with the resampled indicators. Finally, it calculates indicators for the normal timeframe (5m) and returns the updated dataframe. Populating Buy Trend:
The strategy sets up a list of conditions for determining buy signals. It iterates through the buy protection parameters defined in the configuration. For each parameter, it checks if the corresponding buy condition is enabled. It then applies various conditions and checks against indicators in the dataframe. These conditions include comparisons with exponential moving averages (EMA), closing price, simple moving averages (SMA), and percentage changes. If safe dip thresholds or safe pump thresholds are defined, they are also considered. Finally, a 'buy_tag' column is added to the dataframe to indicate the buy signal. This strategy utilizes different indicators and conditions at various timeframes to generate buy signals for trading.