Creating a buyer and seller strength indicator based on order flow data involves analyzing volume, bid/ask imbalances, or volume at price levels. However, in TradingView, access to raw order flow data (like bid/ask volume or depth of market) is limited. TradingView mainly provides data on volume per bar, so true order flow analysis—common in specialized software like Sierra Chart or NinjaTrader—is restricted.
Instead, I can create a script that estimates buyer and seller strength based on price and volume movements. This approximation can use metrics like Volume Delta (the difference between up-volume and down-volume) and identify momentum to infer which side might be stronger. Here's a Pine Script that does this: