BACKTESTING · PRICE-OI DIVERGENCE

Price-and-OI Divergence Backtest in Crypto: Fees, Slippage and Break-Even Costs

A price-OI divergence rule trades when price makes a new high but OI falls (or the reverse). OI data timing and units decide whether the backtest is honest.

Short answer

A price-OI divergence rule might short when price makes a new N-bar high while coin OI over the same window falls (rally on closing positions), expecting weakness. Use coin-denominated OI aligned to bar times, only OI values available at signal time, and archived history (Binance's statistics endpoint covers about a month). Compute break-even cost and compare with random entries at new highs.

Break-even cost

ItemValue (illustrative)
Trades90
Gross avg per trade+0.61%
Fees (2 × 0.05%)−0.10%
Slippage (2 × 0.04%)−0.08%
Net avg per trade+0.43%
Break-even round-trip cost0.61%
Price-Oi Divergence: edge vs cost per trade (%)Price-Oi Divergence: edge vs cost per trade (%): Gross edge 0.61 %; Fees 0.10 %; Fees + slippage 0.18 %.PRICE-OI DIVERGENCE: EDGE VS COST PER TRADE (%)Gross edge0.61 %Fees0.10 %Fees + slippage0.18 %
Edge per trade versus cost per trade. Original ChartsPod editorial graphic.

Benchmark

EntryTradesNet avg (illustrative)
Any new high (short)240−0.09%
New high + coin OI falling90+0.32%
New high + USD OI falling40+0.18%
Illustrative net avg (%)Illustrative net avg (%): Any new high -0.09 %; Coin OI falling +0.32 %; USD OI falling +0.18 %.ILLUSTRATIVE NET AVG (%)Any new high-0.09 %Coin OI falling+0.32 %USD OI falling+0.18 %
Unit choice changes signals. Original ChartsPod editorial graphic.

Conclusion

Related: Open-Interest Confirmation Backtest in Crypto: Fees, Slippage and Break-Even Costs, Rising Price With Falling Open Interest in Crypto: Units and Time Windows That Change the Result.

Backtest the price-oi divergence rule with costs in ChartsPod.

Open the ChartsPod terminal

Compute break-even cost and compare with random entries at new highs.

See Price-and-OI Divergence Backtest in Crypto on live data in the free ChartsPod terminal.

Open the ChartsPod terminal

Questions readers ask

What is a price-OI divergence?

Price and OI moving in opposite directions at extremes.

Which OI unit?

Coins.

How much history is needed?

More than the ~1 month Binance's endpoint keeps; archive 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.

  1. TradingView Pine Script: Strategies — simulated fills and assumptions.
  2. TradingView Pine Script: Repainting — live vs historical calculation.
  3. ChartsPod documentation — guides for order flow, derivatives, alerts, backtests, journal and workspaces.
  4. Binance: USD-M market data (long/short ratios, OI statistics, klines) — ratio definitions, 30-day retention, kline open/close time.

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.