MACD Crossover Trading with Fixed and Trailing Exits
Summary
This automated strategy uses a MACD line crossing its signal line to open long or short positions. Its stated default indicator periods are 12 and 26 for the fast and slow averages and 9 for signal smoothing. The exit framework combines a stop 1% from entry, a 2% profit target, and a trailing stop with a 1.5% distance. The source also closes a long on a bearish crossover and opens a short; the shown code does not include corresponding percentage exit logic for short positions.
The document includes backtest settings for BTC/USDT futures on Binance over a 12-hour interval from January to November 2024, but it reports no performance statistics. It warns that sideways price action can produce repeated false crossovers, and that slippage, parameter sensitivity, and sudden moves can undermine results or stops. The source sets long exit levels using the average position price when the entry signal occurs, which may not match a later fill price. The published description calls the system multi-interval, but the provided settings show a single interval.
Key ideas
- A bullish MACD and signal-line crossover triggers a long entry, while a bearish crossover triggers a short signal.
- The stated defaults are 12, 26, and 9 for MACD calculation and signal smoothing.
- Long exits combine a fixed stop, a profit target, and a trailing stop; bearish crossovers also close the long.
- The published backtest configuration uses BTC/USDT futures on Binance at a 12-hour interval, but supplies no results.
- The documented code and description differ in scope: the code does not show percentage-based short exits or multiple intervals.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.