OPEN-SOURCE SCRIPT
تم تحديثه BLUF_Regime_Signal

This is an extension of bluf_regime_overlay that includes built in alerts. designed by isaacbdavis for active traders. See blufterminal.com for free options levels daily.
ملاحظات الأخبار
v2 — THE CONVICTION UPGRADEEvery signal is now graded.
★ TIERED CONFLUENCE — Each regime shift is scored 0–100 across 6 components: Kaufman ER, volume burst, HMA cloud direction, RSI thrust, MACD acceleration, and VWAP side. Signals tier as PRIME ★ (6/6), STRONG ● (5/6), or WEAK ○ (4/6) so you can pick entries by conviction. New "Show ONLY Prime Signals" toggle for snipers.
★ AUTO TRADER PROFILE — Auto-detects your chart timeframe and retunes itself. ≤30m → Day mode (HMA 9/21, looser ER). ≥1h → Swing mode (HMA 21/55, tighter ER). Manual override included.
★ HMA CLOUD — A Hull-MA trend ribbon replaces the old background tint. Color = trend direction (green when fast > slow, red when below). Opacity = regime conviction (solid in TREND, faded in RANGE/CAUTION). Cleaner chart, richer signal.
★ INLINE LEVEL BADGES — ⚓ ANCHOR · ⚡ FLIP · ★ PAIN · ▲ CALL WALL · ▼ PUT WALL · ● SPOT now appear as pill labels at the right edge of the chart, anchored to each level's price. The gamma layer reads at a glance.
★ VOLUME HEATMAP — Volume profile is now rendered as shelves embedded BEHIND price (extending leftward from the right edge), color-graded from dark blue (low volume) to bright yellow (heavy), with a magenta accent on the POC bin.
★ HTF TREND FILTER — New HTF Timeframe input (default Daily). Dashboard shows HTF: BULL ▲ / BEAR ▼ / FLAT. Toggle "Require HTF Alignment" to gate signals on macro-trend agreement — adds a 7th confluence check without inflating the score.
★ SAME-DIRECTION LOCKOUT — Suppresses signal clusters during whipsaw chop. After a TREND↑ fires, no second TREND↑ can fire until the lockout expires (default 25 bars Day / 20 bars Swing). Cuts noise without sacrificing the real moves.
★ TIERED ALERTS — Separate alertconditions for PRIME TREND ↑, PRIME TREND ↓, STRONG TREND ↑/↓, plus tier-filtered "Any Shift". Set PRIME alerts to push your phone; ignore the rest.
★ SMOOTHER MOMENTUM — MACD acceleration check is now a 2-bar slope (not 1-bar) to filter single-tick false positives.
SETTINGS NOTES: Background tint defaults OFF — the HMA cloud carries the regime visual now. Toggle on if you miss it. Volume thresholds tightened: 1.8× (Day) / 2.0× (Swing). All v1 inputs are still available; v2 just adds smarter defaults on top.
Feedback welcome — DM iked33 or hit blufterminal.com.
ملاحظات الأخبار
TRADE PLAN ROW — AUTO STOP / TARGET 1 / TARGET 2 / RNew dashboard row that turns the indicator into a trade-plan tool, not just a signal tool.
★ Direction-aware off your last shift. TREND↑ → long-side levels. TREND↓ → short-side. RANGE or no fresh shift → "— (no bias)" so you never act on a setup you don't have.
★ Auto Stop = SPOT ± 1×ATR. Tight enough for 0DTE sizing, wide enough to survive normal noise.
★ Auto Target 1 = nearest level on the directional side (CALL WALL / PUT WALL / MAX PAIN / ANCHOR / FLIP — whichever sits closest to current price). Falls back to ±1×ATR if no level is in range.
★ Auto Target 2 = SPOT ± 2×ATR. Always present.
★ Live R-multiple appended to the row — e.g. "↑ S 392.45 · T1 399.29 · T2 401.27 · 2.1R" — so you can see at a glance whether the setup is even worth the risk.
Stack the row right under CONFLUENCE so your trade plan and your conviction read live, side-by-side, on every bar.
ملاحظات الأخبار
TRADE PLAN — NOW FRESHNESS-GATEDThe Trade Plan row only paints actionable plans now. When the underlying trigger is stale or the regime has flipped against it, the row tells you exactly why instead of misleading you into a setup that's already dead.
★ STALENESS CHECK — Trade Plan auto-expires after a configurable window (default 30 bars Day / 60 bars Swing). Past that, row reads "— stale (Nb ago)" in yellow. Forces a fresh trigger before suggesting levels.
★ CONFLUENCE-FLIP CHECK — If current opposing-direction confluence beats your bias by 20+ points (configurable), the row flips to "— regime flipped" in yellow regardless of staleness. Catches mid-move reversals.
★ NEW INPUTS — "Stale After N Bars" and "Confluence Flip Threshold" let you tune sensitivity to your style. Crank stale higher for swing trades; lower the flip threshold for tighter regime monitoring.
If you take a PRIME signal and the chart consolidates for an hour without triggering again, the Trade Plan correctly steps aside and waits — instead of painting levels based on stale conviction.
ملاحظات الأخبار
minor bug fixesملاحظات الأخبار
updated signal intelligenceملاحظات الأخبار
v3.2 — Major update. Volume gating removed; new Bull/Bear Flip layer.The 6-component confluence is now 5-component — volume confirmation is out entirely. Side-by-side testing showed the volume-gated TREND chips were firing too often without earning their tier badges, while pure price-action regime trackers (BigBeluga-style trailing stops) gave cleaner flips on the same charts.
What's new:
- Bull/Bear Flip layer. Persistent regime state machine on close-based supertrend math — four ratcheting ATR trailing stops (1×/2×/3×/5×) extend from price; state flips when close breaches the outermost band in the opposite direction. Roughly 4-6 flips per 5m day instead of dozens of TREND chips. Each flip is stamped with the confluence tier at the flip bar (★ PRIME = 5/5 + MACD accel, ● STRONG = 4/5, ○ WEAK = 3/5).
- HVN-anchored stop highlight. When the active trailing stop sits within 0.2× ATR of a volume-profile peak, the line thickens and turns gold — "hard anchor" zones.
- Bull Flip / Bear Flip alerts and a new FLIP MODE dashboard row.
Defaults changed:
- TREND chips hidden by default (Bull/Bear flips are the primary visual now — re-enable in Inputs → "Show Regime Shift Signals" if you want the chip overlay back).
- HTF Mode now "Aligned" (was "Off").
- Flip Stop 4 ATR Mult default 5.0.
- Pine v6 upgrade.
Heads up: TradingView will reset deprecated inputs on first load — re-set the HTF Mode and Bull/Bear Flip groups if you had custom settings.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.