DMI Directional Filter Backtest in Crypto: Fees, Slippage and Break-Even Costs
The Directional Movement Index compares +DI and −DI to say which side has been pushing. As a filter it's a direction check, distinct from ADX's strength check.
Short answer
+DI and −DI measure smoothed upward and downward movement; ADX measures how strong the difference is. A DMI directional filter allows longs only when +DI is above −DI (often combined with ADX above a threshold). Crossovers of +DI and −DI can whipsaw in ranges. Compare a base strategy with: no filter, +DI > −DI, and +DI > −DI with ADX > 20, on trade count and break-even cost.
Break-even cost
| Item | Value (illustrative) |
|---|---|
| Trades | 120 |
| Gross avg per trade | +0.52% |
| Fees (2 × 0.05%) | −0.10% |
| Slippage (2 × 0.04%) | −0.07% |
| Net avg per trade | +0.35% |
| Break-even round-trip cost | 0.52% |
Filter variants
| Variant | Trades | Net avg (illustrative) |
|---|---|---|
| None | 300 | +0.05% |
| +DI > −DI | 170 | +0.21% |
| +DI > −DI and ADX > 20 | 120 | +0.43% |
Conclusion
Related: ADX Trend Filter Backtest in Crypto: Fees, Slippage and Break-Even Costs, Aroon Trend Filter Backtest in Crypto: Fees, Slippage and Break-Even Costs.
Backtest the dmi directional filter rule with costs in ChartsPod.
Open the ChartsPod terminalCompare a base strategy with: no filter, +DI > −DI, and +DI > −DI with ADX > 20, on trade count and break-even cost.
Review DMI Directional Filter Backtest in Crypto with bar replay before using it live.
Open ChartsPod replayQuestions readers ask
What's the difference between DMI and ADX?
DMI lines show direction; ADX shows strength.
Do DI crosses whipsaw?
Yes, in ranges.
Combine with ADX?
Often helps; test it.
Sources and methodology
Backtest cost logic follows TradingView's Pine Script strategy documentation; indicator definitions are standard. All performance numbers are illustrative examples of the method, not results of real tests.
- TradingView Pine Script: Strategies — simulated fills and assumptions.
- TradingView Pine Script: Repainting — live vs historical calculation.
- ChartsPod documentation — guides for order flow, derivatives, alerts, backtests, journal and workspaces.
This article explains research tools and workflows. It is not financial advice, does not recommend buying or selling any asset and does not predict prices. Crypto derivatives carry a risk of rapid and total loss of margin.
CHARTSPOD EDITORIAL EDITION · RESEARCH AND EDUCATION ONLY · NOT FINANCIAL ADVICE.