PROTECTED SOURCE SCRIPT
Diupdate

Riz Goldbach Framework

77
Riz Goldbach Framework maps a dynamic dealing range and a set of Goldbach-derived price levels to structure intraday decision-making. It blends range math (PO3), level clustering, session weighting, volume/volatility context, and an explainable scoring engine that can issue BUY/SELL signals with risk levels (SL/TP). It is designed for discretionary traders who want rules-based context rather than a black box.

Core concepts (how it works)

1) PO3 Dealing-Range Engine
⦁ The script builds a tri-based PO3 range around current price (Auto or Manual).
⦁ It shifts the range when price “accepts” outside (close/wick—user selectable) and adapts width with ATR so the range expands in high volatility and tightens in low volatility.
⦁ From this range it computes mid, premium/discount halves, and sub-mids.


2) Goldbach Levels (structure map)
Within the active PO3 range, fixed percentages anchor recurring behaviors:
⦁ Rejection edges: 3%, 97%
⦁ Order-block tendency: 11%, 89%
⦁ FVG tendency: 17%, 83%
⦁ Liquidity void / expansion: 29%, 71%
⦁ Breaker band: 41%, 59%
⦁ Mitigation band: 47%, 53%
⦁ Equilibrium: 50%
⦁ Touch/near logic is tolerance-based (body-only optional). The script also counts confluence clusters (2=moderate, 3+=strong) near price.

3) Market elements the script tracks
⦁ Order Blocks (OB): detected after BOS behavior when price is sitting on OB-biased GB levels (11/89).
⦁ FVG: 3-bar gaps at FVG-biased levels (17/83) with optional “% fill” confirmation.
⦁ LV bars: wide-range, high-range bars around 29/71 for displacement/voids.
⦁ Equal Highs/Lows (EQH/EQL): tolerance with labeling for sweep risk.
⦁ Circuit Breaker (CB): zone seeded at 41/59. States: intact → broken → retest → revalidated/failed. A shaded band shows the active breaker zone.
⦁ Twin Towers (TT): equal-high/equal-low doublet with spacing/volume/RSI checks, then sweep-and-return into the breaker zone for confirmation.

4) Context & filters
⦁ Trend vs Range: DMI/ADX + EMA stack infer TREND/RANGE/TRANSITION and scale the required score.
⦁ MTF alignment: compares current PO3 halves vs HTF PO3 halves (user timeframe), rewarding alignment and flagging divergence.
⦁ Fib–Goldbach confluence: checks 61.8/38.2/78.6/127.2/161.8 against key GB levels for added weight.
⦁ Session weighting: Asia/London/NY bias different GB levels; weights are higher for London/NY.
⦁ Volume-weighted liquidity: tracks volume at EQH/EQL to flag “high-commitment” sweeps.
⦁ AMD cycle (smart): accumulation/manipulation/distribution estimated from ATR regimes, sweeps, BOS continuation, divergence and PO3 shifts.
⦁ Optional filters: HTF bias, SMT divergence via a second symbol, VSA volume emphasis, news blackout session.

5) Signal engine
⦁ Modes: MMxM, Trending, or Hybrid (auto switches depending on CB acceptance + ATR expansion).
⦁ A score (0–100) aggregates weighted conditions (GB touch/confluence, AMD alignment, CB state, TT, FVG/OB interaction, HTF bias, SMT, high-volume, RSI momentum).
⦁ Adaptive threshold raises/lowers requirements in TREND vs RANGE.
⦁ Outputs: BUY/SELL label with strength (WEAK/NORMAL/STRONG), a reasons string (e.g., GB+AMD+Breaker+TT+FVG+HTF+RSI), and risk levels:
⦁ SL: rejection/structure anchored (e.g., GB3/GB97 or recent swing ± ATR).
⦁ TP1: opposite breaker (41/59).
⦁ TP2: opposite FVG tendency (17/83).
⦁ Live RR displayed on label and plotted as dashed lines.
⦁ Cooldown, session/time, weekend, and volatility gates suppress poor-quality or clustered signals.

What you see on the chart
⦁ PO3 bands: High/Low/Mid lines plus background shading for Premium (bear tint), Discount (bull tint), Equilibrium (neutral).
⦁ Goldbach lines: Major structure (0/50/100) plus the functional GB set (11/17/29/41/47/53/59/71/83/89/3/97).
⦁ Blocks & gaps: OB lines, FVG boxes (extend right, fill progress), LV box, breaker zone band, and TT logic states.
⦁ CE/MT: Central equilibrium (~3.5%/96.5%) and mid-towers (25%/75%) trigger optional alerts.
⦁ Session overlays: Asia/London/NY (optional).
⦁ Opens: Daily/Weekly (optional).
⦁ Dashboard: PO3 value, Zone (Premium/Discount/Equilibrium), AMD phase, Session, Mode (MMxM/Trending/Hybrid), CB state, nearest GB tag, Market context (TREND/RANGE/TRANS), recent Events, and rolling win-rate tallies (signals/CB/TT) from the current chart session.

How to use it (workflow)

1. Pick a preset
⦁ Minimal: only core structure.
⦁ Standard: levels + dashboard.
⦁ Full: adds sessions + GBT window overlays.

2. Choose range logic
⦁ PO3 Auto is reactive and scales with ATR.
⦁ Manual PO3 is for precise range control.

3. Scope your bias
⦁ Confirm Zone (Premium/Discount), CB state, and AMD phase; check MTF row if enabled.
⦁ Strong setups usually appear when session-weighted GB levels + confluence ≥ 2 + CB revalidated + AMD = manipulation → distribution (short) or accumulation → manipulation (long).

4. Act on signals (optional)
⦁ When a label prints, read the factors string and score.
⦁ Use plotted SL/TP1/TP2 lines and RR.
⦁ Respect cooldown, news blackout, and volatility filter.

Inputs you might tweak
⦁ PO3: Auto/Manual, acceptance by Close vs Wick, adaptive widening/tightening.
⦁ Levels: Major-only vs All; tolerance %; wick vs body touches.
⦁ Signals: Mode, score threshold, cooldown, confirm on close.
⦁ CB/TT: breaker width %, spacing window & tolerance, suppress bars after TT.
⦁ Filters: HTF timeframe, SMT symbol, VSA on/off, news blackout session.
⦁ Visuals: colors, line opacity, label sizes, dashboard position/size.
⦁ FVG/LV/CE/MT: fill %, and per-event alerts.

Alerts available
⦁ BUY/SELL signal, PO3 shift, GB touch (with tag), CB broken/retest pass/fail, TT setup/confirmed, OB tagged, FVG formed/filled, LV expansion, CE/MT touches.

Limitations & notes
⦁ Signals are contextual—they depend on the active PO3, tolerance, filters, session weighting, and volatility regime.
⦁ HTF requests depend on broker/exchange data and the timeframe you assign; if HTF is empty or illiquid, features degrade gracefully but may be less informative.
⦁ Win-rate tallies are session-local (not a historical performance guarantee).
⦁ Parameter choices (e.g., tolerance, breaker width, thresholds) materially change behavior.

Disclaimer
This tool is for educational/informational purposes only. It does not constitute financial advice, an invitation to trade, or performance assurance. Markets involve risk—always test on replay/paper and manage risk independently.
Catatan Rilis
Update: Daily & Weekly Opens Added

Enhanced the opens display for better intraday trading:
⦁ Replaced Monthly Open with Daily Open
⦁ Now shows Daily + Weekly opens for optimal scalping/swing reference
⦁ Daily Open = key intraday pivot point
⦁ Weekly Open = major directional bias level

More relevant for active trading on 3m-4H timeframes.
Catatan Rilis
Riz Goldbach Framework — Update (TP/SL & Dashboard fixes)

Risk module fix:
⦁ Stop-loss now always stays on the correct side of entry (no more long SL above entry / short SL below entry).
⦁ TP1/TP2 validated to the profit side with ATR guards; R:R now reflects true risk.

Dashboard layout:
⦁ Corrected Events cell index and removed row conflicts.
⦁ New order: 8 = Market, 9 = Events, 10 = Win Rates, 11 = Time (Large size only).

Label safety:
⦁ Added can_draw guard to SELL label creation to prevent label spam/runtime issues.

No setting changes required; existing alerts/inputs remain the same.

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.