OPEN-SOURCE SCRIPT
Order Flow System [v6]

What it does overall
It's a separate panel indicator that sits below your price chart and tracks who is in control of the market — buyers or sellers — on every single bar using volume analysis and smart money concepts.
1. Buy/Sell Volume Estimation
Since Pine Script can't see actual tick data, it estimates which side was more aggressive on each bar. If price closed near the high, most volume was likely buying. If it closed near the low, most was selling. The formula splits the bar's total volume proportionally based on where price closed within the high/low range.
2. Bar Delta Histogram
The difference between estimated buy volume and sell volume on each bar. Green bars mean buyers were more aggressive, red bars mean sellers were. The taller the bar, the stronger the imbalance between the two sides.
3. Cumulative Delta (CVD)
It adds up every bar's delta over time into a running total. This line shows you the overall trend of buying vs selling pressure across the session. When CVD is rising, buyers are consistently in control. When it's falling, sellers are. The EMA of CVD acts as a signal line — when CVD crosses above it that's bullish, below is bearish.
4. Volume Imbalance
When buyers dominate more than 60% of a bar's volume the background flashes green. When sellers dominate more than 60% it flashes red. This highlights bars where one side completely overwhelmed the other.
5. Large Print Detection
When a bar's volume is significantly larger than the 20-bar average, it gets labeled. These are institutional-sized prints — someone placed a very large order. The label shows the volume size and whether it was net buying or selling.
6. Absorption Detection
This is one of the more powerful signals. It looks for situations where a large amount of selling is happening but price refuses to go down — or large buying but price won't go up. That means the opposing side is quietly absorbing all those orders, which often precedes a reversal.
7. SMT Divergence
Compares your chart's swing highs and lows against a correlated market like NQ vs ES. If ES makes a new low but NQ doesn't confirm it, smart money likely didn't participate in that move — signaling the low may be fake and a reversal is coming. Same logic in reverse for highs. A dashed line connects the two swing points and a label marks the signal.
8. Dashboard Table
A live readout in the top right corner showing Bar Delta, Cumulative Delta, Buy%, Sell%, Volume, CVD Signal, SMT Signal, and which symbol it's comparing against. All colors are fully customizable in the settings.
9. Alerts
Ten alert conditions covering every major signal — large prints, imbalance, absorption, CVD crossovers, and both SMT directions — so you can get notified without watching the screen.
It's a separate panel indicator that sits below your price chart and tracks who is in control of the market — buyers or sellers — on every single bar using volume analysis and smart money concepts.
1. Buy/Sell Volume Estimation
Since Pine Script can't see actual tick data, it estimates which side was more aggressive on each bar. If price closed near the high, most volume was likely buying. If it closed near the low, most was selling. The formula splits the bar's total volume proportionally based on where price closed within the high/low range.
2. Bar Delta Histogram
The difference between estimated buy volume and sell volume on each bar. Green bars mean buyers were more aggressive, red bars mean sellers were. The taller the bar, the stronger the imbalance between the two sides.
3. Cumulative Delta (CVD)
It adds up every bar's delta over time into a running total. This line shows you the overall trend of buying vs selling pressure across the session. When CVD is rising, buyers are consistently in control. When it's falling, sellers are. The EMA of CVD acts as a signal line — when CVD crosses above it that's bullish, below is bearish.
4. Volume Imbalance
When buyers dominate more than 60% of a bar's volume the background flashes green. When sellers dominate more than 60% it flashes red. This highlights bars where one side completely overwhelmed the other.
5. Large Print Detection
When a bar's volume is significantly larger than the 20-bar average, it gets labeled. These are institutional-sized prints — someone placed a very large order. The label shows the volume size and whether it was net buying or selling.
6. Absorption Detection
This is one of the more powerful signals. It looks for situations where a large amount of selling is happening but price refuses to go down — or large buying but price won't go up. That means the opposing side is quietly absorbing all those orders, which often precedes a reversal.
7. SMT Divergence
Compares your chart's swing highs and lows against a correlated market like NQ vs ES. If ES makes a new low but NQ doesn't confirm it, smart money likely didn't participate in that move — signaling the low may be fake and a reversal is coming. Same logic in reverse for highs. A dashed line connects the two swing points and a label marks the signal.
8. Dashboard Table
A live readout in the top right corner showing Bar Delta, Cumulative Delta, Buy%, Sell%, Volume, CVD Signal, SMT Signal, and which symbol it's comparing against. All colors are fully customizable in the settings.
9. Alerts
Ten alert conditions covering every major signal — large prints, imbalance, absorption, CVD crossovers, and both SMT directions — so you can get notified without watching the screen.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.