The RsiStrategy is a trading strategy that uses the Relative Strength Index (RSI) indicator to generate buy and sell signals. Here are the important parts of the strategy:
Timeframe: The strategy operates on daily candlestick data. Startup Candle Count: The strategy requires 25 candles before the generated signals become valid.
ROI (Return on Investment) Settings:
minimal_roi: This dictionary defines the different levels of ROI and their corresponding durations.
For example, after 0 candles, the ROI is 0.474, after 4817 candles, the ROI is 0.241, and so on.
stoploss: If the ROI goes below -0.226, the strategy will trigger a stop loss. Buy Signal:
The strategy calculates the RSI indicator with a time period of 14. If the RSI value is below a certain threshold (buy_rsi = 30), a buy signal is generated. Sell Signal:
If the RSI value is above a certain threshold (sell_rsi = 81), a sell signal is generated. Additional Settings:
trailing_stop: The strategy does not use a trailing stop. use_sell_signal: The strategy uses sell signals to trigger a sell. sell_profit_only: The strategy does not sell for profit only. sell_profit_offset: The profit offset for selling. ignore_roi_if_buy_signal: The strategy does not ignore ROI when a buy signal is present. The strategy's main function is to populate the indicators (RSI) and generate buy and sell signals based on the RSI values.