The "Quickie" strategy is a momentum-based trading strategy designed for backtesting. The main objective of this strategy is to quickly close trades while minimizing losses. It employs a moderate stop loss to manage risk.
Key Features:
Minimal ROI (Return on Investment) settings are defined, specifying the desired returns at different time intervals.
An optimal stop loss value is set to limit losses.
The strategy is designed to work with ticker intervals of 5 minutes. Indicators:
Moving Average Convergence Divergence (MACD): Calculates the MACD line, signal line, and histogram. Triple Exponential Moving Average (TEMA): Computes the TEMA values using a time period of 9. Simple Moving Averages (SMA): Calculates the SMA values for time periods of 200 and 50. Average Directional Index (ADX): Computes the ADX value. Bollinger Bands: Calculates the lower, middle, and upper bands of the Bollinger Bands indicator. Buy and Sell Signals:
Buy Signal: The strategy generates a buy signal when the following conditions are met:
ADX value is greater than 30. TEMA value is below the Bollinger Bands' middle band. TEMA value is higher than its previous value. SMA 200 value is higher than the closing price. Sell Signal: The strategy generates a sell signal when the following conditions are met:
ADX value is greater than 70. TEMA value is above the Bollinger Bands' middle band. TEMA value is lower than its previous value. Note: The code provided is a simplified version of the strategy and may require additional modifications or optimizations for practical trading.