top of page

Pine Script Library

Public·1 member

Smoothed On-Balance Volume (OBV) — Volume Drop


On-Balance Volume is the oldest volume-trend tool there is, but a raw cumulative line is noisy and hard to read against price. This drop wraps Granville's classic OBV in an EMA signal line and an optional smoothing pass so you get a clean, color-coded trigger instead of a jagged tally.


## What it does

- Builds the cumulative Granville OBV: adds full bar volume on up-closes, subtracts it on down-closes, holds flat on unchanged closes

- Plots an EMA signal line (default 20) over the OBV for a tradeable cross trigger

- Color-codes the OBV line green/red by its position relative to the signal


2 Views

Choppiness Index — Volatility Drop


The Choppiness Index tells you *when* the market is trending versus chopping sideways — not which direction. Use it as a regime filter to switch between trend-following and mean-reversion tactics.


## What it does

- Measures how directional price has been over a lookback window using the ratio of summed True Range to the total high-low range.

- Scales the result to a clean 0–100 oscillator via a log normalization.

- High readings (≥ 61.8) flag choppy, range-bound conditions; low readings (≤ 38.2) flag strong trends.


2 Views

Real Elliott Wave (NEW!)


Real Elliott Wave [MarketFragments]


A top-down Elliott Wave labeler. Instead of forcing a count one swing at a

time, it frames the single dominant swing inside a window of the last N bars

and decomposes it into a 1-2-3-4-5 impulse and an A-B-C correction. The same


TTM Squeeze — Momentum Drop


TTM Squeeze pairs a Bollinger-inside-Keltner compression detector with a linear-regression momentum histogram — so you see both the coil and the direction of the release on a single panel. Red dots on the zero line mark squeeze ON, the histogram color tells you which way energy is leaning, and when the dot flips off you have a high-information moment to act on.


## What it does

- Detects volatility compression (Bollinger Bands contracting inside Keltner Channels) with classic TTM defaults.

- Plots squeeze state as colored dots on the zero line: red = ON (coil), gray = neutral, green = wide / firing.

- Renders TTM-style linear-regression momentum as a 4-color histogram (rising-above / falling-above / falling-below / rising-below zero).


2 Views
Brain with financial data analysis.

Inquiries at :

Important Risk Notice: Trading involves substantial risk of loss. This is educational content only—not advice. Full details here  ------------>  

Proceed only if you're prepared.

tel#: (843) 321-8514

bottom of page