Trend Filter + MACD Cross Template — Strategy by aleksandr0x
By aleksandr0x
Performance Metrics
- Author: aleksandr0x
- Symbol: BINANCE:BTCUSDT
- Timeframe: 1 day
Description
This strategy combines a long-term trend filter with a MACD crossover. It only buys while price is above its 200-period EMA, uses the MACD cross to enter and exit, and protects every trade with an ATR stop. It is meant as a transparent, reproducible template rather than a finished system.How it worksA bar qualifies only when it closes above the 200-period exponential moving average. When the MACD line (12, 26, 9) crosses above its signal line on a qualifying closed bar and no trade is open, the strategy enters long at the next bar's open. The trade is closed when the MACD line crosses back below its signal line, or earlier by a stop placed 2.5 times the 14-period ATR below the signal bar's close. Two optional filters are off by default: entering only while the MACD line is below zero, and a time exit after a chosen number of bars. The strategy trades long only and holds one position at a time.What makes this version differentBesides the usual rules, the description reports what actually drives the results. We tested the entry against a placebo: the same filter and exits, but with entries on random days above the EMA 200, matched on the number of trades. Across five large crypto pairs on daily candles, random entries beat the MACD entry in 4 to 11 of 20 runs. In other words, the trend filter does most of the work and the MACD cross adds only a little on top of it. We think that is worth knowing before anyone builds on this template. The fill timing and the stop reference are stated explicitly so the results can be reproduced in another backtester.How to use itUse it on daily candles. The orange line is the trend EMA, the red line is the active stop while a trade is open, and small green triangles mark entry signals. The table in the corner shows the number of closed trades and whether a position is open. If you change the entry, test it against the filter alone first: if a random entry inside the same filter does about as well, the new entry is not adding much.Settings used on the published chart10% of equity per trade, initial capital 10,000. Commission 0.06% per side, slippage 2 ticks. Orders fill at the next bar's open.LimitationsMost trades are small wins or small losses, and the result depends on a few long trends; a win rate between 30% and 45% is normal for this kind of rule. The trend filter keeps the strategy out of long declines, but in a strong bull market it makes far less than simply holding, because it trades a fixed share of equity and waits in cash between signals. In the most recent two-year decline it lost a small amount on each tested coin. On lower timeframes it trades much more often and costs weigh more. Past results do not predict future results.