Prices go up Friday 27 Nov · 00:00 New York 5d 00:34:00

Open-source

Long/Short Ratio

Long/Short Ratio is a lower-timeframe volume imbalance analyzer that estimates real-time buyer vs seller dominance inside each bar. Instead of relying on...

Long/Short Ratio preview
Published Apr 6, 2026
1,88522,537

What this TradingView script does

Long/Short Ratio is a lower-timeframe volume imbalance analyzer that estimates real-time buyer vs seller dominance inside each bar. Instead of relying on exchange-reported positioning data, this indicator reconstructs directional pressure by aggregating volume from lower timeframes and separating it into buy-side and sell-side flow.

The result is a dynamic percentage-based long/short ratio that reflects immediate participation shifts and short-term positioning pressure.

🔵 CORE CONCEPT

- Directional Volume Segmentation — Volume is classified as positive (buyers) when close > open, and negative (sellers) when close < open.

- Lower-Timeframe Aggregation — The script pulls volume data from smaller internal timeframes and aggregates it into the current chart bar.

- Buyer vs Seller Percentage — Total positive and negative volumes are converted into percentage ratios.

- Momentum Shift Detection — A smoothed change of the ratio helps detect acceleration or deceleration in positioning pressure.

🔵 HOW IT WORKS 1️⃣ Lower-Timeframe Volume Sampling

- The script automatically determines an internal lower timeframe based on the current chart timeframe.

- Volume is requested using request.security_lower_tf().

How traders can use it

Use Long/Short Ratio as a chart context layer inside TradingView: read the structure it highlights, compare it with your market bias, and let the script narrow which moves deserve attention.

The strongest workflow is to combine the script with higher timeframe structure, volume context, and a repeatable execution plan instead of treating any single label as a standalone trade.

Ready to level up your trading?

Get advanced indicators, backtesting and the BigBeluga community in one plan.

Get Access