Combining MACD Crossovers with Supertrend Direction
Summary
This strategy combines MACD crossovers with Supertrend direction to trade in the direction of a detected trend. It uses the conventional 12, 26, and 9 period MACD settings and a Supertrend based on ATR. A long signal occurs when MACD crosses above its signal line while price is above the Supertrend line; a short signal uses the opposite conditions. MACD crossing back across its signal line closes the corresponding position.
The document explains the rationale, risks, and possible refinements, including parameter selection, volume or breakout filters, stop rules, and position management. It provides a brief published backtest configuration for BTC/USDT futures over a one month period, but reports no performance statistics or results. The strategy’s trend signals can lag, and crossovers may produce repeated trades in sideways markets, with transaction costs reducing returns. The supplied script’s entry conditions check the relative positions of MACD and its signal line rather than requiring a fresh crossover, so its actual signal behavior may differ from the prose description.
Key ideas
- The strategy enters long when MACD is above its signal line and price is above Supertrend, and enters short under the inverse conditions.
- MACD crossing its signal line triggers an exit from the corresponding position.
- Supertrend uses ATR to estimate trend direction and can act as a filter for MACD signals.
- Sideways price action can cause repeated signals, while lag and parameter choice can affect performance.
- The published backtest configuration gives no performance results, and the code checks line positions rather than fresh crossovers for entries.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.