The Hodl strategy is a simple trading strategy that involves holding a position for a specific duration without actively buying or selling. Here's a short description of what the strategy does:
The strategy does not use any indicators or technical analysis tools. It keeps a fixed stoploss value of -1, indicating that no stoploss is applied.
The minimal_roi parameter is set to {"0": 1000}, which means that the strategy aims for a minimum return on investment (ROI) of 1000%.
The ticker_interval is set to '5m', indicating that the strategy operates on 5-minute candlestick data.
During the indicator population phase, no additional indicators are calculated or added to the dataframe. The populate_indicators function simply returns the original dataframe as is. During the buy signal population phase, the strategy sets a 'buy' column in the dataframe to 1 for all data points, indicating a buy signal for every timestamp. During the sell signal population phase, the strategy sets a 'sell' column in the dataframe to 0 for all data points, indicating that no sell signal is generated. In summary, the Hodl strategy does not use any indicators, applies no stoploss, and aims for a minimum ROI of 1000%. It generates a constant buy signal and does not generate any sell signals, effectively holding the position until the end of the backtesting period.