now with signals, non‑repainting Squeeze Momentum Indicator V2

new version!
What's included:
Two indicators in one package:

  • SqueezeMomentumIndicator V2 — subpanel histogram with squeeze dots

  • SMI Squeeze Signals — companion overlay for the price chart

What was improved in this version:

  • No-repaint signals — all signal logic reads only closed bars ([index-1], [index-2]). Signals are stable from bar open and never move.

  • Fixed false signals — neutral squeeze state (transitional) is now excluded from trigger logic. Only a true squeeze release fires a signal.

  • Real-time arrows — signals now render correctly on the live forming bar, not just on historical bars.

  • Subpanel arrows — entry and exit arrows anchored by pixel offset from the zero line, always visible regardless of histogram scale.

  • Price chart overlaySMI Squeeze Signals is fully self-contained (no dependency on the subpanel indicator). Add it directly to the price chart, set the same BB/KC parameters, done.

  • BuilderSignal plot — hidden series (+1 long entry, -1 short entry, +2 long exit, -2 short exit) that strategies can read directly.

Open source. Use at your own risk.
I’ve built a non‑repainting Squeeze Momentum Indicator V2 for Tickblaze, based on John Carter’s TTM Squeeze (translated from LazyBear’s PineScript).!
It combines inline Bollinger Bands and Keltner Channels to detect squeeze states (+1 squeeze ON, 0 neutral, -1 squeeze OFF) and then applies an optimized O(1) linear regression on price/midpoint deltas to measure momentum.
All squeeze logic, running sums and regression state are stored per bar and only reference the previous bar, so both the squeeze dots and the momentum histogram are deterministic and do not repaint.
V2 adds a clear third “neutral / noSqz” dot color, a four‑color histogram showing accelerating vs decelerating bullish/bearish momentum, plus a hidden BuilderSignal series for strategies. BuilderSignal emits +1 / -1 when a squeeze fires with positive/negative momentum, and +2 / -2 on the first momentum peak/trough, making it easy to automate precise entries and exits around squeeze releases.
Enjoy!

SqueezeMomentumIndicator_V2.zip
22.84KB
5
1 reply