The "Doge" strategy is designed to backtest Elon Musk's tweets related to Dogecoin (DOGE). Here is a brief description of what the strategy does:
The strategy has a minimal return on investment (ROI) of 0.5. It operates on a 1-minute timeframe.
The stop-loss is set at -10%.
The strategy uses a trailing stop.
A custom stop-loss function is implemented, which adjusts the stop-loss based on the time elapsed since the trade was opened. If more than 2 hours have passed, the stop-loss is set at -2%. If more than 1 hour has passed, the stop-loss is set at -5%. Otherwise, the stop-loss remains at -10%. The strategy does not require any additional indicators, so the "populate_indicators" function returns the input dataframe as is. The "populate_buy_trend" function populates the "buy" column of the dataframe with a value of 1 for specific dates when Elon Musk tweeted about Dogecoin. The "populate_sell_trend" function does not specify any sell conditions. Overall, the strategy aims to simulate buying DOGE whenever Elon Musk tweets about it and holds the position until a sell condition is met. Please note that this is a simplified description, and further analysis of the strategy's performance and risk management is necessary for practical use.