Sideways & Breakout Detector + Forecast//@version=6
indicator("Sideways & Breakout Detector + Forecast", overlay=true, max_labels_count=500)
// Inputs
lengthATR = input.int(20, "ATR Länge")
lengthMA = input.int(50, "Trend MA Länge")
sqFactor = input.float(1.2, "Seitwärtsfaktor")
brkFactor = input.float(1.5, "Breakoutfaktor")
// ATR / Volatilität
atr = ta.atr(lengthATR)
atrSMA = ta.sma(atr, lengthATR)
// Basislinie / Trend
basis = ta.sma(close, lengthATR)
trendMA = ta.sma(close, lengthMA)
// Seitwärtsbedingung
isSideways = atr < atrSMA * sqFactor
// Breakouts
upperBreak = close > basis + atr * brkFactor
lowerBreak = close < basis - atr * brkFactor
// Vorhergesagter Ausbruch (Forecast)
// Wenn Seitwärtsphase + Kurs nahe obere oder untere Kanalgrenze
forecastBull = isSideways and (close > basis + 0.5 * atr)
forecastBear = isSideways and (close < basis - 0.5 * atr)
// Farben
barcolor(isSideways ? color.new(color.yellow, 40) : na)
barcolor(upperBreak ? color.green : na)
barcolor(lowerBreak ? color.red : na)
// Breakout-Bänder
plot(basis + atr * brkFactor, "Bull Break Zone", color=color.new(color.green, 60))
plot(basis - atr * brkFactor, "Bear Break Zone", color=color.new(color.red, 60))
// Labels (klein)
if isSideways
label.new(bar_index, close, "Seitwärts", color=color.yellow, style=label.style_label_center, size=size.tiny)
if upperBreak
label.new(bar_index, high, "Bull Breakout", color=color.green, style=label.style_label_up, size=size.tiny)
if lowerBreak
label.new(bar_index, low, "Bear Breakout", color=color.red, style=label.style_label_down, size=size.tiny)
// Vorhergesagte Ausbrüche markieren
plotshape(forecastBull, title="Forecast Bull", location=location.abovebar, color=color.new(color.green, 0), style=shape.triangleup, size=size.tiny)
plotshape(forecastBear, title="Forecast Bear", location=location.belowbar, color=color.new(color.red, 0), style=shape.triangledown, size=size.tiny)
// Alerts
alertcondition(isSideways, "Seitwärtsphase", "Der Markt läuft seitwärts.")
alertcondition(upperBreak, "Bull Breakout", "Ausbruch nach oben!")
alertcondition(lowerBreak, "Bear Breakout", "Ausbruch nach unten!")
alertcondition(forecastBull, "Forecast Bull", "Voraussichtlicher Bull-Ausbruch!")
alertcondition(forecastBear, "Forecast Bear", "Voraussichtlicher Bear-Ausbruch!")
Penunjuk dan strategi
TR-ATR-DATR+MAs shows the Range of selected Candle + 3 Moving Averages
True Range
Avg True Range
Daily Range
🏛️ Inst. Value SuiteInstitutional Valuation Suite (IVS)
Executive Summary Traditional volatility indicators frequently exhibit limitations when applied to long-term secular growth assets. Because they calculate volatility in absolute currency units rather than percentage terms, standard deviation bands often distort or become obsolete during phases of exponential price expansion (e.g., significant capitalization shifts in Crypto or Growth Stocks).
The Institutional Valuation Suite addresses this latency by utilizing Geometric (Log-Normal) Standard Deviation. This methodology enables the model to adapt dynamically to the asset's price scale, providing statistically significant valuation zones regardless of price magnitude.
Operational Theory The model operates as a mean-reversion instrument, visualizing price action as a dynamic deviation from a "Fair Value" baseline. It quantifies statistical extremes to identify when an asset is overextended (Speculative Premium) or undervalued (Deep Discount) relative to historical volatility.
Key Features
1. Log-Normal Volatility Engine
Geometric Mode (Default): Calculates volatility in percentage terms. This is the requisite setting for assets exhibiting logarithmic growth, such as Cryptocurrencies and Technology equities.
Arithmetic Mode: Retains linear calculation methods for Forex pairs or range-bound assets where traditional standard deviation is preferred.
2. Valuation Heatmap
Visualizes valuation metrics directly onto price candles to mitigate subjective interpretation bias.
GREEN: Deep Value / Accumulation Zone (<−0.5σ).
ORANGE: Overvaluation / Premium Zone (>2.0σ).
RED: Speculative Anomaly Zone (>3.0σ).
3. Mean Reversion Signals
VALUE RECLAIM: Triggers when price re-enters the lower deviation band from below. This confirms support validation and filters out premature entries during high-momentum drawdowns.
TOP EXIT: Triggers when price breaks down from the upper speculative zone, signaling a potential trend exhaustion.
4. Statistical Dashboard
Displays a real-time Z-Score to quantify the standard deviations the current price is from its baseline.
>3.0: Statistical Anomaly (upper bound).
<−0.5: Statistical Discount (lower bound).
Configuration & Parameters
Per your requirements, the suggested code tooltips for your inputs are listed below.
Cycle Length
Determines the lookback period used to calculate the Fair Value baseline.
Crypto Macro: 200 (Approx. 4 Years).
Altcoins: 100 (Approx. 2 Years).
Equities (S&P 500): 50 (1 Year Trend).
Intraday: Set "Timeframe Lock" to "Chart".
Tooltip Text: "Sets the lookback period for the baseline calculation. Recommended: 200 for Crypto Macro, 50 for Equities, or adjust based on the asset's specific volatility cycle."
Timeframe Lock
Allows the user to fix the calculation to a specific timeframe or allow it to float with the chart.
Tooltip Text: "Locks the calculation to a specific timeframe (e.g., Daily, Weekly) to ensure baseline consistency when zooming into lower timeframes."
Technical Integrity
This indicator employs strict strict offset logic (barmerge.lookahead_on) to ensure historical data integrity. The signals rendered on historical bars are mathematically identical to those that would have appeared in a real-time environment, ensuring backtesting reliability.
Disclaimer: This script provides statistical analysis based on historical volatility metrics and does not constitute financial advice.
PyraTime Harmonic 369Concept and Methodology PyraTime Harmonic 369 is a quantitative time-projection tool designed to apply Modular Arithmetic to market analysis. Unlike linear time indicators, this tool projects non-linear integer sequences derived from Digital Root Summation (Base-9 Reduction).
The core logic utilizes the mathematical progression of the 3-6-9 constants. By anchoring to a user-defined "Origin Pivot," the script projects three distinct harmonic triads to identify potential Temporal Confluence—moments where mathematical time cycles align with price action.
Technical Features This script focuses on the Standard Scalar (1x) projection of the Digital Root sequence:
The Root-3 Triad (Red): Projects intervals of 174, 285, 396. (Mathematical Sum: 1+7+4=12→3)
The Root-6 Triad (Green): Projects intervals of 417, 528, 639. (Mathematical Sum: 4+1+7=12→3, inverted)
The Root-9 Triad (Blue): Projects intervals of 741, 852, 963. (Mathematical Sum: 7+4+1=12→3... completion to 9)
How to Use
Set Anchor: Input the time of a significant High or Low in the settings.
Select Resolution: This tool is optimized for 1-minute (Micro-Harmonics) and 15-minute (Intraday Harmonics) charts.
Analyze Clusters: The vertical lines represent calculated harmonic intervals. Traders look for "Clusters" where a Root-3 and Root-9 cycle land on adjacent bars, indicating a high-probability pivot.
System Architecture & Version Comparison This script represents the foundational layer of the PyraTime ecosystem.
This Script (PyraTime Harmonic 369):
Scalar: Standard 1x Multiplier only.
Focus: Intraday & Micro-structure (1m, 15m).
Engine: Core Digital Root Integers.
PyraTime Harmonic Matrix (Advanced Edition):
Scalar Engine: Unlocks Quad-Fractal (4x), Tri-Fractal (3x), and Bi-Fractal (2x) multipliers for institutional cycle analysis.
Apex Logic: Auto-detection of the "963" Completion Sequence (Gold Highlight).
Event Horizon: Includes a live Predictive Dashboard that calculates the time-delta to the next harmonic event across all scalar groups.
Disclaimer This tool is for the educational analysis of Number Theory in financial markets. It projects time intervals and does not predict price direction. Past performance does not guarantee future results.
Shock Wave 9/21 EMA Ribbon9 ema and 21 ema script, with background plot. All colors, and settings toggle on and off. Simple but effective.
🔥 DarkPool's Fear & Greed v4 🔥DarkPool Fear & Greed v4 is a composite sentiment indicator designed to gauge market psychology in real-time. Unlike standard oscillators that rely on a single metric, this tool aggregates data from four distinct technical sources—RSI, MACD, Bollinger Bands, and Moving Averages—to create a unified "Index Score" ranging from 0 to 100.
Beyond general sentiment, the script employs custom algorithms to detect specific market anomalies, including sustainable buying pressure (FOMO), capitulation events (Panic), and trend reversals (Divergences).
Key Features
Composite Index: A weighted average of Momentum, Trend, Volatility, and Price Location.
Anomaly Detection: Specialized logic to flag high-momentum "FOMO" events and high-volatility "Panic" drops.
Divergences: Automatically spots bearish and bullish discrepancies between the sentiment index and price action.
Live Dashboard: A real-time data table displaying current sentiment zones, intensity scores, and volume ratios.
How to Use
1. The Fear & Greed Index The main oscillator line moves between 0 and 100 to visualize market sentiment:
0-20 (Extreme Fear): Deeply oversold; potential capitulation or buying opportunity.
20-40 (Fear): General bearish sentiment.
40-60 (Neutral): Indecisive market.
60-80 (Greed): General bullish sentiment.
80-100 (Extreme Greed): Overbought conditions; potential for a pullback.
2. Visual Signals
FOMO (Triangle Up): Marks candles with excessive buying volume and RSI momentum.
Panic (Triangle Down): Marks candles with sharp percentage drops and volatility spikes.
Divergences (Circles): distinct markers appear when price action contradicts the sentiment index, often signaling a reversal.
3. The Dashboard Located on the chart, the dashboard provides a snapshot of the current market state, including the specific "Intensity" of FOMO or Panic events and a Volume-to-MA ratio to gauge participation.
4. Alerts The script is fully integrated with the alert system. You can set alerts for "Any alert() function call" to receive dynamic notifications for FOMO detections, Panic drops, Extreme Zone entries, and confirmed Divergences.
Disclaimer This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a guarantee of future results.
Minervini VCP Pattern -Indian ContextThis script implements Mark Minervini's Trend Template and VCP (Volatility Contraction Pattern) pattern, specifically adapted for Indian stock markets (NSE). It helps identify stocks that are in strong uptrends and ready to break out.
Core Concepts Explained
1. What is the Minervini Trend Template?
Mark Minervini's method identifies stocks in Stage 2 uptrends - the sweet spot where institutional money is accumulating and stocks show the strongest momentum. Think of it as finding stocks that are "leaders" rather than "laggards."
2. What is VCP (Volatility Contraction Pattern)?
A VCP occurs when:
Stock price consolidates (moves sideways) after an uptrend
Price swings get tighter and tighter (like a coiled spring)
Volume dries up (fewer people trading)
Then it breaks out with force.
You can customize the strategy settings without editing code.
Key Settings:
Minimum Price (₹50): Filters out penny stocks that are too volatile
Min Distance from 52W Low (30%): Stock should be at least 30% above its yearly low
Max Distance from 52W High (25%): Stock should be within 25% of its yearly high (showing strength)
Moving Average Periods: 10, 50, 150, 200 days (industry standard)
Minimum Volume (100,000 shares): Ensures the stock is liquid enough to trade
Indian Market Adaptation: The default values (₹50 minimum, volume thresholds) are adjusted for NSE stocks, which behave differently than US markets.
The script pulls weekly chart data even when you're viewing daily charts.
Why it matters: Weekly trends are more reliable than daily noise. Professional traders use weekly charts to confirm the bigger picture.
What are Moving Averages (MAs)?
Simple averages of closing prices over X days
They smooth out price action to show trends
Think of them as the "average cost" of buyers over different time periods
The 4 Key MAs:
10 MA (Fast): Very short-term trend
50 MA: Short to medium-term trend
150 MA: Medium to long-term trend
200 MA: Long-term trend (the "grandfather" of all MAs)
Why Weekly MAs?
The script also calculates 10 and 50 MAs on weekly data for additional confirmation of the bigger trend.
The script Finds the highest and lowest prices over the past 52 weeks (1 year).
Why it matters:
Stocks near 52-week highs are showing strength (institutions buying)
Stocks far from 52-week lows have "room to run" upward
This is a psychological level that influences trader behaviour.
What is Volume here ?
The number of shares traded each day
High volume = many traders interested (conviction)
Low volume = lack of interest (weakness or consolidation)
Volume in VCP:
During consolidation (sideways movement), volume should dry up - this shows sellers are exhausted and buyers are holding. When volume spikes on a breakout, it confirms the move.
NSE Context: Indian stocks often have different volume patterns than US stocks, so the 50-day average is used as a baseline.
Relative Strength vs Nifty:
Example:
If your stock is up 20% and Nifty is up 10%, your stock has strong RS
If your stock is up 5% and Nifty is up 15%, your stock has weak RS (avoid it!)
Why it matters: The best performing stocks almost always have strong relative strength before major moves.
The 13 Minervini Conditions:-
Condition 1: Price > 50/150/200 MA
Meaning: Current price must be above ALL three major moving averages.
Why: This confirms the stock is in a clear uptrend. If price is below these MAs, the stock is weak or in a downtrend.
Condition 2: MA 50 > 150 > 200
Meaning: The moving averages themselves must be in proper order.
Analogy: Think of this like layers in a cake - short-term on top, long-term at bottom. If they're tangled, the trend is unclear.
Condition 3: 200 MA Rising (1 Month)
Meaning: The 200 MA today must be higher than it was 20 days ago.
Why: This confirms the long-term trend is UP, not flat or down. The means "20 bars ago."
Condition 4: 50 MA Rising
Meaning: The 50 MA today must be higher than 5 days ago.
Why: Confirms short-term momentum is accelerating upward.
Condition 5: Within 25% of 52-Week High
Meaning: Current price should be within 25% of its 1-year high.
Example:
52-week high = ₹1000
Current price must be above ₹750 (within 25%)
Why: Strong stocks stay near their highs. Weak stocks fall far from highs.
Condition 6: 30%+ Above 52-Week Low (OPTIONAL)
Meaning: Stock should be at least 30% above its yearly low.
Note: The script marks this as "SECONDARY - Optional" because the other conditions are more important. However, it's still a good confirmation.
Condition 7: Price > 10 MA
Meaning: Very short-term strength - price above the 10-day moving average.
Why: Ensures the stock hasn't just rolled over in the immediate term.
Condition 8: Price >= ₹50
Meaning: Filters out stocks below ₹50.
Why: In Indian markets, stocks below ₹50 tend to be penny stocks with poor liquidity and higher manipulation risk.
Condition 9: Weekly Uptrend
Meaning: On the weekly chart, price must be above both weekly MAs, and they must be properly aligned.
Why: Confirms the bigger picture trend, not just daily fluctuations.
Condition 10: 150 MA Rising
Meaning: The 150 MA is trending upward over the past 10 days.
Why: Another confirmation of medium-term trend health.
Condition 11: Sufficient Volume
Meaning: Average volume must exceed 100,000 shares (or your custom setting).
Why: Ensures you can actually buy/sell the stock without moving the price too much (liquidity).
Condition 12: RS vs Nifty Strong
Meaning: The stock's relative strength vs Nifty must be improving.
Why: You want stocks that are outperforming the market, not underperforming.
Condition 13: Nifty in Uptrend
Meaning: The Nifty 50 index itself must be above its 50 MA.
Why: "A rising tide lifts all boats." It's easier to make money in individual stocks when the overall market is bullish.
VCP Requirements:
Volatility Contracting: Price swings getting tighter (coiling spring)
Volume Drying Up: Fewer shares trading + trending lower
The Setup: When volatility contracts and volume dries up WHILE all 13 trend conditions are met, you have a VCP setup ready to explode.
What You See on Chart:
Colored Lines: 10 MA (green), 50 MA (blue), 150 MA (orange), 200 MA (red)
Blue Background: Trend template conditions met (watch zone)
Green Background: Full VCP setup detected (buy zone)
↟ Symbol Below Price: New VCP buy signal just triggered
Information Table:
What it does: Creates a checklist table on your chart showing the status of all conditions.
Table Structure:
Column 1: Condition name
Column 2: Status (✓ green = met, ✗ red = not met)
Final Row: Shows "BUY" (green) or "WAIT" (red) based on full VCP setup status.
Dos:
Example:
Account size: ₹5,00,000
Risk per trade: 1% = ₹5,000
Entry: ₹1000
Stop loss: ₹920 (8% below)
Distance to stop: ₹80
Shares to buy: ₹5,000 / ₹80 = 62 shares
Exit Strategy:
Sell 1/3 at +20% profit
Sell another 1/3 at +40% profit
Let the final 1/3 run with a trailing stop
Always exit if price closes below 10 MA on heavy volume
What This Script Does NOT Do:
Guarantee profits - No strategy works 100% of the time
Account for news events - Earnings, regulatory changes, etc.
Consider fundamentals - Company financials, debt, management quality
Adapt to market crashes - Works best in bull markets
Best Market Conditions:
✅ Nifty in uptrend (above 50 MA)
✅ Market breadth positive (more stocks advancing)
✅ Sector rotation happening
❌ Avoid in bear markets or high volatility periods
References:
Trade Like a Stock Market Wizard by Mark Minervini
Think & Trade Like a Champion by Mark Minervini
Chart attached: AU Small Finance Bank as on EoD dated 28/11/25
This script is a powerful tool for educational purpose only, remember: It's a tool, not a crystal ball. Use it to find high-probability setups, then apply proper risk management and patience. Good luck!
50-Week EMA & 100-Week MA (any TF)50-Week EMA & 100-Week MA
EMA 50W retains your stepline style.
MA 100W uses a normal smooth line (you can change style to stepline if you want).
Works on any timeframe — weekly calculation
Grok/Claude Quantum Signal Pro * Grok/Claude X Series*Grok/Claude Quantum Signal Pro
This is a TradingView indicator focused on catching momentum reversals at price extremes, with a sophisticated divergence detection system as its standout feature. The "Quantum" branding is marketing flair — under the hood, it's a well-structured combination of momentum oscillators, volatility bands, and divergence analysis working together to identify high-probability turning points.
Core Philosophy
The indicator asks: "Is price at an extreme level where momentum is exhausted, and is there evidence that a reversal or continuation is likely?"
It approaches this by requiring multiple confirming factors before generating a signal. Price must be at a band extreme, momentum indicators must be at extreme readings, and the market must be trending (not choppy). Optionally, it can also require RSI divergence and volume confirmation.
The Dynamic Envelope Bands
The foundation is an adaptive channel built around a moving average (EMA or SMA, user's choice). The bands extend above and below this centerline using ATR (Average True Range) multiplied by a dynamic factor.
What makes these bands "adaptive" is that the multiplier adjusts based on ADX — when trends are stronger, the bands widen to accommodate larger directional moves. In weaker trend environments, the bands stay tighter. This helps the bands stay relevant across different market conditions rather than being too loose in quiet markets or too tight during volatile trends.
The centerline itself is color-coded based on its slope: green when rising, red when falling, yellow when flat. This gives immediate visual feedback on short-term directional bias.
The Multi-Layer Filter System
Signals must pass through several filters before being displayed. Here's what each filter does:
FilterWhat It ChecksDefault StateADX TrendingIs ADX above threshold (20)? Avoids signals in choppy, directionless marketsRequired (always on)RSI ExtremesIs RSI oversold (<30) for buys, overbought (>70) for sells?Required (always on)Fisher TransformIs Fisher below -2.0 for buys, above +2.0 for sells? Confirms momentum exhaustionRequired (always on)Trend AlignmentIs price above/below the trend EMA in the right direction?Optional (off by default)Volume SurgeIs current volume significantly above average?Optional (off by default)DivergenceIs there an active RSI divergence pattern?Optional (off by default)
The Fisher Transform
The Fisher Transform is a lesser-known oscillator that converts price into a Gaussian normal distribution, making extreme values much more pronounced. When Fisher readings hit +2.0 or -2.0, it indicates statistically significant momentum exhaustion. By requiring both RSI and Fisher to be at extremes simultaneously, the indicator filters out many false signals that would occur using just one oscillator.
The Detrended Price Oscillator (DPO)
The indicator also calculates DPO, which removes the trend component from price to show where current price sits relative to a historical average. This is displayed in the info panel as a percentage — positive values mean price is extended above its typical level, negative values mean it's extended below. This helps gauge how "stretched" price is from its mean.
RSI Divergence Detection — The Core Feature
This is where the indicator really shines. It detects both regular divergences (reversal signals) and hidden divergences (continuation signals).
Regular Divergences
Regular divergences suggest potential reversals:
Regular Bullish Divergence: Price makes a lower low, but RSI makes a higher low. This indicates that despite price falling further, selling momentum is actually weakening — a potential bottom signal. These are marked with cyan/light blue solid lines on the chart.
Regular Bearish Divergence: Price makes a higher high, but RSI makes a lower high. Despite price rising further, buying momentum is weakening — a potential top signal. Also marked with cyan solid lines.
Hidden Divergences
Hidden divergences suggest trend continuation (often overlooked by traders):
Hidden Bullish Divergence: Price makes a higher low, but RSI makes a lower low. The uptrend is healthy (higher lows in price), but RSI dipped lower, creating a "hidden" bullish setup that often precedes another leg up. Marked with purple dashed lines.
Hidden Bearish Divergence: Price makes a lower high, but RSI makes a higher high. The downtrend structure is intact, but RSI bounced higher, suggesting another leg down is coming. Also marked with purple dashed lines.
The divergence detection uses pivot points (local highs and lows) to identify the comparison points. Users can adjust the pivot lookback (how many bars to use for pivot identification) and the maximum lookback window for finding divergence pairs.
Signal Generation Logic
A buy signal fires when all these conditions align:
Market is trending (ADX above threshold)
RSI is in oversold territory (below 30)
Fisher Transform is oversold (below -2.0)
Plus any optional filters that are enabled
A sell signal requires the mirror conditions: trending market, overbought RSI (above 70), and overbought Fisher (above +2.0).
There's also a cooldown mechanism requiring at least 5 bars between signals to prevent clustering.
Visual Elements
The indicator provides layered visual information:
Adaptive bands with color-coded centerline (green/red/yellow based on slope)
Cloud fill between bands, colored by trend direction
Signal arrows (triangles) at entry points
Price labels showing exact entry price at each signal
Divergence lines connecting the pivot points that form the divergence pattern
Divergence labels ("REG BULL", "HID BEAR", etc.) with tooltips explaining what each pattern means
Info panel showing current status of all indicators and any active divergences
The Info Panel
The top-right panel displays real-time status for all the indicator components. Each row is color-coded to show whether that factor is currently bullish, bearish, or neutral. The last two rows specifically track whether regular and hidden divergences are currently active, making it easy to see at a glance if a divergence pattern has recently formed.
Alert System
The indicator includes a comprehensive alert system covering not just buy/sell signals, but also "setup building" conditions (when RSI and Fisher are at extremes but ADX hasn't confirmed yet), market regime changes (trending to ranging and vice versa), and individual divergence detections for all four types.
Summary
This indicator is designed for traders who want to catch reversals at price extremes with multiple layers of confirmation. Its strength lies in the divergence detection system, which identifies both potential reversals and trend continuation setups. The modular filter system lets users dial in their preferred level of strictness — from the default configuration that requires just the core filters, to a highly selective mode requiring trend alignment, volume confirmation, and divergence all at once. It's best suited for swing trading or identifying key turning points on higher timeframes.
SCOTTGO - STOCK QUOTE V3This script is a customizable Pine Script indicator that creates a detailed, real-time table of essential trading metrics directly on your chart.
Its purpose is to provide day traders with a single-glance overview of the stock's most critical data points, including:
Valuation & Float (Market Cap, Shares Outstanding)
Daily Price Movement (High/Low, Daily Change %)
Volume & Momentum (RVOL, Volume Buzz, U/D Ratio, RSI)
Short Selling Pressure (Short Volume %)
It helps you quickly assess a stock's market structure, momentum, and technical context for efficient intraday decision-making.
Follow BreakoutThe indicator tracks trend breakouts. It generates multiple signals during sideways trends.
RSI مبسط//@version=5
indicator("RSI مبسط", overlay=false)
// حساب RSI
rsiValue = ta.rsi(close, 14)
// رسم خط RSI
plot(rsiValue)
// رسم المستويات
plot(95, "Level 95")
plot(78.6, "Level 78.6")
plot(61.8, "Level 61.8")
plot(38.2, "Level 38.2")
plot(21.4, "Level 21.4")
plot(5, "Level 5")
Monthly Open LineIt's a simple tool I made with the help of grok and SpacemanBTC Key level indicator which marks the monthly open with a line.
It will help you get a visual feel for how the price progresses over the month/s and can help you backtest trends easily.
Multi EMA (up to 6) - JamilThis indicator plots six customizable Exponential Moving Averages (EMA 1 to EMA 6) designed to help traders quickly identify market direction, trend strength, and dynamic support/resistance levels.
🔹 Key Features
Plots six EMAs simultaneously for multi-timeframe trend clarity
Helps detect trend reversals, pullbacks, and continuation setups
Ideal for scalping, intraday, swing trading, and funded challenges
Works on all markets (Gold, Forex, Crypto, Indices)
Customizable lengths and colors
Clean and lightweight — doesn’t affect chart performance
🔹 How to Use
When all EMAs are aligned and fanning out → Strong Trend
EMA compression → Low volatility / possible breakout setup
Price above all EMAs → Bullish zone
Price below all EMAs → Bearish zone
Perfect for traders who want a simple yet powerful trend-reading tool.
EMAs Bullish/Bearish Confluence [Trend Bias]EMA Confluence Zones
This indicator is designed to simplify trend identification by visually highlighting "Confluence Zones" —areas where short-term, medium-term, and long-term momentum are fully aligned.
While traders can manually add three Moving Averages to a chart, identifying the exact moment all three align (the "Perfect Stack") can be visually difficult during live trading. This script automates that process, converting complex line crosses into simple background color zones and providing actionable alerts for the exact moment a trend alignment begins.
🛠 How It Works
The script utilizes three customizable Exponential Moving Averages (EMAs) to detect the market bias:
Short EMA: Represents immediate price action/momentum.
Medium EMA: Represents the intermediate trend.
Long EMA: Represents the major trend baseline.
Calculations & Logic
The indicator checks for a specific hierarchical alignment (Stacking) of these averages:
1. 🟢 Bullish Confluence (Buy Zone):** Returns true when `Short > Medium` AND `Medium >Long`. This confirms that momentum is rising across all three monitored timeframes.
2. 🔴 Bearish Confluence (Sell Zone):** Returns true when `Short < Medium` AND `Medium < Long`. This confirms that momentum is falling across all three monitored timeframes.
3. ⚪ Neutral (No Color): Any other state indicates a choppy or consolidating market where the EMAs are intertwined.
---
🚀 Key Features
*Visual Bias Confirmation: The background highlights Green (Bullish) or Red (Bearish) only when the "Perfect Stack" conditions are met.
Trend Start Alerts: Unlike standard EMA cross alerts, this script includes custom alert conditions that trigger only on the first bar where the confluence becomes valid. This prevents spam alerts during a prolonged trend.
Full Customization: Users can adjust the lengths of all three EMAs to fit specific strategies (e.g., Scalping vs. Swing Trading).
Clean Chart Mode: Includes options to hide the EMA lines entirely and rely solely on the background color for a minimalist "Naked Trading" setup.
🎯 How to Use
1. Trend Filter: Use the background color to determine your directional bias. If the background is Green, look only for Long setups on lower timeframes. If Red, look only for Short setups.
2. Breakout Confirmation: If price breaks a key level, wait for the background color to flip. This confirms that the Moving Averages have caught up to the move, validating the breakout strength.
3. Exit Signal: If you are in a trend trade and the background color disappears (turns transparent), it indicates the trend momentum is fading and the EMAs are beginning to cross/compress.
⚙️ Settings
EMA Lengths: Default is 20, 50, 100. These can be changed to common combinations like (9, 21, 55) or (50, 100, 200).
Visuals: Toggle lines or background colors on/off and adjust transparency to keep your chart readable.
---
Disclaimer: This script is for informational purposes only. Past performance of a trend following method does not guarantee future results. Always use proper risk management.
MM Expected Move [v6]ATMStraddleNeed Update manually based on ATM Straddle Price
例子:
TradingView 图表界面:将鼠标悬停在名字上,点击出现的齿轮图标 (Settings)。在 "ATM Straddle Price" 这一栏,填入ATM Straddle Price(比如 7.0)。
苹果 (AAPL) 股价 235。
235 Call 价格 = 3.5
235 Put 价格 = 3.5
输入数字 = 7.0
🤖 DarkPool's Omni-MA APEX v3 🤖DarkPool's Omni-MA APEX v3 is an all-encompassing technical analysis suite designed to replace multiple indicators with a single, highly optimized tool. At its core, it features five independently customizable "Omni-MAs" capable of running various calculation models (SMA, EMA, HMA, LSMA, etc.) across multiple timeframes.
Beyond standard trend lines, the APEX v3 integrates a sophisticated "Market Structure Engine" that automatically plots Support & Resistance zones based on pivot points and volatility (ATR). It also features a "Trend Cloud" to visualize macro sentiment and a professional-grade Dashboard that aggregates data from over 10 different sources (RSI, MACD, OBV, Volume, etc.) to provide a real-time health check of the asset.
Key Features
5-Layer Omni-MA System: Five distinct moving averages with "Smart Coloring" that detects trends, consolidations (flat markets), and reversals.
Auto Support & Resistance: A dynamic algorithm that draws, updates, and prunes liquidity zones on the chart automatically.
Macro Trend Cloud: A visual background fill comparing Daily and Weekly momentum to keep you aligned with the higher timeframe.
Data Dashboard: A customizable panel displaying real-time metrics for Momentum, Volume, RSI, Divergences, and VWAP status.
Signal Generator: Alerts for MA crossovers, S/R breakouts, and trend shifts.
How to Use
1. The Omni-MAs (The Lines) The indicator plots up to five lines, color-coded for instant trend recognition:
Green/Blue: Price is above the previous value (Uptrend).
Red/Maroon: Price is below the previous value (Downtrend).
Gray: The line is flat (Consolidation/Chop).
MA 1-2 (Fast): Use these for entry triggers and scalping.
MA 3 (Medium): The "Anchor" line, often used as dynamic support.
MA 4-5 (Slow): The macro trend filters. If price is below MA 5, looking for longs is risky.
2. The Trend Cloud
Background Fill: This visualizes the difference between the Daily EMA and Weekly EMA.
Green Cloud: The Daily trend is above the Weekly trend (Strong Bullish Market).
Red Cloud: The Daily trend is below the Weekly trend (Strong Bearish Market).
3. Support & Resistance Zones
The Boxes: The script identifies pivot points and projects them forward as boxes.
Strategy: Watch for price to react at these zones. If a candle closes through a zone, it signals a Breakout (Green triangle) or Breakdown (Red triangle).
4. The Dashboard Located in the corner of your chart, this table provides a "Cockpit View" of the market:
Momentum Score: A composite score (-100 to +100) derived from RSI, MACD, and Stochastic.
Vol Ratio: Compares current volume to the average. A green bar indicates volume is higher than usual.
Market State: Classifies the market into regimes like "Volatile Bull," "Quiet Bear," or "Ranging."
Configuration Settings
Dashboard UI
Compact Mode: Reduces the table to show only the final Buy/Sell signal.
Active Widgets: Toggle individual data points (e.g., turn off "OBV" or "ADX" if you don't use them) to save screen space.
Global Analysis (Strategy Engine)
ATR Filter: Filters out "Weak" trends. If the price movement is too small (low volatility), signals are suppressed.
Volume MA: Sets the lookback period for calculating relative volume.
Support & Resistance
Pivot Sensitivity: Lower numbers find more zones (more noise); higher numbers find fewer, stronger zones.
Zone Width: Multiplies the ATR to determine how thick the S/R boxes should be.
MA Settings (1-5)
Type: Choose from SMA, EMA, WMA, HMA (Hull), VWMA, LSMA, ALMA, and more.
Timeframe: You can set MA 5 to "D" (Daily) while trading on a 15-minute chart to see the daily trend line overlaid.
Disclaimer This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a guarantee of future results.
Multivariate Kalman Filter🙏🏻 I see no1 ever posted an open source Multivariate Kalman filter on TV, so here it is, for you. Tested and mathematically correct implementation, with numerical safeties in place that do not affect the final results at all. That’s the main purpose of this drop, just to make the tool available here. Linear algebra everywhere, Neo would approve 4 sure.
...
Personally I haven't found any real use case of it for myself, aside from a very specific one I will explain later, but others usually do…
Almost every1 in the quant industry who uses Kalman is in fact misusing it, because by its real definition, it should be applied to Not the exact known values (e.g as real ticks provided by transparent audited regulated exchange), but “measurements” of those ‘with errors’.
If your measurements don’t have errors or you have real precise data, by its internal formulas Kalman will output the exact inputs. So most who use it come up with some imaginary errors of sorts, like from some kind of imaginary fair price etc. The important easy to miss point, the errors of your measurements have to be symmetric around its mean ‘ at least ’, if errors are biased, Kalman won’t provide.
For most tasks there are better tools, including other state space models , but still Multivariate Kalman is a very powerful instrument, you can make it do all kinds of stuff. Also as a state space model it can also provide confidence & prediction intervals without explicit calculations of dem.
...
In this script I included 2 example use cases, the first one is the classic tho perfectly working misuse, the second one is what I do with it:
One
Naive, estimates “hidden” adaptive moving regression endpoint. The result you can see on the chart above. You can imagine that your real datapoints are in fact non perfect measures of some hidden state, and by defining measurement noise and process noise, and by constructing the input matrixes in certain ways, you can express what that state should be.
Two
Upscaling tick lattice, aka modelling prices as if native tick size would’ve been lower. Kinda very specific task, mostly needed in HFT or just for analytical purposes. Some like ZN have huge tick sizes, they are traded a lot but barely do more than 20 ticks range in a session. The idea is to model raw data as AR2 process , learn the phi1 and phi2, make one point forecasts based on dem, and the process noise would be the variance of errors from these forecasts. The measurement noise here is legit, it’s quantization noise based on tick size, no need in olympic gold in mental gymnastics xd
^^ artificially upscaling ZN futures tick lattice
...
I really made it available there so You guys can take it and some crazy ish with it, just let state space models abduct your conciseness and never look back
∞
Micha Stokes Buyers Breakout Alert v2I added comments starts with EE , where code modifications are needed
Distance Dashboard (50DMA / 52W High / 20DMA)Distance Dashboard – Summary
The Distance Dashboard indicator provides a quick snapshot of where price is positioned relative to three key reference points:
Distance of current HIGH from the 50-day moving average (50DMA)
Helps gauge how extended price is above or below medium-term trend support.
Distance of current LOW from the 52-week HIGH
Shows how far price has pulled back from long-term highs.
Distance of current HIGH from the 20-day moving average (20DMA)
Measures short-term extension and potential overbought/overextended behaviour.
The indicator displays these values in a clean, movable table directly on the price chart.
It does not affect chart scaling and is designed for quick visual assessment of trend extension and relative strength.
Advanced FVG Detector Pro📊 Advanced FVG Detector Pro - Smart Money Analysis Tool
Overview
The Advanced FVG Detector Pro is a sophisticated Pine Script v6 indicator designed to identify and track Fair Value Gaps (FVGs) with institutional-grade precision. This tool goes beyond basic gap detection by incorporating volume analysis, smart money scoring, and adaptive filtering to help traders identify high-probability trading opportunities.
What are Fair Value Gaps?
Fair Value Gaps (FVGs) are price inefficiencies that occur when the market moves so quickly that it leaves behind an imbalance or "gap" in price action. These gaps often act as magnets for future price movement as the market seeks to fill these inefficiencies. Professional traders and institutions closely monitor FVGs as they represent areas of potential support, resistance, and high-probability trade setups.
🎯 Key Features
1. Smart Money Scoring System
Proprietary algorithm that rates each FVG on a 0-100 scale Combines gap size, volume strength, price location, and trend alignment Filter out low-quality setups by setting minimum score thresholdsFocus on institutional-grade opportunities with scores above 70
2. Advanced Volume Validation
Validates FVGs with volume analysis to reduce false signals Only displays gaps formed during significant volume periods Customizable volume multiplier for different market conditions
Visual volume strength indicators on chart
3. Flexible Mitigation Options
Full Fill: Traditional complete gap closure Midpoint Touch: More aggressive entry strategy
Partial Fill: Customizable percentage-based mitigation (10-90%) Choose the strategy that matches your trading style
4. ATR-Based Adaptive Filtering
Automatically adjusts to market volatility using Average True Range Works consistently across any instrument, timeframe, or volatility regime No manual recalibration needed when switching markets Filters out noise while capturing meaningful gaps
5. Real-Time Statistics Dashboard
Live tracking of total active FVGs Bullish vs Bearish gap count Mitigation rate percentage
Average Smart Money Score Toggle on/off based on preference
6. Professional Visual Design
Clean, customizable color schemes Optional midline display for precise entry planning
Labels showing gap type, score, and volume strength Automatic extension of active gaps
Mitigated gaps change color for easy identification
📈 How to Use
For Day Traders:
Use 5-15 minute timeframes
Set ATR Multiplier to 0.15-0.25
Enable volume validation
Focus on FVGs with scores above 65
For Swing Traders:
Use 1H-4H timeframes
Set ATR Multiplier to 0.5-1.0
Use "Midpoint Touch" mitigation
Focus on FVGs with scores above 70
For Position Traders:
Use Daily timeframe
Set ATR Multiplier to 0.75-1.5
Use "Full Fill" mitigation
Focus on FVGs with scores above 75
🔧 Customization Options
Detection Settings:
Minimum FVG size percentage filter
ATR-based size filtering
Maximum number of gaps to display
Smart Money Score minimum threshold
Volume Analysis:
Volume validation toggle
Volume multiplier adjustment
Volume moving average period
Visual volume strength background
Mitigation Control:
Choose mitigation type (Full/Midpoint/Partial)
Set partial fill percentage
Auto-remove mitigated gaps
Control how long mitigated gaps remain visible
Visual Customization:
Bullish/Bearish/Mitigated colors
Show/hide midlines
Show/hide labels
Box extension length
Statistics dashboard toggle
🎓 Trading Strategy Ideas
1. FVG Retest Strategy
Wait for price to create a high-score FVG (70+)
Enter on the first retest of the gap
Place stop loss beyond the gap
Target the opposite side of the gap or next FVG
2. Confluence Trading
Combine FVGs with support/resistance levels
Look for FVGs near key moving averages (20/50 EMA)
Higher probability when FVG aligns with trendlines
Use multiple timeframe analysis
3. Breakout Confirmation
FVGs often form during strong breakouts
High-volume FVGs confirm breakout strength
Enter on mitigation of breakout FVG
Trail stops as new FVGs form in trend direction
⚡ Performance Optimizations
Efficient memory management for smooth chart performance
Optimized calculations run only once per bar
Smart array management prevents memory leaks
Works smoothly even with 100+ active FVGs
🔔 Alert System
Customizable alerts for new bullish FVGs
Customizable alerts for new bearish FVGs
Mitigation alerts for active gaps
Frequency control to avoid alert spam
💡 Pro Tips
Multi-Timeframe Approach: Identify major FVGs on higher timeframes (Daily/4H) and use lower timeframes (15M/5M) for precise entries
Volume Confirmation: The highest probability setups occur when FVGs form with 2x+ average volume
Trend Alignment: Trade FVGs in the direction of the major trend for best results
Patience Pays: Wait for price to return to the FVG rather than chasing breakouts
Risk Management: Always use stop losses beyond the FVG boundaries
📚 Educational Value
This indicator is perfect for:
Learning to identify institutional order flow
Understanding market microstructure
Developing price action trading skills
Recognizing supply and demand imbalances
Improving entry and exit timing
⚠️ Disclaimer
This indicator is a tool for technical analysis and should not be used as the sole basis for trading decisions. Always combine with proper risk management, fundamental analysis, and your own trading plan. Past performance does not guarantee future results.
🔄 Updates & Support
Regular updates will include:
Additional filtering options
Enhanced multi-timeframe analysis
More customization features
Performance improvements
📊 Best Pairs/Markets
Works excellently on:
Forex pairs (EUR/USD, GBP/USD, etc.)
Cryptocurrency (BTC, ETH, etc.)
Stock indices (SPX, NQ, etc.)
Individual stocks
Commodities (Gold, Oil, etc.)
Version Information
Version: 1.0
Pine Script: Version 6
Type: Overlay Indicator
Max Boxes: 500
Max Lines: 500






















