Prev/Current Day Open & Close (RamtinFX)Draws three transparent vertical lines marking the previous day’s close, the current day’s open, and the current day’s close.Penunjuk Pine Script®oleh ramtin38299 1.1 K
Extended SOPR Indicator - SSOPR Tops (A/B toggle)Extended SOPR Indicator — SSOPR Tops and Lows (A/B toggle) Observation-only. Data: Glassnode SOPR. Overview This indicator extends the classical SOPR (Spent Output Profit Ratio) to improve readability and reduce noise on charts. SOPR measures whether coins moved on-chain were spent at a profit or at a loss. In brief: SOPR > 1 → spending at profit; SOPR < 1 → spending at loss. SSOPR (from "Smoothed SOPR") applies optional log transform (centers baseline at 0), smoothing (standard or adaptive), and adds structured signals: Z‑score lows (capitulation), buy zones , and top detection after prolonged elevation. Why extend SOPR? (SSOPR vs classical SOPR) • Noise reduction: Raw daily SOPR can whipsaw around its baseline. SSOPR uses smoothing and (optionally) adaptive smoothing so regimes are visible without overfitting. • Better readability: The log transform shifts the break-even line to 0, making “profit territory” (above 0) and “loss territory” (below 0) visually intuitive on oscillators. • Actionable context: Z‑score highlights extreme lows (capitulation risk), a simple buy-zone threshold marks potential accumulation, and a structured top pattern (with a time factor) helps frame distribution phases after sustained elevation. What the script plots • Smoothed SOPR (SSOPR): An orange line representing the smoothed SOPR (with optional log transform and optional adaptive smoothing). • Top markers: A red triangle appears once at the onset of a confirmed top pattern. • Background shading: – Soft green: Buy zone when SSOPR falls below the “Buy Threshold.” (+ Z‑score capitulation zones (extreme lows)). – Soft red: Top‑zone shading when the top criteria are met but before the single triangle fires. Inputs & parameters • Smoothing Length (default 14): Base window for smoothing SSOPR. Higher values = smoother, slower response. • Apply Log Transform (default ON): Uses log(SOPR) so the baseline is 0 (log(1)=0). Above 0 → net profit regime; below 0 → net loss regime. • Adaptive Smoothing (default OFF): Expands smoothing length as volatility rises using a standard deviation proxy; reduces whipsaws while preserving structure. • Z‑score Threshold for Lows (default −2.5): Highlights capitulation zones when SSOPR deviates far below its rolling mean. • SSOPR Buy Threshold (default −0.02): Simple rule-of-thumb level for potential accumulation context when below (log scale). • SSOPR Top Threshold (default +0.005): Minimum elevation required for “profit territory” when assessing tops (log scale). • Min Bars Above Threshold Before Top (default 50): Ensures prolonged elevation before calling a top. • Lookback for Peak Detection (default 50): Window used to locate the recent high. • Drop % from Peak to Confirm Top (default 5%): Confirms the start of distribution from a local high. • Highlight Background : Toggles shaded zones. Top detection (indicator-only) A top fires when ALL of the following are true: SSOPR spent at least Min Bars Above Threshold above the Top Threshold (sustained elevation). The rising phase test passes (Option A or B; see below). A drop from the local peak exceeds Drop % within the Lookback window. The peak occurred in profit territory (SSOPR > Top Threshold). To avoid repeated signals during the decline, the script emits the triangle once, at onset. Rising‑phase switch: Option A vs Option B • Option A — Up‑step ratio : Over the last A: Bars for Rising Check (default 50), it requires that at least A: Required Up‑Step Ratio (default 60%) of bars were rising (each bar compared to the previous). This favors gradual, persistent advances and filters out “choppy” lifts. • Option B — Net slope : Compares current SSOPR to its value B: Bars Back for Net Slope ago (default 50). If higher, the series is considered rising. This is simpler and reacts faster in volatile phases but can admit brief pseudo‑trends. Guidance : Prefer A for conservative confirmation in slow, persistent cycles; use B when trend moves are strong and you need timely detection. Interpretation guide • Regimes (log view): Above 0 → spending at profit; below 0 → spending at loss. • Capitulation lows: When Z‑score < threshold, conditions often reflect forced/liquidity‑driven spending. Treat as context, not signals. • Buy zone: SSOPR < Buy Threshold flags potential accumulation conditions (combine with price structure). • Tops: After prolonged elevation, a confirmed top often coincides with profit‑taking/distribution phases. Recommended timeframes • Daily : Code optimized for daily timeframe. Method summary • SSOPR source: GLASSNODE:BTC_SOPR (via request.security ). • Optional log transform: sopr → log(sopr) to normalize around 0. • Smoothing: SMA over Smoothing Length , optionally adaptive using local volatility (std dev). • Z‑score: (SSOPR − mean) / std dev, highlighting extreme lows. • Top: Requires long elevation above Top Threshold , rising‑phase (A/B), and a subsequent drop > Drop % from recent high. Limitations & notes • SOPR reflects on‑chain movements; some activity occurs off‑chain (exchanges, internal transfers). Not all moves imply sale; aggregation makes it a usable proxy for profit/loss realization. • Higher smoothing reduces noise but delays signals; adaptive smoothing can help but is still a trade‑off. • Treat thresholds as context markers. They are not entry/exit signals by themselves. • Use with price structure, volume, and other on‑chain indicators (e.g., realized price bands, dormancy/CDD) for confluence. How to use (examples) • Advance holding above 0 (log view): Retests of 0 from above that hold—while SSOPR remains elevated—often mark absorption; look for Top conditions only after sustained elevation and a confirmed drop from peak. • Downtrend below 0: Rejections near 0 can align with continued loss realization; extreme Z‑score lows suggest capitulation risk—context for accumulation, not a blind buy. Recommended settings • Weekly: Log ON, Smoothing Length 14–30, Adaptive ON, Buy Threshold −0.02, Top Threshold +0.005, Rising Method A, Min Bars 50. • Daily: Log ON, Smoothing Length 14–20, Adaptive OFF or ON (depending on noise), Rising Method B for timely slope checks. Credits & references • SOPR metric: Renato Shirakashi; documentation: Glassnode , CryptoQuant , overview: Bitbo . Disclaimer This script is for research/education on market behavior. It is not financial advice. Indicators provide context; decisions remain your responsibility. Tags bitcoin, btc, on‑chain, sopr, ssopr, glassnode, oscillator, regime, distribution, capitulation Penunjuk Pine Script®oleh Rob_Maths13
Bifurcation Zone - CAEBifurcation Zone — Cognitive Adversarial Engine (BZ-CAE) Bifurcation Zone — CAE (BZ-CAE) is a next-generation divergence detection system enhanced by a Cognitive Adversarial Engine that evaluates both sides of every potential trade before presenting signals. Unlike traditional divergence indicators that show every price-oscillator disagreement regardless of context, BZ-CAE applies comprehensive market-state intelligence to identify only the divergences that occur in favorable conditions with genuine probability edges. The system identifies structural bifurcation points — critical junctures where price and momentum disagree, signaling potential reversals or continuations — then validates these opportunities through five interconnected intelligence layers: Trend Conviction Scoring , Directional Momentum Alignment , Multi-Factor Exhaustion Modeling , Adversarial Validation , and Confidence Scoring . The result is a selective, context-aware signal system that filters noise and highlights high-probability setups. This is not a "buy the arrow" indicator. It's a decision support framework that teaches you how to read market state, evaluate divergence quality, and make informed trading decisions based on quantified intelligence rather than hope. What Sets BZ-CAE Apart: Technical Architecture The Problem With Traditional Divergence Indicators Most divergence indicators operate on a simple rule: if price makes a higher high and RSI makes a lower high, show a bearish signal. If price makes a lower low and RSI makes a higher low, show a bullish signal. This creates several critical problems: Context Blindness : They show counter-trend signals in powerful trends that rarely reverse, leading to repeated losses as you fade momentum. Signal Spam : Every minor price-oscillator disagreement generates an alert, overwhelming you with low-quality setups and creating analysis paralysis. No Quality Ranking : All signals are treated identically. A marginal divergence in choppy conditions receives the same visual treatment as a high-conviction setup at a major exhaustion point. Single-Sided Evaluation : They ask "Is this a good long?" without checking if the short case is overwhelmingly stronger, leading you into obvious bad trades. Static Configuration : You manually choose RSI 14 or Stochastic 14 and hope it works, with no systematic way to validate if that's optimal for your instrument. BZ-CAE's Solution: Cognitive Adversarial Intelligence BZ-CAE solves these problems through an integrated five-layer intelligence architecture: 1. Trend Conviction Score (TCS) — 0 to 1 Scale Most indicators check if ADX is above 25 to determine "trending" conditions. This binary approach misses nuance. TCS is a weighted composite metric: Formula : 0.35 × normalize(ADX, 10, 35) + 0.35 × structural_strength + 0.30 × htf_alignment Structural Strength : 10-bar SMA of consecutive directional bars. Captures persistence — are bulls or bears consistently winning? HTF Alignment : Multi-timeframe EMA stacking (20/50/100/200). When all EMAs align in the same direction, you're in institutional trend territory. Purpose : Quantifies how "locked in" the trend is. When TCS exceeds your threshold (default 0.80), the system knows to avoid counter-trend trades unless other factors override. Interpretation : TCS > 0.85: Very strong trend — counter-trading is extremely high risk TCS 0.70-0.85: Strong trend — favor continuation, require exhaustion for reversals TCS 0.50-0.70: Moderate trend — context matters, both directions viable TCS < 0.50: Weak/choppy — reversals more viable, range-bound conditions 2. Directional Momentum Alignment (DMA) — ATR-Normalized Formula : (EMA21 - EMA55) / ATR14 This isn't just "price above EMA" — it's a regime-aware momentum gauge. The same $100 price movement reads completely differently in high-volatility crypto versus low-volatility forex. By normalizing with ATR, DMA adapts its interpretation to current market conditions. Purpose : Quantifies the directional "force" behind current price action. Positive = bullish push, negative = bearish push. Magnitude = strength. Interpretation : DMA > 0.7: Strong bullish momentum — bearish divergences risky DMA 0.3 to 0.7: Moderate bullish bias DMA -0.3 to 0.3: Balanced/choppy conditions DMA -0.7 to -0.3: Moderate bearish bias DMA < -0.7: Strong bearish momentum — bullish divergences risky 3. Multi-Factor Exhaustion Modeling — 0 to 1 Probability Single-metric exhaustion detection (like "RSI > 80") misses complex market states. BZ-CAE aggregates five independent exhaustion signals: Volume Spikes : Current volume versus 50-bar average 2.5x average: 0.25 weight 2.0x average: 0.15 weight 1.5x average: 0.10 weight Divergence Present : The fact that a divergence exists contributes 0.30 weight — structural momentum disagreement is itself an exhaustion signal. RSI Extremes : Captures oscillator climax zones RSI > 80 or < 20: 0.25 weight RSI > 75 or < 25: 0.15 weight Pin Bar Detection : Identifies rejection candles (2:1 wick-to-body ratio, indicating failed breakout attempts): 0.15 weight Extended Runs : Consecutive bars above/below EMA20 without pullback 30+ bars: 0.15 weight (market hasn't paused to consolidate) Total exhaustion score is the sum of all applicable weights, capped at 1.0. Purpose : Detects when strong trends become vulnerable to reversal. High exhaustion can override trend filters, allowing counter-trend trades at genuine turning points that basic indicators would miss. Interpretation : Exhaustion > 0.75: High probability of climax — yellow background shading alerts you visually Exhaustion 0.50-0.75: Moderate overextension — watch for confirmation Exhaustion < 0.50: Fresh move — trend can continue, counter-trend trades higher risk 4. Adversarial Validation — Game Theory Applied to Trading This is BZ-CAE's signature innovation. Before approving any signal, the engine quantifies BOTH sides of the trade simultaneously: For Bullish Divergences , it calculates: Bull Case Score (0-1+) : Distance below EMA20 (pullback quality): up to 0.25 Bullish EMA alignment (close > EMA20 > EMA50): 0.25 Oversold RSI (< 40): 0.25 Volume confirmation (> 1.2x average): 0.25 Bear Case Score (0-1+) : Price below EMA50 (structural weakness): 0.30 Very oversold RSI (< 30, indicating knife-catching): 0.20 Differential = Bull Case - Bear Case If differential < -0.10 (default threshold), the bear case is dominating — signal is BLOCKED or ANNOTATED. For Bearish Divergences , the logic inverts (Bear Case vs Bull Case). Purpose : Prevents trades where you're fighting obvious strength in the opposite direction. This is institutional-grade risk management — don't just evaluate your trade, evaluate the counter-trade simultaneously. Why This Matters : You might see a bullish divergence at a local low, but if price is deeply below major support EMAs with strong bearish momentum, you're catching a falling knife. The adversarial check catches this and blocks the signal. 5. Confidence Scoring — 0 to 1 Quality Assessment Every signal that passes initial filters receives a comprehensive quality score: Formula : 0.30 × normalize(TCS) // Trend context + 0.25 × normalize(|DMA|) // Momentum magnitude + 0.20 × pullback_quality // Entry distance from EMA20 + 0.15 × state_quality // ADX + alignment + structure + 0.10 × divergence_strength // Slope separation magnitude + adversarial_bonus (0-0.30) // Your side's advantage Purpose : Ranks setup quality for filtering and position sizing decisions. You can set a minimum confidence threshold (default 0.35) to ensure only quality setups reach your chart. Interpretation : Confidence > 0.70: Premium setup — consider increased position size Confidence 0.50-0.70: Good quality — standard size Confidence 0.35-0.50: Acceptable — reduced size or skip if conservative Confidence < 0.35: Marginal — blocked in Filtering mode, annotated in Advisory mode CAE Operating Modes: Learning vs Enforcement Off : Disables all CAE logic. Raw divergence pipeline only. Use for baseline comparison. Advisory : Shows ALL signals regardless of CAE evaluation, but annotates signals that WOULD be blocked with specific warnings (e.g., "Bull: strong downtrend (TCS=0.87)" or "Adversarial bearish"). This is your learning mode — see CAE's decision logic in action without missing educational opportunities. Filtering : Actively blocks low-quality signals. Only setups that pass all enabled gates (Trend Filter, Adversarial Validation, Confidence Gating) reach your chart. This is your live trading mode — trust the system to enforce discipline. CAE Filter Gates: Three-Layer Protection When CAE is enabled, signals must pass through three independent gates (each can be toggled on/off): Gate 1: Strong Trend Filter If TCS ≥ tcs_threshold (default 0.80) And signal is counter-trend (bullish in downtrend or bearish in uptrend) And exhaustion < exhaustion_required (default 0.50) Then: BLOCK signal Logic: Don't fade strong trends unless the move is clearly overextended Gate 2: Adversarial Validation Calculate both bull case and bear case scores If opposing case dominates by more than adv_threshold (default 0.10) Then: BLOCK signal Logic: Avoid trades where you're fighting obvious strength in the opposite direction Gate 3: Confidence Gating Calculate composite confidence score (0-1) If confidence < min_confidence (default 0.35) Then: In Filtering mode, BLOCK signal; in Advisory mode, ANNOTATE with warning Logic: Only take setups with minimum quality threshold All three gates work together. A signal must pass ALL enabled gates to fire. Visual Intelligence System Bifurcation Zones (Supply/Demand Blocks) When a divergence signal fires, BZ-CAE draws a semi-transparent box extending 15 bars forward from the signal pivot: Demand Zones (Bullish) : Theme-colored box (cyan in Cyberpunk, blue in Professional, etc.) labeled "Demand" — marks where smart money likely placed buy orders as price diverged at the low. Supply Zones (Bearish) : Theme-colored box (magenta in Cyberpunk, orange in Professional) labeled "Supply" — marks where smart money likely placed sell orders as price diverged at the high. Theory : Divergences represent institutional disagreement with the crowd. The crowd pushed price to an extreme (new high or low), but momentum (oscillator) is waning, indicating smart money is taking the opposite side. These zones mark order placement areas that become future support/resistance. Use Cases : Exit targets: Take profit when price returns to opposite-side zone Re-entry levels: If price returns to your entry zone, consider adding Stop placement: Place stops just beyond your zone (below demand, above supply) Auto-Cleanup : System keeps the last 20 zones to prevent chart clutter. Adversarial Bar Coloring — Real-Time Market Debate Heatmap Each bar is colored based on the Bull Case vs Bear Case differential: Strong Bull Advantage (diff > 0.3): Full theme bull color (e.g., cyan) Moderate Bull Advantage (diff > 0.1): 50% transparency bull Neutral (diff -0.1 to 0.1): Gray/neutral theme Moderate Bear Advantage (diff < -0.1): 50% transparency bear Strong Bear Advantage (diff < -0.3): Full theme bear color (e.g., magenta) This creates a real-time visual heatmap showing which side is "winning" the market debate. When bars flip from cyan to magenta (or vice versa), you're witnessing a shift in adversarial advantage — a leading indicator of potential momentum changes. Exhaustion Shading When exhaustion score exceeds 0.75, the chart background displays a semi-transparent yellow highlight. This immediate visual warning alerts you that the current move is at high risk of reversal, even if trend indicators remain strong. Visual Themes — Six Aesthetic Options Cyberpunk : Cyan/Magenta/Yellow — High contrast, neon aesthetic, excellent for dark-themed trading environments Professional : Blue/Orange/Green — Corporate color palette, suitable for presentations and professional documentation Ocean : Teal/Red/Cyan — Aquatic palette, calming for extended monitoring sessions Fire : Orange/Red/Coral — Warm aggressive colors, high energy Matrix : Green/Red/Lime — Code aesthetic, homage to classic hacker visuals Monochrome : White/Gray — Minimal distraction, maximum focus on price action All visual elements (signal markers, zones, bar colors, dashboard) adapt to your selected theme. Divergence Engine — Core Detection System What Are Divergences? Divergences occur when price action and momentum indicators disagree, creating structural tension that often resolves in a change of direction: Regular Divergence (Reversal Signal) : Bearish Regular : Price makes higher high, oscillator makes lower high → Potential trend reversal down Bullish Regular : Price makes lower low, oscillator makes higher low → Potential trend reversal up Hidden Divergence (Continuation Signal) : Bearish Hidden : Price makes lower high, oscillator makes higher high → Downtrend continuation Bullish Hidden : Price makes higher low, oscillator makes lower low → Uptrend continuation Both types can be enabled/disabled independently in settings. Pivot Detection Methods BZ-CAE uses symmetric pivot detection with separate lookback and lookforward periods (default 5/5): Pivot High : Bar where high > all highs within lookback range AND high > all highs within lookforward range Pivot Low : Bar where low < all lows within lookback range AND low < all lows within lookforward range This ensures structural validity — the pivot must be a clear local extreme, not just a minor wiggle. Divergence Validation Requirements For a divergence to be confirmed, it must satisfy: Slope Disagreement : Price slope and oscillator slope must move in opposite directions (for regular divs) or same direction with inverted highs/lows (for hidden divs) Minimum Slope Change : |osc_slope| > min_slope_change / 100 (default 1.0) — filters weak, marginal divergences Maximum Lookback Range : Pivots must be within max_lookback bars (default 60) — prevents ancient, irrelevant divergences ATR-Normalized Strength : Divergence strength = min(|price_slope| × |osc_slope| × 10, 1.0) — quantifies the magnitude of disagreement in volatility context Regular divergences receive 1.0× weight; hidden divergences receive 0.8× weight (slightly less reliable historically). Oscillator Options — Five Professional Indicators RSI (Relative Strength Index) : Classic overbought/oversold momentum indicator. Best for: General purpose divergence detection across all instruments. Stochastic : Range-bound %K momentum comparing close to high-low range. Best for: Mean reversion strategies and range-bound markets. CCI (Commodity Channel Index) : Measures deviation from statistical mean, auto-normalized to 0-100 scale. Best for: Cyclical instruments and commodities. MFI (Money Flow Index) : Volume-weighted RSI incorporating money flow. Best for: Volume-driven markets like stocks and crypto. Williams %R : Inverse stochastic looking back over period, auto-adjusted to 0-100. Best for: Reversal detection at extremes. Each oscillator has adjustable length (2-200, default 14) and smoothing (1-20, default 1). You also set overbought (50-100, default 70) and oversold (0-50, default 30) thresholds. Signal Timing Modes — Understanding Repainting BZ-CAE offers two timing policies with complete transparency about repainting behavior: Realtime (1-bar, peak-anchored) How It Works : Detects peaks 1 bar ago using pattern: high > high AND high > high Signal prints on the NEXT bar after peak detection (bar_index) Visual marker anchors to the actual PEAK bar (bar_index - 1, offset -1) Signal locks in when bar CONFIRMS (closes) Repainting Behavior : On the FORMING bar (before close), the peak condition may change as new prices arrive Once bar CLOSES (barstate.isconfirmed), signal is locked permanently This is preview/early warning behavior by design Best For : Active monitoring and immediate alerts Learning the system (seeing signals develop in real-time) Responsive entry if you're watching the chart live Confirmed (lookforward) How It Works : Uses Pine Script's built-in ta.pivothigh() and ta.pivotlow() functions Requires full pivot validation period (lookback + lookforward bars) Signal prints pivot_lookforward bars after the actual peak (default 5-bar delay) Visual marker anchors to the actual peak bar (offset -pivot_lookforward) No Repainting Behavior Best For : Backtesting and historical analysis Conservative entries requiring full confirmation Automated trading systems Swing trading with larger timeframes Tradeoff : Delayed entry by pivot_lookforward bars (typically 5 bars) On a 5-minute chart, this is a 25-minute delay On a 4-hour chart, this is a 20-hour delay Recommendation : Use Confirmed for backtesting to verify system performance honestly. Use Realtime for live monitoring only if you're actively watching the chart and understand pre-confirmation repainting behavior. Signal Spacing System — Anti-Spam Architecture Even after CAE filtering, raw divergences can cluster. The spacing system enforces separation: Three Independent Filters 1. Min Bars Between ANY Signals (default 12): Prevents rapid-fire clustering across both directions If last signal (bull or bear) was within N bars, block new signal Ensures breathing room between all setups 2. Min Bars Between SAME-SIDE Signals (default 24, optional enforcement): Prevents bull-bull or bear-bear spam Separate tracking for bullish and bearish signal timelines Toggle enforcement on/off 3. Min ATR Distance From Last Signal (default 0, optional): Requires price to move N × ATR from last signal location Ensures meaningful price movement between setups 0 = disabled, 0.5-2.0 = typical range for enabled All three filters work independently. A signal must pass ALL enabled filters to proceed. Practical Guidance : Scalping (1-5m) : Any 6-10, Same-side 12-20, ATR 0-0.5 Day Trading (15m-1H) : Any 12, Same-side 24, ATR 0-1.0 Swing Trading (4H-D) : Any 20-30, Same-side 40-60, ATR 1.0-2.0 Dashboard — Real-Time Control Center The dashboard (toggleable, four corner positions, three sizes) provides comprehensive system intelligence: Oscillator Section Current oscillator type and value State: OVERBOUGHT / OVERSOLD / NEUTRAL (color-coded) Length parameter Cognitive Engine Section TCS (Trend Conviction Score) : Current value with emoji state indicator 🔥 = Strong trend (>0.75) 📊 = Moderate trend (0.50-0.75) 〰️ = Weak/choppy (<0.50) Color: Red if above threshold (trend filter active), yellow if moderate, green if weak DMA (Directional Momentum Alignment) : Current value with emoji direction indicator 🐂 = Bullish momentum (>0.5) ⚖️ = Balanced (-0.5 to 0.5) 🐻 = Bearish momentum (<-0.5) Color: Green if bullish, red if bearish Exhaustion : Current value with emoji warning indicator ⚠️ = High exhaustion (>0.75) 🟡 = Moderate (0.50-0.75) ✓ = Low (<0.50) Color: Red if high, yellow if moderate, green if low Pullback : Quality of current distance from EMA20 Values >0.6 are ideal entry zones (not too close, not too far) Bull Case / Bear Case (if Adversarial enabled): Current scores for both sides of the market debate Differential with emoji indicator: 📈 = Bull advantage (>0.2) ➡️ = Balanced (-0.2 to 0.2) 📉 = Bear advantage (<-0.2) Last Signal Metrics Section (New Feature) When a signal fires, this section captures and displays: Signal type (BULL or BEAR) Bars elapsed since signal Confidence % at time of signal TCS value at signal time DMA value at signal time Purpose : Provides a historical reference for learning. You can see what the market state looked like when the last signal fired, helping you correlate outcomes with conditions. Statistics Section Total Signals : Lifetime count across session Blocked Signals : Count and percentage (filter effectiveness metric) Bull Signals : Total bullish divergences Bear Signals : Total bearish divergences Purpose : System health monitoring. If blocked % is very high (>60%), filters may be too strict. If very low (<10%), filters may be too loose. Advisory Annotations When CAE Mode = Advisory, this section displays warnings for signals that would be blocked in Filtering mode: Examples: "Bull spacing: wait 8 bars" "Bear: strong uptrend (TCS=0.87)" "Adversarial bearish" "Low confidence 32%" Multiple warnings can stack, separated by " | ". This teaches you CAE's decision logic transparently. How to Use BZ-CAE — Complete Workflow Phase 1: Initial Setup (First Session) Apply BZ-CAE to your chart Select your preferred Visual Theme (Cyberpunk recommended for visibility) Set Signal Timing to "Confirmed (lookforward)" for learning Choose your Oscillator Type (RSI recommended for general use, length 14) Set Overbought/Oversold to 70/30 (standard) Enable both Regular Divergence and Hidden Divergence Set Pivot Lookback/Lookforward to 5/5 (balanced structure) Enable CAE Intelligence Set CAE Mode to "Advisory" (learning mode) Enable all three CAE filters: Strong Trend Filter , Adversarial Validation , Confidence Gating Enable Show Dashboard , position Top Right, size Normal Enable Draw Bifurcation Zones and Adversarial Bar Coloring Phase 2: Learning Period (Weeks 1-2) Goal : Understand how CAE evaluates market state and filters signals. Activities : Watch the dashboard during signals : Note TCS values when counter-trend signals fail — this teaches you the trend strength threshold for your instrument Observe exhaustion patterns at actual turning points — learn when overextension truly matters Study adversarial differential at signal times — see when opposing cases dominate Review blocked signals (orange X-crosses): In Advisory mode, you see everything — signals that would pass AND signals that would be blocked Check the advisory annotations to understand why CAE would block Track outcomes: Were the blocks correct? Did those signals fail? Use Last Signal Metrics : After each signal, check the dashboard capture of confidence, TCS, and DMA Journal these values alongside trade outcomes Identify patterns: Do confidence >0.70 signals work better? Does your instrument respect TCS >0.85? Understand your instrument's "personality" : Trending instruments (indices, major forex) may need TCS threshold 0.85-0.90 Choppy instruments (low-cap stocks, exotic pairs) may work best with TCS 0.70-0.75 High-volatility instruments (crypto) may need wider spacing Low-volatility instruments may need tighter spacing Phase 3: Calibration (Weeks 3-4) Goal : Optimize settings for your specific instrument, timeframe, and style. Calibration Checklist : Min Confidence Threshold : Review confidence distribution in your signal journal Identify the confidence level below which signals consistently fail Set min_confidence slightly above that level Day trading : 0.35-0.45 Swing trading : 0.40-0.55 Scalping : 0.30-0.40 TCS Threshold : Find the TCS level where counter-trend signals consistently get stopped out Set tcs_threshold at or slightly below that level Trending instruments : 0.85-0.90 Mixed instruments : 0.80-0.85 Choppy instruments : 0.75-0.80 Exhaustion Override Level : Identify exhaustion readings that marked genuine reversals Set exhaustion_required just below the average Typical range : 0.45-0.55 Adversarial Threshold : Default 0.10 works for most instruments If you find CAE is too conservative (blocking good trades), raise to 0.15-0.20 If signals are still getting caught in opposing momentum, lower to 0.07-0.09 Spacing Parameters : Count bars between quality signals in your journal Set min bars ANY to ~60% of that average Set min bars SAME-SIDE to ~120% of that average Scalping : Any 6-10, Same 12-20 Day trading : Any 12, Same 24 Swing : Any 20-30, Same 40-60 Oscillator Selection : Try different oscillators for 1-2 weeks each Track win rate and average winner/loser by oscillator type RSI : Best for general use, clear OB/OS Stochastic : Best for range-bound, mean reversion MFI : Best for volume-driven markets CCI : Best for cyclical instruments Williams %R : Best for reversal detection Phase 4: Live Deployment Goal : Disciplined execution with proven, calibrated system. Settings Changes : Switch CAE Mode from Advisory to Filtering System now actively blocks low-quality signals Only setups passing all gates reach your chart Keep Signal Timing on Confirmed for conservative entries OR switch to Realtime if you're actively monitoring and want faster entries (accept pre-confirmation repaint risk) Use your calibrated thresholds from Phase 3 Enable high-confidence alerts: "⭐ High Confidence Bullish/Bearish" (>0.70) Trading Discipline Rules : Respect Blocked Signals : If CAE blocks a trade you wanted to take, TRUST THE SYSTEM Don't manually override — if you consistently disagree, return to Phase 2/3 calibration The block exists because market state failed intelligence checks Confidence-Based Position Sizing : Confidence >0.70: Standard or increased size (e.g., 1.5-2.0% risk) Confidence 0.50-0.70: Standard size (e.g., 1.0% risk) Confidence 0.35-0.50: Reduced size (e.g., 0.5% risk) or skip if conservative TCS-Based Management : High TCS + counter-trend signal: Use tight stops, quick exits (you're fading momentum) Low TCS + reversal signal: Use wider stops, trail aggressively (genuine reversal potential) Exhaustion Awareness : Exhaustion >0.75 (yellow shading): Market is overextended, reversal risk is elevated — consider early exit or tighter trailing stops even on winning trades Exhaustion <0.30: Continuation bias — hold for larger move, wide trailing stops Adversarial Context : Strong differential against you (e.g., bullish signal with bear diff <-0.2): Use very tight stops, consider skipping Strong differential with you (e.g., bullish signal with bull diff >0.2): Trail aggressively, this is your tailwind Practical Settings by Timeframe & Style Scalping (1-5 Minute Charts) Objective : High frequency, tight stops, quick reversals in fast-moving markets. Oscillator : Type: RSI or Stochastic (fast response to quick moves) Length: 9-11 (more responsive than standard 14) Smoothing: 1 (no lag) OB/OS: 65/35 (looser thresholds ensure frequent crossings in fast conditions) Divergence : Pivot Lookback/Lookforward: 3/3 (tight structure, catch small swings) Max Lookback: 40-50 bars (recent structure only) Min Slope Change: 0.8-1.0 (don't be overly strict) CAE : Mode: Advisory first (learn), then Filtering Min Confidence: 0.30-0.35 (lower bar for speed, accept more signals) TCS Threshold: 0.70-0.75 (allow more counter-trend opportunities) Exhaustion Required: 0.45-0.50 (moderate override) Strong Trend Filter: ON (still respect major intraday trends) Adversarial: ON (critical for scalping protection — catches bad entries quickly) Spacing : Min Bars ANY: 6-10 (fast pace, many setups) Min Bars SAME-SIDE: 12-20 (prevent clustering) Min ATR Distance: 0 or 0.5 (loose) Timing : Realtime (speed over precision, but understand repaint risk) Visuals : Signal Size: Tiny (chart clarity in busy conditions) Show Zones: Optional (can clutter on low timeframes) Bar Coloring: ON (helps read momentum shifts quickly) Dashboard: Small size (corner reference, not main focus) Key Consideration : Scalping generates noise. Even with CAE, expect lower win rate (45-55%) but aim for favorable R:R (2:1 or better). Size conservatively. Day Trading (15-Minute to 1-Hour Charts) Objective : Balance quality and frequency. Standard divergence trading approach. Oscillator : Type: RSI or MFI (proven reliability, volume confirmation with MFI) Length: 14 (industry standard, well-studied) Smoothing: 1-2 OB/OS: 70/30 (classic levels) Divergence : Pivot Lookback/Lookforward: 5/5 (balanced structure) Max Lookback: 60 bars Min Slope Change: 1.0 (standard strictness) CAE : Mode: Filtering (enforce discipline from the start after brief Advisory learning) Min Confidence: 0.35-0.45 (quality filter without being too restrictive) TCS Threshold: 0.80-0.85 (respect strong trends) Exhaustion Required: 0.50 (balanced override threshold) Strong Trend Filter: ON Adversarial: ON Confidence Gating: ON (all three filters active) Spacing : Min Bars ANY: 12 (breathing room between all setups) Min Bars SAME-SIDE: 24 (prevent bull/bear clusters) Min ATR Distance: 0-1.0 (optional refinement, typically 0.5-1.0) Timing : Confirmed (1-bar delay for reliability, no repainting) Visuals : Signal Size: Tiny or Small Show Zones: ON (useful reference for exits/re-entries) Bar Coloring: ON (context awareness) Dashboard: Normal size (full visibility) Key Consideration : This is the "sweet spot" timeframe for BZ-CAE. Market structure is clear, CAE has sufficient data, and signal frequency is manageable. Expect 55-65% win rate with proper execution. Swing Trading (4-Hour to Daily Charts) Objective : Quality over quantity. High conviction only. Larger stops and targets. Oscillator : Type: RSI or CCI (robust on higher timeframes, smooth longer waves) Length: 14-21 (capture larger momentum swings) Smoothing: 1-3 OB/OS: 70/30 or 75/25 (strict extremes) Divergence : Pivot Lookback/Lookforward: 5/5 or 7/7 (structural purity, major swings only) Max Lookback: 80-100 bars (broader historical context) Min Slope Change: 1.2-1.5 (require strong, undeniable divergence) CAE : Mode: Filtering (strict enforcement, premium setups only) Min Confidence: 0.40-0.55 (high bar for entry) TCS Threshold: 0.85-0.95 (very strong trend protection — don't fade established HTF trends) Exhaustion Required: 0.50-0.60 (higher bar for override — only extreme exhaustion justifies counter-trend) Strong Trend Filter: ON (critical on HTF) Adversarial: ON (avoid obvious bad trades) Confidence Gating: ON (quality gate essential) Spacing : Min Bars ANY: 20-30 (substantial separation) Min Bars SAME-SIDE: 40-60 (significant breathing room) Min ATR Distance: 1.0-2.0 (require meaningful price movement) Timing : Confirmed (purity over speed, zero repaint for swing accuracy) Visuals : Signal Size: Small or Normal (clear markers on zoomed-out view) Show Zones: ON (important HTF levels) Bar Coloring: ON (long-term trend awareness) Dashboard: Normal or Large (comprehensive analysis) Key Consideration : Swing signals are rare but powerful. Expect 2-5 signals per month per instrument. Win rate should be 60-70%+ due to stringent filtering. Position size can be larger given confidence. Dashboard Interpretation Reference TCS (Trend Conviction Score) States 0.00-0.50: Weak/Choppy Emoji: 〰️ Color: Green/cyan Meaning: No established trend. Range-bound or consolidating. Both reversal and continuation signals viable. Action: Reversals (regular divs) are safer. Use wider profit targets (market has room to move). Consider mean reversion strategies. 0.50-0.75: Moderate Trend Emoji: 📊 Color: Yellow/neutral Meaning: Developing trend but not locked in. Context matters significantly. Action: Check DMA and exhaustion. If DMA confirms trend and exhaustion is low, favor continuation (hidden divs). If exhaustion is high, reversals are viable. 0.75-0.85: Strong Trend Emoji: 🔥 Color: Orange/warning Meaning: Well-established trend with persistence. Counter-trend is high risk. Action: Require exhaustion >0.50 for counter-trend entries. Favor continuation signals. Use tight stops on counter-trend attempts. 0.85-1.00: Very Strong Trend Emoji: 🔥🔥 Color: Red/danger (if counter-trading) Meaning: Locked-in institutional trend. Extremely high risk to fade. Action: Avoid counter-trend unless exhaustion >0.75 (yellow shading). Focus exclusively on continuation opportunities. Momentum is king here. DMA (Directional Momentum Alignment) Zones -2.0 to -1.0: Strong Bearish Momentum Emoji: 🐻🐻 Color: Dark red Meaning: Powerful downside force. Sellers are in control. Action: Bullish divergences are counter-momentum (high risk). Bearish divergences are with-momentum (lower risk). Size down on longs. -0.5 to 0.5: Neutral/Balanced Emoji: ⚖️ Color: Gray/neutral Meaning: No strong directional bias. Choppy or consolidating. Action: Both directions have similar probability. Focus on confidence score and adversarial differential for edge. 1.0 to 2.0: Strong Bullish Momentum Emoji: 🐂🐂 Color: Bright green/cyan Meaning: Powerful upside force. Buyers are in control. Action: Bearish divergences are counter-momentum (high risk). Bullish divergences are with-momentum (lower risk). Size down on shorts. Exhaustion States 0.00-0.50: Fresh Move Emoji: ✓ Color: Green Meaning: Trend is healthy, not overextended. Room to run. Action: Counter-trend trades are premature. Favor continuation. Hold winners for larger moves. Avoid early exits. 0.50-0.75: Mature Move Emoji: 🟡 Color: Yellow Meaning: Move is aging. Watch for signs of climax. Action: Tighten trailing stops on winning trades. Be ready for reversals. Don't add to positions aggressively. 0.75-0.85: High Exhaustion Emoji: ⚠️ Color: Orange Background: Yellow shading appears Meaning: Move is overextended. Reversal risk elevated significantly. Action: Counter-trend reversals are higher probability. Consider early exits on with-trend positions. Size up on reversal divergences (if CAE allows). 0.85-1.00: Critical Exhaustion Emoji: ⚠️⚠️ Color: Red Background: Yellow shading intensifies Meaning: Climax conditions. Reversal imminent or underway. Action: Aggressive reversal trades justified. Exit all with-trend positions. This is where major turns occur. Confidence Score Tiers 0.00-0.30: Low Quality Color: Red Status: Blocked in Filtering mode Action: Skip entirely. Setup lacks fundamental quality across multiple factors. 0.30-0.50: Moderate Quality Color: Yellow/orange Status: Marginal — passes in Filtering only if >min_confidence Action: Reduced position size (0.5-0.75% risk). Tight stops. Conservative profit targets. Skip if you're selective. 0.50-0.70: High Quality Color: Green/cyan Status: Good setup across most quality factors Action: Standard position size (1.0-1.5% risk). Normal stops and targets. This is your bread-and-butter trade. 0.70-1.00: Premium Quality Color: Bright green/gold Status: Exceptional setup — all factors aligned Visual: Double confidence ring appears Action: Consider increased position size (1.5-2.0% risk, maximum). Wider stops. Larger targets. High probability of success. These are rare — capitalize when they appear. Adversarial Differential Interpretation Bull Differential > 0.3 : Visual: Strong cyan/green bar colors Meaning: Bull case strongly dominates. Buyers have clear advantage. Action: Bullish divergences favored (with-advantage). Bearish divergences face headwind (reduce size or skip). Momentum is bullish. Bull Differential 0.1 to 0.3 : Visual: Moderate cyan/green transparency Meaning: Moderate bull advantage. Buyers have edge but not overwhelming. Action: Both directions viable. Slight bias toward longs. Differential -0.1 to 0.1 : Visual: Gray/neutral bars Meaning: Balanced debate. No clear advantage either side. Action: Rely on other factors (confidence, TCS, exhaustion) for direction. Adversarial is neutral. Bear Differential -0.3 to -0.1 : Visual: Moderate red/magenta transparency Meaning: Moderate bear advantage. Sellers have edge but not overwhelming. Action: Both directions viable. Slight bias toward shorts. Bear Differential < -0.3 : Visual: Strong red/magenta bar colors Meaning: Bear case strongly dominates. Sellers have clear advantage. Action: Bearish divergences favored (with-advantage). Bullish divergences face headwind (reduce size or skip). Momentum is bearish. Last Signal Metrics — Post-Trade Analysis After a signal fires, dashboard captures: Type : BULL or BEAR Bars Ago : How long since signal (updates every bar) Confidence : What was the quality score at signal time TCS : What was trend conviction at signal time DMA : What was momentum alignment at signal time Use Case : Post-trade journaling and learning. Example: "BULL signal 12 bars ago. Confidence: 68%, TCS: 0.42, DMA: -0.85" Analysis : This was a bullish reversal (regular div) with good confidence, weak trend (TCS), but strong bearish momentum (DMA). The bet was that momentum would reverse — a counter-momentum play requiring exhaustion confirmation. Check if exhaustion was high at that time to justify the entry. Track patterns: Do your best trades have confidence >0.65? Do low-TCS signals (<0.50) work better for you? Are you more successful with-momentum (DMA aligned with signal) or counter-momentum? Troubleshooting Guide Problem: No Signals Appearing Symptoms : Chart loads, dashboard shows metrics, but no divergence signals fire. Diagnosis Checklist : Check dashboard oscillator value : Is it crossing OB/OS levels (70/30)? If oscillator stays in 40-60 range constantly, it can't reach extremes needed for divergence detection. Are pivots forming? : Look for local swing highs/lows on your chart. If price is in tight consolidation, pivots may not meet lookback/lookforward requirements. Is spacing too tight? : Check "Last Signal" metrics — how many bars since last signal? If <12 and your min_bars_ANY is 12, spacing filter is blocking. Is CAE blocking everything? : Check dashboard Statistics section — what's the blocked signal count? High blocks indicate overly strict filters. Solutions : Loosen OB/OS Temporarily : Try 65/35 to verify divergence detection works If signals appear, the issue was threshold strictness Gradually tighten back to 67/33, then 70/30 as appropriate Lower Min Confidence : Try 0.25-0.30 (diagnostic level) If signals appear, filter was too strict Raise gradually to find sweet spot (0.35-0.45 typical) Disable Strong Trend Filter Temporarily : Turn off in CAE settings If signals appear, TCS threshold was blocking everything Re-enable and lower TCS_threshold to 0.70-0.75 Reduce Min Slope Change : Try 0.7-0.8 (from default 1.0) Allows weaker divergences through Helpful on low-volatility instruments Widen Spacing : Set min_bars_ANY to 6-8 Set min_bars_SAME_SIDE to 12-16 Reduces time between allowed signals Check Timing Mode : If using Confirmed, remember there's a pivot_lookforward delay (5+ bars) Switch to Realtime temporarily to verify system is working Realtime has no delay but repaints Verify Oscillator Settings : Length 14 is standard but might not fit all instruments Try length 9-11 for faster response Try length 18-21 for slower, smoother response Problem: Too Many Signals (Signal Spam) Symptoms : Dashboard shows 50+ signals in Statistics, confidence scores mostly <0.40, signals clustering close together. Solutions : Raise Min Confidence : Try 0.40-0.50 (quality filter) Blocks bottom-tier setups Targets top 50-60% of divergences only Tighten OB/OS : Use 70/30 or 75/25 Requires more extreme oscillator readings Reduces false divergences in mid-range Increase Min Slope Change : Try 1.2-1.5 (from default 1.0) Requires stronger, more obvious divergences Filters marginal slope disagreements Raise TCS Threshold : Try 0.85-0.90 (from default 0.80) Stricter trend filter blocks more counter-trend attempts Favors only strongest trend alignment Enable ALL CAE Gates : Turn on Trend Filter + Adversarial + Confidence Triple-layer protection Blocks aggressively — expect 20-40% reduction in signals Widen Spacing : min_bars_ANY: 15-20 (from 12) min_bars_SAME_SIDE: 30-40 (from 24) Creates substantial breathing room Switch to Confirmed Timing : Removes realtime preview noise Ensures full pivot validation 5-bar delay filters many false starts Problem: Signals in Strong Trends Get Stopped Out Symptoms : You take a bullish divergence in a downtrend (or bearish in uptrend), and it immediately fails. Dashboard showed high TCS at the time. Analysis : This is INTENDED behavior — CAE is protecting you from low-probability counter-trend trades. Understanding : Check Last Signal Metrics in dashboard — what was TCS when signal fired? If TCS was >0.85 and signal was counter-trend, CAE correctly identified it as high risk Strong trends rarely reverse cleanly without major exhaustion Your losses here are the system working as designed (blocking bad odds) If You Want to Override (Not Recommended) : Lower TCS_threshold to 0.70-0.75 (allows more counter-trend) Lower exhaustion_required to 0.40 (easier override) Disable Strong Trend Filter entirely (very risky) Better Approach : TRUST THE FILTER — it's preventing costly mistakes Wait for exhaustion >0.75 (yellow shading) before counter-trending strong TCS Focus on continuation signals (hidden divs) in high-TCS environments Use Advisory mode to see what CAE is blocking and learn from outcomes Problem: Adversarial Blocking Seems Wrong Symptoms : You see a divergence that "looks good" visually, but CAE blocks with "Adversarial bearish/bullish" warning. Diagnosis : Check dashboard Bull Case and Bear Case scores at that moment Look at Differential value Check adversarial bar colors — was there strong coloring against your intended direction? Understanding : Adversarial catches "obvious" opposing momentum that's easy to miss Example: Bullish divergence at a local low, BUT price is deeply below EMA50, bearish momentum is strong, and RSI shows knife-catching conditions Bull Case might be 0.20 while Bear Case is 0.55 Differential = -0.35, far beyond threshold Block is CORRECT — you'd be fighting overwhelming opposing flow If You Disagree Consistently Review blocked signals on chart — scroll back and check outcomes Did those blocked signals actually work, or did they fail as adversarial predicted? Raise adv_threshold to 0.15-0.20 (more permissive, allows closer battles) Disable Adversarial Validation temporarily (diagnostic) to isolate its effect Use Advisory mode to learn adversarial patterns over 50-100 signals Remember : Adversarial is conservative BY DESIGN. It prevents "obvious" bad trades where you're fighting strong strength the other way. Problem: Dashboard Not Showing or Incomplete Solutions : Toggle "Show Dashboard" to ON in settings Try different dashboard sizes (Small/Normal/Large) Try different positions (Top Left/Right, Bottom Left/Right) — might be off-screen Some sections require CAE Enable = ON (Cognitive Engine section won't appear if CAE is disabled) Statistics section requires at least 1 lifetime signal to populate Check that visual theme is set (dashboard colors adapt to theme) Problem: Performance Lag, Chart Freezing Symptoms : Chart loading is slow, indicator calculations cause delays, pinch-to-zoom lags. Diagnosis : Visual features are computationally expensive, especially adversarial bar coloring (recalculates every bar). Solutions (In Order of Impact) : Disable Adversarial Bar Coloring (MOST EXPENSIVE): Turn OFF "Adversarial Bar Coloring" in settings This is the single biggest performance drain Immediate improvement Reduce Vertical Lines : Lower "Keep last N vertical lines" to 20-30 Or set to 0 to disable entirely Moderate improvement Disable Bifurcation Zones : Turn OFF "Draw Bifurcation Zones" Reduces box drawing calculations Moderate improvement Set Dashboard Size to Small : Smaller dashboard = fewer cells = less rendering Minor improvement Use Shorter Max Lookback : Reduce max_lookback to 40-50 (from 60+) Fewer bars to scan for divergences Minor improvement Disable Exhaustion Shading : Turn OFF "Show Market State" Removes background coloring calculations Minor improvement Extreme Performance Mode : Disable ALL visual enhancements Keep only triangle markers Dashboard Small or OFF Use Minimal theme if available Problem: Realtime Signals Repainting Symptoms : You see a signal appear, but on next bar it disappears or moves. Explanation : Realtime mode detects peaks 1 bar ago: high > high AND high > high On the FORMING bar (before close), this condition can change as new prices arrive Example: At 10:05, high (10:04 bar) was 100, current high is 99 → peak detected At 10:05:30, new high of 101 arrives → peak condition breaks → signal disappears At 10:06 (bar close), final high is 101 → no peak at 10:04 anymore → signal gone permanently This is expected behavior for realtime responsiveness. You get preview/early warning, but it's not locked until bar confirms. Solutions : Use Confirmed Timing : Switch to "Confirmed (lookforward)" mode ZERO repainting — pivot must be fully validated 5-bar delay (pivot_lookforward) What you see in history is exactly what would have appeared live Accept Realtime Repaint as Tradeoff : Keep Realtime mode for speed and alerts Understand that pre-confirmation signals may vanish Only trade signals that CONFIRM at bar close (check barstate.isconfirmed) Use for live monitoring, NOT for backtesting Trade Only After Confirmation : In Realtime mode, wait 1 full bar after signal appears before entering If signal survives that bar close, it's locked This adds 1-bar delay but removes repaint risk Recommendation : Use Confirmed for backtesting and conservative trading. Use Realtime only for active monitoring with full understanding of preview behavior. Risk Management Integration BZ-CAE is a signal generation system, not a complete trading strategy. You must integrate proper risk management: Position Sizing by Confidence Confidence 0.70-1.00 (Premium) : Risk: 1.5-2.0% of account (MAXIMUM) Reasoning: High-quality setup across all factors Still cap at 2% — even premium setups can fail Confidence 0.50-0.70 (High Quality) : Risk: 1.0-1.5% of account Reasoning: Standard good setup Your bread-and-butter risk level Confidence 0.35-0.50 (Moderate Quality) : Risk: 0.5-1.0% of account Reasoning: Marginal setup, passes minimum threshold Reduce size or skip if you're selective Confidence <0.35 (Low Quality) : Risk: 0% (blocked in Filtering mode) Reasoning: Insufficient quality factors System protects you by not showing these Stop Placement Strategies For Reversal Signals (Regular Divergences) : Place stop beyond the divergence pivot plus buffer Bullish : Stop below the divergence low - 1.0-1.5 × ATR Bearish : Stop above the divergence high + 1.0-1.5 × ATR Reasoning: If price breaks the pivot, divergence structure is invalidated For Continuation Signals (Hidden Divergences) : Place stop beyond recent swing in opposite direction Bullish continuation : Stop below recent swing low (not the divergence pivot itself) Bearish continuation : Stop above recent swing high Reasoning: You're trading with trend, allow more breathing room ATR-Based Stops : 1.5-2.0 × ATR is standard Scale by timeframe: Scalping (1-5m): 1.0-1.5 × ATR (tight) Day trading (15m-1H): 1.5-2.0 × ATR (balanced) Swing (4H-D): 2.0-3.0 × ATR (wide) Never Use Fixed Dollar/Pip Stops : Markets have different volatility 50-pip stop on EUR/USD ≠ 50-pip stop on GBP/JPY Always normalize by ATR or pivot structure Profit Targets and Scaling Primary Target : 2-3 × ATR from entry (minimum 2:1 reward-risk) Example : Entry at 100, ATR = 2, stop at 97 (1.5 × ATR) → target at 106 (3 × ATR) = 2:1 R:R Scaling Out Strategy : Take 50% off at 1.5 × ATR (secure partial profit) Move stop to breakeven Trail remaining 50% with 1.0 × ATR trailing stop Let winners run if trend persists Targets by Confidence : High Confidence (>0.70) : Aggressive targets (3-4 × ATR), trail wider (1.5 × ATR) Standard Confidence (0.50-0.70) : Normal targets (2-3 × ATR), standard trail (1.0 × ATR) Low Confidence (0.35-0.50) : Conservative targets (1.5-2 × ATR), tight trail (0.75 × ATR) Use Bifurcation Zones : If opposite-side zone is visible on chart (from previous signal), use it as target Example : Bullish signal at 100, prior supply zone at 110 → use 110 as target Zones mark institutional resistance/support Exhaustion-Based Exits : If you're in a trade and exhaustion >0.75 develops (yellow shading), consider early exit Market is overextended — reversal risk is high Take profit even if target not reached Trade Management by TCS High TCS + Counter-Trend Trade (Risky) : Use very tight stops (1.0-1.5 × ATR) Conservative targets (1.5-2 × ATR) Quick exit if trade doesn't work immediately You're fading momentum — respect it Low TCS + Reversal Trade (Safer) : Use wider stops (2.0-2.5 × ATR) Aggressive targets (3-4 × ATR) Trail with patience Genuine reversal potential in weak trend High TCS + Continuation Trade (Safest) : Standard stops (1.5-2.0 × ATR) Very aggressive targets (4-5 × ATR) Trail wide (1.5-2.0 × ATR) You're with institutional momentum — let it run Educational Value — Learning Machine Intelligence BZ-CAE is designed as a learning platform, not just a tool: Advisory Mode as Teacher Most indicators are binary: signal or no signal. You don't learn WHY certain setups are better. BZ-CAE's Advisory mode shows you EVERY potential divergence, then annotates the ones that would be blocked in Filtering mode with specific reasons: "Bull: strong downtrend (TCS=0.87)" teaches you that TCS >0.85 makes counter-trend very risky "Adversarial bearish" teaches you that the opposing case was dominating "Low confidence 32%" teaches you that the setup lacked quality across multiple factors "Bull spacing: wait 8 bars" teaches you that signals need breathing room After 50-100 signals in Advisory mode, you internalize the CAE's decision logic. You start seeing these factors yourself BEFORE the indicator does. Dashboard Transparency Most "intelligent" indicators are black boxes — you don't know how they make decisions. BZ-CAE shows you ALL metrics in real-time: TCS tells you trend strength DMA tells you momentum alignment Exhaustion tells you overextension Adversarial shows both sides of the debate Confidence shows composite quality You learn to interpret market state holistically, a skill applicable to ANY trading system beyond this indicator. Divergence Quality Education Not all divergences are equal. BZ-CAE teaches you which conditions produce high-probability setups: Quality divergence : Regular bullish div at a low, TCS <0.50 (weak trend), exhaustion >0.75 (overextended), positive adversarial differential, confidence >0.70 Low-quality divergence : Regular bearish div at a high, TCS >0.85 (strong uptrend), exhaustion <0.30 (not overextended), negative adversarial differential, confidence <0.40 After using the system, you can evaluate divergences manually with similar intelligence. Risk Management Discipline Confidence-based position sizing teaches you to adjust risk based on setup quality, not emotions: Beginners often size all trades identically Or worse, size UP on marginal setups to "make up" for losses BZ-CAE forces systematic sizing: premium setups get larger size, marginal setups get smaller size This creates a probabilistic approach where your edge compounds over time. What This Indicator Is NOT Complete transparency about limitations and positioning: Not a Prediction System BZ-CAE does not predict future prices. It identifies structural divergences (price-momentum disagreements) and assesses current market state (trend, exhaustion, adversarial conditions). It tells you WHEN conditions favor a potential reversal or continuation, not WHAT WILL HAPPEN. Markets are probabilistic. Even premium-confidence setups fail ~30-40% of the time. The system improves your probability distribution over many trades — it doesn't eliminate risk. Not Fully Automated This is a decision support tool, not a trading robot. You must: Execute trades manually based on signals Manage positions (stops, targets, trailing) Apply discretionary judgment (news events, liquidity, context) Integrate with your broader strategy and risk rules The confidence scores guide position sizing, but YOU determine final risk allocation based on your account size, risk tolerance, and portfolio context. Not Beginner-Friendly BZ-CAE requires understanding of: Divergence trading concepts (regular vs hidden, reversal vs continuation) Market state interpretation (trend vs range, momentum, exhaustion) Basic technical analysis (pivots, support/resistance, EMAs) Risk management fundamentals (position sizing, stops, R:R) This is designed for intermediate to advanced traders willing to invest time learning the system. If you want "buy the arrow" simplicity, this isn't the tool. Not a Holy Grail There is no perfect indicator. BZ-CAE filters noise and improves signal quality significantly, but: Losing trades are inevitable (even at 70% win rate, 30% still fail) Market conditions change rapidly (yesterday's strong trend becomes today's chop) Black swan events occur (fundamentals override technicals) Execution matters (slippage, fees, emotional discipline) The system provides an EDGE, not a guarantee. Your job is to execute that edge consistently with proper risk management over hundreds of trades. Not Financial Advice BZ-CAE is an educational and analytical tool. All trading decisions are your responsibility. Past performance (backtested or live) does not guarantee future results. Only risk capital you can afford to lose. Consult a licensed financial advisor for investment advice specific to your situation. Ideal Market Conditions Best Performance Characteristics Liquid Instruments : Major forex pairs (EUR/USD, GBP/USD, USD/JPY) Large-cap stocks and index ETFs (SPY, QQQ, AAPL, MSFT) High-volume crypto (BTC, ETH) Major commodities (Gold, Oil, Natural Gas) Reasoning: Clean price structure, clear pivots, meaningful oscillator behavior Trending with Consolidations : Markets that trend for 20-40 bars, then consolidate 10-20 bars, repeat Creates divergences at consolidation boundaries (reversals) and within trends (continuations) Both regular and hidden divs find opportunities 5-Minute to Daily Timeframes : Below 5m: too much noise, false pivots, CAE metrics unstable Above daily: too few signals, edge diminishes (fundamentals dominate) Sweet spot: 15m to 4H for most traders Consistent Volume and Participation : Regular trading sessions (not holidays or thin markets) Predictable volatility patterns Avoid instruments with sudden gaps or circuit breakers Challenging Conditions Extremely Low Liquidity : Penny stocks, exotic forex pairs, low-volume crypto Erratic pivots, unreliable oscillator readings CAE metrics can't assess market state properly Very Low Timeframes (1-Minute or Below) : Dominated by market microstructure noise Divergences are everywhere but meaningless CAE filtering helps but still unreliable Extended Sideways Consolidation : 100+ bars of tight range with no clear pivots Oscillator hugs midpoint (45-55 range) No divergences to detect Fundamentally-Driven Gap Markets : Earnings releases, economic data, geopolitical events Price gaps over stops and targets Technical structure breaks down Recommendation: Disable trading around known events Calculation Methodology — Technical Depth For users who want to understand the math: Oscillator Computation Each oscillator type calculates differently, but all normalize to 0-100: RSI : ta.rsi(close, length) — Standard Relative Strength Index Stochastic : ta.stoch(high, low, close, length) — %K calculation CCI : (ta.cci(hlc3, length) + 100) / 2 — Normalized from -100/+100 to 0-100 MFI : ta.mfi(hlc3, length) — Volume-weighted RSI equivalent Williams %R : ta.wpr(length) + 100 — Inverted stochastic adjusted to 0-100 Smoothing: If smoothing > 1, apply ta.sma(oscillator, smoothing) Divergence Detection Algorithm Identify Pivots : Price high pivot: ta.pivothigh(high, lookback, lookforward) Price low pivot: ta.pivotlow(low, lookback, lookforward) Oscillator high pivot: ta.pivothigh(osc, lookback, lookforward) Oscillator low pivot: ta.pivotlow(osc, lookback, lookforward) Store Recent Pivots : Maintain arrays of last 10 pivots with bar indices When new pivot confirmed, unshift to array, pop oldest if >10 Scan for Slope Disagreements : Loop through last 5 pivots For each pair (current pivot, historical pivot): Check if within max_lookback bars Calculate slopes: (current - historical) / bars_between Regular bearish: price_slope > 0, osc_slope < 0, |osc_slope| > min_threshold Regular bullish: price_slope < 0, osc_slope > 0, |osc_slope| > min_threshold Hidden bearish: price_slope < 0, osc_slope > 0, osc_slope > min_threshold Hidden bullish: price_slope > 0, osc_slope < 0, |osc_slope| > min_threshold Important Disclaimers and Terms Performance Disclosure Past performance, whether backtested or live-traded, does not guarantee future results. Markets change. What works today may not work tomorrow. Hypothetical or simulated performance results have inherent limitations and do not represent actual trading. Risk of Loss Trading involves substantial risk of loss. Only trade with risk capital you can afford to lose entirely. The high degree of leverage often available in trading can work against you as well as for you. Leveraged trading may result in losses exceeding your initial deposit. Not Financial Advice BZ-CAE is an educational and analytical tool for technical analysis. It is not financial advice, investment advice, or a recommendation to buy or sell any security or instrument. All trading decisions are your sole responsibility. Consult a licensed financial advisor for advice specific to your circumstances. Technical Indicator Limitations BZ-CAE is a technical analysis tool based on price and volume data. It does not account for: Fundamental analysis (earnings, economic data, financial health) Market sentiment and positioning Geopolitical events and news Liquidity conditions and market microstructure changes Regulatory changes or exchange rules Integrate with broader analysis and strategy. Do not rely solely on technical indicators for trading decisions. Repainting Acknowledgment As disclosed throughout this documentation: Realtime mode may repaint on forming bars before confirmation (by design for preview functionality) Confirmed mode has zero repainting (fully validated pivots only) Choose timing mode appropriate for your use case. Understand the tradeoffs. Testing Recommendation ALWAYS test on demo/paper accounts before committing real capital. Validate the indicator's behavior on your specific instruments and timeframes. Learn the system thoroughly in Advisory mode before using Filtering mode. Learning Resources : In-indicator tooltips (hover over setting names for detailed explanations) This comprehensive publishing statement (save for reference) User guide in script comments (top of code) Final Word — Philosophy of BZ-CAE BZ-CAE is not designed to replace your judgment — it's designed to enhance it. The indicator identifies structural inflection points (bifurcations) where price and momentum disagree. The Cognitive Engine evaluates market state to determine if this disagreement is meaningful or noise. The Adversarial model debates both sides of the trade to catch obvious bad setups. The Confidence system ranks quality so you can choose your risk appetite. But YOU still execute. YOU still manage risk. YOU still learn from outcomes. This is intelligence amplification, not intelligence replacement. Use Advisory mode to learn how expert traders evaluate market state. Use Filtering mode to enforce discipline when emotions run high. Use the dashboard to develop a systematic approach to reading markets. Use confidence scores to size positions probabilistically. The system provides an edge. Your job is to execute that edge with discipline, patience, and proper risk management over hundreds of trades. Markets are probabilistic. No system wins every trade. But a systematic edge + disciplined execution + proper risk management compounds over time. That's the path to consistent profitability. BZ-CAE gives you the edge. The discipline and risk management are on you. Taking you to school. — Dskyz, Trade with insight. Trade with anticipation.Penunjuk Pine Script®oleh DskyzInvestments373
O'Neil Market TimingBill O'Neil Market Timing Indicator - User Guide Overview This Pine Script indicator implements William O'Neil's market timing methodology, which assigns one of four distinct states to a market index (such as SPY or QQQ) to help traders identify optimal market conditions for investing. The indicator is designed to work exclusively on Daily timeframe charts. The Four Market States The indicator tracks the market through four distinct states, with specific transition rules between them: 1. Confirmed Uptrend (Green) - Meaning: The market is in a healthy uptrend with institutional support - Action: Favorable conditions for building positions in leading stocks - Can transition to: State 2 (Uptrend Under Pressure) 2. Uptrend Under Pressure (Yellow) - Meaning: The uptrend is showing signs of weakness with increasing distribution - Action: Be cautious, tighten stops, reduce position sizes - Can transition to: State 1 (Confirmed Uptrend) or State 3 (Downtrend) 3. Downtrend (Red) - Meaning: The market is in a confirmed downtrend - Action: Stay mostly in cash, avoid new purchases - Can transition to: State 4 (Rally Attempt) 4. Rally Attempt (Pink/Fuchsia) - Meaning: The market is attempting to bottom and reverse - Action: Watch for Follow-Through Day to confirm new uptrend - Can transition to: State 1 (Confirmed Uptrend) or State 3 (Downtrend) Key Concepts Distribution Day A distribution day occurs when: 1. The index closes down by more than the critical percentage (default 0.2%) 2. Volume is higher than the previous day's volume Distribution days indicate institutional selling and are marked with red triangles on the indicator. Follow-Through Day A follow-through day occurs during a Rally Attempt when: 1. The index closes up by more than the critical percentage (default 1.6%) 2. Volume is higher than the previous day's volume A Follow-Through Day confirms a new uptrend and triggers the transition from Rally Attempt to Confirmed Uptrend. State Transition Logic Valid Transitions The system only allows specific transitions: - 1 → 2: When distribution days reach the "pressure number" (default 5) within the lookback period (default 25 bars) - 2 → 1: When distribution days drop below the pressure number - 2 → 3: When distribution days reach "downtrend number" (default 7) AND price drops by "downtrend criterion" (default 6%) from the lookback high - 3 → 4: When the market doesn't make a new low for 3 consecutive days - 4 → 3: When a new low is made, undercutting the downtrend low - 4 → 1: When a Follow-Through Day occurs during the Rally Attempt Input Parameters Distribution Day Parameters - Distribution Day % Threshold (default 0.2%, range 0.1-2.0%) - Minimum percentage decline required to qualify as a distribution day. While 0.2% seems to be the canonical number I see in literature about this, I use a much higher threshold (at least 0.5%) Follow-Through Day Parameters - Follow-Through Day % Threshold (default 1.6%, range 1.0-2.0%) - Minimum percentage gain required to qualify as a follow-through day ### State Transition Parameters - Pressure Number (default 5, range 3-6) - Number of distribution days needed to transition from Confirmed Uptrend to Uptrend Under Pressure - Lookback Period (default 25 bars, range 20-30) - Number of days to count distribution days - Downtrend Number (default 7, range 4-10) - Number of distribution days needed (with price drop) to transition to Downtrend - Downtrend % Drop from High (default 6%, range 5-10%) - Percentage drop from lookback high required for downtrend confirmation Visual Settings - Color customization for each state - Table position selection (Top Left, Top Right, Bottom Left, Bottom Right) ## How to Use This Indicator ### Installation 1. Open TradingView and navigate to SPY or QQQ (or another major index) 2. **Important**: Switch to the Daily (1D) timeframe 3. Click on "Indicators" at the top of the chart 4. Click "Pine Editor" at the bottom of the screen 5. Copy and paste the Pine Script code 6. Click "Add to Chart" ### Interpretation **When the indicator shows:** - **Green (State 1)**: Market is healthy - consider adding quality positions - **Yellow (State 2)**: Exercise caution - tighten stops, be selective - **Red (State 3)**: Defensive mode - preserve capital, avoid new buys - **Pink (State 4)**: Watch closely - prepare for potential Follow-Through Day ### The Information Table The table displays: - **Current State**: The current market condition - **Distribution Days**: Number of distribution days in the lookback period - **Lookback Period**: Number of bars being analyzed - **Rally Attempt Day**: (Only in State 4) Days into the current rally attempt ### Visual Elements 1. **State Line**: A stepped line showing the current state (1-4) 2. **Red Triangles**: Mark each distribution day 3. **Horizontal Reference Lines**: Dotted lines marking each state level 4. **Color-Coded Display**: The state line changes color based on the current market condition ## Trading Strategy Guidelines ### In Confirmed Uptrend (State 1) - Build positions in stocks breaking out of proper bases - Use normal position sizing - Focus on stocks showing institutional accumulation - Hold winners as long as they act properly ### In Uptrend Under Pressure (State 2) - Take partial profits in extended positions - Tighten stop losses - Be more selective with new entries - Reduce overall exposure ### In Downtrend (State 3) - Move to cash or maintain very light exposure - Avoid new purchases - Focus on preservation of capital - Use the time for research and watchlist building ### In Rally Attempt (State 4) - Stay mostly in cash but prepare - Build a watchlist of strong stocks - On Day 4+ of the rally attempt, watch for Follow-Through Day - If FTD occurs, begin cautiously adding positions ## Best Practices 1. **Use with Major Indices**: This indicator works best with SPY, QQQ, or other broad market indices 2. **Daily Timeframe Only**: The indicator is designed for daily bars - do not use on intraday timeframes 3. **Combine with Stock Analysis**: Use the market state as a filter for individual stock decisions 4. **Respect the Signals**: When the market enters Downtrend, reduce exposure regardless of individual stock setups 5. **Monitor Distribution Days**: Pay attention when distribution days accumulate - it's a warning sign 6. **Wait for Follow-Through**: Don't jump back in too early during Rally Attempt - wait for confirmation ## Alert Conditions The indicator includes built-in alert conditions for: - State changes (entering any of the four states) - Distribution Day detection - Follow-Through Day detection during Rally Attempt To set up alerts: 1. Click the "Alert" button while the indicator is on your chart 2. Select "O'Neil Market Timing" 3. Choose your desired alert condition 4. Configure notification preferences ## Customization Tips ### For More Sensitive Detection - Lower the "Pressure Number" to 3-4 - Lower the "Distribution Day % Threshold" to 0.15% - Reduce the "Downtrend Number" to 5-6 ### For More Conservative Detection - Raise the "Pressure Number" to 6 - Raise the "Distribution Day % Threshold" to 0.3-0.5% - Increase the "Downtrend Number" to 8-9 ### For Different Market Conditions - **Bull Market**: Consider slightly higher thresholds - **Bear Market**: Consider slightly lower thresholds - **Volatile Market**: May need to increase percentage thresholds ## Limitations and Considerations 1. **Not a Crystal Ball**: The indicator identifies conditions but doesn't predict the future 2. **False Signals**: Follow-Through Days can fail - use proper risk management 3. **Whipsaws Possible**: In choppy markets, the indicator may switch states frequently 4. **Confirmation Lag**: By design, there's a lag as the system waits for confirmation 5. **Works Best with Price Action**: Combine with your analysis of individual stocks ## Historical Context This methodology is based on William J. O'Neil's decades of market research, documented in books like "How to Make Money in Stocks" and through Investor's Business Daily. O'Neil's research showed that: - Most major market tops are preceded by accumulation of distribution days - Most successful rallies begin with a Follow-Through Day on Day 4-7 of a rally attempt - Identifying market state helps prevent buying during unfavorable conditions ## Troubleshooting **Problem**: Indicator shows "Initializing" - **Solution**: Let the chart load at least 5 bars to establish the initial state **Problem**: No distribution day markers appear - **Solution**: Verify you're on daily timeframe and check if volume data is available **Problem**: Table not visible - **Solution**: Check the table position setting and ensure it's not off-screen **Problem**: State seems to change too frequently - **Solution**: Increase the lookback period or adjust threshold parameters ## Support and Further Learning For deeper understanding of this methodology: - Read "How to Make Money in Stocks" by William J. O'Neil - Study Investor's Business Daily's "Market Pulse" - Review historical market tops and bottoms to see the pattern - Practice identifying distribution days and follow-through days manually ## Version History **Version 1.0** (November 2025) - Initial implementation - Four-state system with proper transitions - Distribution day detection and marking - Follow-through day detection - Customizable parameters - Information table display - Alert conditions --- ## Quick Reference Card | State | Number | Color | Action | |-------|--------|-------|--------| | Confirmed Uptrend | 1 | Green | Buy quality setups | | Uptrend Under Pressure | 2 | Yellow | Tighten stops, be selective | | Downtrend | 3 | Red | Cash position, no new buys | | Rally Attempt | 4 | Pink | Watch for Follow-Through Day | **Distribution Day**: Down > 0.2% on higher volume (red triangle) **Follow-Through Day**: Up > 1.6% on higher volume during Rally Attempt (triggers State 4→1) --- *Remember: This indicator is a tool to help identify market conditions. It should be used as part of a comprehensive trading strategy that includes proper risk management, position sizing, and individual stock analysis.* Also, I created this with the help of an AI coding framework, and I didn't exhaustively test it. I don't actually use this for my own trading, so it's quite possible that it's materially wrong, and that following this will lead to poor investment decisions.. This is "copy left" software, so feel free to alter this to your own tastes, and claim authorship.Penunjuk Pine Script®oleh matthias29
Hellenic EMA Matrix - PremiumHellenic EMA Matrix - Alpha Omega Premium Complete User Guide Table of Contents Introduction Indicator Philosophy Mathematical Constants EMA Types Settings Trading Signals Visualization Usage Strategies FAQ Introduction Hellenic EMA Matrix is a premium indicator based on mathematical constants of nature: Phi (Phi - Golden Ratio), Pi (Pi), e (Euler's number). The indicator uses these universal constants to create dynamic EMAs that adapt to the natural rhythms of the market. Key Features: 6 EMA types based on mathematical constants Premium visualization with Neon Glow and Gradient Clouds Automatic Fast/Mid/Slow EMA sorting STRONG signals for powerful trends Pulsing Ribbon Bar for instant trend assessment Works on all timeframes (M1 - MN) Indicator Philosophy Why Mathematical Constants? Traditional EMAs use arbitrary periods (9, 21, 50, 200). Hellenic Matrix goes further, using universal mathematical constants found in nature: Phi (1.618) - Golden Ratio: galaxy spirals, seashells, human body proportions Pi (3.14159) - Pi: circles, waves, cycles e (2.71828) - Natural logarithm base: exponential growth, radioactive decay Markets are also a natural system composed of millions of participants. Using mathematical constants allows tuning into the natural rhythms of market cycles. Mathematical Constants Phi (Phi) - Golden Ratio Phi = 1.618033988749895 Properties: Phi² = Phi + 1 = 2.618 Phi³ = 4.236 Phi⁴ = 6.854 Application: Ideal for trending movements and Fibonacci corrections Pi (Pi) - Pi Number Pi = 3.141592653589793 Properties: 2Pi = 6.283 (full circle) 3Pi = 9.425 4Pi = 12.566 Application: Excellent for cyclical markets and wave structures e (Euler) - Euler's Number e = 2.718281828459045 Properties: e² = 7.389 e³ = 20.085 e⁴ = 54.598 Application: Suitable for exponential movements and volatile markets EMA Types 1. Phi (Phi) - Golden Ratio EMA Description: EMA based on the golden ratio Period Formula: Period = Phi^n × Base Multiplier Parameters: Phi Power Level (1-8): Power of Phi Phi¹ = 1.618 → ~16 period (with Base=10) Phi² = 2.618 → ~26 period Phi³ = 4.236 → ~42 period (recommended) Phi⁴ = 6.854 → ~69 period Recommendations: Phi² or Phi³ for day trading Phi⁴ or Phi⁵ for swing trading Works excellently as Fast EMA 2. Pi (Pi) - Circular EMA Description: EMA based on Pi for cyclical movements Period Formula: Period = Pi × Multiple × Base Multiplier Parameters: Pi Multiple (1-10): Pi multiplier 1Pi = 3.14 → ~31 period (with Base=10) 2Pi = 6.28 → ~63 period (recommended) 3Pi = 9.42 → ~94 period Recommendations: 2Pi ideal as Mid or Slow EMA Excellently identifies cycles and waves Use on volatile markets (crypto, forex) 3. e (Euler) - Natural EMA Description: EMA based on natural logarithm Period Formula: Period = e^n × Base Multiplier Parameters: e Power Level (1-6): Power of e e¹ = 2.718 → ~27 period (with Base=10) e² = 7.389 → ~74 period (recommended) e³ = 20.085 → ~201 period Recommendations: e² works excellently as Slow EMA Ideal for stocks and indices Filters noise well on lower timeframes 4. Delta (Delta) - Adaptive EMA Description: Adaptive EMA that changes period based on volatility Period Formula: Period = Base Period × (1 + (Volatility - 1) × Factor) Parameters: Delta Base Period (5-200): Base period (default 20) Delta Volatility Sensitivity (0.5-5.0): Volatility sensitivity (default 2.0) How it works: During low volatility → period decreases → EMA reacts faster During high volatility → period increases → EMA smooths noise Recommendations: Works excellently on news and sharp movements Use as Fast EMA for quick adaptation Sensitivity 2.0-3.0 for crypto, 1.0-2.0 for stocks 5. Sigma (Sigma) - Composite EMA Description: Composite EMA combining multiple active EMAs Composition Methods: Weighted Average (default): Sigma = (Phi + Pi + e + Delta) / 4 Simple average of all active EMAs Geometric Mean: Sigma = fourth_root(Phi × Pi × e × Delta) Geometric mean (more conservative) Harmonic Mean: Sigma = 4 / (1/Phi + 1/Pi + 1/e + 1/Delta) Harmonic mean (more weight to smaller values) Recommendations: Enable for additional confirmation Use as Mid EMA Weighted Average - most universal method 6. Lambda (Lambda) - Wave EMA Description: Wave EMA with sinusoidal period modulation Period Formula: Period = Base Period × (1 + Amplitude × sin(2Pi × bar / Frequency)) Parameters: Lambda Base Period (10-200): Base period Lambda Wave Amplitude (0.1-2.0): Wave amplitude Lambda Wave Frequency (10-200): Wave frequency in bars How it works: Period pulsates sinusoidally Creates wave effect following market cycles Recommendations: Experimental EMA for advanced users Works well on cyclical markets Frequency = 50 for day trading, 100+ for swing Settings Matrix Core Settings Base Multiplier (1-100) Multiplies all EMA periods Base = 1: Very fast EMAs (Phi³ = 4, 2Pi = 6, e² = 7) Base = 10: Standard (Phi³ = 42, 2Pi = 63, e² = 74) Base = 20: Slow EMAs (Phi³ = 85, 2Pi = 126, e² = 148) Recommendations by timeframe: M1-M5: Base = 5-10 M15-H1: Base = 10-15 (recommended) H4-D1: Base = 15-25 W1-MN: Base = 25-50 Matrix Source Data source selection for EMA calculation: close - closing price (standard) open - opening price high - high low - low hl2 - (high + low) / 2 hlc3 - (high + low + close) / 3 ohlc4 - (open + high + low + close) / 4 When to change: hlc3 or ohlc4 for smoother signals high for aggressive longs low for aggressive shorts Manual EMA Selection Critically important setting! Determines which EMAs are used for signal generation. Use Manual Fast/Slow/Mid Selection Enabled (default): You select EMAs manually Disabled: Automatic selection by periods Fast EMA Fast EMA - reacts first to price changes Recommendations: Phi Golden (recommended) - universal choice Delta Adaptive - for volatile markets Must be fastest (smallest period) Slow EMA Slow EMA - determines main trend Recommendations: Pi Circular (recommended) - excellent trend filter e Natural - for smoother trend Must be slowest (largest period) Mid EMA Mid EMA - additional signal filter Recommendations: e Natural (recommended) - excellent middle level Pi Circular - alternative None - for more frequent signals (only 2 EMAs) IMPORTANT: The indicator automatically sorts selected EMAs by their actual periods: Fast = EMA with smallest period Mid = EMA with middle period Slow = EMA with largest period Therefore, you can select any combination - the indicator will arrange them correctly! Premium Visualization Neon Glow Enable Neon Glow for EMAs - adds glowing effect around EMA lines Glow Strength: Light - subtle glow Medium (recommended) - optimal balance Strong - bright glow (may be too bright) Effect: 2 glow layers around each EMA for 3D effect Gradient Clouds Enable Gradient Clouds - fills space between EMAs with gradient Parameters: Cloud Transparency (85-98): Cloud transparency 95-97 (recommended) Higher = more transparent Dynamic Cloud Intensity - automatically changes transparency based on EMA distance Cloud Colors: Phi-Pi Cloud: Blue - when Pi above Phi (bullish) Gold - when Phi above Pi (bearish) Pi-e Cloud: Green - when e above Pi (bullish) Blue - when Pi above e (bearish) 2 layers for volumetric effect Pulsing Ribbon Bar Enable Pulsing Indicator Bar - pulsing strip at bottom/top of chart Parameters: Ribbon Position: Top / Bottom (recommended) Pulse Speed: Slow / Medium (recommended) / Fast Symbols and colors: Green filled square - STRONG BULLISH Pink filled square - STRONG BEARISH Blue hollow square - Bullish (regular) Red hollow square - Bearish (regular) Purple rectangle - Neutral Effect: Pulsation with sinusoid for living market feel Signal Bar Highlights Enable Signal Bar Highlights - highlights bars with signals Parameters: Highlight Transparency (88-96): Highlight transparency Highlight Style: Light Fill (recommended) - bar background fill Thin Line - bar outline only Highlights: Golden Cross - green Death Cross - pink STRONG BUY - green STRONG SELL - pink Show Greek Labels Shows Greek alphabet letters on last bar: Phi - Phi EMA (gold) Pi - Pi EMA (blue) e - Euler EMA (green) Delta - Delta EMA (purple) Sigma - Sigma EMA (pink) When to use: For education or presentations Show Old Background Old background style (not recommended): Green background - STRONG BULLISH Pink background - STRONG BEARISH Blue background - Bullish Red background - Bearish Not recommended - use new Gradient Clouds and Pulsing Bar Info Table Show Info Table - table with indicator information Parameters: Position: Top Left / Top Right (recommended) / Bottom Left / Bottom Right Size: Tiny / Small (recommended) / Normal / Large Table contents: EMA list - periods and current values of all active EMAs Effects - active visual effects TREND - current trend state: STRONG UP - strong bullish STRONG DOWN - strong bearish Bullish - regular bullish Bearish - regular bearish Neutral - neutral Momentum % - percentage deviation of price from Fast EMA Setup - current Fast/Slow/Mid configuration Trading Signals Show Golden/Death Cross Golden Cross - Fast EMA crosses Slow EMA from below (bullish signal) Death Cross - Fast EMA crosses Slow EMA from above (bearish signal) Symbols: Yellow dot "GC" below - Golden Cross Dark red dot "DC" above - Death Cross Show STRONG Signals STRONG BUY and STRONG SELL - the most powerful indicator signals Conditions for STRONG BULLISH: EMA Alignment: Fast > Mid > Slow (all EMAs aligned) Trend: Fast > Slow (clear uptrend) Distance: EMAs separated by minimum 0.15% Price Position: Price above Fast EMA Fast Slope: Fast EMA rising Slow Slope: Slow EMA rising Mid Trending: Mid EMA also rising (if enabled) Conditions for STRONG BEARISH: Same but in reverse Visual display: Green label "STRONG BUY" below bar Pink label "STRONG SELL" above bar Difference from Golden/Death Cross: Golden/Death Cross = crossing moment (1 bar) STRONG signal = sustained trend (lasts several bars) IMPORTANT: After fixes, STRONG signals now: Work on all timeframes (M1 to MN) Don't break on small retracements Work with any Fast/Mid/Slow combination Automatically adapt thanks to EMA sorting Show Stop Loss/Take Profit Automatic SL/TP level calculation on STRONG signal Parameters: Stop Loss (ATR) (0.5-5.0): ATR multiplier for stop loss 1.5 (recommended) - standard 1.0 - tight stop 2.0-3.0 - wide stop Take Profit R:R (1.0-5.0): Risk/reward ratio 2.0 (recommended) - standard (risk 1.5 ATR, profit 3.0 ATR) 1.5 - conservative 3.0-5.0 - aggressive Formulas: LONG: Stop Loss = Entry - (ATR × Stop Loss ATR) Take Profit = Entry + (ATR × Stop Loss ATR × Take Profit R:R) SHORT: Stop Loss = Entry + (ATR × Stop Loss ATR) Take Profit = Entry - (ATR × Stop Loss ATR × Take Profit R:R) Visualization: Red X - Stop Loss Green X - Take Profit Levels remain active while STRONG signal persists Trading Signals Signal Types 1. Golden Cross Description: Fast EMA crosses Slow EMA from below Signal: Beginning of bullish trend How to trade: ENTRY: On bar close with Golden Cross STOP: Below local low or below Slow EMA TARGET: Next resistance level or 2:1 R:R Strengths: Simple and clear Works well on trending markets Clear entry point Weaknesses: Lags (signal after movement starts) Many false signals in ranging markets May be late on fast moves Optimal timeframes: H1, H4, D1 2. Death Cross Description: Fast EMA crosses Slow EMA from above Signal: Beginning of bearish trend How to trade: ENTRY: On bar close with Death Cross STOP: Above local high or above Slow EMA TARGET: Next support level or 2:1 R:R Application: Mirror of Golden Cross 3. STRONG BUY Description: All EMAs aligned + trend + all EMAs rising Signal: Powerful bullish trend How to trade: ENTRY: On bar close with STRONG BUY or on pullback to Fast EMA STOP: Below Fast EMA or automatic SL (if enabled) TARGET: Automatic TP (if enabled) or by levels TRAILING: Follow Fast EMA Entry strategies: Aggressive: Enter immediately on signal Conservative: Wait for pullback to Fast EMA, then enter on bounce Pyramiding: Add positions on pullbacks to Mid EMA Position management: Hold while STRONG signal active Exit on STRONG SELL or Death Cross appearance Move stop behind Fast EMA Strengths: Most reliable indicator signal Doesn't break on pullbacks Catches large moves Works on all timeframes Weaknesses: Appears less frequently than other signals Requires confirmation (multiple conditions) Optimal timeframes: All (M5 - D1) 4. STRONG SELL Description: All EMAs aligned down + downtrend + all EMAs falling Signal: Powerful bearish trend How to trade: Mirror of STRONG BUY Visual Signals Pulsing Ribbon Bar Quick market assessment at a glance: Symbol Color State Filled square Green STRONG BULLISH Filled square Pink STRONG BEARISH Hollow square Blue Bullish Hollow square Red Bearish Rectangle Purple Neutral Pulsation: Sinusoidal, creates living effect Signal Bar Highlights Bars with signals are highlighted: Green highlight: STRONG BUY or Golden Cross Pink highlight: STRONG SELL or Death Cross Gradient Clouds Colored space between EMAs shows trend strength: Wide clouds - strong trend Narrow clouds - weak trend or consolidation Color change - trend change Info Table Quick reference in corner: TREND: Current state (STRONG UP, Bullish, Neutral, Bearish, STRONG DOWN) Momentum %: Movement strength Effects: Active visual effects Setup: Fast/Slow/Mid configuration Usage Strategies Strategy 1: "Golden Trailing" Idea: Follow STRONG signals using Fast EMA as trailing stop Settings: Fast: Phi Golden (Phi³) Mid: Pi Circular (2Pi) Slow: e Natural (e²) Base Multiplier: 10 Timeframe: H1, H4 Entry rules: Wait for STRONG BUY Enter on bar close or on pullback to Fast EMA Stop below Fast EMA Management: Hold position while STRONG signal active Move stop behind Fast EMA daily Exit on STRONG SELL or Death Cross Take Profit: Partially close at +2R Trail remainder until exit signal For whom: Swing traders, trend followers Pros: Catches large moves Simple rules Emotionally comfortable Cons: Requires patience Possible extended drawdowns on pullbacks Strategy 2: "Scalping Bounces" Idea: Scalp bounces from Fast EMA during STRONG trend Settings: Fast: Delta Adaptive (Base 15, Sensitivity 2.0) Mid: Phi Golden (Phi²) Slow: Pi Circular (2Pi) Base Multiplier: 5 Timeframe: M5, M15 Entry rules: STRONG signal must be active Wait for price pullback to Fast EMA Enter on bounce (candle closes above/below Fast EMA) Stop behind local extreme (15-20 pips) Take Profit: +1.5R or to Mid EMA Or to next level For whom: Active day traders Pros: Many signals Clear entry point Quick profits Cons: Requires constant monitoring Not all bounces work Requires discipline for frequent trading Strategy 3: "Triple Filter" Idea: Enter only when all 3 EMAs and price perfectly aligned Settings: Fast: Phi Golden (Phi³) Mid: e Natural (e²) Slow: Pi Circular (3Pi) Base Multiplier: 15 Timeframe: H4, D1 Entry rules (LONG): STRONG BUY active Price above all three EMAs Fast > Mid > Slow (all aligned) All EMAs rising (slope up) Gradient Clouds wide and bright Entry: On bar close meeting all conditions Or on next pullback to Fast EMA Stop: Below Mid EMA or -1.5 ATR Take Profit: First target: +3R Second target: next major level Trailing: Mid EMA For whom: Conservative swing traders, investors Pros: Very reliable signals Minimum false entries Large profit potential Cons: Rare signals (2-5 per month) Requires patience Strategy 4: "Adaptive Scalper" Idea: Use only Delta Adaptive EMA for quick volatility reaction Settings: Fast: Delta Adaptive (Base 10, Sensitivity 3.0) Mid: None Slow: Delta Adaptive (Base 30, Sensitivity 2.0) Base Multiplier: 3 Timeframe: M1, M5 Feature: Two different Delta EMAs with different settings Entry rules: Golden Cross between two Delta EMAs Both Delta EMAs must be rising/falling Enter on next bar Stop: 10-15 pips or below Slow Delta EMA Take Profit: +1R to +2R Or Death Cross For whom: Scalpers on cryptocurrencies and forex Pros: Instant volatility adaptation Many signals on volatile markets Quick results Cons: Much noise on calm markets Requires fast execution High commissions may eat profits Strategy 5: "Cyclical Trader" Idea: Use Pi and Lambda for trading cyclical markets Settings: Fast: Pi Circular (1Pi) Mid: Lambda Wave (Base 30, Amplitude 0.5, Frequency 50) Slow: Pi Circular (3Pi) Base Multiplier: 10 Timeframe: H1, H4 Entry rules: STRONG signal active Lambda Wave EMA synchronized with trend Enter on bounce from Lambda Wave For whom: Traders of cyclical assets (some altcoins, commodities) Pros: Catches cyclical movements Lambda Wave provides additional entry points Cons: More complex to configure Not for all markets Lambda Wave may give false signals Strategy 6: "Multi-Timeframe Confirmation" Idea: Use multiple timeframes for confirmation Scheme: Higher TF (D1): Determine trend direction (STRONG signal) Middle TF (H4): Wait for STRONG signal in same direction Lower TF (M15): Look for entry point (Golden Cross or bounce from Fast EMA) Settings for all TFs: Fast: Phi Golden (Phi³) Mid: e Natural (e²) Slow: Pi Circular (2Pi) Base Multiplier: 10 Rules: All 3 TFs must show one trend Entry on lower TF Stop by lower TF Target by higher TF For whom: Serious traders and investors Pros: Maximum reliability Large profit targets Minimum false signals Cons: Rare setups Requires analysis of multiple charts Experience needed Practical Tips DOs Use STRONG signals as primary - they're most reliable Let signals develop - don't exit on first pullback Use trailing stop - follow Fast EMA Combine with levels - S/R, Fibonacci, volumes Test on demo before real Adjust Base Multiplier for your timeframe Enable visual effects - they help see the picture Use Info Table - quick situation assessment Watch Pulsing Bar - instant state indicator Trust auto-sorting of Fast/Mid/Slow DON'Ts Don't trade against STRONG signal - trend is your friend Don't ignore Mid EMA - it adds reliability Don't use too small Base Multiplier on higher TFs Don't enter on Golden Cross in range - check for trend Don't change settings during open position Don't forget risk management - 1-2% per trade Don't trade all signals in row - choose best ones Don't use indicator in isolation - combine with Price Action Don't set too tight stops - let trade breathe Don't over-optimize - simplicity = reliability Optimal Settings by Asset US Stocks (SPY, AAPL, TSLA) Recommendation: Fast: Phi Golden (Phi³) Mid: e Natural (e²) Slow: Pi Circular (2Pi) Base: 10-15 Timeframe: H4, D1 Features: Use on daily for swing STRONG signals very reliable Works well on trending stocks Forex (EUR/USD, GBP/USD) Recommendation: Fast: Delta Adaptive (Base 15, Sens 2.0) Mid: Phi Golden (Phi²) Slow: Pi Circular (2Pi) Base: 8-12 Timeframe: M15, H1, H4 Features: Delta Adaptive works excellently on news Many signals on M15-H1 Consider spreads Cryptocurrencies (BTC, ETH, altcoins) Recommendation: Fast: Delta Adaptive (Base 10, Sens 3.0) Mid: Pi Circular (2Pi) Slow: e Natural (e²) Base: 5-10 Timeframe: M5, M15, H1 Features: High volatility - adaptation needed STRONG signals can last days Be careful with scalping on M1-M5 Commodities (Gold, Oil) Recommendation: Fast: Pi Circular (1Pi) Mid: Phi Golden (Phi³) Slow: Pi Circular (3Pi) Base: 12-18 Timeframe: H4, D1 Features: Pi works excellently on cyclical commodities Gold responds especially well to Phi Oil volatile - use wide stops Indices (S&P500, Nasdaq, DAX) Recommendation: Fast: Phi Golden (Phi³) Mid: e Natural (e²) Slow: Pi Circular (2Pi) Base: 15-20 Timeframe: H4, D1, W1 Features: Very trending instruments STRONG signals last weeks Good for position trading Alerts The indicator supports 6 alert types: 1. Golden Cross Message: "Hellenic Matrix: GOLDEN CROSS - Fast EMA crossed above Slow EMA - Bullish trend starting!" When: Fast EMA crosses Slow EMA from below 2. Death Cross Message: "Hellenic Matrix: DEATH CROSS - Fast EMA crossed below Slow EMA - Bearish trend starting!" When: Fast EMA crosses Slow EMA from above 3. STRONG BULLISH Message: "Hellenic Matrix: STRONG BULLISH SIGNAL - All EMAs aligned for powerful uptrend!" When: All conditions for STRONG BUY met (first bar) 4. STRONG BEARISH Message: "Hellenic Matrix: STRONG BEARISH SIGNAL - All EMAs aligned for powerful downtrend!" When: All conditions for STRONG SELL met (first bar) 5. Bullish Ribbon Message: "Hellenic Matrix: BULLISH RIBBON - EMAs aligned for uptrend" When: EMAs aligned bullish + price above Fast EMA (less strict condition) 6. Bearish Ribbon Message: "Hellenic Matrix: BEARISH RIBBON - EMAs aligned for downtrend" When: EMAs aligned bearish + price below Fast EMA (less strict condition) How to Set Up Alerts: Open indicator on chart Click on three dots next to indicator name Select "Create Alert" In "Condition" field select needed alert: Golden Cross Death Cross STRONG BULLISH STRONG BEARISH Bullish Ribbon Bearish Ribbon Configure notification method: Pop-up in browser Email SMS (in Premium accounts) Push notifications in mobile app Webhook (for automation) Select frequency: Once Per Bar Close (recommended) - once on bar close Once Per Bar - during bar formation Only Once - only first time Click "Create" Tip: Create separate alerts for different timeframes and instruments FAQ 1. Why don't STRONG signals appear? Possible reasons: Incorrect Fast/Mid/Slow order Solution: Indicator automatically sorts EMAs by periods, but ensure selected EMAs have different periods Base Multiplier too large Solution: Reduce Base to 5-10 on lower timeframes Market in range Solution: STRONG signals appear only in trends - this is normal Too strict EMA settings Solution: Try classic combination: Phi³ / Pi×2 / e² with Base=10 Mid EMA too close to Fast or Slow Solution: Select Mid EMA with period between Fast and Slow 2. How often should STRONG signals appear? Normal frequency: M1-M5: 5-15 signals per day (very active markets) M15-H1: 2-8 signals per day H4: 3-10 signals per week D1: 2-5 signals per month W1: 2-6 signals per year If too many signals - market very volatile or Base too small If too few signals - market in range or Base too large 4. What are the best settings for beginners? Universal "out of the box" settings: Matrix Core: Base Multiplier: 10 Source: close Phi Golden: Enabled, Power = 3 Pi Circular: Enabled, Multiple = 2 e Natural: Enabled, Power = 2 Delta Adaptive: Enabled, Base = 20, Sensitivity = 2.0 Manual Selection: Fast: Phi Golden Mid: e Natural Slow: Pi Circular Visualization: Gradient Clouds: ON Neon Glow: ON (Medium) Pulsing Bar: ON (Medium) Signal Highlights: ON (Light Fill) Table: ON (Top Right, Small) Signals: Golden/Death Cross: ON STRONG Signals: ON Stop Loss: OFF (while learning) Timeframe for learning: H1 or H4 5. Can I use only one EMA? No, minimum 2 EMAs (Fast and Slow) for signal generation. Mid EMA is optional: With Mid EMA = more reliable but rarer signals Without Mid EMA = more signals but less strict filtering Recommendation: Start with 3 EMAs (Fast/Mid/Slow), then experiment 6. Does the indicator work on cryptocurrencies? Yes, works excellently! Especially good on: Bitcoin (BTC) Ethereum (ETH) Major altcoins (SOL, BNB, XRP) Recommended settings for crypto: Fast: Delta Adaptive (Base 10-15, Sensitivity 2.5-3.0) Mid: Pi Circular (2Pi) Slow: e Natural (e²) Base: 5-10 Timeframe: M15, H1, H4 Crypto market features: High volatility → use Delta Adaptive 24/7 trading → set alerts Sharp movements → wide stops 7. Can I trade only with this indicator? Technically yes, but NOT recommended. Best approach - combine with: Price Action - support/resistance levels, candle patterns Volume - movement strength confirmation Fibonacci - retracement and extension levels RSI/MACD - divergences and overbought/oversold Fundamental analysis - news, company reports Hellenic Matrix: Excellently determines trend and its strength Provides clear entry/exit points Doesn't consider fundamentals Doesn't see major levels 8. Why do Gradient Clouds change color? Color depends on EMA order: Phi-Pi Cloud: Blue - Pi EMA above Phi EMA (bullish alignment) Gold - Phi EMA above Pi EMA (bearish alignment) Pi-e Cloud: Green - e EMA above Pi EMA (bullish alignment) Blue - Pi EMA above e EMA (bearish alignment) Color change = EMA order change = possible trend change 9. What is Momentum % in the table? Momentum % = percentage deviation of price from Fast EMA Formula: Momentum = ((Close - Fast EMA) / Fast EMA) × 100 Interpretation: +0.5% to +2% - normal bullish momentum +2% to +5% - strong bullish momentum +5% and above - overheating (correction possible) -0.5% to -2% - normal bearish momentum -2% to -5% - strong bearish momentum -5% and below - oversold (bounce possible) Usage: Monitor momentum during STRONG signals Large momentum = don't enter (wait for pullback) Small momentum = good entry point 10. How to configure for scalping? Settings for scalping (M1-M5): Base Multiplier: 3-5 Source: close or hlc3 (smoother) Fast: Delta Adaptive (Base 8-12, Sensitivity 3.0) Mid: None (for more signals) Slow: Phi Golden (Phi²) or Pi Circular (1Pi) Visualization: - Gradient Clouds: ON (helps see strength) - Neon Glow: OFF (doesn't clutter chart) - Pulsing Bar: ON (quick assessment) - Signal Highlights: ON Signals: - Golden/Death Cross: ON - STRONG Signals: ON - Stop Loss: ON (1.0-1.5 ATR, R:R 1.5-2.0) Scalping rules: Trade only STRONG signals Enter on bounce from Fast EMA Tight stops (10-20 pips) Quick take profit (+1R to +2R) Don't hold through news 11. How to configure for long-term investing? Settings for investing (D1-W1): Base Multiplier: 20-30 Source: close Fast: Phi Golden (Phi³ or Phi⁴) Mid: e Natural (e²) Slow: Pi Circular (3Pi or 4Pi) Visualization: - Gradient Clouds: ON - Neon Glow: ON (Medium) - Everything else - to taste Signals: - Golden/Death Cross: ON - STRONG Signals: ON - Stop Loss: OFF (use percentage stop) Investing rules: Enter only on STRONG signals Hold while STRONG active (weeks/months) Stop below Slow EMA or -10% Take profit: by company targets or +50-100% Ignore short-term pullbacks 12. What if indicator slows down chart? Indicator is optimized, but if it slows: Disable unnecessary visual effects: Neon Glow: OFF (saves 8 plots) Gradient Clouds: ON but low quality Lambda Wave EMA: OFF (if not using) Reduce number of active EMAs: Sigma Composite: OFF Lambda Wave: OFF Leave only Phi, Pi, e, Delta Simplify settings: Pulsing Bar: OFF Greek Labels: OFF Info Table: smaller size 13. Can I use on different timeframes simultaneously? Yes! Multi-timeframe analysis is very powerful: Classic scheme: Higher TF (D1, W1) - determine global trend Wait for STRONG signal This is our trading direction Middle TF (H4, H1) - look for confirmation STRONG signal in same direction Precise entry zone Lower TF (M15, M5) - entry point Golden Cross or bounce from Fast EMA Precise stop loss Example: W1: STRONG BUY active (global uptrend) H4: STRONG BUY appeared (confirmation) M15: Wait for Golden Cross or bounce from Fast EMA → ENTRY Advantages: Maximum reliability Clear timeframe hierarchy Large targets 14. How does indicator work on news? Delta Adaptive EMA adapts excellently to news: Before news: Low volatility → Delta EMA becomes fast → pulls to price During news: Sharp volatility spike → Delta EMA slows → filters noise After news: Volatility normalizes → Delta EMA returns to normal Recommendations: Don't trade at news release moment (spreads widen) Wait for STRONG signal after news (2-5 bars) Use Delta Adaptive as Fast EMA for quick reaction Widen stops by 50-100% during important news Advanced Techniques Technique 1: "Divergences with EMA" Idea: Look for discrepancies between price and Fast EMA Bullish divergence: Price makes lower low Fast EMA makes higher low = Possible reversal up Bearish divergence: Price makes higher high Fast EMA makes lower high = Possible reversal down How to trade: Find divergence Wait for STRONG signal in divergence direction Enter on confirmation Technique 2: "EMA Tunnel" Idea: Use space between Fast and Slow EMA as "tunnel" Rules: Wide tunnel - strong trend, hold position Narrow tunnel - weak trend or consolidation, caution Tunnel narrowing - trend weakening, prepare to exit Tunnel widening - trend strengthening, can add Visually: Gradient Clouds show this automatically! Trading: Enter on STRONG signal (tunnel starts widening) Hold while tunnel wide Exit when tunnel starts narrowing Technique 3: "Wave Analysis with Lambda" Idea: Lambda Wave EMA creates sinusoid matching market cycles Setup: Lambda Base Period: 30 Lambda Wave Amplitude: 0.5 Lambda Wave Frequency: 50 (adjusted to asset cycle) How to find correct Frequency: Look at historical cycles (distance between local highs) Average distance = your Frequency Example: if highs every 40-60 bars, set Frequency = 50 Trading: Enter when Lambda Wave at bottom of sinusoid (growth potential) Exit when Lambda Wave at top (fall potential) Combine with STRONG signals Technique 4: "Cluster Analysis" Idea: When all EMAs gather in narrow cluster = powerful breakout soon Cluster signs: All EMAs (Phi, Pi, e, Delta) within 0.5-1% of each other Gradient Clouds almost invisible Price jumping around all EMAs Trading: Identify cluster (all EMAs close) Determine breakout direction (where more volume, higher TFs direction) Wait for breakout and STRONG signal Enter on confirmation Target = cluster size × 3-5 This is very powerful technique for big moves! Technique 5: "Sigma as Dynamic Level" Idea: Sigma Composite EMA = average of all EMAs = magnetic level Usage: Enable Sigma Composite (Weighted Average) Sigma works as dynamic support/resistance Price often returns to Sigma before trend continuation Trading: In trend: Enter on bounces from Sigma In range: Fade moves from Sigma (trade return to Sigma) On breakout: Sigma becomes support/resistance Risk Management Basic Rules 1. Position Size Conservative: 1% of capital per trade Moderate: 2% of capital per trade (recommended) Aggressive: 3-5% (only for experienced) Calculation formula: Lot Size = (Capital × Risk%) / (Stop in pips × Pip value) 2. Risk/Reward Ratio Minimum: 1:1.5 Standard: 1:2 (recommended) Optimal: 1:3 Aggressive: 1:5+ 3. Maximum Drawdown Daily: -3% to -5% Weekly: -7% to -10% Monthly: -15% to -20% Upon reaching limit → STOP trading until end of period Position Management Strategies 1. Fixed Stop Method: Stop below/above Fast EMA or local extreme DON'T move stop against position Can move to breakeven For whom: Beginners, conservative traders 2. Trailing by Fast EMA Method: Each day (or bar) move stop to Fast EMA level Position closes when price breaks Fast EMA Advantages: Stay in trend as long as possible Automatically exit on reversal For whom: Trend followers, swing traders 3. Partial Exit Method: 50% of position close at +2R 50% hold with trailing by Mid EMA or Slow EMA Advantages: Lock profit Leave position for big move Psychologically comfortable For whom: Universal method (recommended) 4. Pyramiding Method: First entry on STRONG signal (50% of planned position) Add 25% on pullback to Fast EMA Add another 25% on pullback to Mid EMA Overall stop below Slow EMA Advantages: Average entry price Reduce risk Increase profit in strong trends Caution: Works only in trends In range leads to losses For whom: Experienced traders Trading Psychology Correct Mindset 1. Indicator is a tool, not holy grail Indicator shows probability, not guarantee There will be losing trades - this is normal Important is series statistics, not one trade 2. Trust the system If STRONG signal appeared - enter Don't search for "perfect" moment Follow trading plan 3. Patience STRONG signals don't appear every day Better miss signal than enter against trend Quality over quantity 4. Discipline Always set stop loss Don't move stop against position Don't increase risk after losses Beginner Mistakes 1. "I know better than indicator" Indicator says STRONG BUY, but you think "too high, will wait for pullback" Result: miss profitable move Solution: Trust signals or don't use indicator 2. "Will reverse now for sure" Trading against STRONG trend Result: stops, stops, stops Solution: Trend is your friend, trade with trend 3. "Will hold a bit more" Don't exit when STRONG signal disappears Greed eats profit Solution: If signal gone - exit! 4. "I'll recover" After losses double risk Result: huge losses Solution: Fixed % risk ALWAYS 5. "I don't like this signal" Skip signals because of "feeling" Result: inconsistency, no statistics Solution: Trade ALL signals or clearly define filters Trading Journal What to Record For each trade: 1. Entry/exit date and time 2. Instrument and timeframe 3. Signal type Golden Cross STRONG BUY STRONG SELL Death Cross 4. Indicator settings Fast/Mid/Slow EMA Base Multiplier Other parameters 5. Chart screenshot Entry moment Exit moment 6. Trade parameters Position size Stop loss Take Profit R:R 7. Result Profit/Loss in $ Profit/Loss in % Profit/Loss in R 8. Notes What was right What was wrong Emotions during trade Lessons Journal Analysis Analyze weekly: 1. Win Rate Win Rate = (Profitable trades / All trades) × 100% Good: 50-60% Excellent: 60-70% Exceptional: 70%+ 2. Average R Average R = Sum of all R / Number of trades Good: +0.5R Excellent: +1.0R Exceptional: +1.5R+ 3. Profit Factor Profit Factor = Total profit / Total losses Good: 1.5+ Excellent: 2.0+ Exceptional: 3.0+ 4. Maximum Drawdown Track consecutive losses If more than 5 in row - stop, check system 5. Best/Worst Trades What was common in best trades? (do more) What was common in worst trades? (avoid) Pre-Trade Checklist Technical Analysis STRONG signal active (BUY or SELL) All EMAs properly aligned (Fast > Mid > Slow or reverse) Price on correct side of Fast EMA Gradient Clouds confirm trend Pulsing Bar shows STRONG state Momentum % in normal range (not overheated) No close strong levels against direction Higher timeframe doesn't contradict Risk Management Position size calculated (1-2% risk) Stop loss set Take profit calculated (minimum 1:2) R:R satisfactory Daily/weekly risk limit not exceeded No other open correlated positions Fundamental Analysis No important news in coming hours Market session appropriate (liquidity) No contradicting fundamentals Understand why asset is moving Psychology Calm and thinking clearly No emotions from previous trades Ready to accept loss at stop Following trading plan Not revenging market for past losses If at least one point is NO - think twice before entering! Learning Roadmap Week 1: Familiarization Goals: Install and configure indicator Study all EMA types Understand visualization Tasks: Add indicator to chart Test all Fast/Mid/Slow settings Play with Base Multiplier on different timeframes Observe Gradient Clouds and Pulsing Bar Study Info Table Result: Comfort with indicator interface Week 2: Signals Goals: Learn to recognize all signal types Understand difference between Golden Cross and STRONG Tasks: Find 10 Golden Cross examples in history Find 10 STRONG BUY examples in history Compare their results (which worked better) Set up alerts Get 5 real alerts Result: Understanding signals Week 3: Demo Trading Goals: Start trading signals on demo account Gather statistics Tasks: Open demo account Trade ONLY STRONG signals Keep journal (minimum 20 trades) Don't change indicator settings Strictly follow stop losses Result: 20+ documented trades Week 4: Analysis Goals: Analyze demo trading results Optimize approach Tasks: Calculate win rate and average R Find patterns in profitable trades Find patterns in losing trades Adjust approach (not indicator!) Write trading plan Result: Trading plan on 1 page Month 2: Improvement Goals: Deepen understanding Add additional techniques Tasks: Study multi-timeframe analysis Test combinations with Price Action Try advanced techniques (divergences, tunnels) Continue demo trading (minimum 50 trades) Achieve stable profitability on demo Result: Win rate 55%+ and Profit Factor 1.5+ Month 3: Real Trading Goals: Transition to real account Maintain discipline Tasks: Open small real account Trade minimum lots Strictly follow trading plan DON'T increase risk Focus on process, not profit Result: Psychological comfort on real Month 4+: Scaling Goals: Increase account Become consistently profitable Tasks: With 60%+ win rate can increase risk to 2% Upon doubling account can add capital Continue keeping journal Periodically review and improve strategy Share experience with community Result: Stable profitability month after month Additional Resources Recommended Reading Technical Analysis: "Technical Analysis of Financial Markets" - John Murphy "Trading in the Zone" - Mark Douglas (psychology) "Market Wizards" - Jack Schwager (trader interviews) EMA and Moving Averages: "Moving Averages 101" - Steve Burns Articles on Investopedia about EMA Risk Management: "The Mathematics of Money Management" - Ralph Vince "Trade Your Way to Financial Freedom" - Van K. Tharp Trading Journals: Edgewonk (paid, very powerful) Tradervue (free version + premium) Excel/Google Sheets (free) Screeners: TradingView Stock Screener Finviz (stocks) CoinMarketCap (crypto) Conclusion Hellenic EMA Matrix is a powerful tool based on universal mathematical constants of nature. The indicator combines: Mathematical elegance - Phi, Pi, e instead of arbitrary numbers Premium visualization - Neon Glow, Gradient Clouds, Pulsing Bar Reliable signals - STRONG BUY/SELL work on all timeframes Flexibility - 6 EMA types, adaptation to any trading style Automation - auto-sorting EMAs, SL/TP calculation, alerts Key Success Principles: Simplicity - start with basic settings (Phi/Pi/e, Base=10) Discipline - follow STRONG signals strictly Patience - wait for quality setups Risk Management - 1-2% per trade, ALWAYS Journal - document every trade Learning - constantly improve skills Remember: Indicator shows probability, not guarantee Important is series statistics, not one trade Psychology more important than technique Quality more important than quantity Process more important than result Acknowledgments Thank you for using Hellenic EMA Matrix - Alpha Omega Premium! The indicator was created with love for mathematics, markets, and beautiful visualization. Wishing you profitable trading! Guide Version: 1.0 Date: 2025 Compatibility: Pine Script v6, TradingView "In the simplicity of mathematical constants lies the complexity of market movements"Penunjuk Pine Script®oleh Sesilya101
VWAP Diario + VWAP 08:00-12:00 ventanas NYWhat it plots Daily VWAP (main line) Anchored to the current trading day and only visible between 19:00 and 16:50 New York (UTC-5) to prevent any “ghost” segments. Dynamic color: turns green when price closes above (bullish bias) and red when price closes below (bearish bias). Optional standard-deviation/percentage bands (off by default). 08:00–12:00 VWAP (morning line) Resets at 08:00 NY and shows until 12:00 NY only. Acts as a morning value guide for early direction and pullbacks. Clean rendering: Both lines use strict time masks and line breaks, so nothing is drawn outside their windows. You can toggle either line on/off. How to Read It Daily VWAP ≈ “fair value” of the whole session; use it for directional bias and confluence. 08:00–12:00 VWAP ≈ “fair value” of the morning; helps refine entries during the open. Alignment: Bullish environment: price and 08–12 VWAP sit above the Daily VWAP. Rotation/mixed: price oscillates between the two lines. Bearish: price and 08–12 VWAP sit below the Daily VWAP. Two Mechanical Playbooks Recommended charts: 1-minute for entries, 5-minute for context on NQ/Nasdaq100. Primary execution window: 09:30–12:00 NY. A) Trend Play (Break → Pullback to VWAP) Goal: Join the day’s impulse with value confirmation. Rules Bias filter before 09:30 Bullish: 08–12 VWAP ≥ Daily VWAP; Bearish: 08–12 ≤ Daily. First push 09:30–09:45 breaks the initial range high (bull) or low (bear). Entry (pullback into confluence) Wait for a pullback that tags/wicks the 08–12 VWAP or the Daily VWAP in the direction of bias. Go long on bullish rejection (close back above); short on bearish rejection. Stop-loss Beyond the rejection wick or the touched VWAP (e.g., 1–1.5× ATR(1m/5m)). Take-profit TP1 = 1R (scale 50%); TP2 = 2–3R or day extremes (HOD/LOD). If bands are on, consider exiting on a clean tag of the opposite band. Management Move to breakeven at 1R; exit early if price reclaims the opposite side of Daily VWAP. Avoid when the morning is choppy and price sits glued between the two VWAPs. B) Mean-Reversion Play (Controlled Reversal at Daily VWAP) Goal: Capture a return to value after an overstretch and a clean rejection. Rules Stretch condition Fast move away from Daily VWAP (3–5 bars) or beyond Band #1/#2 if enabled. Rejection signal at Daily VWAP A bar that touches Daily VWAP and closes back on the opposite side (pin/engulfing/strong close). Entry Long if a selloff rejects above Daily VWAP. Short if a rally rejects below Daily VWAP. Stop-loss Just beyond the rejection wick or ~1× ATR(1m). Take-profit TP1 = 1R or the 08–12 VWAP; TP2 = 2–3R or a prior consolidation. Management If price crosses and holds on the other side of Daily VWAP (2 closes), cut the idea. Avoid during high-impact news or when the session is strongly trending (prefer Play A). Quality Filters Volatility: Ensure ATR(14, 1m) or the 09:30–09:45 range exceeds your minimum. Spread/liquidity: Skip abnormal spreads at the open. News: If a red-level release is imminent, wait 2–3 bars after the print. Coherence: Prefer trades when 08–12 and Daily VWAP don’t conflict. Risk & Trade Management Risk per trade: 0.25%–0.5% account risk. Daily cap: 2–3 trades; stop for the day at –1R to –1.5R. No over-reentry: Don’t chase if price is sitting exactly on a VWAP; wait for separation. Log your metrics: setup type (A/B), confluences, distance to VWAP at trigger, time, R multiple. Quick Pre-Trade Checklist Bias aligned? (price vs Daily and 08–12 VWAP) Choose Trend or Mean-Reversion play Clear confluence at the VWAP line? Realistic stop (≤ ~1.5× ATR 1m)? Any imminent news? TP plan: TP1 = 1R → BE, TP2 = 2–3R.Penunjuk Pine Script®oleh AlanBartonRevival6
Quantum Rotational Field MappingQuantum Rotational Field Mapping (QRFM): Phase Coherence Detection Through Complex-Plane Oscillator Analysis Quantum Rotational Field Mapping applies complex-plane mathematics and phase-space analysis to oscillator ensembles, identifying high-probability trend ignition points by measuring when multiple independent oscillators achieve phase coherence. Unlike traditional multi-oscillator approaches that simply stack indicators or use boolean AND/OR logic, this system converts each oscillator into a rotating phasor (vector) in the complex plane and calculates the Coherence Index (CI) —a mathematical measure of how tightly aligned the ensemble has become—then generates signals only when alignment, phase direction, and pairwise entanglement all converge. The indicator combines three mathematical frameworks: phasor representation using analytic signal theory to extract phase and amplitude from each oscillator, coherence measurement using vector summation in the complex plane to quantify group alignment, and entanglement analysis that calculates pairwise phase agreement across all oscillator combinations. This creates a multi-dimensional confirmation system that distinguishes between random oscillator noise and genuine regime transitions. What Makes This Original Complex-Plane Phasor Framework This indicator implements classical signal processing mathematics adapted for market oscillators. Each oscillator—whether RSI, MACD, Stochastic, CCI, Williams %R, MFI, ROC, or TSI—is first normalized to a common scale, then converted into a complex-plane representation using an in-phase (I) and quadrature (Q) component. The in-phase component is the oscillator value itself, while the quadrature component is calculated as the first difference (derivative proxy), creating a velocity-aware representation. From these components, the system extracts: Phase (φ) : Calculated as φ = atan2(Q, I), representing the oscillator's position in its cycle (mapped to -180° to +180°) Amplitude (A) : Calculated as A = √(I² + Q²), representing the oscillator's strength or conviction This mathematical approach is fundamentally different from simply reading oscillator values. A phasor captures both where an oscillator is in its cycle (phase angle) and how strongly it's expressing that position (amplitude). Two oscillators can have the same value but be in opposite phases of their cycles—traditional analysis would see them as identical, while QRFM sees them as 180° out of phase (contradictory). Coherence Index Calculation The core innovation is the Coherence Index (CI) , borrowed from physics and signal processing. When you have N oscillators, each with phase φₙ, you can represent each as a unit vector in the complex plane: e^(iφₙ) = cos(φₙ) + i·sin(φₙ). The CI measures what happens when you sum all these vectors: Resultant Vector : R = Σ e^(iφₙ) = Σ cos(φₙ) + i·Σ sin(φₙ) Coherence Index : CI = |R| / N Where |R| is the magnitude of the resultant vector and N is the number of active oscillators. The CI ranges from 0 to 1: CI = 1.0 : Perfect coherence—all oscillators have identical phase angles, vectors point in the same direction, creating maximum constructive interference CI = 0.0 : Complete decoherence—oscillators are randomly distributed around the circle, vectors cancel out through destructive interference 0 < CI < 1 : Partial alignment—some clustering with some scatter This is not a simple average or correlation. The CI captures phase synchronization across the entire ensemble simultaneously. When oscillators phase-lock (align their cycles), the CI spikes regardless of their individual values. This makes it sensitive to regime transitions that traditional indicators miss. Dominant Phase and Direction Detection Beyond measuring alignment strength, the system calculates the dominant phase of the ensemble—the direction the resultant vector points: Dominant Phase : φ_dom = atan2(Σ sin(φₙ), Σ cos(φₙ)) This gives the "average direction" of all oscillator phases, mapped to -180° to +180°: +90° to -90° (right half-plane): Bullish phase dominance +90° to +180° or -90° to -180° (left half-plane): Bearish phase dominance The combination of CI magnitude (coherence strength) and dominant phase angle (directional bias) creates a two-dimensional signal space. High CI alone is insufficient—you need high CI plus dominant phase pointing in a tradeable direction. This dual requirement is what separates QRFM from simple oscillator averaging. Entanglement Matrix and Pairwise Coherence While the CI measures global alignment, the entanglement matrix measures local pairwise relationships. For every pair of oscillators (i, j), the system calculates: E(i,j) = |cos(φᵢ - φⱼ)| This represents the phase agreement between oscillators i and j: E = 1.0 : Oscillators are in-phase (0° or 360° apart) E = 0.0 : Oscillators are in quadrature (90° apart, orthogonal) E between 0 and 1 : Varying degrees of alignment The system counts how many oscillator pairs exceed a user-defined entanglement threshold (e.g., 0.7). This entangled pairs count serves as a confirmation filter: signals require not just high global CI, but also a minimum number of strong pairwise agreements. This prevents false ignitions where CI is high but driven by only two oscillators while the rest remain scattered. The entanglement matrix creates an N×N symmetric matrix that can be visualized as a web—when many cells are bright (high E values), the ensemble is highly interconnected. When cells are dark, oscillators are moving independently. Phase-Lock Tolerance Mechanism A complementary confirmation layer is the phase-lock detector . This calculates the maximum phase spread across all oscillators: For all pairs (i,j), compute angular distance: Δφ = |φᵢ - φⱼ|, wrapping at 180° Max Spread = maximum Δφ across all pairs If max spread < user threshold (e.g., 35°), the ensemble is considered phase-locked —all oscillators are within a narrow angular band. This differs from entanglement: entanglement measures pairwise cosine similarity (magnitude of alignment), while phase-lock measures maximum angular deviation (tightness of clustering). Both must be satisfied for the highest-conviction signals. Multi-Layer Visual Architecture QRFM includes six visual components that represent the same underlying mathematics from different perspectives: Circular Orbit Plot : A polar coordinate grid showing each oscillator as a vector from origin to perimeter. Angle = phase, radius = amplitude. This is a real-time snapshot of the complex plane. When vectors converge (point in similar directions), coherence is high. When scattered randomly, coherence is low. Users can see phase alignment forming before CI numerically confirms it. Phase-Time Heat Map : A 2D matrix with rows = oscillators and columns = time bins. Each cell is colored by the oscillator's phase at that time (using a gradient where color hue maps to angle). Horizontal color bands indicate sustained phase alignment over time. Vertical color bands show moments when all oscillators shared the same phase (ignition points). This provides historical pattern recognition. Entanglement Web Matrix : An N×N grid showing E(i,j) for all pairs. Cells are colored by entanglement strength—bright yellow/gold for high E, dark gray for low E. This reveals which oscillators are driving coherence and which are lagging. For example, if RSI and MACD show high E but Stochastic shows low E with everything, Stochastic is the outlier. Quantum Field Cloud : A background color overlay on the price chart. Color (green = bullish, red = bearish) is determined by dominant phase. Opacity is determined by CI—high CI creates dense, opaque cloud; low CI creates faint, nearly invisible cloud. This gives an atmospheric "feel" for regime strength without looking at numbers. Phase Spiral : A smoothed plot of dominant phase over recent history, displayed as a curve that wraps around price. When the spiral is tight and rotating steadily, the ensemble is in coherent rotation (trending). When the spiral is loose or erratic, coherence is breaking down. Dashboard : A table showing real-time metrics: CI (as percentage), dominant phase (in degrees with directional arrow), field strength (CI × average amplitude), entangled pairs count, phase-lock status (locked/unlocked), quantum state classification ("Ignition", "Coherent", "Collapse", "Chaos"), and collapse risk (recent CI change normalized to 0-100%). Each component is independently toggleable, allowing users to customize their workspace. The orbit plot is the most essential—it provides intuitive, visual feedback on phase alignment that no numerical dashboard can match. Core Components and How They Work Together 1. Oscillator Normalization Engine The foundation is creating a common measurement scale. QRFM supports eight oscillators: RSI : Normalized from to using overbought/oversold levels (70, 30) as anchors MACD Histogram : Normalized by dividing by rolling standard deviation, then clamped to Stochastic %K : Normalized from using (80, 20) anchors CCI : Divided by 200 (typical extreme level), clamped to Williams %R : Normalized from using (-20, -80) anchors MFI : Normalized from using (80, 20) anchors ROC : Divided by 10, clamped to TSI : Divided by 50, clamped to Each oscillator can be individually enabled/disabled. Only active oscillators contribute to phase calculations. The normalization removes scale differences—a reading of +0.8 means "strongly bullish" regardless of whether it came from RSI or TSI. 2. Analytic Signal Construction For each active oscillator at each bar, the system constructs the analytic signal: In-Phase (I) : The normalized oscillator value itself Quadrature (Q) : The bar-to-bar change in the normalized value (first derivative approximation) This creates a 2D representation: (I, Q). The phase is extracted as: φ = atan2(Q, I) × (180 / π) This maps the oscillator to a point on the unit circle. An oscillator at the same value but rising (positive Q) will have a different phase than one that is falling (negative Q). This velocity-awareness is critical—it distinguishes between "at resistance and stalling" versus "at resistance and breaking through." The amplitude is extracted as: A = √(I² + Q²) This represents the distance from origin in the (I, Q) plane. High amplitude means the oscillator is far from neutral (strong conviction). Low amplitude means it's near zero (weak/transitional state). 3. Coherence Calculation Pipeline For each bar (or every Nth bar if phase sample rate > 1 for performance): Step 1 : Extract phase φₙ for each of the N active oscillators Step 2 : Compute complex exponentials: Zₙ = e^(i·φₙ·π/180) = cos(φₙ·π/180) + i·sin(φₙ·π/180) Step 3 : Sum the complex exponentials: R = Σ Zₙ = (Σ cos φₙ) + i·(Σ sin φₙ) Step 4 : Calculate magnitude: |R| = √ Step 5 : Normalize by count: CI_raw = |R| / N Step 6 : Smooth the CI: CI = SMA(CI_raw, smoothing_window) The smoothing step (default 2 bars) removes single-bar noise spikes while preserving structural coherence changes. Users can adjust this to control reactivity versus stability. The dominant phase is calculated as: φ_dom = atan2(Σ sin φₙ, Σ cos φₙ) × (180 / π) This is the angle of the resultant vector R in the complex plane. 4. Entanglement Matrix Construction For all unique pairs of oscillators (i, j) where i < j: Step 1 : Get phases φᵢ and φⱼ Step 2 : Compute phase difference: Δφ = φᵢ - φⱼ (in radians) Step 3 : Calculate entanglement: E(i,j) = |cos(Δφ)| Step 4 : Store in symmetric matrix: matrix = matrix = E(i,j) The matrix is then scanned: count how many E(i,j) values exceed the user-defined threshold (default 0.7). This count is the entangled pairs metric. For visualization, the matrix is rendered as an N×N table where cell brightness maps to E(i,j) intensity. 5. Phase-Lock Detection Step 1 : For all unique pairs (i, j), compute angular distance: Δφ = |φᵢ - φⱼ| Step 2 : Wrap angles: if Δφ > 180°, set Δφ = 360° - Δφ Step 3 : Find maximum: max_spread = max(Δφ) across all pairs Step 4 : Compare to tolerance: phase_locked = (max_spread < tolerance) If phase_locked is true, all oscillators are within the specified angular cone (e.g., 35°). This is a boolean confirmation filter. 6. Signal Generation Logic Signals are generated through multi-layer confirmation: Long Ignition Signal : CI crosses above ignition threshold (e.g., 0.80) AND dominant phase is in bullish range (-90° < φ_dom < +90°) AND phase_locked = true AND entangled_pairs >= minimum threshold (e.g., 4) Short Ignition Signal : CI crosses above ignition threshold AND dominant phase is in bearish range (φ_dom < -90° OR φ_dom > +90°) AND phase_locked = true AND entangled_pairs >= minimum threshold Collapse Signal : CI at bar minus CI at current bar > collapse threshold (e.g., 0.55) AND CI at bar was above 0.6 (must collapse from coherent state, not from already-low state) These are strict conditions. A high CI alone does not generate a signal—dominant phase must align with direction, oscillators must be phase-locked, and sufficient pairwise entanglement must exist. This multi-factor gating dramatically reduces false signals compared to single-condition triggers. Calculation Methodology Phase 1: Oscillator Computation and Normalization On each bar, the system calculates the raw values for all enabled oscillators using standard Pine Script functions: RSI: ta.rsi(close, length) MACD: ta.macd() returning histogram component Stochastic: ta.stoch() smoothed with ta.sma() CCI: ta.cci(close, length) Williams %R: ta.wpr(length) MFI: ta.mfi(hlc3, length) ROC: ta.roc(close, length) TSI: ta.tsi(close, short, long) Each raw value is then passed through a normalization function: normalize(value, overbought_level, oversold_level) = 2 × (value - oversold) / (overbought - oversold) - 1 This maps the oscillator's typical range to , where -1 represents extreme bearish, 0 represents neutral, and +1 represents extreme bullish. For oscillators without fixed ranges (MACD, ROC, TSI), statistical normalization is used: divide by a rolling standard deviation or fixed divisor, then clamp to . Phase 2: Phasor Extraction For each normalized oscillator value val: I = val (in-phase component) Q = val - val (quadrature component, first difference) Phase calculation: phi_rad = atan2(Q, I) phi_deg = phi_rad × (180 / π) Amplitude calculation: A = √(I² + Q²) These values are stored in arrays: osc_phases and osc_amps for each oscillator n. Phase 3: Complex Summation and Coherence Initialize accumulators: sum_cos = 0 sum_sin = 0 For each oscillator n = 0 to N-1: phi_rad = osc_phases × (π / 180) sum_cos += cos(phi_rad) sum_sin += sin(phi_rad) Resultant magnitude: resultant_mag = √(sum_cos² + sum_sin²) Coherence Index (raw): CI_raw = resultant_mag / N Smoothed CI: CI = SMA(CI_raw, smoothing_window) Dominant phase: phi_dom_rad = atan2(sum_sin, sum_cos) phi_dom_deg = phi_dom_rad × (180 / π) Phase 4: Entanglement Matrix Population For i = 0 to N-2: For j = i+1 to N-1: phi_i = osc_phases × (π / 180) phi_j = osc_phases × (π / 180) delta_phi = phi_i - phi_j E = |cos(delta_phi)| matrix_index_ij = i × N + j matrix_index_ji = j × N + i entangle_matrix = E entangle_matrix = E if E >= threshold: entangled_pairs += 1 The matrix uses flat array storage with index mapping: index(row, col) = row × N + col. Phase 5: Phase-Lock Check max_spread = 0 For i = 0 to N-2: For j = i+1 to N-1: delta = |osc_phases - osc_phases | if delta > 180: delta = 360 - delta max_spread = max(max_spread, delta) phase_locked = (max_spread < tolerance) Phase 6: Signal Evaluation Ignition Long : ignition_long = (CI crosses above threshold) AND (phi_dom > -90 AND phi_dom < 90) AND phase_locked AND (entangled_pairs >= minimum) Ignition Short : ignition_short = (CI crosses above threshold) AND (phi_dom < -90 OR phi_dom > 90) AND phase_locked AND (entangled_pairs >= minimum) Collapse : CI_prev = CI collapse = (CI_prev - CI > collapse_threshold) AND (CI_prev > 0.6) All signals are evaluated on bar close. The crossover and crossunder functions ensure signals fire only once when conditions transition from false to true. Phase 7: Field Strength and Visualization Metrics Average Amplitude : avg_amp = (Σ osc_amps ) / N Field Strength : field_strength = CI × avg_amp Collapse Risk (for dashboard): collapse_risk = (CI - CI) / max(CI , 0.1) collapse_risk_pct = clamp(collapse_risk × 100, 0, 100) Quantum State Classification : if (CI > threshold AND phase_locked): state = "Ignition" else if (CI > 0.6): state = "Coherent" else if (collapse): state = "Collapse" else: state = "Chaos" Phase 8: Visual Rendering Orbit Plot : For each oscillator, convert polar (phase, amplitude) to Cartesian (x, y) for grid placement: radius = amplitude × grid_center × 0.8 x = radius × cos(phase × π/180) y = radius × sin(phase × π/180) col = center + x (mapped to grid coordinates) row = center - y Heat Map : For each oscillator row and time column, retrieve historical phase value at lookback = (columns - col) × sample_rate, then map phase to color using a hue gradient. Entanglement Web : Render matrix as table cell with background color opacity = E(i,j). Field Cloud : Background color = (phi_dom > -90 AND phi_dom < 90) ? green : red, with opacity = mix(min_opacity, max_opacity, CI). All visual components render only on the last bar (barstate.islast) to minimize computational overhead. How to Use This Indicator Step 1 : Apply QRFM to your chart. It works on all timeframes and asset classes, though 15-minute to 4-hour timeframes provide the best balance of responsiveness and noise reduction. Step 2 : Enable the dashboard (default: top right) and the circular orbit plot (default: middle left). These are your primary visual feedback tools. Step 3 : Optionally enable the heat map, entanglement web, and field cloud based on your preference. New users may find all visuals overwhelming; start with dashboard + orbit plot. Step 4 : Observe for 50-100 bars to let the indicator establish baseline coherence patterns. Markets have different "normal" CI ranges—some instruments naturally run higher or lower coherence. Understanding the Circular Orbit Plot The orbit plot is a polar grid showing oscillator vectors in real-time: Center point : Neutral (zero phase and amplitude) Each vector : A line from center to a point on the grid Vector angle : The oscillator's phase (0° = right/east, 90° = up/north, 180° = left/west, -90° = down/south) Vector length : The oscillator's amplitude (short = weak signal, long = strong signal) Vector label : First letter of oscillator name (R = RSI, M = MACD, etc.) What to watch : Convergence : When all vectors cluster in one quadrant or sector, CI is rising and coherence is forming. This is your pre-signal warning. Scatter : When vectors point in random directions (360° spread), CI is low and the market is in a non-trending or transitional regime. Rotation : When the cluster rotates smoothly around the circle, the ensemble is in coherent oscillation—typically seen during steady trends. Sudden flips : When the cluster rapidly jumps from one side to the opposite (e.g., +90° to -90°), a phase reversal has occurred—often coinciding with trend reversals. Example: If you see RSI, MACD, and Stochastic all pointing toward 45° (northeast) with long vectors, while CCI, TSI, and ROC point toward 40-50° as well, coherence is high and dominant phase is bullish. Expect an ignition signal if CI crosses threshold. Reading Dashboard Metrics The dashboard provides numerical confirmation of what the orbit plot shows visually: CI : Displays as 0-100%. Above 70% = high coherence (strong regime), 40-70% = moderate, below 40% = low (poor conditions for trend entries). Dom Phase : Angle in degrees with directional arrow. ⬆ = bullish bias, ⬇ = bearish bias, ⬌ = neutral. Field Strength : CI weighted by amplitude. High values (> 0.6) indicate not just alignment but strong alignment. Entangled Pairs : Count of oscillator pairs with E > threshold. Higher = more confirmation. If minimum is set to 4, you need at least 4 pairs entangled for signals. Phase Lock : 🔒 YES (all oscillators within tolerance) or 🔓 NO (spread too wide). State : Real-time classification: 🚀 IGNITION: CI just crossed threshold with phase-lock ⚡ COHERENT: CI is high and stable 💥 COLLAPSE: CI has dropped sharply 🌀 CHAOS: Low CI, scattered phases Collapse Risk : 0-100% scale based on recent CI change. Above 50% warns of imminent breakdown. Interpreting Signals Long Ignition (Blue Triangle Below Price) : Occurs when CI crosses above threshold (e.g., 0.80) Dominant phase is in bullish range (-90° to +90°) All oscillators are phase-locked (within tolerance) Minimum entangled pairs requirement met Interpretation : The oscillator ensemble has transitioned from disorder to coherent bullish alignment. This is a high-probability long entry point. The multi-layer confirmation (CI + phase direction + lock + entanglement) ensures this is not a single-oscillator whipsaw. Short Ignition (Red Triangle Above Price) : Same conditions as long, but dominant phase is in bearish range (< -90° or > +90°) Interpretation : Coherent bearish alignment has formed. High-probability short entry. Collapse (Circles Above and Below Price) : CI has dropped by more than the collapse threshold (e.g., 0.55) over a 5-bar window CI was previously above 0.6 (collapsing from coherent state) Interpretation : Phase coherence has broken down. If you are in a position, this is an exit warning. If looking to enter, stand aside—regime is transitioning. Phase-Time Heat Map Patterns Enable the heat map and position it at bottom right. The rows represent individual oscillators, columns represent time bins (most recent on left). Pattern: Horizontal Color Bands If a row (e.g., RSI) shows consistent color across columns (say, green for several bins), that oscillator has maintained stable phase over time. If all rows show horizontal bands of similar color, the entire ensemble has been phase-locked for an extended period—this is a strong trending regime. Pattern: Vertical Color Bands If a column (single time bin) shows all cells with the same or very similar color, that moment in time had high coherence. These vertical bands often align with ignition signals or major price pivots. Pattern: Rainbow Chaos If cells are random colors (red, green, yellow mixed with no pattern), coherence is low. The ensemble is scattered. Avoid trading during these periods unless you have external confirmation. Pattern: Color Transition If you see a row transition from red to green (or vice versa) sharply, that oscillator has phase-flipped. If multiple rows do this simultaneously, a regime change is underway. Entanglement Web Analysis Enable the web matrix (default: opposite corner from heat map). It shows an N×N grid where N = number of active oscillators. Bright Yellow/Gold Cells : High pairwise entanglement. For example, if the RSI-MACD cell is bright gold, those two oscillators are moving in phase. If the RSI-Stochastic cell is bright, they are entangled as well. Dark Gray Cells : Low entanglement. Oscillators are decorrelated or in quadrature. Diagonal : Always marked with "—" because an oscillator is always perfectly entangled with itself. How to use : Scan for clustering: If most cells are bright, coherence is high across the board. If only a few cells are bright, coherence is driven by a subset (e.g., RSI and MACD are aligned, but nothing else is—weak signal). Identify laggards: If one row/column is entirely dark, that oscillator is the outlier. You may choose to disable it or monitor for when it joins the group (late confirmation). Watch for web formation: During low-coherence periods, the matrix is mostly dark. As coherence builds, cells begin lighting up. A sudden "web" of connections forming visually precedes ignition signals. Trading Workflow Step 1: Monitor Coherence Level Check the dashboard CI metric or observe the orbit plot. If CI is below 40% and vectors are scattered, conditions are poor for trend entries. Wait. Step 2: Detect Coherence Building When CI begins rising (say, from 30% to 50-60%) and you notice vectors on the orbit plot starting to cluster, coherence is forming. This is your alert phase—do not enter yet, but prepare. Step 3: Confirm Phase Direction Check the dominant phase angle and the orbit plot quadrant where clustering is occurring: Clustering in right half (0° to ±90°): Bullish bias forming Clustering in left half (±90° to 180°): Bearish bias forming Verify the dashboard shows the corresponding directional arrow (⬆ or ⬇). Step 4: Wait for Signal Confirmation Do not enter based on rising CI alone. Wait for the full ignition signal: CI crosses above threshold Phase-lock indicator shows 🔒 YES Entangled pairs count >= minimum Directional triangle appears on chart This ensures all layers have aligned. Step 5: Execute Entry Long : Blue triangle below price appears → enter long Short : Red triangle above price appears → enter short Step 6: Position Management Initial Stop : Place stop loss based on your risk management rules (e.g., recent swing low/high, ATR-based buffer). Monitoring : Watch the field cloud density. If it remains opaque and colored in your direction, the regime is intact. Check dashboard collapse risk. If it rises above 50%, prepare for exit. Monitor the orbit plot. If vectors begin scattering or the cluster flips to the opposite side, coherence is breaking. Exit Triggers : Collapse signal fires (circles appear) Dominant phase flips to opposite half-plane CI drops below 40% (coherence lost) Price hits your profit target or trailing stop Step 7: Post-Exit Analysis After exiting, observe whether a new ignition forms in the opposite direction (reversal) or if CI remains low (transition to range). Use this to decide whether to re-enter, reverse, or stand aside. Best Practices Use Price Structure as Context QRFM identifies when coherence forms but does not specify where price will go. Combine ignition signals with support/resistance levels, trendlines, or chart patterns. For example: Long ignition near a major support level after a pullback: high-probability bounce Long ignition in the middle of a range with no structure: lower probability Multi-Timeframe Confirmation Open QRFM on two timeframes simultaneously: Higher timeframe (e.g., 4-hour): Use CI level to determine regime bias. If 4H CI is above 60% and dominant phase is bullish, the market is in a bullish regime. Lower timeframe (e.g., 15-minute): Execute entries on ignition signals that align with the higher timeframe bias. This prevents counter-trend trades and increases win rate. Distinguish Between Regime Types High CI, stable dominant phase (State: Coherent) : Trending market. Ignitions are continuation signals; collapses are profit-taking or reversal warnings. Low CI, erratic dominant phase (State: Chaos) : Ranging or choppy market. Avoid ignition signals or reduce position size. Wait for coherence to establish. Moderate CI with frequent collapses : Whipsaw environment. Use wider stops or stand aside. Adjust Parameters to Instrument and Timeframe Crypto/Forex (high volatility) : Lower ignition threshold (0.65-0.75), lower CI smoothing (2-3), shorter oscillator lengths (7-10). Stocks/Indices (moderate volatility) : Standard settings (threshold 0.75-0.85, smoothing 5-7, oscillator lengths 14). Lower timeframes (5-15 min) : Reduce phase sample rate to 1-2 for responsiveness. Higher timeframes (daily+) : Increase CI smoothing and oscillator lengths for noise reduction. Use Entanglement Count as Conviction Filter The minimum entangled pairs setting controls signal strictness: Low (1-2) : More signals, lower quality (acceptable if you have other confirmation) Medium (3-5) : Balanced (recommended for most traders) High (6+) : Very strict, fewer signals, highest quality Adjust based on your trade frequency preference and risk tolerance. Monitor Oscillator Contribution Use the entanglement web to see which oscillators are driving coherence. If certain oscillators are consistently dark (low E with all others), they may be adding noise. Consider disabling them. For example: On low-volume instruments, MFI may be unreliable → disable MFI On strongly trending instruments, mean-reversion oscillators (Stochastic, RSI) may lag → reduce weight or disable Respect the Collapse Signal Collapse events are early warnings. Price may continue in the original direction for several bars after collapse fires, but the underlying regime has weakened. Best practice: If in profit: Take partial or full profit on collapse If at breakeven/small loss: Exit immediately If collapse occurs shortly after entry: Likely a false ignition; exit to avoid drawdown Collapses do not guarantee immediate reversals—they signal uncertainty . Combine with Volume Analysis If your instrument has reliable volume: Ignitions with expanding volume: Higher conviction Ignitions with declining volume: Weaker, possibly false Collapses with volume spikes: Strong reversal signal Collapses with low volume: May just be consolidation Volume is not built into QRFM (except via MFI), so add it as external confirmation. Observe the Phase Spiral The spiral provides a quick visual cue for rotation consistency: Tight, smooth spiral : Ensemble is rotating coherently (trending) Loose, erratic spiral : Phase is jumping around (ranging or transitional) If the spiral tightens, coherence is building. If it loosens, coherence is dissolving. Do Not Overtrade Low-Coherence Periods When CI is persistently below 40% and the state is "Chaos," the market is not in a regime where phase analysis is predictive. During these times: Reduce position size Widen stops Wait for coherence to return QRFM's strength is regime detection. If there is no regime, the tool correctly signals "stand aside." Use Alerts Strategically Set alerts for: Long Ignition Short Ignition Collapse Phase Lock (optional) Configure alerts to "Once per bar close" to avoid intrabar repainting and noise. When an alert fires, manually verify: Orbit plot shows clustering Dashboard confirms all conditions Price structure supports the trade Do not blindly trade alerts—use them as prompts for analysis. Ideal Market Conditions Best Performance Instruments : Liquid, actively traded markets (major forex pairs, large-cap stocks, major indices, top-tier crypto) Instruments with clear cyclical oscillator behavior (avoid extremely illiquid or manipulated markets) Timeframes : 15-minute to 4-hour: Optimal balance of noise reduction and responsiveness 1-hour to daily: Slower, higher-conviction signals; good for swing trading 5-minute: Acceptable for scalping if parameters are tightened and you accept more noise Market Regimes : Trending markets with periodic retracements (where oscillators cycle through phases predictably) Breakout environments (coherence forms before/during breakout; collapse occurs at exhaustion) Rotational markets with clear swings (oscillators phase-lock at turning points) Volatility : Moderate to high volatility (oscillators have room to move through their ranges) Stable volatility regimes (sudden VIX spikes or flash crashes may create false collapses) Challenging Conditions Instruments : Very low liquidity markets (erratic price action creates unstable oscillator phases) Heavily news-driven instruments (fundamentals may override technical coherence) Highly correlated instruments (oscillators may all reflect the same underlying factor, reducing independence) Market Regimes : Deep, prolonged consolidation (oscillators remain near neutral, CI is chronically low, few signals fire) Extreme chop with no directional bias (oscillators whipsaw, coherence never establishes) Gap-driven markets (large overnight gaps create phase discontinuities) Timeframes : Sub-5-minute charts: Noise dominates; oscillators flip rapidly; coherence is fleeting and unreliable Weekly/monthly: Oscillators move extremely slowly; signals are rare; better suited for long-term positioning than active trading Special Cases : During major economic releases or earnings: Oscillators may lag price or become decorrelated as fundamentals overwhelm technicals. Reduce position size or stand aside. In extremely low-volatility environments (e.g., holiday periods): Oscillators compress to neutral, CI may be artificially high due to lack of movement, but signals lack follow-through. Adaptive Behavior QRFM is designed to self-adapt to poor conditions: When coherence is genuinely absent, CI remains low and signals do not fire When only a subset of oscillators aligns, entangled pairs count stays below threshold and signals are filtered out When phase-lock cannot be achieved (oscillators too scattered), the lock filter prevents signals This means the indicator will naturally produce fewer (or zero) signals during unfavorable conditions, rather than generating false signals. This is a feature —it keeps you out of low-probability trades. Parameter Optimization by Trading Style Scalping (5-15 Minute Charts) Goal : Maximum responsiveness, accept higher noise Oscillator Lengths : RSI: 7-10 MACD: 8/17/6 Stochastic: 8-10, smooth 2-3 CCI: 14-16 Others: 8-12 Coherence Settings : CI Smoothing Window: 2-3 bars (fast reaction) Phase Sample Rate: 1 (every bar) Ignition Threshold: 0.65-0.75 (lower for more signals) Collapse Threshold: 0.40-0.50 (earlier exit warnings) Confirmation : Phase Lock Tolerance: 40-50° (looser, easier to achieve) Min Entangled Pairs: 2-3 (fewer oscillators required) Visuals : Orbit Plot + Dashboard only (reduce screen clutter for fast decisions) Disable heavy visuals (heat map, web) for performance Alerts : Enable all ignition and collapse alerts Set to "Once per bar close" Day Trading (15-Minute to 1-Hour Charts) Goal : Balance between responsiveness and reliability Oscillator Lengths : RSI: 14 (standard) MACD: 12/26/9 (standard) Stochastic: 14, smooth 3 CCI: 20 Others: 10-14 Coherence Settings : CI Smoothing Window: 3-5 bars (balanced) Phase Sample Rate: 2-3 Ignition Threshold: 0.75-0.85 (moderate selectivity) Collapse Threshold: 0.50-0.55 (balanced exit timing) Confirmation : Phase Lock Tolerance: 30-40° (moderate tightness) Min Entangled Pairs: 4-5 (reasonable confirmation) Visuals : Orbit Plot + Dashboard + Heat Map or Web (choose one) Field Cloud for regime backdrop Alerts : Ignition and collapse alerts Optional phase-lock alert for advance warning Swing Trading (4-Hour to Daily Charts) Goal : High-conviction signals, minimal noise, fewer trades Oscillator Lengths : RSI: 14-21 MACD: 12/26/9 or 19/39/9 (longer variant) Stochastic: 14-21, smooth 3-5 CCI: 20-30 Others: 14-20 Coherence Settings : CI Smoothing Window: 5-10 bars (very smooth) Phase Sample Rate: 3-5 Ignition Threshold: 0.80-0.90 (high bar for entry) Collapse Threshold: 0.55-0.65 (only significant breakdowns) Confirmation : Phase Lock Tolerance: 20-30° (tight clustering required) Min Entangled Pairs: 5-7 (strong confirmation) Visuals : All modules enabled (you have time to analyze) Heat Map for multi-bar pattern recognition Web for deep confirmation analysis Alerts : Ignition and collapse Review manually before entering (no rush) Position/Long-Term Trading (Daily to Weekly Charts) Goal : Rare, very high-conviction regime shifts Oscillator Lengths : RSI: 21-30 MACD: 19/39/9 or 26/52/12 Stochastic: 21, smooth 5 CCI: 30-50 Others: 20-30 Coherence Settings : CI Smoothing Window: 10-14 bars Phase Sample Rate: 5 (every 5th bar to reduce computation) Ignition Threshold: 0.85-0.95 (only extreme alignment) Collapse Threshold: 0.60-0.70 (major regime breaks only) Confirmation : Phase Lock Tolerance: 15-25° (very tight) Min Entangled Pairs: 6+ (broad consensus required) Visuals : Dashboard + Orbit Plot for quick checks Heat Map to study historical coherence patterns Web to verify deep entanglement Alerts : Ignition only (collapses are less critical on long timeframes) Manual review with fundamental analysis overlay Performance Optimization (Low-End Systems) If you experience lag or slow rendering: Reduce Visual Load : Orbit Grid Size: 8-10 (instead of 12+) Heat Map Time Bins: 5-8 (instead of 10+) Disable Web Matrix entirely if not needed Disable Field Cloud and Phase Spiral Reduce Calculation Frequency : Phase Sample Rate: 5-10 (calculate every 5-10 bars) Max History Depth: 100-200 (instead of 500+) Disable Unused Oscillators : If you only want RSI, MACD, and Stochastic, disable the other five. Fewer oscillators = smaller matrices, faster loops. Simplify Dashboard : Choose "Small" dashboard size Reduce number of metrics displayed These settings will not significantly degrade signal quality (signals are based on bar-close calculations, which remain accurate), but will improve chart responsiveness. Important Disclaimers This indicator is a technical analysis tool designed to identify periods of phase coherence across an ensemble of oscillators. It is not a standalone trading system and does not guarantee profitable trades. The Coherence Index, dominant phase, and entanglement metrics are mathematical calculations applied to historical price data—they measure past oscillator behavior and do not predict future price movements with certainty. No Predictive Guarantee : High coherence indicates that oscillators are currently aligned, which historically has coincided with trending or directional price movement. However, past alignment does not guarantee future trends. Markets can remain coherent while prices consolidate, or lose coherence suddenly due to news, liquidity changes, or other factors not captured by oscillator mathematics. Signal Confirmation is Probabilistic : The multi-layer confirmation system (CI threshold + dominant phase + phase-lock + entanglement) is designed to filter out low-probability setups. This increases the proportion of valid signals relative to false signals, but does not eliminate false signals entirely. Users should combine QRFM with additional analysis—support and resistance levels, volume confirmation, multi-timeframe alignment, and fundamental context—before executing trades. Collapse Signals are Warnings, Not Reversals : A coherence collapse indicates that the oscillator ensemble has lost alignment. This often precedes trend exhaustion or reversals, but can also occur during healthy pullbacks or consolidations. Price may continue in the original direction after a collapse. Use collapses as risk management cues (tighten stops, take partial profits) rather than automatic reversal entries. Market Regime Dependency : QRFM performs best in markets where oscillators exhibit cyclical, mean-reverting behavior and where trends are punctuated by retracements. In markets dominated by fundamental shocks, gap openings, or extreme low-liquidity conditions, oscillator coherence may be less reliable. During such periods, reduce position size or stand aside. Risk Management is Essential : All trading involves risk of loss. Use appropriate stop losses, position sizing, and risk-per-trade limits. The indicator does not specify stop loss or take profit levels—these must be determined by the user based on their risk tolerance and account size. Never risk more than you can afford to lose. Parameter Sensitivity : The indicator's behavior changes with input parameters. Aggressive settings (low thresholds, loose tolerances) produce more signals with lower average quality. Conservative settings (high thresholds, tight tolerances) produce fewer signals with higher average quality. Users should backtest and forward-test parameter sets on their specific instruments and timeframes before committing real capital. No Repainting by Design : All signal conditions are evaluated on bar close using bar-close values. However, the visual components (orbit plot, heat map, dashboard) update in real-time during bar formation for monitoring purposes. For trade execution, rely on the confirmed signals (triangles and circles) that appear only after the bar closes. Computational Load : QRFM performs extensive calculations, including nested loops for entanglement matrices and real-time table rendering. On lower-powered devices or when running multiple indicators simultaneously, users may experience lag. Use the performance optimization settings (reduce visual complexity, increase phase sample rate, disable unused oscillators) to improve responsiveness. This system is most effective when used as one component within a broader trading methodology that includes sound risk management, multi-timeframe analysis, market context awareness, and disciplined execution. It is a tool for regime detection and signal confirmation, not a substitute for comprehensive trade planning. Technical Notes Calculation Timing : All signal logic (ignition, collapse) is evaluated using bar-close values. The barstate.isconfirmed or implicit bar-close behavior ensures signals do not repaint. Visual components (tables, plots) render on every tick for real-time feedback but do not affect signal generation. Phase Wrapping : Phase angles are calculated in the range -180° to +180° using atan2. Angular distance calculations account for wrapping (e.g., the distance between +170° and -170° is 20°, not 340°). This ensures phase-lock detection works correctly across the ±180° boundary. Array Management : The indicator uses fixed-size arrays for oscillator phases, amplitudes, and the entanglement matrix. The maximum number of oscillators is 8. If fewer oscillators are enabled, array sizes shrink accordingly (only active oscillators are processed). Matrix Indexing : The entanglement matrix is stored as a flat array with size N×N, where N is the number of active oscillators. Index mapping: index(row, col) = row × N + col. Symmetric pairs (i,j) and (j,i) are stored identically. Normalization Stability : Oscillators are normalized to using fixed reference levels (e.g., RSI overbought/oversold at 70/30). For unbounded oscillators (MACD, ROC, TSI), statistical normalization (division by rolling standard deviation) is used, with clamping to prevent extreme outliers from distorting phase calculations. Smoothing and Lag : The CI smoothing window (SMA) introduces lag proportional to the window size. This is intentional—it filters out single-bar noise spikes in coherence. Users requiring faster reaction can reduce the smoothing window to 1-2 bars, at the cost of increased sensitivity to noise. Complex Number Representation : Pine Script does not have native complex number types. Complex arithmetic is implemented using separate real and imaginary accumulators (sum_cos, sum_sin) and manual calculation of magnitude (sqrt(real² + imag²)) and argument (atan2(imag, real)). Lookback Limits : The indicator respects Pine Script's maximum lookback constraints. Historical phase and amplitude values are accessed using the operator, with lookback limited to the chart's available bar history (max_bars_back=5000 declared). Visual Rendering Performance : Tables (orbit plot, heat map, web, dashboard) are conditionally deleted and recreated on each update using table.delete() and table.new(). This prevents memory leaks but incurs redraw overhead. Rendering is restricted to barstate.islast (last bar) to minimize computational load—historical bars do not render visuals. Alert Condition Triggers : alertcondition() functions evaluate on bar close when their boolean conditions transition from false to true. Alerts do not fire repeatedly while a condition remains true (e.g., CI stays above threshold for 10 bars fires only once on the initial cross). Color Gradient Functions : The phaseColor() function maps phase angles to RGB hues using sine waves offset by 120° (red, green, blue channels). This creates a continuous spectrum where -180° to +180° spans the full color wheel. The amplitudeColor() function maps amplitude to grayscale intensity. The coherenceColor() function uses cos(phase) to map contribution to CI (positive = green, negative = red). No External Data Requests : QRFM operates entirely on the chart's symbol and timeframe. It does not use request.security() or access external data sources. All calculations are self-contained, avoiding lookahead bias from higher-timeframe requests. Deterministic Behavior : Given identical input parameters and price data, QRFM produces identical outputs. There are no random elements, probabilistic sampling, or time-of-day dependencies. — Dskyz, Engineering precision. Trading coherence.Penunjuk Pine Script®oleh DskyzInvestments88105
ICT HTF Volume Candles (Based on HTF Candles by Fadi)# ICT HTF Volume Candles - Multi-Timeframe Volume Analysis ## Overview This indicator provides multi-timeframe volume visualization designed to complement price action analysis. It displays volume data from up to 6 higher timeframes simultaneously in a separate panel, allowing traders to identify volume spikes, divergences, and institutional activity without switching between timeframes. **Original Concept Credits:** This indicator builds upon the HTF Candles framework by Fadi, adapting it specifically for volume analysis with enhanced features including gap-filling for extended hours, multiple scaling methods, and advanced synchronization. ## What Makes This Script Original ### Key Innovations: 1. **Three Volume Scaling Methods:** - **Per-HTF Auto Scale:** Each timeframe scales independently for detailed comparison - **Global Auto Scale:** All timeframes use unified scale for relative volume comparison - **Manual Scale:** User-defined maximum for consistent analysis across sessions 2. **Bullish/Bearish Volume Differentiation:** - Volume bars colored based on price movement (close vs open) - Separate styling for bullish (green) and bearish (red) volume periods - Helps identify whether volume supports price direction 3. **Advanced Time Synchronization:** - Custom daily candle open times (Midnight, 8:30 AM, 9:30 AM ET) - Timezone-aware calculations for New York trading hours - Real-time countdown timers for each timeframe - **Gap-filling technology** for continuous display during extended hours and weekends 4. **Flexible Display Options:** - Configurable spacing and positioning - Label placement (top, bottom, or both) - Day-of-week or time interval labels on candles - Works reliably in backtesting and live trading ## How It Works ### Volume Calculation The indicator uses `request.security()` with optimized parameters to fetch volume data from higher timeframes: - **Volume Open/High/Low/Close (OHLC):** Tracks volume changes within each HTF candle - **Color Logic:** Compares HTF close vs open prices to determine bullish/bearish classification - **Alignment:** All volume bars share a common baseline for easy visual comparison - **Gap Handling:** Uses `gaps=barmerge.gaps_off` to maintain continuity during non-trading hours ### Technical Implementation ``` 1. Monitors HTF timeframe changes using request.security() with lookahead 2. Creates new VolumeCandle object when HTF bar opens 3. Updates current candle's volume H/L/C on each chart bar 4. Applies selected scaling method to normalize display height 5. Repositions all candles and labels on each bar update 6. Fills gaps automatically during extended hours for consistent display ``` ### Scaling Methods Explained **Method 1 - Auto Scale per HTF:** Each timeframe displays volume relative to its own maximum. Best for identifying patterns within each individual timeframe. **Method 2 - Global Auto Scale:** All timeframes share the same scale based on the highest volume across all HTFs. Best for comparing relative volume strength between timeframes. **Method 3 - Manual Scale:** User sets maximum volume value. Best for maintaining consistent scale across different trading sessions or instruments. ## How to Use This Indicator ### Setup 1. Add indicator to your chart (it appears in a separate panel below price) 2. Configure up to 6 higher timeframes (default: 5m, 15m, 1H, 4H, 1D, 1W) 3. Set number of candles to display for each timeframe 4. Choose volume scaling method based on your analysis needs 5. Enable "Fix gaps in non-trading hours" for extended hours trading (enabled by default) ### Interpretation **Volume Spikes:** - Sudden increase in volume height indicates institutional activity or strong conviction - Compare volume between timeframes to identify where the real money is moving - Look for volume spikes that appear across multiple timeframes simultaneously **Bullish vs Bearish Volume:** - **Green volume bars:** Price closed higher (buying pressure) - **Red volume bars:** Price closed lower (selling pressure) - High green volume during uptrend = confirmation of strength - High red volume during downtrend = confirmation of weakness - High volume opposite to trend = potential reversal warning **Multi-Timeframe Context:** - **5m/15m:** Scalping and day trading activity - **1H/4H:** Swing trading and intraday institutional flows - **Daily/Weekly:** Major position building and long-term trends **Divergences:** - Price making new highs but volume declining = weakening trend - Volume increasing while price consolidates = potential breakout brewing - Price breaks level but volume doesn't confirm = likely false breakout ### Practical Examples **Example 1 - Institutional Confirmation:** Price breaks above resistance. Check volume across timeframes: - 5m shows spike = retail interest - 15m + 1H + 4H all show spikes = institutional confirmation - **Trade confidence: HIGH** **Example 2 - False Breakout Detection:** Price breaks resistance with: - High volume on 5m only - Normal/low volume on 1H and 4H - **Interpretation:** Likely retail trap, institutions not participating - **Action:** Wait for pullback or avoid **Example 3 - Accumulation Phase:** Price ranges sideways but: - Daily volume gradually increasing - Weekly volume above average - **Interpretation:** Smart money accumulating - **Action:** Prepare for breakout in direction of volume **Example 4 - Volume Divergence:** Price makes new high: - Current high has lower volume than previous high across all timeframes - **Interpretation:** Weakening momentum - **Action:** Consider profit-taking or reversal trade ## Configuration Parameters ### Timeframe Settings - **HTF 1-6:** Select timeframes (must be higher than chart timeframe) - **Max Display:** Number of candles to show per timeframe (1-50) - **Limit to Next HTFs:** Display only first N enabled timeframes (1-6) ### Styling - **Bull/Bear Colors:** Separate colors for body, border, and wick - **Padding from current candles:** Distance offset from live price action - **Space between candles:** Gap between individual volume bars - **Space between Higher Timeframes:** Gap between different timeframe groups - **Candle Width:** Thickness of volume bars (1-4, multiplied by 2) ### Volume Settings - **Volume Scale Method:** Choose 1, 2, or 3 - 1 = Auto Scale per HTF (each TF independent) - 2 = Global Auto Scale (all TF unified) - 3 = Manual Scale (user-defined max) - **Auto Scale Volume:** Enable/disable automatic scaling - **Manual Scale Max Volume:** Set maximum when using Method 3 ### Label Settings - **HTF Label:** Show/hide timeframe names with color and size options - **Label Positions:** Display at Top, Bottom, or Both - **Label Alignment:** Align centered or Follow Candles - **Remaining Time:** Show countdown timer until next HTF candle - **Interval Value:** Display day-of-week or time on each candle ### Custom Daily Candle - **Enable Custom Daily:** Override default daily candle timing - **Open Time Options:** - **Midnight:** Standard 00:00 ET daily open - **8:30 AM:** Align with economic data releases - **9:30 AM:** Align with NYSE market open - Useful for specific trading strategies or market alignment ### Advanced Settings - **Fix gaps in non-trading hours:** Maintains alignment during extended hours and weekends (recommended: ON) - Prevents visual gaps during forex weekend closures - Ensures consistent display during crypto 24/7 trading - Improves backtesting reliability ## Best Practices 1. **Pair with Price Action:** Use alongside HTF price candles indicator for complete picture 2. **Start Simple:** Enable 2-3 timeframes initially (e.g., 15m, 1H, 4H), add more as needed 3. **Match Settings:** Use same candle width/spacing as companion price indicator for visual alignment 4. **Scale Appropriately:** - Use **Global scale** (Method 2) when comparing timeframes - Use **Per-HTF scale** (Method 1) for pattern analysis within each timeframe - Use **Manual scale** (Method 3) for consistent day-to-day comparison 5. **Watch for Volume Clusters:** High volume appearing simultaneously across multiple HTFs signals significant market events 6. **Confirm Breakouts:** Always check if volume supports the price movement across higher timeframes 7. **Extended Hours:** Keep "Fix gaps" enabled for 24/7 markets (Forex, Crypto) and weekend analysis ## Technical Notes - **Timezone:** All calculations use America/New_York timezone for consistency - **Real-time Updates:** Volume and timers update on each tick during market hours - **Performance:** Optimized with max_bars_back=5000 for extensive historical analysis - **Compatibility:** Works on all instruments with volume data (Stocks, Forex, Crypto, Futures) - **Gap Handling:** Uses `barmerge.gaps_off` to fill data gaps during non-trading periods - **Backtesting:** Uses `lookahead=barmerge.lookahead_on` for stable historical data without repainting - **Data Continuity:** Automatically handles market closures, weekends, and extended hours ## Updates & Improvements **Version 2.0 (Current):** - ✅ Fixed alignment issues during extended hours and weekends - ✅ Eliminated repainting in backtesting - ✅ Added gap-filling technology for continuous display - ✅ Improved data synchronization across all timeframes - ✅ Enhanced NA value handling for data integrity - ✅ Added advanced settings group for user control ## Support For questions, suggestions, or feedback, please comment on the publication or message the author. --- **Disclaimer:** This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always perform your own analysis and implement proper risk management before making trading decisions. Penunjuk Pine Script®oleh Pitt449
EU & US Open Signals (Triple Confirmation)🚀 EU & US Open Signals: Triple Confirmation Breakouts 💡 What This Indicator Does This indicator plots the opening prices of the European (EU) and American (US) trading sessions as key daily support/resistance levels. Its main function is to generate three distinct levels of signals based on the breakout of these levels, strictly filtered by candlestick type. The goal is to easily spot market momentum following the opening of the major trading sessions. 🔑 Key Features 1. Daily Session Levels The indicator plots two crucial horizontal lines that reset daily: EU Open (Black Line): The European session opening price (Default: 06:00 UTC). US Open (Dark Blue Line): The American session opening price (Default: 12:00 UTC). 2. Triple Signaling Logic All signals are only generated if the breakout candle is bullish (for Buy) or bearish (for Sell), and only within your set trading hours. Logic I. EU Single Break Condition: Close breaks above/below the EU Open Level + Bullish/Bearish candle. Visual Plot: Small Cross (Green for Buy / Red for Sell). Meaning: Early signal focused on EU session momentum. Logic II. US Single Break Condition: Close breaks above/below the US Open Level + Bullish/Bearish candle. Visual Plot: Small Cross (Green for Buy / Red for Sell). Meaning: Signal focused on US session momentum. Logic III. Double Break (HIGH CONFIRMATION) Condition: Close breaks above Both Levels (EU and US) for Buy, or below Both Levels for Sell + Bullish/Bearish candle. Visual Plot: Large Triangle (Dark Green/Red). ⚠️ Crucial: This is the strongest signal, indicating strong momentum as both key daily levels have been broken. ⚙️ Simple Settings Easily customize the indicator to fit your strategy: EU/US Session Open Hour (UTC): Set the exact session open times. Time Zone: Select your time zone for accurate level calculation. Start/End Trading Hour: Define the daily window for when signals will be active. 🎯 Recommended Use High Confidence: Focus on the Double Break (Logic III) - Large Triangle for your most confirmed entries. Context: Use the Single Break signals (I and II) to confirm early market bias. Risk: The Open Levels can serve as natural points for setting Stop-Loss orders. Disclaimer: Trading carries risk. This tool is for analysis purposes only. Use it at your own discretion.Penunjuk Pine Script®oleh Aleksin_Aleksandar2256
Trend Score with Dynamic Stop Loss HTF How the Trend Score System Works This indicator uses a Trend Score (TS) to measure price momentum over time. It tracks whether price is breaking higher or lower, then sums these moves into a cumulative score to define trend direction. ⸻ 1. Trend Score (+1 / -1 Mechanism) On each new bar: • +1 point: if the current bar breaks the previous bar’s high. • −1 point: if the current bar breaks the previous bar’s low. • If both happen in the same bar, they cancel each other out. • If neither happens, the score does not change. This creates a simple running measure of bullish vs bearish pressure. ⸻ 2. Cumulative Trend Score The Trend Score is cumulative, meaning each new +1 or -1 is added to the total score, building a continuous count. • Rising scores = buyers are consistently pushing price to higher highs. • Falling scores = sellers are consistently pushing price to lower lows. This smooths out noise and helps identify persistent momentum rather than single-bar spikes. ⸻ 3. Trend Flip Trigger (default = 3) A trend flip occurs when the cumulative Trend Score changes by 3 points (default setting) in the opposite direction of the current trend. • Bullish Flip: • Cumulative TS rises 3 points from its most recent low pivot. • Marks a potential start of a new uptrend. • A bullish stop-loss (SL) is set at the most recent swing low. • Bearish Flip: • Cumulative TS falls 3 points from its most recent high pivot. • Marks a potential start of a new downtrend. • A bearish SL is set at the most recent swing high. Example: • TS is at -2, then climbs to +1. • That’s a +3 change, triggering a bullish flip. ⸻ 4. Visual Summary • Green background: Active bullish trend. • Red background: Active bearish trend. • ▲ Triangle Up: A bullish flip occurred this bar. • Stop Loss Line: Shows the structural low used for risk management. ⸻ Why This Matters The Trend Score measures trend pressure simply and objectively: • +1 / -1 mechanics track real price behavior (breakouts of highs and lows). • Cumulative changes of 3 points act like a momentum filter, ignoring small reversals. • This helps you see true regime shifts on higher timeframes, which is especially useful for swing trades and investing decisions. ⸻ Key Takeaways • Only flips after meaningful swings: prevents overreacting to single-bar noise. • SL shows invalidation point: helps you know where a trend thesis fails. • Works best on Daily or Weekly charts: for smoother, more reliable signals. Using Trend Score for Long-Term Investing This indicator is designed to support decision-making for higher timeframe investing, such as swing trades, multi-month positions, or even multi-year holds. It helps you: • Identify major bullish regimes. • Decide when to add to winning positions (DCA up). • Know when to pause buying or consider trimming during weak periods. • Stay disciplined while holding long-term winners. Important Note: These are suggestions for context. Always combine them with your own analysis, portfolio allocation rules, and risk tolerance. ⸻ 1. Start With the Higher Timeframe • Use Weekly charts for a broad investing view. • Use Daily charts only for fine-tuning entry points or deciding when to add. • A Bullish Flip on Weekly suggests the market may be entering a major uptrend. • If Weekly is bullish and Daily also turns bullish, it’s extra confirmation of strength. ⸻ 2. Building a Position with DCA Goal: Grow your position gradually during strong bullish regimes while staying aware of risk. A. Initial Buy • Start with a small initial allocation when a Bullish Flip appears on Weekly or Daily. • This is just a starter position to get exposure while the new trend develops. B. Adding Through Strength (DCA Up) • Consider adding during pullbacks, as long as price stays above the active SL line. • Each add should be smaller or equal to your first buy. • Spread out adds over time or price levels, instead of going all-in at once. C. Pause Buying When: • Price approaches or touches the SL level (trend invalidation). • A Bearish Flip appears on Weekly or Daily — this signals potential weakness. • Your total position size reaches your maximum allocation limit for that asset. ⸻ 3. Holding Winners When a position grows in profit: • Stay in the trend as long as the Weekly regime remains bullish. • The indicator’s green background acts as a reminder to hold, not panic sell. • Use the SL bubble to monitor where the trend could potentially break. • Avoid selling just because of small pullbacks — focus on big-picture trend health. ⸻ 4. Taking Partial Profits While this tool is designed to help hold long-term winners, there may be times to lighten risk: • After large, rapid moves far above the SL, consider trimming a small portion of your position. • When MFE (Maximum Favorable Excursion) in the table reaches unusually high levels, it may signal overextension. • If the Weekly chart turns Neutral or Bearish, you can gradually reduce exposure while waiting for the next Bullish Flip. ⸻ 5. Using the Stop Loss Line for Awareness The Dynamic SL line represents a structural level that, if broken, may suggest the bullish trend is weakening. How to think about it: • Above SL: Market remains structurally healthy — continue holding or adding gradually. • Close to SL: Pause adds. Be cautious and consider tightening your risk. • Below SL: Treat this as a potential signal to reassess your position, especially if the break is confirmed on Weekly. The SL is not a hard stop — it’s a visual guide to help you manage expectations. ⸻ 6. Example Use Case Imagine you are investing in a growth stock: • Weekly Bullish Flip: You open a small starter position. • Price pulls back slightly but stays above SL: You add a second, smaller tranche. • Trend continues up for months: You hold and stop adding once your desired allocation is reached. • Price doubles: You trim 10–20% to lock some profits, but continue holding the majority. • Price later dips below SL: You slow down, reassess, and decide whether to reduce exposure. This keeps you: • Participating in major uptrends. • Avoiding overcommitment during weak phases. • Making adjustments gradually, not emotionally. ⸻ 7. Suggested Workflow 1. Check Weekly chart → is it Bullish? 2. If yes, review Daily chart to fine-tune entry or adds. 3. Build exposure gradually while Weekly remains bullish. 4. Watch SL bubbles as awareness points for risk management. 5. Use partial trims during big rallies, but avoid exiting entirely too soon. 6. Reassess if Weekly turns Neutral or Bearish. ⸻ Key Takeaways • Use this as a compass, not a command system. • Weekly flips = big picture direction. • Daily flips = timing and precision. • Add gradually (DCA) while above SL, pause near SL, reassess below SL. • Hold winners as long as Weekly remains bullish.Penunjuk Pine Script®oleh DeLeBlanc66
ATR Extension from Moving Average, with Robust Sigma Bands # ATR Extension from Moving Average, with Robust Sigma Bands **What it does** This indicator measures how far price is from a selected moving average, expressed in **ATR multiples**, then overlays **robust sigma bands** around the long run central tendency of that extension. Positive values mean price is extended above the MA, negative values mean price is extended below the MA. The signal adapts to volatility through ATR, which makes comparisons consistent across symbols and regimes. **Why it can help** * Normalizes distance to an MA by ATR, which controls for changing volatility * Uses the **bar’s extreme** against the MA, not just the close, so it captures true stretch * Computes a **median** and **standard deviation** of the extension over a multi-year window, which yields simple, intuitive bands for trend and mean-reversion decisions --- ## Inputs * **MA length**: default 50, options 200, 64, 50, 20, 9, 4, 3 * **MA timeframe**: Daily or Weekly. The MA is computed on the chosen higher timeframe through `request.security`. * **MA type**: EMA or SMA * **Years lookback**: 1 to 10 years, default 5. This sets the sample for the median and sigma calculation, `years * 365` bars. * **Line width**: visual width of the plotted extension series * **Table**: optional on-chart table that displays the current long run **median** and **sigma** of the extension, with selectable text size **Fixed parameters in this release** * **ATR length**: 20 on the daily timeframe * **ATR type**: classic ATR. ADR percent is not enabled in this version. --- ## Plots and colors * **Main plot**: “Extension from 50d EMA” by default. Value is in **ATR multiples**. * **Reference lines**: * `median` line, black dashed * +2σ orange, +3σ red * −2σ blue, −3σ green --- ## How it is calculated 1. **Moving average** on the selected higher timeframe: EMA or SMA of `close`. 2. **Extreme-based distance** from MA, as a percent of price: * If `close > MA`, use `(high − MA) / close * 100` * Else, use `(low − MA) / close * 100` 3. **ATR percent** on the daily timeframe: `ATR(20) / close * 100` 4. **ATR multiples**: extension percent divided by ATR percent 5. **Robust center and spread** over the chosen lookback window: * Center: **median** of the ATR-multiple series * Spread: **standard deviation** of that series * Bands: center ± 1σ, 2σ, 3σ, with 2σ and 3σ drawn This design yields an intuitive unit scale. A value of **+2.0** means price is about 2 ATR above the selected MA by the most stretched side of the current bar. A value of **−3.0** means roughly 3 ATR below. --- ## Practical use * **Trend continuation** * Sustained readings near or above **+1σ** together with a rising MA often signal healthy momentum. * **Mean reversion** * Spikes into **±2σ** or **±3σ** can identify stretched conditions for fade setups in range or late-trend environments. * **Regime awareness** * The **median** moves slowly. When median drifts positive for many months, the market spends more time extended above the MA, which often marks bullish regimes. The opposite applies in bearish regimes. **Notes** * The MA can be set to Weekly while ATR remains Daily. This is deliberate, it keeps the normalization stable for most symbols. * On very short intraday charts, the extension remains meaningful since it references the session’s extreme against a higher-timeframe MA and a daily ATR. * Symbols with short histories may not fill the lookback window. Bands will adapt as data accrues. --- ## Table overlay Enable **Table → Show** to see: * “ATR from \” * Current **median** and **sigma** of the extension series for your lookback --- ## Recommended settings * **Swing equities**: 50 EMA on Daily, 5 to 7 years * **Index trend work**: 200 EMA on Daily, 10 years * **Position trading**: 20 or 50 EMA on Weekly MA, 5 to 10 years --- ## Interpretation examples * Reading **+2.7** with price above a rising 50 EMA, near prior highs * Strong trend extension, consider pyramiding in trend systems or waiting for a pullback if you are a mean-reverter. * Reading **−2.2** into multi-month support with flattening MA * Stretch to the downside that often mean-reverts, size entries based on your system rules. --- ## Credits The concept of measuring stretch from a moving average in ATR units has a rich community history. This implementation and its presentation draw on ideas popularized by **Jeff Sun**, **SugarTrader**, and **Steve D Jacobs**. Thanks to each for their contributions to ATR-based extension thinking. --- ## License This script and description are distributed under **MPL-2.0**, consistent with the header in the source code. --- ## Changelog * **v1.0**: Initial public release. Daily ATR normalization, EMA or SMA on D or W timeframe, robust median and sigma bands, optional table. --- ## Disclaimer This tool is for educational use only. It is not financial advice. Always test on your own data and strategies, then manage risk accordingly. Penunjuk Pine Script®oleh BB_9791Telah dikemas kini 48
Liquidity Sweep Breakout - LSBLiquidity Sweep Breakout - LSB A professional session-based breakout system designed for OANDA:USDJPY and other JPY pairs. Not guesswork, but precision - built on detailed observation of institutional moves to capture clear trade direction daily. Master the Market’s Daily Bank Flow. --- Strategy Detail: I discovered this strategy after carefully studying how Japanese banks influence the forex market during their daily settlement period. Banks are some of the biggest players in the financial world, and when they adjust or settle their accounts in the morning, it often creates a push in the market. From years of observation, I noticed a consistent pattern, once banks finish their settlements, the market usually continues moving in the same direction that was formed right after those actions. This daily banking flow often sets the tone for the entire trading session, especially for JPY pairs like USDJPY. To capture this move, I built the indicator so that it follows the bank-driven trend with clear rules for entries, stop-loss (SL), and take-profit (TP). The system is designed with professional risk management in mind. By default, it assumes a $10,000 account size, risks only 1% of that balance per trade, and targets a 1:1.5 reward-to-risk ratio. This means for every $100 risked, the potential profit is $150. Such controlled risk makes the system safer and more sustainable for long-term traders. At the same time, users are not limited to this setup, they can adjust the account balance in the settings, and the indicator will automatically recalculate the lot size and risk levels based on their own capital. This ensures the strategy works for small accounts and larger accounts alike. 🌍 Why It Works Fundamentally driven: Based on **daily Japanese banking settlement flows**. Session-specific precision: Targets the exact window when USDJPY liquidity reshapes. Risk-managed: Always calculates lot size based on account and risk preferences. Automatable: With webhook + MT5 EA, it can be fully hands-free. --- ✅ Recommended Pair: USDJPY (best observed behavior). Timeframe: 3-Minute chart. Platform: TradingView Premium (for webhooks). Execution: MT5 via EA. --- 🔎 Strategy Concept The Tokyo Magic Breakout (TMB) is built on years of session observation and the unique daily rhythm of the Japanese banking system. Every morning between 5:50 AM – 6:10 AM PKT (09:50 – 10:10 JST), Japanese banks perform daily reconciliation and settlement. This often sets the tone for the USDJPY direction of the day. This strategy isolates that critical moment of liquidity adjustment and waits for a clean breakout confirmation. Instead of chasing noise, it executes only when price action is aligned with the Tokyo market’s hidden flows. --- 🕒 Timing Logic Session Start: 5:00 AM PKT (Tokyo market open range). Magic Candle: The 5:54 AM PKT candle is marked as the reference “breakout selector.” Checkpoints: First confirmation at 6:30 AM PKT, then every 15 minutes until 8:30 AM PKT. * If price stays inside the magic range → wait. * If a breakout happens but the candle wick touches the range → wait for the next checkpoint. * If by 8:30 AM PKT no clean breakout occurs → the day is marked as No Trade Day (NTD). 👉 Recommended timeframe: 3-Minute chart (3M) for precise signals. --- 📈 Trade Execution Entry: Clean break above/below the magic candle’s range. Stop-Loss: Opposite side of the Tokyo session high/low. Take-Profit: Calculated by Reward\:Risk ratio (default 1.5:1). Lot Size: Auto-calculated based on your risk model: * Fixed Dollar * % of Equity * Conservative (minimum of both). Visuals include: ✅ Entry/SL/TP lines ✅ Shaded risk (red) and reward (green) zones ✅ Trade labels (Buy/Sell with lot size & levels) ✅ TP/SL hit markers --- 🔔 Alerts & Automation (AutoTMB) This strategy is fully automation-ready with EA + MT5: 1. Enable alerts in TMB settings. 2. Insert your PineConnector License Key. 3. Configure your risk management preferences. 4. Create a TradingView alert → in the message box simply type: Pine Script® {{alert_message}} and set the EA webhook. Now, every breakout trade (with exact entry, SL, TP, and lot size) is sent instantly. 👉 On your MT5: * Install the EA. * Use the same license key. * Run it on a VPS or local MT5 terminal. You now have a hands-free trading system: AutoTMB.Strategi Pine Script®oleh humayunmha44540
RRG Relative Strength# RRG Relative Strength (RRG RS) Compare any symbol to a benchmark using two RRG-style lines: **RS-Ratio** (trend of relative strength) and **RS-Momentum** (momentum of that trend). Both are centered at **100**: - **RS-Ratio > 100** → outperforming the benchmark - **RS-Ratio < 100** → underperforming - **RS-Momentum** often **leads** RS-Ratio (crosses 100 earlier) # How it works 1) Relative Strength (RS): RS = Close(symbol) / Close(benchmark) 2) Normalize around 100: smooth RS with EMA and divide RS by that EMA 3) RS-Ratio: EMA( RS / EMA(RS, Length), LenSmooth ) * 100 4) RS-Momentum: RS-Ratio / EMA(RS-Ratio, LenSmooth) * 100 # Inputs - Length (default 14): normalization window for RS - Length Smooth (default 20): smoothing window for RS-Ratio & RS-Momentum # Benchmark (auto) - US: SP:SPX (S&P 500) - Vietnam: HOSE:VNINDEX - Crypto: INDEX:BTCUSD (Modify the mapping if needed, or replace with your own input.symbol().) # How to read - Improving: RS-Momentum crosses above 100 while RS-Ratio turns up - Leading: RS-Ratio > 100 with RS-Momentum ≥ 100 - Weakening: RS-Momentum drops below 100; RS-Ratio often follows # Timeframes & presets - Works on Daily and Weekly charts - Daily (fast): 14 / 20 - Approx. weekly behavior on Daily: 50 / 60 Note: Values usually hover near 100 (e.g., ~90–110) but are not strictly bounded. Ensure your symbol and benchmark trade in comparable sessions/currencies. Penunjuk Pine Script®oleh huynhphan896657
Market Matrix ViewThis technical indicator is designed to provide traders with a quick and integrated view of market dynamics by combining several popular indicators into a single tool. It's not a magic bullet, but a practical aid for analyzing buying/selling pressure, trends, volume, and divergences, saving you time in the decision-making process. Built for flexibility, the indicator adapts to various trading styles (scalping, swing, or long-term) and offers customizable settings to suit your needs. 🟡 Multi-Timeframe Trends ➤ This section displays the trend direction (bullish, bearish, or neutral) across 15-minute, 1-hour, 4-hour, and Daily timeframes, providing multi-timeframe market context. Timeframes lower than the one currently selected will show "N/A." ➤It utilizes fast and slow Exponential Moving Averages (EMAs) for each timeframe: 15m: Fast EMA 42, Slow EMA 170 1h: Fast EMA 40, Slow EMA 100 4h: Fast EMA 36, Slow EMA 107 Daily: Fast EMA 20, Slow EMA 60 🟡 Smart Flow & RVOL ➤ This section displays "Buying Pressure" or "Selling Pressure" signals based on indicator confluence, alongside volume activity ("High Activity," "Normal Activity," or "Low Activity"). ➤ Smart Flow combines Chaikin Money Flow (CMF) and Money Flow Index (MFI) to detect buying/selling pressure. CMF measures money flow based on price position within the high-low range, while MFI analyzes money flow considering typical price and volume. A signal is generated only when both indicators simultaneously increase/decrease beyond an adjustable threshold ("Buy/Sell Sensitivity") and volume exceeds a Simple Moving Average (SMA) scaled by the "Volume Multiplier." ➤ RVOL (Relative Volume) calculates relative volume separately for bullish and bearish candles, comparing recent volume (fast SMA) with a reference volume (slow SMA). Thresholds are adjusted based on the selected mode. 🟡 ADX & RSI This section displays trend strength ("Strong," "Moderate," or "Weak"), its direction ("Bullish" or "Bearish"), and the RSI momentum status ("Overbought," "Oversold," "Buy/Sell Momentum," or "Neutral"). ➤ ADX (Average Directional Index) measures trend strength (above 40 = "Strong," 20–40 = "Moderate," below 20 = "Weak"). Direction is determined by comparing +DI (upward movement) with -DI (downward movement). Additionally, an arrow indicates whether the trend's strength is decreasing or increasing. ➤RSI (Relative Strength Index) evaluates price momentum. Extreme levels (above 80/85 = "Overbought," below 15/20 = "Oversold") and intermediate zones (47–53 = "Neutral," above 53 = "Buy Momentum," below 47 = "Sell Momentum") are adjusted based on the selected mode. 🟡 When these signals are active for a potential trade setup, the table's background lights up green or red, respectively. 🟡 Volume Spikes ➤This feature highlights bars with significantly higher volume than the recent average, coloring them yellow on the chart to draw attention to intense market activity. ➤It uses the Z-Score method to detect volume anomalies. Current volume is compared to a 10-bar Simple Moving Average (SMA) and the standard deviation of volume over the same period. If the Z-Score exceeds a certain threshold, the bar is marked as a volume spike. 🟡 Divergences (Volume Divergence Detection) ➤ This feature marks divergences between price and technical indicators on the chart, using diamond-shaped labels (green for bullish divergences, red for bearish divergences) to signal potential trend reversals. ➤ It compares price deviations from a Simple Moving Average (SMA) with deviations of three indicators: Chaikin Money Flow (CMF), Money Flow Index (MFI), and On-Balance Volume (OBV). A bullish divergence occurs when price falls below its average, but CMF, MFI, and OBV rise above their averages, indicating hidden accumulation. A bearish divergence occurs when price rises above its average, but CMF, MFI, and OBV fall, suggesting distribution. The length of the moving averages is adjustable (default 13/10/5 bars for Scalping/Balanced/Swing), and detection thresholds are scaled by "Divergence Sensitivity" (default 1.0). 🟡 Adaptive Stop-Loss (ATR) ➤Draws dynamic stop-loss lines (red, dashed) on the chart for buy or sell signals, helping traders manage risk.Uses the Average True Range (ATR) to calculate stop-loss levels, set at low/high ± ATR × multiplier 🟡 Alerts for trend direction changes in the Info Panel: ➤ Triggers notifications when the trend shifts to Bullish (when +DI crosses above -DI) or Bearish (when +DI crosses below -DI), helping you stay informed about key market shifts. How to use: Set alerts in Trading View for “Trend Changed to Bullish” or “Trend Changed to Bearish” with “Once Per Bar Close” for reliable signals. 🟡 Settings (Inputs) ➤ The indicator offers customizable settings to fit your trading style, but it's already optimized for Scalping (1m–15m), Balanced (16m–3h59m), and Swing (4h–Daily) modes, which automatically adjust based on the selected timeframe. The visible inputs allow you to adjust the following parameters: Show Info Panel: Enables/disables the information panel (default: enabled). Show Volume Spikes: Turns on/off coloring for volume spike bars (default: enabled). Spike Sensitivity: Controls the Z-Score threshold for detecting volume spikes (default: 2.0; lower values increase signal frequency). Show Divergence: Enables/disables the display of divergence labels (default: enabled). Divergence Sensitivity: Adjusts the thresholds for divergence detection (default: 1.0; higher values reduce sensitivity). Divergence Lookback Length: Sets the length of the moving averages used for divergences (default: 5, automatically adjusted to 13/10/5 for Scalping/Balanced/Swing). RVOL Reference Period: Defines the reference period for relative volume (default: 20, automatically adjusted to 7/15/20). RSI Length: Sets the RSI length (default: 14, automatically adjusted to 5/10/14). Buy Sensitivity: Controls the increase threshold for Buying Pressure signals (default: 0.007; higher values reduce frequency). Sell Sensitivity: Controls the decrease threshold for Selling Pressure signals (default: 0.007; higher values reduce frequency). Volume Multiplier (B/S Pressure): Adjusts the volume threshold for Smart Flow signals (default: 0.6; higher values require greater volume). 🟡 This indicator is created to simplify market analysis, but I am not a professional in Pine Script or technical indicators. This indicator is not a standalone solution. For optimal results, it must be integrated into a well-defined trading strategy that includes risk management and other confirmations. Penunjuk Pine Script®oleh ToCoMi50
OpenAI Signal Generator - Enhanced Accuracy# AI-Powered Trading Signal Generator Guide ## Overview This is an advanced trading signal generator that combines multiple technical indicators using AI-enhanced logic to generate high-accuracy trading signals. The indicator uses a sophisticated combination of RSI, MACD, Bollinger Bands, EMAs, ADX, and volume analysis to provide reliable buy/sell signals with comprehensive market analysis. ## Key Features ### 1. Multi-Indicator Analysis - **RSI (Relative Strength Index)** - Length: 14 periods (default) - Overbought: 70 (default) - Oversold: 30 (default) - Used for identifying overbought/oversold conditions - **MACD (Moving Average Convergence Divergence)** - Fast Length: 12 (default) - Slow Length: 26 (default) - Signal Length: 9 (default) - Identifies trend direction and momentum - **Bollinger Bands** - Length: 20 periods (default) - Multiplier: 2.0 (default) - Measures volatility and potential reversal points - **EMAs (Exponential Moving Averages)** - Fast EMA: 9 periods (default) - Slow EMA: 21 periods (default) - Used for trend confirmation - **ADX (Average Directional Index)** - Length: 14 periods (default) - Threshold: 25 (default) - Measures trend strength - **Volume Analysis** - MA Length: 20 periods (default) - Threshold: 1.5x average (default) - Confirms signal strength ### 2. Advanced Features - **Customizable Signal Frequency** - Daily - Weekly - 4-Hour - Hourly - On Every Close - **Enhanced Filtering** - EMA crossover confirmation - ADX trend strength filter - Volume confirmation - ATR-based volatility filter - **Comprehensive Alert System** - JSON-formatted alerts - Detailed technical analysis - Multiple timeframe analysis - Customizable alert frequency ## How to Use ### 1. Initial Setup 1. Open TradingView and create a new chart 2. Select your preferred trading pair 3. Choose an appropriate timeframe 4. Apply the indicator to your chart ### 2. Configuration #### Basic Settings - **Signal Frequency**: Choose how often signals are generated - Daily: Signals at the start of each day - Weekly: Signals at the start of each week - 4-Hour: Signals every 4 hours - Hourly: Signals every hour - On Every Close: Signals on every candle close - **Enable Signals**: Toggle signal generation on/off - **Include Volume**: Toggle volume analysis on/off #### Technical Parameters ##### RSI Settings - Adjust `rsi_length` (default: 14) - Modify `rsi_overbought` (default: 70) - Modify `rsi_oversold` (default: 30) ##### EMA Settings - Fast EMA Length (default: 9) - Slow EMA Length (default: 21) ##### MACD Settings - Fast Length (default: 12) - Slow Length (default: 26) - Signal Length (default: 9) ##### Bollinger Bands - Length (default: 20) - Multiplier (default: 2.0) ##### Enhanced Filters - ADX Length (default: 14) - ADX Threshold (default: 25) - Volume MA Length (default: 20) - Volume Threshold (default: 1.5) - ATR Length (default: 14) - ATR Multiplier (default: 1.5) ### 3. Signal Interpretation #### Buy Signal Requirements 1. RSI crosses above oversold level (30) 2. Price below lower Bollinger Band 3. MACD histogram increasing 4. Fast EMA above Slow EMA 5. ADX above threshold (25) 6. Volume above threshold (if enabled) 7. Market volatility check (if enabled) #### Sell Signal Requirements 1. RSI crosses below overbought level (70) 2. Price above upper Bollinger Band 3. MACD histogram decreasing 4. Fast EMA below Slow EMA 5. ADX above threshold (25) 6. Volume above threshold (if enabled) 7. Market volatility check (if enabled) ### 4. Visual Indicators #### Chart Elements - **Moving Averages** - SMA (Blue line) - Fast EMA (Yellow line) - Slow EMA (Purple line) - **Bollinger Bands** - Upper Band (Green line) - Middle Band (Orange line) - Lower Band (Green line) - **Signal Markers** - Buy Signals: Green triangles below bars - Sell Signals: Red triangles above bars - **Background Colors** - Light green: Buy signal period - Light red: Sell signal period ### 5. Alert System #### Alert Types 1. **Signal Alerts** - Generated when buy/sell conditions are met - Includes comprehensive technical analysis - JSON-formatted for easy integration 2. **Frequency-Based Alerts** - Daily/Weekly/4-Hour/Hourly/Every Close - Includes current market conditions - Technical indicator values #### Alert Message Format ```json { "symbol": "TICKER", "side": "BUY/SELL/NONE", "rsi": "value", "macd": "value", "signal": "value", "adx": "value", "bb_upper": "value", "bb_middle": "value", "bb_lower": "value", "ema_fast": "value", "ema_slow": "value", "volume": "value", "vol_ma": "value", "atr": "value", "leverage": 10, "stop_loss_percent": 2, "take_profit_percent": 5 } ``` ## Best Practices ### 1. Signal Confirmation - Wait for multiple confirmations - Consider market conditions - Check volume confirmation - Verify trend strength with ADX ### 2. Risk Management - Use appropriate position sizing - Implement stop losses (default 2%) - Set take profit levels (default 5%) - Monitor market volatility ### 3. Optimization - Adjust parameters based on: - Trading pair volatility - Market conditions - Timeframe - Trading style ### 4. Common Mistakes to Avoid 1. Trading without volume confirmation 2. Ignoring ADX trend strength 3. Trading against the trend 4. Not considering market volatility 5. Overtrading on weak signals ## Performance Monitoring Regularly review: 1. Signal accuracy 2. Win rate 3. Average profit per trade 4. False signal frequency 5. Performance in different market conditions ## Disclaimer This indicator is for educational purposes only. Past performance is not indicative of future results. Always use proper risk management and trade responsibly. Trading involves significant risk of loss and is not suitable for all investors.Penunjuk Pine Script®oleh Aigentswarmtrade44122
Canuck Trading Projection IndicatorCanuck Trading Projection Indicator Overview The Canuck Trading Projection Indicator is a powerful PineScript v6 tool designed for TradingView to project potential bullish and bearish price trajectories based on historical price and volume movements. It provides traders with actionable insights by estimating future price targets and assigning confidence levels to each outlook, helping to identify probable market directions across any timeframe. Ideal for both short-term and long-term traders, this indicator combines momentum analysis, RSI filtering, support/resistance detection, and time-weighted trend analysis to deliver robust projections. Features Bullish and Bearish Projections: Forecasts price targets for upward (bullish) and downward (bearish) movements over a user-defined projection period (default 20 bars). Confidence Levels: Assigns percentage confidence scores to each outlook, reflecting the likelihood of the projected price based on historical trends, volatility, and volume. RSI Filter: Incorporates a 14-period Relative Strength Index (RSI) to validate trends, requiring RSI > 50 for bullish and RSI < 50 for bearish signals. Support/Resistance Detection: Adjusts confidence levels when projections are near key swing highs/lows (within 2% of average price), boosting confidence by 5% for alignments. Time-Based Weighting: Prioritizes recent price movements in trend analysis, giving more weight to newer bars for improved relevance. Customizable Inputs: Allows users to tailor lookback period, projection bars, RSI period, confidence threshold, colors, and label positioning. Forced Label Spacing: Prevents overlap of bullish and bearish text labels, even for tight projections, using fixed vertical slots when price differences are small (<2% of average price). Timeframe Flexibility: Works seamlessly across all TradingView timeframes (e.g., 30-minute, hourly, daily, weekly, monthly), adapting projections to the chart’s resolution. Clean Visualization: Displays projections as green (bullish) and red (bearish) dashed lines, with non-overlapping text labels at the projection endpoints showing price targets and confidence levels. How It Works The indicator analyzes historical price and volume data over a user-defined lookback period (default 50 bars) to calculate: Momentum: Combines price changes and volume to assess trend strength, using a weighted moving average (WMA) for directional bias. Trend Analysis: Counts bullish (price up, volume above average, RSI > 50) and bearish (price down, volume above average, RSI < 50) trends, weighting recent bars more heavily. Projections: Bullish Slope: Positive or flat when momentum is upward, scaled by price change and momentum intensity. Bearish Slope: Negative or flat when momentum is downward, amplified by bearish confidence for stronger projections. Projects prices forward by 20 bars (default) using current close plus slope times projection bars. Confidence Levels: Base confidence derived from the proportion of bullish/bearish trends, with a 5% minimum to avoid zero confidence. Adjusted by volatility (lower volatility increases confidence), volume trends, and proximity to support/resistance levels. Visualization: Draws projection lines from the current close to the 20-bar future target. Places text labels at line endpoints, showing price targets and confidence percentages, with forced spacing for readability. Input Parameters Lookback Period (default: 50): Number of bars for historical analysis (minimum 10). Projection Bars (default: 20): Number of bars to project forward (minimum 5). Confidence Threshold (default: 0.6): Minimum confidence for strong trend indication (0.1 to 1.0). Bullish Projection Line Color (default: Green): Color for bullish projection line and label. Bearish Projection Line Color (default: Red): Color for bearish projection line and label. RSI Period (default: 14): Period for RSI momentum filter (minimum 5). Label Vertical Offset (%) (default: 1.0): Base offset for labels as a percentage of price range (0.1% to 5.0%). Minimum Label Spacing (%) (default: 2.0): Minimum vertical spacing between labels for tight projections (0.5% to 10.0%). Usage Instructions Add to Chart: Copy the script into TradingView’s Pine Editor, save, and add the indicator to your chart. Select Timeframe: Apply to any timeframe (e.g., 30-minute, hourly, daily, weekly, monthly) to match your trading strategy. Interpret Outputs: Green Line/Label: Bullish price target and confidence (e.g., "Bullish: 414.37, Confidence: 35%"). Red Line/Label: Bearish price target and confidence (e.g., "Bearish: 279.08, Confidence: 41.3%"). Higher confidence indicates a stronger likelihood of the projected outcome. Adjust Inputs: Modify Lookback Period to focus on shorter/longer historical trends (e.g., 20 for short-term, 100 for long-term). Change Projection Bars to adjust forecast horizon (e.g., 10 for shorter, 50 for longer). Tweak RSI Period or Confidence Threshold for sensitivity to momentum or trend strength. Customize Colors for visual preference. Increase Minimum Label Spacing if labels overlap in volatile markets. Combine with Analysis: Use alongside other indicators (e.g., moving averages, Bollinger Bands) or fundamental analysis to confirm signals, as projections are probabilistic. Example: TSLA Across Timeframes Using live TSLA data (close ~346.46 USD, May 31, 2025), the indicator produces: 30-Minute: Bullish 341.93 (13.3%), Bearish 327.96 (86.7%) – Strong bearish sentiment due to intraday volatility. 1-Hour: Bullish 342.00 (33.9%), Bearish 327.50 (62.3%) – Bearish but less intense, reflecting hourly swings. 4-Hour: Bullish 345.52 (73.4%), Bearish 344.44 (19.0%) – Flat outlook, indicating consolidation. Daily: Bullish 391.26 (68.8%), Bearish 302.22 (31.2%) – Bullish bias from recent uptrend, bearish tempered by longer lookback. Weekly: Bullish 414.37 (35.0%), Bearish 279.08 (41.3%) – Wide range, reflecting annual volatility. Monthly: Bullish 396.70 (54.9%), Bearish 296.93 (10.2%) – Long-term bullish optimism. These results align with market dynamics: short-term intervals capture volatility, while longer intervals smooth trends, providing balanced outlooks. Notes Accuracy: Projections are estimates based on historical data and should be used with other analysis tools. Confidence levels indicate likelihood, not certainty. Timeframe Sensitivity: Short-term intervals (e.g., 30-minute) show larger price swings and higher confidence due to volatility, while longer intervals (e.g., monthly) are more stable. Customization: Adjust inputs to match your trading style (e.g., shorter lookback for day trading, longer for swing trading). Performance: Tested on volatile stocks like TSLA, NVIDIA, and others, ensuring robust performance across markets. Limitations: May produce conservative bearish projections in strong uptrends due to momentum weighting. Adjust lookback or projection_bars for sensitivity. Feedback If you encounter issues (e.g., label overlap, projection mismatches), please share your timeframe, settings, or a screenshot. Suggestions for enhancements (e.g., additional filters, visual tweaks) are welcome! Disclaimer The Canuck Trading Projection Indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves significant risks, and past performance is not indicative of future results. Always perform your own due diligence and consult a qualified financial advisor before making trading decisions.Penunjuk Pine Script®oleh ctoincanadaTelah dikemas kini 1173
Day of Week and HTF Period SeparatorDay of Week & HTF Period Separator A minimalist Pine Script indicator that adds clear, time-based separators and labels to intraday charts for better structure and analysis. Key Features • Day Labels • Displays abbreviated weekday names (MON, TUE, WED, etc.) at a user-defined hour • Custom text color and position • Limits display to the most recent 28 days for a clean view • Time Separators • Daily: Vertical line at 00:00 each trading day • 4-Hour: Lines at 00:00, 04:00, 08:00, 12:00, 16:00, 20:00 • Hourly: Divisions at every hour for detailed timing • Customization • Individual color picker for each separator type • Choose line style: Solid, Dashed or Dotted • Enable or disable any separator or label independently • Smart limits to avoid clutter on extended history • Smart Behavior • Active only on intraday timeframes • Projects upcoming separators into the future for planning • Automatically caps historical plotting for performance • Lines extend across full visible price range Perfect for traders who need distinct session breaks, precise time-based zoning and an organized chart layout. Inputs • Show Day Labels (true/false) • Label Hour (0–23) • Day Label Color • Show Daily Separators (true/false) • Show 4H Separators (true/false) • Show 1H Separators (true/false) • Daily Line Color, Style • 4H Line Color, Style • Hourly Line Color, Style • Max Days to Display Enhance your intraday analysis with clean, customizable time markers. 👁Penunjuk Pine Script®oleh maxretri119
Real-Time Open Levels with Labels + Info TableReal-Time Multi-Timeframe Open Levels with Labels & Info Panel Overview This indicator displays real-time opening price levels across multiple timeframes (Monthly, Weekly, Daily, 4H) directly on your chart. It features: • Dynamic horizontal lines extending through each timeframe period • Customizable labels with text/colors • Special 4H line treatment for the last hour (5-min charts only) • Integrated information panel showing symbol, timeframe, and price changes ! (www.tradingview.com) *Example showing multiple timeframe levels with labels and info panel* --- Features & Configuration 1. Monthly Settings ! (www.tradingview.com) Show Monthly: Toggle visibility of monthly opening price Color: Semi-transparent blue (#2196F3 at 70% opacity) Width: 2px line thickness Style: Solid/Dotted/Dashed Label: Display "M-Open" text with white text on blue background 2. Weekly Settings ! (www.tradingview.com) Show Weekly: Toggle weekly opening price visibility Color: Semi-transparent red (#FF5252 at 70% opacity) Width: 1px thickness Style: Dotted by default Label: "W-Open" text in white on red background 3. Daily Settings ! (www.tradingview.com) Show Daily: Toggle daily opening price Color: Amber (#FFA000 at 70% opacity) Width: 2px thickness Style: Solid Label: "D-Open" in white on orange background --- 4. 4-Hour Settings (5-Minute Charts Only) Special Features for 5-Min Timeframe: 1. Standard 4H Line • First 3 hours: Green (#4CAF50) dashed line • Last hour: Bright red solid line (configurable) • Vertical divider between 3rd/4th hours 2. Configuration Options • Main 4H Line: ◦ Color/Width/Style for initial 3 hours ◦ Toggle label ("H4-Open") visibility and styling • Final Hour Enhancement: *Last Hour Line* ◦ Unique red color and line style ◦ Separate width (1px) and style (Solid) *Divider Line* ◦ Vertical red dotted line marking last hour ◦ Adjustable position/width/transparency ! (www.tradingview.com) *4H levels showing 3-hour segment and final hour treatment* --- 5. Info Panel Settings Positioning: • Anchor to any chart corner (Top/Bottom + Left/Right combinations) • Three text sizes: Title (Huge), Change % (Large), Signature (Small) Display Elements: • Symbol: Show exchange prefix (e.g., "NASDAQ:") • Timeframe: Current chart period (e.g., "5m") • Change %: 24-hour price movement ▲/▼ percentage • Custom Signature: Add text/username in footer Styling: • Semi-transparent white text (#ffffff77) • Currency pair formatting (e.g., BTC/USD vs BTC-USD) ! (www.tradingview.com) *Sample info panel with all elements enabled* --- Usage Tips 1. Multi-Timeframe Context: Use levels to identify key daily/weekly support/resistance 2. 4H Trading: On 5-min charts, watch for price reactions near final hour transition 3. Customization: • Match line colors to your chart theme • Use different labels for clarity (e.g., "Weekly Open") • Disable unused elements to reduce clutter 4. Divider Lines: Helps identify institutional trading periods (hour closes) --- *Created using Pine Script v6. For optimal performance, use on charts <1H timeframe. ()* Penunjuk Pine Script®oleh trader-KKTelah dikemas kini 59
Volume Flow RatioVolume Flow Ratio (VFR) Indicator Overview The Volume Flow Ratio (VFR) is a sophisticated volume analysis tool that measures current trading volume relative to the maximum volume of the previous period. Unlike traditional volume indicators that show raw volume or simple moving averages, VFR provides context by comparing current activity to recent maximum activity levels. Core Features 1. Split Period Analysis - Multiple Timeframe Options: - Daily: Compares to previous day's maximum - Weekly: Week-to-week comparison - NYSE Weekly: Specialized for stock market trading (Monday-Friday only) - Monthly: Month-to-month analysis - Quarterly: Quarter-to-quarter perspective - Yearly: Year-over-year volume comparison 2. Ratio-Based Measurement - Displays volume as a ratio (0 to 1+) rather than raw numbers - 1.0 represents volume equal to previous period's maximum - Example: If previous max was 50,000 contracts: - Current volume of 25,000 shows as 0.5 - Current volume of 75,000 shows as 1.5 3. Triple Coloring Modes - Moving Average Based: - Compares current ratio to its moving average - Customizable MA period - Green: Above MA (higher than average activity) - Red: Below MA (lower than average activity) - Previous Candle Comparison: - Simple increase/decrease from previous bar - Green: Higher than previous bar - Red: Lower than previous bar - Candle Color Based: - Syncs with price action - Green: Bullish candles (close > open) - Red: Bearish candles (close < open) Primary Use Cases 1. Volume Profile Analysis - Perfect for traders who need to understand when markets are most active - Helps identify unusual volume spikes relative to recent history - Useful for timing entries and exits based on market participation 2. Market Activity Traders Ideal for traders who: - Need to identify high-liquidity periods - Want to avoid low-volume periods - Look for volume breakouts or divergences - Trade based on institutional participation levels 3. Mean Reversion Traders Helps identify: - Overextended volume conditions (potential reversals) - Volume exhaustion points - Return to normal volume levels after spikes 4. Momentum Traders Useful for: - Confirming trend strength through volume - Identifying potential trend exhaustion - Validating breakouts with volume confirmation Advantages Over Traditional Volume Indicators 1. Contextual Analysis - Shows relative strength rather than raw numbers - Easier to compare across different time periods - Automatically adjusts to changing market conditions 2. Period-Specific Insights - Respects natural market cycles (daily, weekly, monthly) - Special handling for NYSE trading days - Eliminates weekend noise in stock market analysis 3. Flexible Visualization - Three distinct coloring methods for different trading styles - Clear reference line at 1.0 for quick analysis - Histogram style for easy pattern recognition Best Practices For Day Traders - Use Daily split for intraday volume patterns - MA coloring mode with shorter periods (5-10) - Focus on ratios during market hours For Swing Traders - Weekly or NYSE Weekly splits - Longer MA periods (15-20) - Look for sustained volume patterns For Position Traders - Monthly or Quarterly splits - Candle color mode for trend confirmation - Focus on major volume shifts Limitations - Requires one full period to establish baseline - May be less effective in extremely low volume conditions - NYSE Weekly mode specific to stock market hours This indicator is particularly valuable for traders who understand that volume is a crucial component of price action but need a more sophisticated way to analyze it than simple volume bars. It's especially useful for those who trade based on market participation levels and need to quickly identify whether current volume is significant relative to recent history.Penunjuk Pine Script®oleh mindyourbuisnessTelah dikemas kini 51
Highs & Lows - Multi TimeFrame### **📌 HL-MWD (Highs & Lows - Multi Timeframe Indicator) – Community Release** #### **🔹 Overview** The **HL-MWD Indicator** is a **multi-timeframe support & resistance tool** that plots **historical highs and lows** from **daily, weekly, and monthly timeframes** onto an intraday chart. It helps traders **identify key levels of support and resistance** that have influenced price action over different timeframes. This indicator is useful for **day traders, swing traders, and position traders** who rely on **multi-timeframe analysis** to spot critical price levels. --- ### **🔥 Key Features** ✅ **Plots Highs & Lows for Daily, Weekly, and Monthly Timeframes** ✅ **Customizable Lookback Periods for Each Timeframe** ✅ **Adjustable Line Colors, Styles (Solid, Dotted, Dashed), and Widths** ✅ **Extend Lines into the Future to Identify Key Price Levels** ✅ **Option to Display Price Labels for Each Level** ✅ **Gradient Option to Highlight Recent Highs & Lows (Disabled by Default)** ✅ **Compatible with Intraday, Daily, and Weekly Charts** --- ### **📈 How It Works** - **Daily Highs & Lows:** Captures the **highest and lowest prices** within the selected lookback period (default: **14 bars**). - **Weekly Highs & Lows:** Marks the **highest and lowest prices** within the chosen weekly lookback (default: **52 bars**). - **Monthly Highs & Lows:** Displays the **high and low points** from the monthly timeframe (default: **36 bars**). - **Extended Lines:** Project past highs and lows **into the future** to help identify **potential support & resistance zones**. --- ### **⚠️ TradingView Lookback Limitations** 🔹 **TradingView has a limit on how many historical bars can be accessed per timeframe**, which affects how far back the indicator can retrieve data. 🔹 **Intraday charts (e.g., 5m, 15m) have a limited number of past bars**, meaning: - **You won’t be able to view 36 months' worth of monthly levels** on a **5-minute chart**, because TradingView doesn’t store that much data in lower timeframes. - **If multiple timeframes (e.g., weekly + monthly) are enabled at the same time**, some historical data may **not be available on shorter timeframes**. 🔹 **Recommendation:** - If using **monthly lookbacks (36 months+), view them on a daily or higher timeframe**. - If using **weekly lookbacks (52 weeks+), higher intraday timeframes (e.g., 1-hour, 4-hour) are better suited**. - **Lower timeframes (1m, 5m, 15m) may miss some levels** if TradingView's bar limit is exceeded. --- ### **⚙️ Customization Options** | **Setting** | **Default Value** | **Description** | |------------------|----------------|----------------| | **Daily Lookback** | `14` | Number of bars used to calculate daily highs/lows. | | **Weekly Lookback** | `52` | Number of bars used to calculate weekly highs/lows. | | **Monthly Lookback** | `36` | Number of bars used to calculate monthly highs/lows. | | **Line Colors** | Daily: `Blue` Weekly: `Green` Monthly: `Red` | Customizable colors for each timeframe. | | **Line Style** | `Solid` | Options: Solid, Dashed, Dotted. | | **Line Width** | `1` | Thickness of the plotted lines. | | **Extend Line** | `1` | Controls how far the highs/lows extend into the future. | | **Display Price Labels** | `Enabled` | Shows price labels on each level. | --- ### **🛠️ How to Use It** - **Enable/disable different timeframes** based on your strategy. - **Customize colors, line styles, and widths** to match your charting style. - **Use extended lines to identify support & resistance zones.** - **Watch price reactions at these levels** for potential entries, exits, and stop-loss placements. --- ### **🚀 Final Thoughts** The **HL-MWD Indicator** is a **powerful multi-timeframe tool** that helps traders **visualize key support & resistance levels** from higher timeframes on an intraday chart. ⚠️ **However, TradingView’s lookback limits apply—so for longer-term levels, higher timeframes are recommended.** 📌 **Now published for the community!** Let me know if you need any last-minute tweaks! 🔥Penunjuk Pine Script®oleh Bucknut20692
MTF Moving Averages (only EMA)MTF Moving Averages (only EMA) This script provides a Multi-Timeframe (MTF) Exponential Moving Average (EMA) indicator for traders to visualize multiple EMAs across different timeframes directly on a single chart. The indicator dynamically calculates and plots up to four EMAs per timeframe (15-minute, 30-minute, 1-hour, and Daily) with user-defined lengths, offering valuable insight into price trends and potential entry or exit points. Key Features: Multiple Timeframe Support: The script allows you to view EMAs from different timeframes simultaneously. This is especially useful for traders who follow trends across different timeframes to make more informed decisions. Customizable Lengths: For each timeframe, the lengths of the EMAs are fully customizable. You can adjust the length of up to four EMAs per timeframe to suit your strategy. EMA Calculation: The Exponential Moving Average (EMA) is used, which gives more weight to recent prices and reacts faster to price changes compared to the simple moving average (SMA). Timeframe Flexibility: The indicator supports the following timeframes: 15-minute: Ideal for short-term traders and scalpers. 30-minute: For intraday trading with a slightly longer perspective. 1-hour: Suitable for swing traders and those who prefer a more medium-term view. Daily: Great for longer-term trend-following strategies. Interactive and User-Friendly: You can toggle the visibility of each EMA on each timeframe, allowing you to choose exactly which EMAs you wish to display, depending on your trading strategy. Color-Coded for Clarity: The script uses distinct colors for each EMA on the chart: Blue: EMA1 Green: EMA2 Red: EMA3 Purple: EMA4 Line Width Customization: Each plotted EMA line has a customizable width for better visual clarity. Use Case: Traders who use multiple timeframes for analysis (e.g., those using the "multi-timeframe analysis" technique) will find this script particularly useful. For example, a trader may look at the 15-minute chart to catch short-term movements, the 30-minute chart for intraday trends, the 1-hour chart for swing positions, and the Daily chart for identifying the overarching market trend. The script enables them to view the EMAs for all these timeframes in one glance without having to manually switch between them. By observing the relationships between EMAs across multiple timeframes, traders can gain valuable insights into market conditions such as: Crossovers: When a shorter-term EMA crosses above or below a longer-term EMA, it can signal a potential trend reversal or continuation. Trend Strength: Multiple EMAs in alignment across different timeframes can indicate strong trend strength. Support and Resistance: EMAs can act as dynamic support and resistance levels, guiding traders on price action levels to watch for potential price reversals. Instructions: Enable/Disable EMAs: Toggle on or off the EMAs for each timeframe (15-min, 30-min, 1-hour, Daily) using the script’s settings. Adjust EMA Lengths: Change the default lengths for each EMA to match your preferred settings for different timeframes. Monitor Key Levels: Watch how price interacts with the plotted EMAs to spot potential trading signals based on your strategy. This indicator is designed to enhance your multi-timeframe analysis and help make more informed, data-driven trading decisions.Penunjuk Pine Script®oleh Vishy541
Previous Day and Current Day High/LowKey Features: Previous Day High and Low Lines: Displays the high (PDH) and low (PDL) levels of the previous trading day. Allows customization of line colors, styles (solid, dashed, or dotted), and widths. Extends these lines by a specified number of candles into the current day for better visualization. Current Day High and Low Lines: Displays the high (CDH) and low (CDL) levels during the current day's regular trading hours. Customizable line attributes, including color, style, width, and extension length. Customizable Input Options: User-configurable settings for both the previous and current day high/low lines, grouped under respective sections for clarity. Regular trading hours can be defined manually (default is 9:30 AM to 4:00 PM). Ability to toggle the visibility of the lines for both the previous and current days. Automatic Reset at the Start of a New Day: Captures the high and low values of the completed day and resets for the new day. Deletes old lines and labels to ensure clarity and avoid overlap. Dynamic Updates: Updates the current day's high and low lines and labels as new data comes in. Adjusts previous day lines dynamically based on the user-defined number of candles to extend. Session-Based Filtering: Ensures the calculations and updates are restricted to the defined regular trading hours. Code Logic: Input Groups: The script uses grouped inputs to allow users to configure settings for previous and current day levels separately. Line and Label Management: It creates and deletes lines and labels dynamically to prevent clutter and keep the chart organized. Session Check: Uses the session input to determine if a bar falls within regular trading hours. High/Low Calculation: Tracks the high and low for both the previous and current days during regular trading hours. New Day Detection: Identifies the start of a new trading day to update previous day values and reset current day variables. Applications: Intraday Trading: Helps traders identify critical support and resistance levels from the previous and current days. Trend Analysis: Provides visual cues for price movement trends across consecutive days. Custom Visualization: With extensive customization options, traders can adapt the indicator to suit their trading style and chart aesthetics. This script is highly configurable, making it versatile for a wide range of trading strategies and styles.Penunjuk Pine Script®oleh avithekkcTelah dikemas kini 3232 1 K
Dual Timeframe Williams Percent RangeThis is a dual timeframe Williams Percent Range indicator. Function: The idea behind this indicator is for trader to see what the Williams %r is doing on higher timeframes without the need to change the chart. I added the "Smoothing" function to take the jagged lines out of the higher timeframe. It has a better flow this way. If we choose the 4H and the Daily timeframes for example. In this bullish situation I wait for the Daily WPR to cross above the -50 mid line. Then the faster 4H WPR will eventually hit the bottom and begin to rise again back into the trend. This is the "Reset" of the 4H WPR and when the 4H WPR crosses up above the -50 mid line again it means price should begin to rise on the chart. I added the option to change the colour when the signal lines cross the -50. It is good to use a fast time frame so you can see the WPR hitting the bottom in an uptrend, but not too fast. The Heiken Ashi candle sticks are a very good addition to this system. You can also use a colour changing 200 EMA if you run the "1H/Daily" in the WPR. Or the 50 EMA if you run the Daily 4H. This system could be used on lower timeframes too but I have not tested it there. The Dual WPR indicator, the colour changing 50 EMA and Heiken Ashi have been optimised for the 4H/Daily. If you want to set alerts the the faster WPR line crossing the -50 is good, on candle close. This way you will only need one alert per chart. If you get an alert on the EURUSD 4H that the 4H WPR has crossed up then look to see what what the Daily WPR is doing. If it is also above the -50 mid line then EURUSD is probably trending up. Thank you to TradingView for supplying the Williams %r template. I hope this helps some other traders out there. I combined the Supertrend and the Coloured EMA in the main screen into one indicator. This is my first indicator published :-) Have fun out there and good luck. Eddie T.Penunjuk Pine Script®oleh CryptoManiacICO55463