QTrader
Menu

Top traders long/short

Series details

The same long/short ratio among the exchange's largest traders, every hour, as the exchange publishes it.

Source: The exchange you trade on

Markets: perp

Exchanges: Binance, Bitget, OKX, Gate, Kraken

Min tf: 1h

Use in workbench

Coverage

First stored dates describe the database, not a guarantee of complete history for every market.

  • Binance · Perpetual futures · 2026-10-01 · 1h and above · Hourly
  • Bitget · Perpetual futures · 2026-10-13 · 1h and above · Hourly
  • OKX · Perpetual futures · 2026-10-14 · 1h and above · Hourly
  • Gate · Perpetual futures · 2026-10-14 · 1h and above · Hourly
  • Kraken · Perpetual futures · 2026-10-14 · 1h and above · Hourly

Candle alignment

On hourly and longer code candles, the top-trader ratio uses the final hourly observation inside the candle. The exchange defines its top-trader population; different exchanges need not measure the same group.

Python example

top_long_short = market_data.top_long_short
trend = indicator.ema(close, 50)


# The exchange's largest traders lean long.
def enter_long():
    return top_long_short > 1.2 and close > trend


def exit_long():
    return top_long_short < 1
Open in workbench

Pine example

//@version=6
strategy("Follow the top traders", initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)
topLongShort = market_data.top_long_short
trend = ta.ema(close, 50)
// The exchange's largest traders lean long.
if topLongShort > 1.2 and close > trend
    strategy.entry("Long", strategy.long)
if topLongShort < 1
    strategy.close("Long")
Open in workbench

LLM prompt example

The top traders' long/short ratio is {market_data.top_long_short.current} (history: {market_data.top_long_short.full}). Lean with the largest traders when {candles} agree with them.
Open in workbench

Check market support, historical coverage and timeframe alignment before comparing a backtest with current robot inputs. Missing data is not a zero observation.

Data coverage and backtest windows

Reload this page if interactive controls could not load.