Guide
How does the Range Strat - MACD/RSI strategy work ?
The "Range Strat - MACD/RSI" employs a combination of the MACD (Moving Average Convergence Divergence) as the primary signal for entering and exiting trades, along with the RSI (Relative Strength Index) to filter out potential entry points at price extremes, conducive for range-bound markets. The strategy is built for the 4-hour time frame, aiming to capitalize on the periodic fluctuations observed in crypto markets since mid-2022.
Long or short positions are initiated based on the MACD crossover signals:
- A long position is taken if the MACD line crosses over the signal line and the RSI is below the over-sold threshold, suggesting upward momentum.
- A short position is prompted by a MACD line cross under the signal line, coupled with an RSI above the over-bought threshold, indicating downward potential.
Traders can adjust RSI thresholds to modulate the frequency and risk profile of the signals. Similarly, fine-tuning the MACD parameters can allow for earlier or more conservative trading signals. The script features stop loss levels for both long and short positions, mitigating risk and protecting capital. The usage of stop-loss percentages and trade size, set to a default of 10% of equity, creates a balanced approach to capture returns while guarding against downside.
Wall-through input settings and quality-of-life improvements enhance the script's usability. Continual refinements, including the possibility of incorporating a different momentum oscillator, have been hinted at for future updates.