Diffusion Drift Trend — Strategy by MonkeyPhone
By MonkeyPhone
Performance Metrics
- Author: MonkeyPhone
- Symbol: BITSTAMP:BTCUSD
- Timeframe: 4 hours
Description
Diffusion Drift TrendDiffusion Drift Trend is a trend following strategy built around an original measurement called the drift score. Its aim is to join a new trend near the start of the move without buying the very first push, which price usually takes back before the trend really gets going.THE IDEAMost trend tools ask whether price has moved. This strategy asks whether price has moved more than random noise would explain. Markets wander constantly, and a move that looks strong can turn out to be ordinary chop once you account for how volatile the market currently is. The drift score compares recent movement across five lookback windows, from short to long, against the distance price would be expected to wander by chance alone. Those five readings are blended into a single score. Near zero means noise. Above 1 means a move that is unusually persistent for current conditions.HOW A TRADE HAPPENSArm: When the drift score rises through the arm level, the strategy arms. It does not buy here. The first thrust of a new trend is usually followed by a pullback that shakes out early buyers, and the strategy is designed to let that pullback happen first.Dip: While armed, it waits for the short term part of the score to fade back to neutral, which means price has pulled back, while the overall score stays positive so the trend is still intact. It records the low of that pullback.Go: It enters when a bar closes above the previous bar's high and short term drift turns back up. This is the point where the pullback shows signs of ending and the trend resumes.If the trend fades before a pullback entry appears, or no entry comes within the timeout, it disarms and waits for the next setup. Up to two entries are allowed per armed trend.RISK AND POSITION SIZEEvery trade has a stop loss from the moment the order is placed. It sits just under the pullback low, with a minimum distance based on current volatility (ATR).Position size is calculated so that hitting the stop loses a fixed share of equity, 1% by default. A wider stop means a smaller position and a tighter stop means a larger one. A leverage cap (3x by default) keeps size from growing too large when the stop is very tight.Once in a trade, the stop only moves up, trailing 7 ATR below the highest high reached. The wide trail is intentional: the system accepts many small losses and relies on staying in the occasional large trend.The trade also closes if the drift score flips strongly against the position.WHY SHORTS ARE OFF BY DEFAULTThe short side uses the same logic in mirror image and can be switched on in the inputs. It is disabled by default because in testing on Bitcoin the short side did not hold up on data the settings were not tuned on, while the long side did. Crypto has spent most of its history drifting upward, and its down moves tend to be sharp and quick to reverse, which makes the arm, dip and go sequence less reliable for shorts. Enable shorts only after testing them on your own market and timeframe.RECOMMENDED USEBuilt and tested mainly on Bitcoin on the 4 hour chart. The 2 hour and 4 hour charts gave the most consistent behavior, and anything from 1 hour to 8 hour works with the automatic horizon setting. Below 1 hour, trading costs and noise take over. On daily and higher charts it trades only a few times a year and can hold one position for a very long time.Expect a low win rate. Most trades are small losses at the stop, and overall results depend on a minority of trades that catch a full trend. Losing streaks of many trades in a row are normal for this design.ON THE CHARTOrange bars: armed and waiting for a pullback entryTeal bars: in a long positionRed line: the live stopOrange line: the pullback low being trackedEntry labels show position size and stop priceDEFAULT PROPERTIES USED IN THE REPORTInitial capital 10,000Risk 1% of equity per trade, leverage capped at 3xCommission 0.06% per side, a typical taker rate for crypto perpetual futures, applied to every fillSlippage 2 ticksPyramiding offNOTESSignals are calculated on closed bars. Past results do not guarantee future performance. This script is a research tool and is not financial advice.