The ASDTSRockwellTrading strategy is a simple MACD-based trading strategy designed for backtesting on a trading website. The strategy follows the following rules:
Uptrend definition: The strategy considers an uptrend when the MACD (Moving Average Convergence Divergence) is above the 0 line and above the MACD signal. Downtrend definition: The strategy considers a downtrend when the MACD is below the 0 line and below the MACD signal.
Sell definition: The strategy sells when the MACD is below the MACD signal.
The strategy ignores the definition of entry and exit points, assuming that the trading bot will handle these aspects.
Additionally, the strategy specifies the following parameters:
Minimal ROI (Return on Investment): It defines the minimum expected return for the strategy at different time intervals (e.g., 60 minutes, 30 minutes, 20 minutes, and 0 minutes). Optimal stoploss: It sets the desired stop loss for the strategy. Ticker interval: It specifies the preferred interval for ticker data, which is set to 5 minutes. To implement the strategy, the populate_indicators function calculates the MACD and its components (macd, macdsignal, macdhist) and adds them to the dataframe. The populate_buy_trend function populates the buy signal column based on the MACD conditions, and the populate_sell_trend function populates the sell signal column based on the MACD condition. Overall, the strategy focuses on using MACD to identify and trade in uptrends and downtrends, without specifying detailed entry and exit rules.