RSI + MFIRSI and MFI combined, width gradient fields if OS or OB, shows divergences separate for wicks and bodies, shows dots when mfi and rsi oversold at the same time. Pine Scriptยฎ indicatorby wilinskilukasz69
RSI + Elder Bull-Bear pressure RSI + Bull/Bear (Elder-Ray enhanced RSI) What it is An extended RSI that overlays Elder-Ray Bull/Bear Power on the same, zero-centered scale. You get classic RSI regime cues plus a live read of buy/sell pressure, with optional smoothing, bands, and right-edge value labels. Key features RSI with bands โ default bands 30 / 50 / 70 (editable). Bull/Bear Power (Elder) โ ATR-normalized; optional EMA/SMA/RMA/HMA smoothing. One-pane overlay โ RSI and Bull/Bear share a common midline (RSI-50 โ panel 0). Right-edge labels โ always visible at the chartโs right margin with adjustable offsets. How to read it Cyan line = RSI (normalized) Above the mid band = bullish regime; below = bearish regime. Green = Bull Power, Red = Bear Power Columns/lines above 0 show buy pressure; below 0 show sell pressure. Smoothing reduces noise; zero-line remains your key reference. Trade logic (simple playbook) Entry BUY (primary): RSI crosses up through 50 (regime turns bullish), and Bull (green) crosses up through 0 (buy pressure confirms). SELL (primary): RSI crosses down through 50, and Bear (red) crosses down through 0 (sell pressure confirms). Alternative momentum entries Aggressive BUY: Bull (green) pushes above RSI-80 band (strong upside impulse). Aggressive SELL: Bear (red) pushes below RSI-30 band (strong downside impulse). Exits / trade management In a long: consider exiting or tightening stops if Bear (red) dips below the 0 line (rising sell pressure) or RSI loses 50. In a short: consider exiting or tightening if Bull (green) rises above 0 or RSI reclaims 50. Tip: โ0โ on the panel is your pressure zero-line (maps to RSI-50). Most whipsaws happen near this line; smoothing (e.g., EMA 21) helps. Defaults (on first load) RSI bands: 30 / 50 / 70 with subtle fills. Labels: tiny, pushed far right (large offsets). Bull/Bear smoothing: EMA(21), smoothed line plot mode. RSI plotted normalized so it overlaps the pressure lines cleanly. Tighten or loosen the Bull/Bear thresholds (e.g., Bull โฅ +0.5 ATR, Bear โค โ0.5 ATR) to demand stronger confirmation. Settings that matter Smoothing length/type โ balances responsiveness vs. noise. Power/RSI Gain โ visual scaling only (doesnโt change logic). Band placement โ keep raw 30/50/80 or switch to โdistance from 50โ if you prefer symmetric spacing. Label offsets โ move values clear of the last bar/scale clutter. Good practices Combine with structure/ATR stops (e.g., 1โ1.5ร ATR, swing high/low). In trends, hold while RSI stays above/below 50 and the opposite pressure line doesnโt dominate. In ranges, favor signals occurring near the mid band and take profits at the opposite band. Disclaimer: This is a research/visual tool, not financial advice at any kind. Test your rules on multiple markets/timeframes and size positions responsibly.Pine Scriptยฎ indicatorby PDK197735
Dynamic Fractal Flow [Alpha Extract]An advanced momentum oscillator that combines fractal market structure analysis with adaptive volatility weighting and multi-derivative calculus to identify high-probability trend reversals and continuation patterns. Utilizing sophisticated noise filtering through choppiness indexing and efficiency ratio analysis, this indicator delivers entries that adapt to changing market regimes while reducing false signals during consolidation via multi-layer confirmation centered on acceleration analysis, statistical band context, and dynamic omega weightingโwithout any divergence detection. ๐ถ Fractal-Based Market Structure Detection Employs Williams Fractal methodology to identify pivotal market highs and lows, calculating normalized price position within the established fractal range to generate oscillator signals based on structural positioning. The system tracks fractal points dynamically and computes relative positioning with ATR fallback protection, ensuring continuous signal generation even during extended trending periods without fractal formation. ๐ถ Dynamic Omega Weighting System Implements an adaptive weighting algorithm that adjusts signal emphasis based on real-time volatility conditions and volume strength, calculating dynamic omega coefficients ranging from 0.3 to 0.9. The system applies heavier weighting to recent price action during high-conviction moves while reducing sensitivity during low-volume environments, mitigating lag inherent in fixed-period calculations through volatility normalization and volume-strength integration. ๐ถ Cascading Robustness Filtering Features up to five stages of progressive EMA smoothing with user-adjustable robustness steps, each layer systematically filtering microstructure noise while preserving essential trend information. Smoothing periods scale with the chosen fractal length and robustness steps using a fixed smoothing multiplier for consistent, predictable behavior. ๐ถ Adaptive Noise Suppression Engine Integrates dual-component noise filtering combining Choppiness Index calculation with Kaufmanโs Efficiency Ratio to detect ranging versus trending market conditions. The system applies dynamic damping that maintains full signal strength during trending environments while suppressing signals during choppy consolidation, aligning output with the prevailing regime. ๐ถ Acceleration and Jerk Analysis Framework Calculates second-derivative acceleration and third-derivative jerk to identify explosive momentum shifts before they fully materialize on traditional indicators. Detects bullish acceleration when both acceleration and jerk turn positive in negative oscillator territory, and bearish acceleration when both turn negative in positive territory, providing early entry signals for high-velocity trend initiation phases. ๐ถ Multi-Layer Signal Generation Architecture Combines three primary signal types with hierarchical validation: acceleration signals, band crossover entries, and threshold momentum signals. Each signal category includes momentum confirmation, trend-state validation, and statistical band context; signals are further conditioned by band squeeze detection to avoid low-probability entries during compression phases. Divergence is intentionally excluded for a purely structure- and momentum-driven approach. ๐ถ Dynamic Statistical Band System Utilizes Bollinger-style standard deviation bands with configurable multiplier and length to create adaptive threshold zones that expand during volatile periods and contract during consolidation. Includes band squeeze detection to identify compression phases that typically precede expansion, with signal suppression during squeezes to prevent premature entries. ๐ถ Gradient Color Visualization System Features color gradient mapping that dynamically adjusts line intensity based on signal strength, transitioning from neutral gray to progressively intense bullish or bearish colors as conviction increases. Includes gradient fills between the signal line and zero with transparency scaling based on oscillator intensity for immediate visual confirmation of trend strength and directional bias. All analysis provided by Alpha Extract is for educational and informational purposes only. The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations.Pine Scriptยฎ indicatorby AlphaExtract11118
Composite Buy/Sell Score [-100 to +100] by LMComposite Buy/Sell Score (Stabilized + Sensitivity) by LM Description: This indicator calculates a composite trend strength score ranging from -100 to +100 by combining multiple popular technical indicators into a single, smoothed metric. It is designed to give traders a clear view of bullish and bearish trends, while filtering out short-term noise. The score incorporates signals from: PPO (Percentage Price Oscillator) โ measures momentum via the difference between fast and slow EMAs. ADX (Average Directional Index) โ detects trend strength. RSI (Relative Strength Index) โ identifies short-term momentum swings. Stochastic RSI โ measures RSI momentum and speed of change. MACD (Moving Average Convergence Divergence) โ detects momentum shifts using EMA crossovers. Williams %R โ highlights overbought/oversold conditions. Each component is weighted, smoothed, and optionally confirmed across a configurable number of bars, producing a stabilized composite score that reacts more reliably to significant trend changes. Key Features: Smoothed Composite Score The final score is smoothed using an EMA to reduce volatility and emphasize meaningful trends. A Sensitivity Multiplier allows traders to exaggerate the score for stronger trend signals or dampen it for quieter markets. Customizable Inputs You can adjust each indicatorโs parameters, smoothing lengths, and confirm bars to suit your preferred timeframe and trading style. The sensitivity multiplier allows fine-tuning the responsiveness of the trend line without changing underlying indicator calculations. Visual Representation Score Line: Green for positive (bullish) trends, red for negative (bearish) trends, gray near neutral. Reference Lines: 0 = neutral +100 = maximum bullish -100 = maximum bearish Adaptive Background: Optionally highlights the background intensity proportional to trend strength. Strong green for bullish trends, strong red for bearish trends. Multi-Indicator Integration Combines momentum, trend, and overbought/oversold signals into a single metric. Helps identify clear entry/exit trends while avoiding whipsaw noise common in individual indicators. Recommended Use: Trend Identification: Look for sustained movement above 0 for bullish trends and below 0 for bearish trends. Exaggerated Trends: Use the Sensitivity Multiplier to emphasize strong trends. Filtering Noise: The smoothed score and confirmBars settings help reduce false signals from minor price fluctuations. Inputs Overview: Input Purpose PPO Fast EMA / Slow EMA / Signal Controls PPO momentum sensitivity ADX Length / Threshold Detects trend strength RSI Length / Overbought / Oversold Measures short-term momentum Stoch RSI Length / %K / %D Measures speed of RSI changes MACD Fast / Slow / Signal Measures momentum crossover Williams %R Length Detects overbought/oversold conditions Final Score Smoothing Length EMA smoothing for final composite score Confirm Bars for Each Signal Number of bars used to confirm individual indicator signals Sensitivity Multiplier Scales the final composite score for exaggerated trend response Highlight Background by Trend Strength Enables adaptive background coloring This indicator is suitable for traders looking for a single, clear trend metric derived from multiple indicators. It can be applied to any timeframe and can help identify both strong and emerging trends in the market.Pine Scriptยฎ indicatorby LouisMontUpdated 33
RSI Trendline Pro - Multi Confirmation Overview RSI Trendline Pro is an advanced Pine Script indicator that automatically draws trendlines on the RSI (Relative Strength Index) to detect support and resistance breakouts. It generates high-quality trading signals through a multi-confirmation system.โ Key Features Auto Trendlines: Detects pivot points on RSI to create intelligent support and resistance linesโ Multi-Confirmation System: Combines Volume, Stochastic RSI, ADX, and Divergence filters to reduce false signalsโ RSI Divergence Detection: Automatically identifies bullish/bearish divergences between price and RSIโ Live Dashboard: Displays RSI value, active trendlines, ADX strength, and last signal info on a visual panelโ Smart Breakout Detection: Identifies trendline breaks and generates LONG/SHORT signalsโ How to Use Add to TradingView: Paste code into Pine Editor and add to chart Configure Parameters: RSI Length: RSI period (default: 14)โ Pivot Strength: Trendline sensitivity (lower = more lines)โ Filters: Enable/disable Volume, Divergence, Stoch RSI, and ADX confirmationsโ Follow Signals: LONG (Green): When RSI breaks resistance upwardโ SHORT (Red): When RSI breaks support downwardโ Divergence: "D" markers indicate potential trend reversalsโ Alert Setup Script offers 4 alert types:โ LONG Breakout: Resistance break SHORT Breakout: Support break Bullish/Bearish Divergence: Divergence detection Any Signal: Combined alert for all signals Best Practices Prioritize high-volume breakouts (Volume Filter enabled)โ Trends are stronger when ADX > 25โ Confirm divergence signals with price actionโ Trade when 2-3 confirmations alignPine Scriptยฎ indicatorby last_satoshi27
Cora Combined Suite v1 [JopAlgo]Cora Combined Suite v1 (CCSV1) This is an 2 in 1 indicator (Overlay & Oscillator) the Cora Combined Suite v1 . CCSV1 combines a price-pane Overlay for structure/trend with a compact Oscillator for timing/pressure. Itโs designed to be clear, beginner-friendly, and largely automatic: you pick a profile (Scalp / Intraday / Swing), choose whether to run as Overlay or Oscillator, and CCSV1 tunes itself in the background. Whatโs inside โ at a glance 1) Overlay (price pane) CoRa Wave: a smooth trend line based on a compound-ratio WMA (CRWMA). Green when the slope rises (bull bias), Red when it falls (bear bias). Asymmetric ATR Cloud around the CoRa Wave Width expands more up when buyer pressure dominates and more down when seller pressure dominates. Fill is intentionally light, so candlesticks remain readable. Chop Guard (Range-Lock Gate) When the cloud stays very narrow versus ATR (classic โdead waterโ), pullback alerts are muted to avoid noise. Visuals donโt changeโonly the alerting logic goes quiet. Typical Overlay reads Trend: Follow the CoRa color; green favors long setups, red favors shorts. Value: Pullbacks into/through the cloud in trend direction are higher-quality than chasing breaks far outside it. Dominance: A visibly asymmetric cloud hints which side is funding the move (buyers vs sellers). 2) Oscillator (subpane or inline preview) Stretch-Z (columns): how far price is from the CoRa mean (mean-reversion context), clipped to ยฑclip. Near 0 = equilibrium; > +2 / < โ2 = stretched/extended. Slope-Z (line): z-score of CoRaโs slope (momentum of the trend line). Crossing 0 upward = potential bullish impulse; downward = potential bearish impulse. VPO (stepline): a normalized Volume-Pressure read (positive = buyers funding, negative = sellers). Rendered as a clean stepline to emphasize state changes. Event Bands ยฑ2 (subpane): thin reference lines to spot extension/exhaustion zones fast. Floor/Ceiling lines (optional): quiet boundaries so the panel doesnโt feel โbottomless.โ Inline vs Subpane Inline (overlay): the oscillator auto-anchors and scales beneath price, so it never crushes the price scale. Subpane (raw): move to a new pane for the classic ยฑclip view (with ยฑ2 bands). Recommended for systematic use. Why traders like it Two in one: Structure on the chart, timing in the panelโbuilt to complement each other. Retail-first automation: Choose Scalp / Intraday / Swing and let CCSV1 auto-tune lengths, clips, and pressure windows. Robust statistics: On fast, spiky markets/timeframes, it prefers outlier-resistant math automatically for steadier signals. Optional HTF gate: You can require higher-timeframe agreement for oscillator alerts without changing visuals. Quick start (simple playbook) Run As Overlay for structure: assess trend direction, where value is (the cloud), and whether chop guard is active. Oscillator for timing: move to a subpane to see Stretch-Z, Slope-Z, VPO, and ยฑ2 bands clearly. Profile Scalp (1โ5m), Intraday (15โ60m), or Swing (4Hโ1D). CCSV1 adjusts length/clip/pressure windows accordingly. Overlay entries Trade with CoRa color. Prefer pullbacks into/through the cloud (trend direction). If chop guard is active, wait; let the market โbreatheโ before engaging. Oscillator timing Look for Funded Flips: Slope-Z crossing 0 in the direction of VPO (i.e., momentum + funded pressure). Use ยฑ2 bands to manage risk: stretched conditions can stall or revertโbetter to scale or wait for a clean reset. Optional HTF gate Enable to green-light only those oscillator alerts that align with your chosen higher timeframe. What each signal means (plain language) CoRa turns green/red (Overlay): trend bias shift on your chart. Cloud width tilts asymmetrically: one side (buyers/sellers) is dominating; extensions on that side are more likely. Stretch-Z near 0: fair value around CoRa; pullback timing zone. Stretch-Z > +2 / < โ2: extended; watch for slowing momentum or scale decisions. Slope-Z cross up/down: new impulse starting; combine with VPO sign to avoid unfunded crosses. VPO positive/negative: net buying/selling pressure funding the move. Alerts included Overlay Pullback Long OK Pullback Short OK Oscillator Funded Flip Up / Funded Flip Down (Slope-Z crosses 0 with VPO agreement) Pullback Long Ready / Pullback Short Ready (near equilibrium with aligned momentum and pressure) Exhaustion Risk (Long/Short) (Stretch-Z beyond ยฑ2 with weakening momentum or pressure) Tip: Keep chart alerts concise and use strategy rules (TP/SL/filters) in your trade plan. Best practices One glance workflow Read Overlay for direction + value. Use Oscillator for trigger + confirmation. Pairing Combine with S/R or your preferred execution framework (e.g., your JopAlgo setups). The suite is neutral: it wonโt force trades; it highlights context and quality. Markets Works on crypto, indices, FX, and commodities. Where real volume is available, VPO is strongest; on synthetic volume, treat VPO as a soft filter. Timeframes Use the Profile preset closest to your style; feel free to fine-tune later. For multi-TF trading, enable the HTF gate on the oscillator alerts only. Inputs youโll actually use (the rest can stay on Auto) Run As: Overlay or Oscillator. Profile: Scalp / Intraday / Swing. Oscillator Render: โSubpane (raw)โ for a classic panel; โInline (overlay)โ only for a quick preview. HTF gate (optional): require higher-timeframe Slope-Z agreement for oscillator alerts. Everything else ships with sensible defaults and auto-logic. Limitations & tips Not a strategy: CCSV1 is a decision support tool; you still need your entry/exit rules and risk management. Non-repainting design: Signals finalize on bar close; intrabar graphics can adjust during the bar (Pine standard). Very flat sessions: If price and volume are extremely quiet, expect fewer alerts; that restraint is intentional. Who is this for? Beginners who want one clean overlay for structure and one simple oscillator for timingโwithout wrestling settings. Intermediates seeking a coherent trend/pressure framework with HTF confirmation. Advanced users who appreciate robust stats and clean engineering behind the visuals. Disclaimer: Educational purposes only. Not financial advice. Trading involves risk. Use at your own discretion.Pine Scriptยฎ indicatorby JopAlgo14
Automated Z-scoring - [JTCAPITAL]Automated Z-Scoring - is a modified way to use statistical normalization through Z-Scores for analyzing price deviations, volatility extremes, and mean reversion opportunities in financial markets. The indicator works by calculating in the following steps: Source Selection The indicator begins by selecting a user-defined price source (default is the Close price). Traders can modify this to use any indicator that is deployed on the chart, for accurate and fast Z-scoring. Mean Calculation A Simple Moving Average (SMA) is calculated over the selected length period (default 3000). This represents the long-term equilibrium price level or the โstatistical meanโ of the dataset. It provides the baseline around which all price deviations are measured. Standard Deviation Measurement The script computes the Standard Deviation of the price series over the same period. This value quantifies how far current prices tend to stray from the mean โ effectively measuring market volatility. The larger the standard deviation, the more volatile the market environment. Z-Score Normalization The Z-Score is calculated as: (Current Price โ Mean) รท Standard Deviation . This normalization expresses how many standard deviations the current price is away from its long-term average. A Z-Score above 0 means the price is above average, while a negative score indicates it is below average. Visual Representation The Z-Score is plotted dynamically, with color-coding for clarity: Bullish readings (Z > 0) are showing positive deviation from the mean. Bearish readings (Z < 0) are showing negative deviation from the mean. Make sure to select the correct source for what you exactly want to Z-score. Buy and Sell Conditions: While the indicator itself is designed as a statistical framework rather than a direct buy/sell signal generator, traders can derive actionable strategies from its behavior: Trend Following: When the Z-Score crosses above zero after a prolonged negative period, it suggests a return to or above the mean โ a possible bullish reversal or trend continuation signal. Mean Reversion: When the Z-score is below for example -1.5 it indicates a good time for a DCA buying opportunity. Trend Following: When the Z-Score crosses below zero after being positive, it may indicate a momentum slowdown or bearish shift. Mean Reversion: When the Z-score is above for example 1.5 it indicates a good time for a DCA sell opportunity Features and Parameters: Length โ Defines the period for both SMA and Standard Deviation. A longer length smooths the Z-Score and captures broader market context, while a shorter length increases responsiveness. Source โ Allows the user to choose which price data is analyzed (Close, Open, High, Low, etc.). Fill Visualization โ Highlights the magnitude of deviation between the Z-Score and the zero baseline, enhancing readability of volatility extremes. Specifications: Mean (Simple Moving Average) The SMA calculates the average of the selected source over the defined length. It provides a central value to which the price tends to revert. In this indicator, the mean acts as the equilibrium point โ the โzeroโ reference for all deviations. Standard Deviation Standard Deviation measures the dispersion of data points from their mean. In trading, it quantifies volatility. A high standard deviation indicates that prices are spread out (volatile), while a low value means they are clustered near the average (stable). The indicator uses this to scale deviations consistently across different market conditions. Z-Score The Z-Score converts raw price data into a standardized value measured in units of standard deviation. A Z-Score of 0 = Price equals its mean. A Z-Score of +1 = Price is one standard deviation above the mean. A Z-Score of โ1 = Price is one standard deviation below the mean. This allows comparison of deviation magnitudes across instruments or timeframes, independent of price level. Length Parameter A long lookback period (e.g., 3000 bars) smooths temporary volatility and reveals long-term mean deviations โ ideal for macro trend identification. Shorter lengths (e.g., 100โ500) capture quicker oscillations and are useful for short-term mean reversion trades. Statistical Interpretation From a probabilistic perspective, if the distribution of prices is roughly normal: About 68% of price observations lie within ยฑ1 standard deviation (Z between โ1 and +1). About 95% lie within ยฑ2 standard deviations. Therefore, when the Z-Score moves beyond ยฑ2, it statistically represents a rare event โ often corresponding to price extremes or potential reversal zones. Practical Benefit of Z-Scoring in Trading Z-Scoring transforms raw price into a normalized volatility-adjusted metric. This allows traders to: Compare instruments on a common statistical scale. Identify mean-reversion setups more objectively. Spot volatility expansions or contractions early. Detect when price action significantly diverges from long-term equilibrium. By automating this process, Automated Z-Scoring - provides traders with a powerful analytical lens to measure how โstretchedโ the market truly is โ turning abstract statistics into a visually intuitive and actionable form. Enjoy!Pine Scriptยฎ indicatorby JTCapitalNL66260
Buying/Selling PressureBuying/Selling Pressure - Volume-Based Market Sentiment Buying/Selling Pressure identifies market dominance by separating volume into buying and selling components. The indicator uses Volume ATR normalization to create a universal pressure oscillator that works consistently across all markets and timeframes. What is Buying/Selling Pressure? This indicator answers a fundamental question: Are buyers or sellers in control? By analyzing how volume distributes within each bar, it calculates cumulative buying and selling pressure, then normalizes the result using Volume ATR for cross-market comparability. Formula: ร 100 Where Delta = Buying Volume - Selling Volume Calculation Methods Money Flow (Recommended): Volume weighted by close position in bar range. Close near high = buying pressure, close near low = selling pressure. Formula: / (high - low) Simple Delta: Basic approach where bullish bars = 100% buying, bearish bars = 100% selling. Weighted Delta: Volume weighted by body size relative to total range, focusing on candle strength. Key Features Volume ATR Normalization: Adapts to volume volatility for consistent readings across assets Cumulative Delta: Tracks net buying/selling pressure over time (similar to OBV) Signal Line: EMA smoothing for trend identification and crossover signals Zero Line: Clear visual separation between buyer and seller dominance Color-Coded Display: Green area = buyers control, red area = sellers control Interpretation Above Zero: Buyers dominating - cumulative buying pressure exceeds selling Below Zero: Sellers dominating - cumulative selling pressure exceeds buying Cross Signal Line: Momentum shift - pressure trend changing direction Increasing Magnitude: Strengthening pressure in current direction Decreasing Magnitude: Weakening pressure, potential reversal Volume vs Pressure High volume with low pressure indicates balanced battle between buyers and sellers. High pressure with high volume confirms strong directional conviction. This separation provides insights beyond traditional volume analysis. Best Practices Use with price action for confirmation Divergences signal potential reversals (price makes new high/low but pressure doesn't) Large volume with near-zero pressure = indecision, breakout preparation Signal line crossovers provide momentum change signals Extreme readings suggest potential exhaustion Settings Calculation Method: Choose Money Flow, Simple Delta, or Weighted Delta EMA Length: Period for cumulative delta smoothing (default: 21) Signal Line: Optional EMA of oscillator for crossover signals (default: 9) Buying/Selling Pressure transforms volume analysis into actionable market sentiment, revealing whether buyers or sellers control price action beneath surface volatility. This indicator is designed for educational and analytical purposes. Past performance does not guarantee future results. Always conduct thorough research and consider consulting with financial professionals before making investment decisions. Pine Scriptยฎ indicatorby audrius_exe11132
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.Pine Scriptยฎ indicatorby DskyzInvestments88105
3 Lines RCI + Psy + ADX Title: 3 Lines RCI + Psy + ADX (Integrated) Description: An all-in-one indicator combining RCI (short, mid, long), Psychological Line (Psy), and ADX. RCI: Shows overbought/oversold zones and trend potential. Psy: Measures market sentiment with adjustable thresholds. ADX: Indicates trend strength with color-coded levels. Use it to identify reversals, confirm trend strength, and improve entry/exit timing. Fully customizable for different trading styles.Pine Scriptยฎ indicatorby masato1981012224
RSI vs Normalized PriceThis indicator Measures the spread between RSI and price. Pine Scriptยฎ indicatorby electricalTruf128672
OBV with Divergence (SMA Smoother)Title: OBV Divergence with SMA Smoothing Description: This indicator is a powerful tool designed to identify regular (reversal) and hidden (continuation) On-Balance Volume (OBV) divergences against price action. It uses a modified OBV calculation (an OBV Oscillator) and integrates pivot analysis to automatically highlight potential turning points or trend continuations directly on your chart. Key Features Advanced Divergence Detection: Automatically detects and labels four types of divergences: Regular Bullish/Bearish: Signals potential trend reversals. Regular Bullish: Price makes a Lower Low (LL) but the OBV Oscillator makes a Higher Low (HL). Regular Bearish: Price makes a Higher High (HH) but the OBV Oscillator makes a Lower High (LH). Hidden Bullish/Bearish: Signals potential trend continuations. Hidden Bullish: Price makes a Higher Low (HL) but the OBV Oscillator makes a Lower Low (LL). Hidden Bearish: Price makes a Lower High (LH) but the OBV Oscillator makes a Higher High (HH). OBV Oscillator: Instead of plotting the raw OBV, this script uses the difference between the OBV and its Exponential Moving Average (EMA). This technique centers the indicator around zero, making it easier to visualize volume momentum shifts and clearly identify peaks and troughs for divergence analysis. Optional SMA Smoothing Line (New Feature): An added Simple Moving Average (SMA) line can be toggled on to further smooth the OBV Oscillator. Traders can use this line for crossover signals or to confirm the underlying trend of the volume momentum, reducing whipsaws. Customizable Lookback: The indicator allows you to define the lookback periods (Pivot Lookback Left/Right) for price and oscillator pivots, giving you precise control over sensitivity. The Max/Min of Lookback Range helps filter out divergences that are too close or too far apart.Pine Scriptยฎ indicatorby ancorman1130
๐ฅ QUANT MOMENTUM SKORQUANT MOMENTUM SCORE โ Description (EN) Summary: This indicator fuses Price ROC, RSI, MACD, Trend Strength (ADX+EMA) and Volume into a single 0-100 โMomentum Score.โ Guide bands (50/60/70/80) and ready-to-use alert conditions are included. How it works Price Momentum (ROC): Rate of change normalized to 0-100. RSI Momentum: RSI treated as a momentum proxy and mapped to 0-100. MACD Momentum: MACD histogram normalized to capture acceleration. Trend Strength: ADX is direction-aware (DI+ vs DIโ) and blended with EMA state (above/below) to form a combined trend score. Volume Momentum: Volume relative to its moving average (ratio-based). Weighting: All five components are weighted, auto-normalized, and summed into the final 0-100 score. Visuals & Alerts: Score line with 50/60/70/80 guides; threshold-cross alerts for High/Strong/Ultra-Strong regimes. Inputs, weights and thresholds are configurable; total weights are normalized automatically. How to use Timeframes: Works on any timeframeโlower TFs react faster; higher TFs reduce noise. Reading the score: <50: Weak momentum 50-60: Transition 60-70: Moderate-Strong (potential acceleration) โฅ70: Strong, โฅ80: Ultra Strong Practical tip: Use it as a filter, not a stand-alone signal. Combine score breakouts with market structure/trend context (e.g., pullback-then-re-acceleration) to improve selectivity. Disclaimer: This is not financial advice; past performance does not guarantee future results.Pine Scriptยฎ indicatorby kashmehmet1127
CCI [Hash Adaptive]Adaptive CCI Pro: Professional Technical Analysis Indicator The Commodity Channel Index is a momentum oscillator developed by Donald Lambert in 1980. CCI measures the relationship between an asset's price and its statistical average, identifying cyclical turns and overbought/oversold conditions. The indicator oscillates around zero, with values above +100 indicating overbought conditions and values below -100 suggesting oversold conditions. Standard CCI Formula: (Typical Price - Moving Average) / (0.015 ร Mean Deviation) This indicator transforms the traditional CCI into a sophisticated visual analysis tool through several key enhancements: Implements dual exponential moving average smoothing to eliminate market noise Preserves signal integrity while reducing false signals Adaptive smoothing responds to market volatility conditions Dynamic Color Visualization System Continuous gradient transitions from red (bearish momentum) to green (bullish momentum) Real-time color intensity reflects momentum strength Eliminates discrete color jumps for fluid visual interpretation Adaptive Intelligence Features Dynamic overbought/oversold thresholds adapt to market conditions Reduces false signals during high volatility periods Maintains sensitivity during low volatility environments Momentum Vector Analysis Incorporates velocity calculations for early trend identification Crossover detection with momentum confirmation Advanced signal filtering reduces market noise Extreme Level Analysis Values above +100: Strong overbought conditions, potential reversal zones Values below -100: Strong oversold conditions, potential buying opportunities Zero-line crossovers: Momentum shift confirmation Optimization Parameters CCI Period (Default: 14) Shorter periods (10-12): Increased sensitivity, more signals Standard periods (14-20): Balanced responsiveness and reliability Longer periods (21-30): Reduced noise, stronger signal confirmation Smoothing Factor (Default: 5) Lower values (1-3): Maximum responsiveness, suitable for scalping Medium values (4-6): Balanced approach for swing trading Higher values (7-10): Institutional-grade smoothness for position trading Signal Sensitivity (Default: 6) Conservative (7-10): High-probability signals, reduced frequency Balanced (5-6): Optimal risk-reward ratio Aggressive (1-4): Maximum signal generation, requires additional confirmation Strategic Implementation Oversold reversals in red zones with momentum confirmation Zero-line breaks with sustained color transitions Extreme readings followed by momentum divergence Risk Management Use extreme levels (+100/-100) for position sizing decisions Monitor color intensity for momentum strength assessment Combine with price action analysis for comprehensive market view Market Context Application Trending markets: Focus on momentum direction and extreme readings Range-bound markets: Utilize overbought/oversold levels for mean reversion Volatile markets: Increase smoothing parameters and signal sensitivity Professional Advantages Instantaneous momentum assessment through color visualization Reduced cognitive load compared to traditional oscillators Professional presentation suitable for client reporting Adaptive Technology Self-adjusting parameters reduce manual optimization requirements Consistent performance across varying market conditions Advanced mathematics eliminate common CCI limitations The Adaptive CCI Pro represents the evolution of momentum analysis, combining Lambert's foundational CCI concept with modern computational techniques to deliver institutional-grade market intelligence through an intuitive visual interface.Pine Scriptยฎ indicatorby Hash_CapitalUpdated 90
NEURAL FLOW INDEX โ Core Energy โข Momentum Stream โข Pulse SyncNeural Flow Index (NFI) โ Advanced Triple-Layer Reversal Framework The Neural Flow Index (NFI) is a next-generation market oscillator designed to reveal the hidden synchronization between trend energy, cyclical momentum, and internal pulse dynamics. It merges three powerful analytical layers into a single, normalized view: Core Energy Curve (based on RSO logic) โ captures structural trend bias and volatility expansion. Momentum Stream (WaveTrend algorithm) โ visualizes cyclical motion of price waves. Pulse Sync (Stochastic RSI adaptation) โ measures short-term momentum rhythm and overextension. Each layer feeds into a unified flow model that adapts to both trend-following and reversal conditions. The goal is not to chase every fluctuation, but to sense where momentum, direction, and volatility converge into true inflection points. Conceptual Mechanics The oscillator translates complex market behavior into an elegant, multi-phase signal system: Core Energy Curve (RSO foundation): A smoothed dynamic field representing the overall strength and direction of market pressure. Green energy indicates expansion (bullish dominance); red energy reflects contraction (bearish decay). Momentum Stream (WaveTrend): The teal line functions like an electro-wave, oscillating through phases of expansion and exhaustion. It provides the heartbeat of the market โ smooth, rhythmic, and beautifully cyclic. Pulse Sync (Stochastic RSI): The purple line acts as the marketโs nervous pulse, reacting to micro-momentum changes before the larger trend adjusts. It identifies micro-tops and micro-bottoms that precede major trend shifts. When these three forces align, they create high-probability reversal zones known as Neural Nodes โ regions where energy, momentum, and rhythm converge. Trading Logic Potential Entry Zones: When the purple Pulse Sync line crosses the green Momentum Stream near the lower or upper bounds of the oscillator, a potential turning point forms. Yet, these crossovers are only validated when the Core Energy histogram (RSO) simultaneously supports the same direction โ confirming that energy and rhythm are synchronized. Histogram Confirmation: The histogram is the โvoiceโ of the oscillator. Rising green volume within the histogram during a Pulse-Momentum crossover suggests a legitimate upward reversal. Conversely, expanding red energy during an upper-band cross indicates momentum exhaustion and an early short-side opportunity. Neutral Zones: When all three layers flatten near the zero line, the market enters an equilibrium phase โ no clear trend dominance, ideal for patience and re-entry planning. | Layer | Representation | Color | Function | | --------------------- | ------------------- | ----------------- | ------------------------------ | | **Core Energy Curve** | Area / Histogram | Lime-Red gradient | Trend bias & volatility energy | | **Momentum Stream** | WaveTrend line | Teal | Cyclical flow of price | | **Pulse Sync** | Stochastic RSI line | Purple | Short-term momentum rhythm | Interpretation Summary Converging Waves: Trend, momentum, and pulse move together โ strong continuation. Diverging Waves: Pulse or Momentum decouple from Core Energy โ early reversal warnings. Histogram Expansion: Confirms direction and strength of the new wave. Crossovers at Extremes: Potential entries, especially when confirmed by energy alignment. ๐ชถ Philosophy Behind NFI The Neural Flow Index is not just a technical indicator โ itโs a behavioral visualization system. Instead of focusing on lagging confirmations, it captures the neural pattern of price motion: how liquidity flows, contracts, and expands through time. It bridges the gap between pure mathematics and market intuition โ giving traders a cinematic, harmonic view of energy transition inside price structure. Pine Scriptยฎ indicatorby ozgurzari75
Fib OscillatorWhat is Fib Oscillator and How to Use it? ๐ถ 1. Conceptual Overview The Fib Oscillator is a Fibonacci-based relative position oscillator. Instead of measuring momentum (like RSI or MACD), it measures where price currently sits between the recent swing high and swing low, expressed as a percentage within the Fibonacci range. In other words: It answers: โWhere is price right now within its most recent dynamic range?โ It visualizes retracement and extension zones numerically, providing continuous feedback between 0% and 100% (and beyond if extended). ๐ถ 2. What the Script Does The indicator: Automatically detects recent high and low levels using an adaptive lookback window, which depends on ATR volatility. Calculates the current priceโs position between those levels as a percentage (0โ100). Plots that percentage as an oscillator โ showing visually whether price is near the top, middle, or bottom of its recent range. Overlays Fibonacci retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) as reference zones. Generates alerts when the oscillator crosses key Fib thresholds โ which can signal retracement completion, breakout potential, or pullback exhaustion. ๐ถ 3. Technical Flow Breakdown (a) Inputs Input Description Default Notes atrLength ATR period used for volatility estimation 14 Used to dynamically tune lookback sensitivity minLookback Minimum lookback window (candles) 20 Ensures stability even in low volatility maxLookback Maximum lookback window 100 Limits over-expansion during high volatility isInverse Inverts chart orientation false Useful for inverse markets (e.g. shorts or inverse BTC view) (b) Volatility-Adaptive Lookback Instead of using a fixed lookback, it calculates: lookback = SMA(ATR,10) / SMA(Close,10) ร 500 lookback=SMA(ATR,10)/SMA(Close,10)ร500 Then it clamps this between minLookback and maxLookback. This makes the oscillator: More reactive during high volatility (shorter lookback) More stable during calm markets (longer lookback) Essentially, it self-adjusts to market rhythm โ you donโt have to constantly tweak lookback manually. (c) High-Low Reference Points It takes the highest and lowest points within the dynamic lookback window. If isInverse = true, it flips the candle logic (useful if viewing inverse instruments like stablecoin pairs or when analyzing bearish setups invertedly). (d) Oscillator Core The main oscillator line: osc = ( close โ low ) ( high โ low ) ร 100 osc= (highโlow) (closeโlow) โ ร100 0% = Price is at the lookback low. 100% = Price is at the lookback high. 50% = Midpoint (balanced). Between Fibonacci percentages (23.6%, 38.2%, 61.8%, etc.), the oscillator indicates retracement stages. (e) Fibonacci Levels as Reference It overlays horizontal reference lines at: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100% These act as support/resistance bands in oscillator space. You can read it similar to how traders use Fibonacci retracements on charts, but compressed into a single line oscillator. (f) Alerts The script includes built-in alert conditions for crossovers at each major Fibonacci level. You can set TradingView alerts such as: โOscillator crossed above 61.8%โ โ possible bullish continuation or breakout. โOscillator crossed below 38.2%โ โ possible pullback or correction starting. This allows automated monitoring of fib retracement completions without manually drawing fib levels. ๐ถ 4. How to Use It ๐ธ Visual Interpretation Oscillator Value Zone Market Context 0โ23.6% Deep Retracement Potential exhaustion of a down-move / early reversal 23.6โ38.2% Shallow retracement zone Possible continuation phase 38.2โ50% Mid retracement Neutral or indecisive structure 50โ61.8% Key pivot region Common trend resumption zone 61.8โ78.6% Late retracement Often โlast pullbackโ area 78.6โ100% Near high range Possible overextension / profit-taking >100% Range breakout New leg formation / expansion ๐ธ Practical Application Steps Load the indicator on your chart (set overlay = false, so itโs below the main price chart). Observe oscillator position relative to fib bands: Use it to determine retracement depth. Combine with structure tools: Trend lines, swing points, or HTF market structure. Use crossovers for timing: Crossing above 61.8% in an uptrend often confirms breakout continuation. Crossing below 38.2% in a downtrend signals renewed downside momentum. For range markets, oscillator swings between 23.6% and 78.6% can define accumulation/distribution boundaries. ๐ถ 5. When to Use It During Retracements: To gauge how deep the pullback has gone. During Range Markets: To identify relative overbought/oversold positions. Before Breakouts: Crossovers of 61.8% or 78.6% often precede impulsive moves. In Multi-Timeframe Contexts: LTF (15Mโ1H): Detect intraday retracement exhaustion. HTF (4Hโ1D): Confirm major range expansions or key reversal zones. ๐ถ 6. Ideal Companion Indicators The Fib Oscillator works best when contextualized with structure, volatility, and trend bias indicators. Below are optimal pairings: Companion Indicator Purpose Integration Insight Market Structure MTF Tool Identify active trend direction Use Fib Oscillator only in trend direction for cleaner signals EMA Ribbon / Supertrend Trend confirmation Align oscillator crossovers with EMA bias ATR Bands / Volatility Envelope Validate breakout strength If oscillator >78.6% & ATR rising โ valid breakout Volume Oscillator Confirm retracement strength Volume contraction + oscillator under 38.2% โ potential reversal HTF Fib Retracement Tool Combine LTF oscillator with HTF fib confluence Powerful multi-timeframe setups RSI or Stochastic Measure momentum relative to position RSI divergence while oscillator near 78.6% โ exhaustion clue ๐ถ 7. Understanding the Settings Setting Function Practical Impact ATR Period (14) Controls volatility sampling Higher = smoother lookback adaptation Min Lookback (20) Smallest window allowed Lower = more reactive but noisier Max Lookback (100) Largest window allowed Higher = smoother but slower to react Inverse Candle Chart Flips oscillator vertically Useful when analyzing bearish or inverse scenarios (e.g. short-side fib mapping) Recommended Configs: For scalping/intraday: ATR 10โ14, lookback 20โ50 For swing/position trading: ATR 14โ21, lookback 50โ100 ๐ถ 8. Example Trade Logic (Practical Use) Scenario: Uptrend on 4H chart Oscillator drops to below 38.2% โ retracement zone Price consolidates โ oscillator stabilizes Oscillator crosses above 50% โ pullback ending Entry: Long when oscillator crosses above 61.8% Exit: Near 78.6โ100% zone or upon divergence with RSI For Short Bias (Inverse Setup): Enable isInverse = true to visually flip the oscillator (so lows become highs). Use the same thresholds inversely. ๐ถ 9. Strengths & Limitations โ Strengths Dynamic, self-adapting to volatility Quantifies Fib retracement as a continuous function Compact oscillator view (no clutter on chart) Works well across all timeframes Compatible with both trending and ranging markets โ ๏ธ Limitations Doesnโt define trend direction โ must be used with structure filters Can whipsaw during choppy consolidations The โlookback auto-adjustโ may lag in sudden volatility shifts Shouldnโt be used standalone for entries without structural confluence ๐ถ 10. Summary The โFib Oscillatorโ is a dynamic Fibonacci-relative positioning tool that merges retracement theory with adaptive volatility logic. It gives traders an intuitive, quantified view of where price sits within its recent fib range, allowing anticipation of pullbacks, reversals, or breakout momentum. Think of it as a "Fibonacci RSI", but instead of momentum strength, it shows positional depth โ the vibrational location of price within its natural swing cycle.Pine Scriptยฎ indicatorby TradeMing63
XAUUSD Family Scalping (5min)๐ก XAUUSD Family Scalping 5-Min โ Momentum Precision Indicator Overview This indicator is built for XAUUSD (Gold) on the 5-minute timeframe and is designed for short-term momentum scalping. It helps traders identify early reversal zones, confirm momentum direction, and detect exhaustion points during high-volatility market moves. Core Concept The indicator measures momentum strength and price acceleration using a smoothed oscillator. It features two adjustable thresholds: Overbought level: 58 Oversold level: -58 When the momentum line crosses above or below these zones, it signals potential trend continuation or reversal opportunities. Features Detects short-term momentum shifts on XAUUSD 5M. Works with EMA-based trend confirmation (optional). Adaptive smoothing reduces noise and false reversals. Highlights overbought/oversold areas visually. Can be combined with price action or other oscillators for confluence. Usage Instrument: XAUUSD (Gold) Best timeframe: 5-minute (scalping setup) Use case: Detecting momentum exhaustion and reversal entries. Sessions: London & New York recommended. Disclaimer This indicator is for market analysis and educational purposes. No indicator guarantees profit โ use proper risk management and test before live trading.Pine Scriptยฎ indicatorby cupra_inc311
Velocity Pressure Index | AlphaNattVelocity Pressure Index (VPI) | AlphaNatt A sophisticated momentum oscillator that combines price velocity analysis with volume pressure dynamics to identify high-probability trading opportunities. ๐ KEY FEATURES Dual Analysis System: Merges price velocity measurement with volume pressure analysis for comprehensive market momentum assessment Dynamic Normalization: Automatically scales values between -100 and +100 for consistent readings across all market conditions Adaptive Zones: Self-adjusting overbought/oversold levels based on recent price history Multi-Layer Confirmation: Combines momentum, acceleration, and crossover signals for robust trade identification Volume-Weighted Pressure: Differentiates between bullish and bearish volume to gauge true market sentiment ๐ HOW IT WORKS The VPI calculates price velocity using linear regression of price changes, then weights this velocity by the difference between bullish and bearish volume pressure. This creates a momentum reading that accounts for both price movement speed and the volume conviction behind it. Signal Generation: Price velocity is measured over the specified period Volume is separated into bullish (close > open) and bearish (close < open) pressure Velocity is amplified or dampened based on volume pressure differential The resulting index is normalized to oscillate between -100 and +100 A signal line smooths the oscillator for crossover detection ๐ฏ TRADING SIGNALS Long Signals (Cyan #00F1FF): Strong Bull: VPI > Signal with positive momentum and acceleration Crossover Bull: VPI crosses above signal while above oversold zone Divergence: Price makes lower low while VPI makes higher low Short Signals (Magenta #FF019A): Strong Bear: VPI < Signal with negative momentum and deceleration Crossover Bear: VPI crosses below signal while below overbought zone Divergence: Price makes higher high while VPI makes lower high โ๏ธ CUSTOMIZABLE PARAMETERS Velocity Settings: Velocity Period (14): Lookback for price velocity calculation Pressure Period (21): Volume analysis window Smoothing Factor (3): Final oscillator smoothing Signal Configuration: Signal Type: Choose between SMA, EMA, or DEMA Signal Length (9): Signal line smoothing period Normalization Period (50): Range calculation window Dynamic Zones: Zone Lookback (100): Period for adaptive overbought/oversold calculation Percentiles: 80th/20th percentiles for dynamic zones ๐ VISUAL COMPONENTS Main Oscillator: Color-coded line showing current momentum state Signal Line: White line for crossover detection Momentum Histogram: Shows velocity differential at 50% scale Dynamic Zones: Self-adjusting overbought/oversold bands Extreme Levels: ยฑ50 dotted lines marking extreme conditions Background Shading: Subtle highlighting of overbought/oversold regions ๐ก USAGE TIPS Trend Trading: Use strong bull/bear signals in trending markets for continuation entries Range Trading: Focus on crossovers near extreme zones for reversal trades Divergence Trading: Watch for price/oscillator divergences at market extremes Multi-Timeframe: Combine with higher timeframe VPI for directional bias Volume Confirmation: Stronger signals occur with aligned volume pressure โ ๏ธ BEST PRACTICES The VPI works best in liquid markets with reliable volume data. For optimal results, combine with price action analysis and use appropriate risk management. The indicator is most effective during trending conditions but can identify reversals when divergences occur at extremes. ๐ ALERTS AVAILABLE VPI Long/Short Signals Bullish/Bearish Crossovers Extreme Overbought/Oversold Conditions Version 6 | Pine Scriptโข | ยฉ AlphaNattPine Scriptยฎ indicatorby AlphaNatt11298
ATR %ATR % Oscillator A simple and effective Average True Range (ATR) indicator displayed as a percentage of the current price in a separate panel. FEATURES: โข ATR displayed as percentage of current price for easy cross-asset comparison โข EMA smoothing line using the same period as ATR โข Configurable ATR period (default: 20) โข Clean visualization with zero reference line HOW IT WORKS: The indicator calculates ATR and converts it to a percentage: (ATR / Close) ร 100 This normalization allows you to: - Compare volatility across different instruments regardless of price - Identify high and low volatility periods - Use the EMA line to spot volatility trends PARAMETERS: ATR Period - The lookback period for ATR calculation (default: 20) Timeframe - Choose any timeframe for ATR calculation independently from the chart timeframe (default: chart timeframe) Pine Scriptยฎ indicatorby audrius_exeUpdated 24
SMC + CRT Gold Flow PRO โ Fixed RGB ColorsSCRIPT FOR GOLD. I used SMC + CRT strategies. I analyze in H4 timeframe and enter in m15 time frame.Pine Scriptยฎ indicatorby Feruz7771146
Symmetric MA DeviationThis script used the 50 simple moving average and calculates how far the price is from it. It can be used for looking at extremes in price and bullish / bearish divergence.Pine Scriptยฎ indicatorby ily_algo2
Hidden Impulseโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ HIDDEN IMPULSE - Multi-Timeframe Momentum Detection System โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ OVERVIEW Hidden Impulse is an advanced momentum oscillator that combines the Schaff Trend Cycle (STC) and Force Index into a comprehensive multi-timeframe trading system. Unlike standard implementations of these indicators, this script introduces three distinct trading setups with specific entry conditions, multi-timeframe confirmation, and trend filtering. โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ORIGINALITY & KEY FEATURES This indicator is original in the following ways: 1. DUAL-TIMEFRAME STC ANALYSIS Standard STC implementations work on a single timeframe. This script simultaneously analyzes STC on both your trading timeframe and a higher timeframe, providing trend context and filtering out low-probability signals. 2. FORCE INDEX INTEGRATION The script combines STC with Force Index (volume-weighted price momentum) to confirm the strength behind price moves. This combination helps identify when momentum shifts are backed by genuine buying/selling pressure. 3. THREE DISTINCT TRADING SETUPS Rather than generic overbought/oversold signals, the indicator provides three specific, rule-based setups: - Setup A: Classic trend-following entries with multi-timeframe confirmation - Setup B: Divergence-based reversal entries (highest probability) - Setup C: Mean-reversion bounce trades at extreme levels 4. INTELLIGENT FILTERING All signals are filtered through: - 50 EMA trend direction (prevents counter-trend trades) - Higher timeframe STC alignment (ensures macro trend agreement) - Force Index confirmation (validates volume support) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ HOW IT WORKS - TECHNICAL EXPLANATION SCHAFF TREND CYCLE (STC) CALCULATION: The STC is a cyclical oscillator that combines MACD concepts with stochastic smoothing to create earlier and smoother trend signals. Step 1: Calculate MACD - Fast MA = EMA(close, Length1) โ default 23 - Slow MA = EMA(close, Length2) โ default 50 - MACD Line = Fast MA - Slow MA Step 2: First Stochastic Smoothing - Apply stochastic calculation to MACD - Stoch1 = 100 ร (MACD - Lowest(MACD, Smoothing)) / (Highest(MACD, Smoothing) - Lowest(MACD, Smoothing)) - Smooth result with EMA(Stoch1, Smoothing) โ default 10 Step 3: Second Stochastic Smoothing - Apply stochastic calculation again to the smoothed stochastic - This creates the final STC value between 0-100 The dual stochastic smoothing makes STC more responsive than MACD while being smoother than traditional stochastics. FORCE INDEX CALCULATION: Force Index measures the power behind price movements by incorporating volume: Force Raw = (Close - Close ) ร Volume Force Index = EMA(Force Raw, Period) โ default 13 Interpretation: - Positive Force Index = Buying pressure (bulls in control) - Negative Force Index = Selling pressure (bears in control) - Force Index crossing zero = Momentum shift - Divergences with price = Weakening momentum (reversal signal) TREND FILTER: A 50-period EMA serves as the trend filter: - Price above EMA50 = Uptrend โ Only LONG signals allowed - Price below EMA50 = Downtrend โ Only SHORT signals allowed This prevents counter-trend trading which accounts for most losing trades. โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ THE THREE TRADING SETUPS - DETAILED SETUP A: CLASSIC MOMENTUM ENTRY Concept: Enter when STC exits oversold/overbought zones with trend confirmation LONG CONDITIONS: 1. Higher timeframe STC > 25 (macro trend is up) 2. Primary timeframe STC crosses above 25 (momentum turning up) 3. Force Index crosses above 0 OR already positive (volume confirms) 4. Price above 50 EMA (local trend is up) SHORT CONDITIONS: 1. Higher timeframe STC < 75 (macro trend is down) 2. Primary timeframe STC crosses below 75 (momentum turning down) 3. Force Index crosses below 0 OR already negative (volume confirms) 4. Price below 50 EMA (local trend is down) Best for: Trending markets, continuation trades Win rate: Moderate (60-65%) Risk/Reward: 1:2 to 1:3 โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ SETUP B: DIVERGENCE REVERSAL (HIGHEST PROBABILITY) Concept: Identify exhaustion points where price makes new extremes but momentum (Force Index) fails to confirm BULLISH DIVERGENCE: 1. Price makes a lower low (LL) over 10 bars 2. Force Index makes a higher low (HL) โ refuses to follow price down 3. STC is below 25 (oversold condition) Trigger: STC starts rising AND Force Index crosses above zero BEARISH DIVERGENCE: 1. Price makes a higher high (HH) over 10 bars 2. Force Index makes a lower high (LH) โ refuses to follow price up 3. STC is above 75 (overbought condition) Trigger: STC starts falling AND Force Index crosses below zero Why this works: Divergences signal that the current trend is losing steam. When volume (Force Index) doesn't confirm new price extremes, a reversal is likely. Best for: Reversal trading, range-bound markets Win rate: High (70-75%) Risk/Reward: 1:3 to 1:5 โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ SETUP C: QUICK BOUNCE AT EXTREMES Concept: Catch rapid mean-reversion moves when price touches EMA50 in extreme STC zones LONG CONDITIONS: 1. Price touches 50 EMA from above (pullback in uptrend) 2. STC < 15 (extreme oversold) 3. Force Index > 0 (buyers stepping in) SHORT CONDITIONS: 1. Price touches 50 EMA from below (pullback in downtrend) 2. STC > 85 (extreme overbought) 3. Force Index < 0 (sellers stepping in) Best for: Scalping, quick mean-reversion trades Win rate: Moderate (55-60%) Risk/Reward: 1:1 to 1:2 Note: Use tighter stops and quick profit-taking โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ HOW TO USE THE INDICATOR STEP 1: CONFIGURE TIMEFRAMES Primary Timeframe (STC - Primary Timeframe): - Leave empty to use your current chart timeframe - This is where you'll take trades Higher Timeframe (STC - Higher Timeframe): - Default: 30 minutes - Recommended ratios: * 5min chart โ 30min higher TF * 15min chart โ 1H higher TF * 1H chart โ 4H higher TF * Daily chart โ Weekly higher TF โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ STEP 2: ADJUST STC PARAMETERS FOR YOUR MARKET Default (23/50/10) works well for stocks and forex, but adjust for: CRYPTO (volatile): - Length 1: 15 - Length 2: 35 - Smoothing: 8 (Faster response for rapid price movements) STOCKS (standard): - Length 1: 23 - Length 2: 50 - Smoothing: 10 (Balanced settings) FOREX MAJORS (slower): - Length 1: 30 - Length 2: 60 - Smoothing: 12 (Filters out noise in 24/7 markets) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ STEP 3: ENABLE YOUR PREFERRED SETUPS Toggle setups based on your trading style: Conservative Trader: โ Setup B (Divergence) โ highest win rate โ Setup A (Classic) โ only in strong trends โ Setup C (Bounce) โ too aggressive Trend Trader: โ Setup A (Classic) โ primary signals โ Setup B (Divergence) โ for entries on pullbacks โ Setup C (Bounce) โ not suitable for trending Scalper: โ Setup C (Bounce) โ quick in-and-out โ Setup B (Divergence) โ high probability scalps โ Setup A (Classic) โ too slow โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ STEP 4: READ THE SIGNALS ON THE CHART: Labels appear when conditions are met: Green labels: - "LONG A" โ Setup A long entry - "LONG B DIV" โ Setup B divergence long (best signal) - "LONG C" โ Setup C bounce long Red labels: - "SHORT A" โ Setup A short entry - "SHORT B DIV" โ Setup B divergence short (best signal) - "SHORT C" โ Setup C bounce short IN THE INDICATOR PANEL (bottom): - Blue line = Primary timeframe STC - Orange dots = Higher timeframe STC (optional) - Green/Red bars = Force Index histogram - Dashed lines at 25/75 = Entry/Exit zones - Background shading = Oversold (green) / Overbought (red) INFO TABLE (top-right corner): Shows real-time status: - STC values for both timeframes - Force Index direction - Price position vs EMA - Current trend direction - Active signal type โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ TRADING STRATEGY & RISK MANAGEMENT ENTRY RULES: Priority ranking (best to worst): 1st: Setup B (Divergence) โ wait for these 2nd: Setup A (Classic) โ in confirmed trends only 3rd: Setup C (Bounce) โ scalping only Confirmation checklist before entry: โ Signal label appears on chart โ TREND in info table matches signal direction โ Higher timeframe STC aligned (check orange dots or table) โ Force Index confirming (check histogram color) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ STOP LOSS PLACEMENT: Setup A (Classic): - LONG: Below recent swing low - SHORT: Above recent swing high - Typical: 1-2 ATR distance Setup B (Divergence): - LONG: Below the divergence low - SHORT: Above the divergence high - Typical: 0.5-1.5 ATR distance Setup C (Bounce): - LONG: 5-10 pips below EMA50 - SHORT: 5-10 pips above EMA50 - Typical: 0.3-0.8 ATR distance โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ TAKE PROFIT TARGETS: Conservative approach: - Exit when STC reaches opposite level - LONG: Exit when STC > 75 - SHORT: Exit when STC < 25 Aggressive approach: - Hold until opposite signal appears - Trail stop as STC moves in your favor Partial profits: - Take 50% at 1:2 risk/reward - Let remaining 50% run to target โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ WHAT TO AVOID: โ Trading Setup A in sideways/choppy markets โ Wait for clear trend or use Setup B only โ Ignoring higher timeframe STC โ Always check orange dots align with your direction โ Taking signals against the major trend โ If weekly trend is down, be cautious with longs โ Overtrading Setup C โ Maximum 2-3 bounce trades per session โ Trading during low volume periods โ Force Index becomes unreliable โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ALERTS CONFIGURATION The indicator includes 8 alert types: Individual setup alerts: - "Setup A - LONG" / "Setup A - SHORT" - "Setup B - DIV LONG" / "Setup B - DIV SHORT" โญ recommended - "Setup C - BOUNCE LONG" / "Setup C - BOUNCE SHORT" Combined alerts: - "ANY LONG" โ fires on any long signal - "ANY SHORT" โ fires on any short signal Recommended alert setup: - Create "Setup B - DIV LONG" and "Setup B - DIV SHORT" alerts - These are the highest probability signals - Set "Once Per Bar Close" to avoid false alerts โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ VISUALIZATION SETTINGS Show Labels on Chart: Toggle on/off the signal labels (green/red) Disable for cleaner chart once you're familiar with the indicator Show Higher TF STC: Toggle the orange dots showing higher timeframe STC Useful for visual confirmation of multi-timeframe alignment Info Panel: Cannot be disabled โ always shows current status Positioned top-right to avoid chart interference โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ EXAMPLE TRADE WALKTHROUGH SETUP B DIVERGENCE LONG EXAMPLE: 1. Market Context: - Price in downtrend, below 50 EMA - Multiple lower lows forming - STC below 25 (oversold) 2. Divergence Formation: - Price makes new low at $45.20 - Force Index refuses to make new low (higher low forms) - This indicates selling pressure weakening 3. Signal Trigger: - STC starts turning up - Force Index crosses above zero - Label appears: "LONG B DIV" 4. Trade Execution: - Entry: $45.50 (current price at signal) - Stop Loss: $44.80 (below divergence low) - Target 1: $47.90 (STC reaches 75) โ risk/reward 1:3.4 - Target 2: Opposite signal or trail stop 5. Trade Management: - Price rallies to $47.20 - STC reaches 68 (approaching target zone) - Take 50% profit, move stop to breakeven - Exit remaining at $48.10 when STC crosses 75 Result: 3.7R gain โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ADVANCED TIPS 1. MULTI-TIMEFRAME CONFLUENCE For highest probability trades, wait for: - Primary TF signal - Higher TF STC aligned (>25 for longs, <75 for shorts) - Even higher TF trend in same direction (manual check) 2. VOLUME CONFIRMATION Watch the Force Index histogram: - Increasing bar size = Strengthening momentum - Decreasing bar size = Weakening momentum - Use this to gauge signal strength 3. AVOID THESE MARKET CONDITIONS - Major news events (Force Index becomes erratic) - Market open first 30 minutes (volatility spikes) - Low liquidity instruments (Force Index unreliable) - Extreme trending days (wait for pullbacks) 4. COMBINE WITH SUPPORT/RESISTANCE Best signals occur near: - Key horizontal levels - Fibonacci retracements - Previous day's high/low - Psychological round numbers 5. SESSION AWARENESS - Asia session: Use lower timeframes, Setup C works well - London session: Setup A and B both effective - New York session: All setups work, highest volume โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ INDICATOR WINDOWS LAYOUT MAIN CHART: - Price action - 50 EMA (green/red) - Signal labels - Info panel INDICATOR WINDOW: - STC oscillator (blue line, 0-100 scale) - Higher TF STC (orange dots, optional) - Force Index histogram (green/red bars) - Reference levels (25, 50, 75) - Background zones (green oversold, red overbought) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ PERFORMANCE OPTIMIZATION For best results: Backtesting: - Test on your specific instrument and timeframe - Adjust STC parameters if win rate < 55% - Record which setup works best for your market Position Sizing: - Risk 1-2% per trade - Setup B can use 2% risk (higher win rate) - Setup C should use 1% risk (lower win rate) Trade Frequency: - Setup B: 2-5 signals per week (be patient) - Setup A: 5-10 signals per week - Setup C: 10+ signals per week (scalping) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ CREDITS & REFERENCES This indicator builds upon established technical analysis concepts: Schaff Trend Cycle: - Developed by Doug Schaff (1996) - Original concept published in Technical Analysis of Stocks & Commodities - Implementation based on standard STC formula Force Index: - Developed by Dr. Alexander Elder - Described in "Trading for a Living" (1993) - Classic volume-momentum indicator The multi-timeframe integration, three-setup system, and specific entry conditions are original contributions of this indicator. โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ DISCLAIMER This indicator is a technical analysis tool and does not guarantee profits. Past performance is not indicative of future results. Always: - Use proper risk management - Test on demo account first - Combine with fundamental analysis - Never risk more than you can afford to lose โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ SUPPORT & QUESTIONS If you find this indicator helpful, please: - Leave a like and comment - Share your feedback and results - Report any bugs or issues For questions about usage or optimization for specific markets, feel free to comment below. โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโPine Scriptยฎ indicatorby Smart-Day-Trader68
Smart MACD Volume Trader# Smart MACD Volume Trader ## Overview Smart MACD Volume Trader is an enhanced momentum indicator that combines the classic MACD (Moving Average Convergence Divergence) oscillator with an intelligent high-volume filter. This combination significantly reduces false signals by ensuring that trading signals are only generated when price momentum is confirmed by substantial volume activity. The indicator supports over 24 different instruments including major and exotic forex pairs, precious metals (gold and silver), energy commodities (crude oil, natural gas), and industrial metals (copper). For forex and commodity traders, the indicator automatically maps to CME and COMEX futures contracts to provide accurate institutional-grade volume data. ## Originality and Core Concept Traditional MACD indicators generate signals based solely on price momentum, which can result in numerous false signals during low-activity periods or ranging markets. This indicator addresses this critical weakness by introducing a volume confirmation layer with automatic institutional volume integration. **What makes this approach original:** - Signals are triggered only when MACD crossovers coincide with elevated volume activity - Implements a lookback mechanism to detect volume spikes within recent bars - Automatically detects and maps 24+ forex pairs and commodities to their corresponding CME and COMEX futures contracts - Provides real institutional volume data for forex pairs where spot volume is unreliable - Combines two independent market dimensions (price momentum and volume) into a single, actionable signal - Includes intelligent asset detection that works across multiple exchanges and ticker formats **The underlying principle:** Volume validates price movement. When institutional money enters the market, it creates volume signatures. By requiring high volume confirmation and using actual institutional volume data from futures markets, this indicator filters out weak price movements and focuses on trades backed by genuine market participation. The automatic futures mapping ensures that forex and commodity traders always have access to the most accurate volume data available, without manual configuration. ## How It Works ### MACD Component The indicator calculates MACD using standard methodology: 1. **Fast EMA (default: 12 periods)** - Tracks short-term price momentum 2. **Slow EMA (default: 26 periods)** - Tracks longer-term price momentum 3. **MACD Line** - Difference between Fast EMA and Slow EMA 4. **Signal Line (default: 9-period SMA)** - Smoothed average of MACD line **Crossover signals:** - **Bullish:** MACD line crosses above Signal line (momentum turning positive) - **Bearish:** MACD line crosses below Signal line (momentum turning negative) ### Volume Filter Component The volume filter adds an essential confirmation layer: 1. **Volume Moving Average** - Calculates exponential MA of volume (default: 20 periods) 2. **High Volume Threshold** - Multiplies MA by ratio (default: 2.0x or 200%) 3. **Volume Detection** - Identifies bars where current volume exceeds threshold 4. **Lookback Period** - Checks if high volume occurred in recent bars (default: 5 bars) **Signal logic:** - Buy/Sell signals only trigger when BOTH conditions are met: - MACD crossover/crossunder occurs - High volume detected within lookback period ### Automatic CME Futures Integration For forex traders, spot FX volume data can be unreliable or non-existent. This indicator solves this problem by automatically detecting forex pairs and mapping them to corresponding CME futures contracts with real institutional volume data. **Supported Major Forex Pairs (7):** - EURUSD โ CME:6E1! (Euro FX Futures) - GBPUSD โ CME:6B1! (British Pound Futures) - AUDUSD โ CME:6A1! (Australian Dollar Futures) - USDJPY โ CME:6J1! (Japanese Yen Futures) - USDCAD โ CME:6C1! (Canadian Dollar Futures) - USDCHF โ CME:6S1! (Swiss Franc Futures) - NZDUSD โ CME:6N1! (New Zealand Dollar Futures) **Supported Exotic Forex Pairs (4):** - USDMXN โ CME:6M1! (Mexican Peso Futures) - USDRUB โ CME:6R1! (Russian Ruble Futures) - USDBRL โ CME:6L1! (Brazilian Real Futures) - USDZAR โ CME:6Z1! (South African Rand Futures) **Supported Cross Pairs (6):** - EURJPY โ CME:6E1! (Uses Euro Futures) - GBPJPY โ CME:6B1! (Uses British Pound Futures) - EURGBP โ CME:6E1! (Uses Euro Futures) - AUDJPY โ CME:6A1! (Uses Australian Dollar Futures) - EURAUD โ CME:6E1! (Uses Euro Futures) - GBPAUD โ CME:6B1! (Uses British Pound Futures) **Supported Precious Metals (2):** - Gold (XAUUSD, GOLD) โ COMEX:GC1! (Gold Futures) - Silver (XAGUSD, SILVER) โ COMEX:SI1! (Silver Futures) **Supported Energy Commodities (3):** - WTI Crude Oil (USOIL, WTIUSD) โ NYMEX:CL1! (Crude Oil Futures) - Brent Oil (UKOIL) โ NYMEX:BZ1! (Brent Crude Futures) - Natural Gas (NATGAS) โ NYMEX:NG1! (Natural Gas Futures) **Supported Industrial Metals (1):** - Copper (COPPER) โ COMEX:HG1! (Copper Futures) **How the automatic detection works:** The indicator intelligently identifies the asset type by analyzing: 1. Exchange name (FX, OANDA, TVC, COMEX, NYMEX, etc.) 2. Currency pair pattern (6-letter codes like EURUSD, GBPUSD) 3. Commodity identifiers (XAU for gold, XAG for silver, OIL for crude) When a supported instrument is detected, the indicator automatically switches to the corresponding futures contract for volume analysis. For stocks, cryptocurrencies, and other assets, the indicator uses the native volume data from the current chart. **Visual feedback:** An information table appears in the top-right corner of the MACD pane showing: - Current chart symbol - Exchange name - Currency pair or asset name - Volume source being used (highlighted in orange for futures, yellow for native volume) - Current high volume status This provides complete transparency about which data source the indicator is using for its volume analysis. ## How to Use ### Basic Setup 1. Add the indicator to your chart 2. The indicator displays in a separate pane (MACD) and overlay (signals/volume bars) 3. Default settings work well for most assets, but can be customized ### Signal Interpretation ### Visual Signals **Visual Signals:** - **Green "BUY" label** - Bullish MACD crossover confirmed by high volume - **Red "SELL" label** - Bearish MACD crossunder confirmed by high volume - **Green/Red candles** - Highlight bars with volume exceeding the threshold - **Light green/red background** - Emphasizes signal bars on the chart **Information Table:** A detailed information table appears in the top-right corner of the MACD pane, providing real-time transparency about the indicator's operation: - **Chart:** Current symbol being analyzed - **Exchange:** The exchange or data feed being used - **Pair:** The currency pair or asset name extracted from the ticker - **Volume From:** The actual symbol used for volume analysis - Orange color indicates CME or COMEX futures are being used (automatic institutional volume) - Yellow color indicates native volume from the chart symbol is being used - Hover tooltip shows whether automatic futures mapping is active - **High Volume:** Current status showing YES (green) when volume exceeds threshold, NO (gray) otherwise This table ensures complete transparency and allows you to verify that the correct volume source is being used for your analysis. **Volume Analysis:** - Gray histogram bars = Normal volume - Red histogram bars = High volume (exceeds threshold) - Green line = Volume moving average baseline **MACD Analysis:** - Blue line = MACD line (momentum indicator) - Orange line = Signal line (trend confirmation) - Gray dotted line = Zero line (bullish above, bearish below) ### Parameter Customization **MACD Parameters:** - Adjust Fast/Slow EMA lengths for different sensitivities - Shorter periods = More signals, faster response - Longer periods = Fewer signals, less noise **Volume Parameters:** - **Volume MA Period:** Higher values smooth volume analysis - **High Volume Ratio:** Lower values (1.5x) = More signals; Higher values (3.0x) = Fewer, stronger signals - **Volume Lookback Bars:** Controls how recent the volume spike must be **Direction Filters:** - **Only Buy Signals:** Enables long-only strategy mode - **Only Sell Signals:** Enables short-only strategy mode ### Alert Configuration The indicator includes three alert types: 1. **Buy Signal Alert** - Triggers when bullish signal appears 2. **Sell Signal Alert** - Triggers when bearish signal appears 3. **High Volume Alert** - Triggers when volume exceeds threshold To set up alerts: 1. Click the indicator name โ "Add alert on Smart MACD Volume Trader" 2. Select desired alert condition 3. Configure notification method (popup, email, webhook, etc.) ## Trading Strategy Guidelines ### Best Practices **Recommended markets:** - Liquid stocks (large-cap, high daily volume) - Major forex pairs (EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, USDCHF, NZDUSD) - Exotic forex pairs (USDMXN, USDRUB, USDBRL, USDZAR) - Cross pairs (EURJPY, GBPJPY, EURGBP, AUDJPY, EURAUD, GBPAUD) - Precious metals (Gold, Silver with automatic COMEX futures mapping) - Energy commodities (Crude Oil, Natural Gas with automatic NYMEX futures mapping) - Industrial metals (Copper with automatic COMEX futures mapping) - Major cryptocurrency pairs - Index futures and ETFs **Timeframe recommendations:** - **Day trading:** 5-minute to 15-minute charts - **Swing trading:** 1-hour to 4-hour charts - **Position trading:** Daily charts **Risk management:** - Use signals as entry confirmation, not standalone strategy - Combine with support/resistance levels - Consider overall market trend direction - Always use stop-loss orders ### Strategy Examples **Trend Following Strategy:** 1. Identify overall trend using higher timeframe (e.g., daily chart) 2. Trade only in trend direction 3. Use "Only Buy" filter in uptrends, "Only Sell" in downtrends 4. Enter on signal, exit on opposite signal or at resistance/support **Volume Breakout Strategy:** 1. Wait for consolidation period (low volume, tight MACD range) 2. Enter when signal appears with high volume (confirms breakout) 3. Target previous swing highs/lows 4. Stop loss below/above recent consolidation **Forex Scalping Strategy (with automatic CME futures):** 1. The indicator automatically detects forex pairs and uses CME futures volume 2. Trade during active sessions only (use session filter) 3. Focus on quick profits (10-20 pips) 4. Exit at opposite signal or profit target **Commodities Trading Strategy (Gold, Silver, Oil):** 1. The indicator automatically maps to COMEX and NYMEX futures contracts 2. Trade during high-liquidity sessions (overlap of major markets) 3. Use the high volume confirmation to identify institutional entry points 4. Combine with key support and resistance levels for entries 5. Monitor the information table to confirm futures volume is being used (orange color) 6. Exit on opposite MACD signal or at predefined profit targets ## Why This Combination Works ### The Volume Advantage Studies consistently show that price movements accompanied by high volume are more likely to continue, while low-volume movements often reverse. This indicator leverages this principle by requiring volume confirmation. **Key benefits:** 1. **Reduced False Signals:** Eliminates MACD whipsaws during low-volume consolidation 2. **Confirmation Bias:** Two independent indicators (price momentum + volume) agreeing 3. **Institutional Alignment:** High volume often indicates institutional participation 4. **Trend Validation:** Volume confirms that price momentum has "conviction" ### Statistical Edge By combining two uncorrelated signals (MACD crossovers and volume spikes), the indicator creates a higher-probability setup than either signal alone. The lookback mechanism ensures signals aren't missed if volume spike slightly precedes the MACD cross. ## Supported Exchanges and Automatic Detection The indicator includes intelligent asset detection that works across multiple exchanges and ticker formats: **Forex Exchanges (Automatic CME Mapping):** - FX (TradingView forex feed) - OANDA - FXCM - SAXO - FOREXCOM - PEPPERSTONE - EASYMARKETS - FX_IDC **Commodity Exchanges (Automatic COMEX/NYMEX Mapping):** - TVC (TradingView commodity feed) - COMEX (directly) - NYMEX (directly) - ICEUS **Other Asset Classes (Native Volume):** - Stock exchanges (NASDAQ, NYSE, AMEX, etc.) - Cryptocurrency exchanges (BINANCE, COINBASE, KRAKEN, etc.) - Index providers (SP, DJ, etc.) The detection algorithm analyzes three factors: 1. Exchange prefix in the ticker symbol 2. Pattern matching for currency pairs (6-letter codes) 3. Commodity identifiers in the symbol name This ensures accurate automatic detection regardless of which data feed or exchange you use for charting. The information table in the top-right corner always displays which volume source is being used, providing complete transparency. ## Technical Details **Calculations:** - MACD Fast MA: EMA(close, fastLength) - MACD Slow MA: EMA(close, slowLength) - MACD Line: Fast MA - Slow MA - Signal Line: SMA(MACD Line, signalLength) - Volume MA: Exponential MA of volume - High Volume: Current volume >= Volume MA ร Ratio **Signal logic:** ``` Buy Signal = (MACD crosses above Signal) AND (High volume in last N bars) Sell Signal = (MACD crosses below Signal) AND (High volume in last N bars) ``` ## Parameters Reference | Parameter | Default | Description | |-----------|---------|-------------| | Volume Symbol | Blank | Manual override for volume source (leave blank for automatic detection) | | Use CME Futures | False | Legacy option (automatic detection is now built-in) | | Alert Session | 1530-2200 | Active session time range for alerts | | Timezone | UTC+1 | Timezone for alert sessions | | Volume MA Period | 20 | Number of periods for volume moving average | | High Volume Ratio | 2.0 | Volume threshold multiplier (2.0 = 200% of average) | | Volume Lookback | 5 | Number of bars to check for high volume confirmation | | MACD Fast Length | 12 | Fast EMA period for MACD calculation | | MACD Slow Length | 26 | Slow EMA period for MACD calculation | | MACD Signal Length | 9 | Signal line SMA period | | Only Buy | False | Filter to show only bullish signals | | Only Sell | False | Filter to show only bearish signals | | Show Signals | True | Display buy and sell labels on chart | ## Optimization Tips **For volatile markets (crypto, small caps):** - Increase High Volume Ratio to 2.5-3.0 - Reduce Volume Lookback to 3-4 bars - Consider faster MACD settings (8, 17, 9) **For stable markets (large-cap stocks, bonds):** - Decrease High Volume Ratio to 1.5-1.8 - Increase Volume MA Period to 30-50 - Use standard MACD settings **For forex (with automatic CME futures):** - The indicator automatically uses CME futures when forex pairs are detected - Set appropriate trading session based on your timezone - Use Volume Lookback of 5-7 bars - Consider session-based alerts only - Monitor the information table to verify correct futures mapping **For commodities (Gold, Silver, Oil, Copper):** - The indicator automatically maps to COMEX and NYMEX futures - Increase High Volume Ratio to 2.0-2.5 for metals - Use slightly higher Volume MA Period (25-30) for smoother analysis - Trade during active market hours for best volume data - The information table will show the futures contract being used (orange highlight) ## Limitations and Considerations **What this indicator does NOT do:** - Does not predict future price direction - Does not guarantee profitable trades - Does not replace proper risk management - Does not work well in extremely low-volume conditions **Market conditions to avoid:** - Pre-market and after-hours sessions (low volume) - Major news events (volatile, unpredictable volume) - Holidays and low-liquidity periods - Extremely low float stocks ## Conclusion Smart MACD Volume Trader represents a significant evolution of the traditional MACD indicator by combining volume confirmation with automatic institutional volume integration. This dual-confirmation approach significantly improves signal quality by filtering out low-conviction price movements and ensuring traders work with accurate volume data. The indicator's automatic detection and mapping system supports over 24 instruments across forex, commodities, and metals markets. By intelligently switching to CME and COMEX futures contracts when appropriate, the indicator provides forex and commodity traders with the same quality of volume data that stock traders naturally have access to. This indicator is particularly valuable for traders who want to: - Align their entries with institutional money flow - Avoid getting trapped in false breakouts - Trade forex pairs with reliable volume data - Access accurate volume information for gold, silver, and energy commodities - Combine momentum and volume analysis in a single, streamlined tool Whether you are day trading stocks, swing trading forex pairs, or positioning in commodities markets, this indicator provides a robust framework for identifying high-probability momentum trades backed by genuine institutional participation. The automatic futures mapping works seamlessly across all supported instruments, requiring no manual configuration or expertise in futures markets. --- ## Support and Updates This indicator is actively maintained and updated based on user feedback and market conditions. For questions about implementation or custom modifications, please use the comments section below. **Disclaimer:** This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always conduct your own analysis and risk management before trading.Pine Scriptยฎ indicatorby Smart-Day-Trader67