Market LabDocs

Volume Delta

Configure MMT and standalone live volume-delta sources for Python V2.

MMT provides bucketed VD candles for live jobs and backtests:

history.source("btc@vd@hyperliquidf@mmt:timeframe=60,bucket=1")

Standalone BULK and Hyperliquid VD are derived from live trades:

history.source("btc@vd@bulkf")
history.source("btc@vd@hyperliquidf")

Do not add timeframe or bucket to standalone VD. Direct standalone VD is not available in backtests.

SELECTOR = "btc@vd@hyperliquidf@mmt:timeframe=60,bucket=1"
records = history.source(SELECTOR)
current = history.source(SELECTOR, 0)
bucket = ctx.source_configs[ctx.source]["bucket"]

MMT bucket 1 includes all trades. Buckets 2 through 11 cover increasing notional ranges from $1-$1K through $5M+.

See Volume Delta Data and ctx.study.cvd.