EURCHF Pro: 1H Trend + Prob + Sessions + Timer + SwingsEURCHF – Table Explanation (Calm & Precision)
EURCHF is a slow and controlled pair.
The table focuses on patience and precision.
🔹 Market Trend (1H)
If the trend is not clear → no trade
EURCHF dislikes choppy markets
👉 The table helps you stay out of bad conditions.
🔹 Session
Best time:
London session only
👉 LOW session = stay out.
🔹 Candle Time Left
Less critical than other pairs.
Still useful for final confirmation
👉 No need to rush.
🔹 Buy / Sell Probability
Best results at 60%+
Fewer trades, higher quality
👉 One clean trade is better than many weak ones.
🔹 RSI / Volume
RSI moves slowly
Weak volume = low continuation
🟢 Result:
A precision-focused table for patient traders.
Educational
GBPJPY Pro: 1H Trend + Prob + Sessions + Timer + Swings📊 GBPJPY – Table Explanation (High Volatility Control)
GBPJPY is fast and volatile.
The table is designed to protect you before profit.
🔹 Market Trend (1H)
The most important field for this pair.
Trading against the trend is very risky
👉 Always follow the 1H trend.
🔹 Session
Best trading times:
London
London–New York Overlap
👉 Avoid trading outside these sessions.
🔹 Candle Time Left
Extremely important for GBPJPY.
Entering before candle close can be dangerous
👉 Always wait for confirmation.
🔹 Buy / Sell Probability
50%+ can be acceptable due to strong moves
“READY” status is more important than the number
👉 Quality over quantity.
🔹 RSI / Volume
RSI moves fast
Strong volume often precedes sharp moves
⚠️ Result:
A defensive table that helps avoid late or emotional entries.
USDJPY Pro: 1H Trend + Prob + Sessions + Timer + Swings
📊 USDJPY – Table Explanation (Balanced & Clean)
USDJPY is a well-balanced pair with smooth trends.
The table helps you enter calmly and precisely.
🔹 Market Trend (1H)
Shows the main direction from the 1-Hour timeframe.
BULL → Look for BUY only
BEAR → Look for SELL only
👉 USDJPY respects trend direction very well.
🔹 Session
Displays the current trading session.
London & New York = best volatility
LOW = slow market
👉 Helps you avoid trading during dead hours.
🔹 Candle Time Left
Shows how much time remains before the candle closes.
👉 Very useful for waiting for candle confirmation on USDJPY.
🔹 Buy / Sell Probability
Shows the strength of BUY or SELL setups in %.
55%+ is usually sufficient for this pair
👉 Helps avoid weak or early entries.
🔹 RSI / Volume
Confirms momentum and activity.
Strong volume = better follow-through
✅ Result:
A clean table designed for disciplined, trend-based trading.
OIL (WTI) Pro: 1H Trend + Prob + Sessions + Candle TimerIndicator Features
📈 Multi-Timeframe Trend Detection (1H)
Identifies the main market trend from the 1-Hour timeframe
Displays the trend clearly as Bullish / Bearish / Sideways
Avoids trading against the higher-timeframe direction
🎯 Smart BUY & SELL Signals (On Candles)
Clear BUY and SELL signals directly on the candles
Signals are placed below lows (BUY) and above highs (SELL)
Uses ATR offset so signals are always visible and never hidden inside candles
📊 Separate Buy & Sell Probability
Calculates BUY Probability and SELL Probability independently
Probabilities are shown as percentages
Helps traders decide when to enter and when to wait
🧠 Pullback-Based Logic (No Chasing Price)
Signals are generated only after healthy pullbacks
Prevents entering trades when price is overextended
Displays a “Wait for Pullback” warning during strong trend extensions
MTF CPRThe Central Pivot Range (CPR) is a technical indicator used to identify key price levels, trend direction, and market volatility.
This script provides a comprehensive MTF CPR engine that tracks Daily, Weekly, and Monthly levels simultaneously. It identifies "Fair Value" through the Central Pivot Range, allowing traders to maintain a clear structural bias across multiple timeframes without switching charts.
Unlike fixed-ratio pivots, these Standard Deviations are projected based on the internal width of each specific CPR. This dynamic calculation ensures that volatility targets (SD levels) are relative to the market's current compression or expansion, providing more accurate exhaustion points.
The indicator offers total control over every timeframe independently. Users can customize the number of SD levels, the specific step-multiplier for each timeframe, and all visual properties including line width, color, and style to ensure maximum chart clarity.
Use it with VWAP for additional confluence.
Predictive Candle and Accuracy CoreThis Predictive Candle – Accuracy Core indicator is designed to project the likely direction and size of the next candle based on market microstructure, volatility, momentum, and volume dynamics. It calculates a delta-based volume imbalance, RSI, EMA distances, ATR, and ADX to assess both the strength and trend of the market. The script applies a market regime filter to allow predictions only when trends are strong and aligned, then computes weighted bullish and bearish scores, normalizes them into probabilities, and self-measures its historical accuracy. Using this, it projects the next candle’s body and wicks, color-coded green or red for bullish or bearish, with a confidence percentage label. The projection adjusts dynamically for volatility, ADX strength, and prediction accuracy, providing traders with a quantitative, adaptive visual cue for potential price movement without repainting.
Volume + ATR Robust Z-Score Suite (MAD)Measure relevant volumes together with high-volatility candles, providing initiative signals based on volume. Mark the relevant candle and use it as support or resistance.
cephxs / New X Opening Gaps [Pro +]NWOG & NDOG - OPENING GAPS
Smart Gap Detection with Intelligent Filtering
Visualizes New Week Opening Gaps (NWOGs) and New Day Opening Gaps (NDOGs) with built-in intelligence to show you only what matters. No more cluttered charts with gaps from 3 months ago that price will never revisit.
THE PROBLEM WITH GAP INDICATORS
Most gap indicators dump every single gap on your chart and call it a day. You end up with 50 boxes cluttering your screen, half of which are miles away from current price and the other half are so tiny they're basically noise.
This one's different and I explain why below.
SMART FILTERING (THE GOOD STUFF)
Two filters work together to keep your chart clean:
Size Filter: Uses ATR-based detection to filter out insignificant gaps, dynamic with less volatile time periods
- Filter None: Show everything (if you really want chaos)
- Filter Insignificant: Hide the micro-gaps that don't matter
- Juicy Gaps Only: Only show gaps worth paying attention to
Distance Filter: Only displays gaps within range of current price
- Really Close: 0.5 ATR - tight focus on immediate levels
- Balanced: 1 ATR - sweet spot for most traders
- Slightly Far: 3 ATR - wider view for swing traders
Cleanup Interval: Controls how quickly out-of-range gaps disappear
- Immediately: Gaps hide/show every bar as price moves
- 5 / 15 / 30 Minutes: Gaps only update visibility at interval boundaries - reduces visual noise during choppy price action
The magic: gaps appear and disappear as price moves toward or away from them. Old gaps that price has left behind fade out, and gaps that become relevant fade back in. Use delayed cleanup intervals if you want gaps to "stick around" a bit longer before disappearing.
GAP TYPES EXPLAINED
New Week Opening Gaps (NWOGs):
The gap between Friday's close and Monday's open. These form over the weekend when markets are closed and often act as significant support/resistance.
Two classifications:
Void Gaps: Gap direction aligns with Friday's candle direction (continuation)
Overlap Gaps: Gap direction conflicts with Friday's candle (potential reversal)
New Day Opening Gaps (NDOGs):
The gap between one day's close and the next day's open. Smaller but frequent - useful for intraday traders looking for fill targets.
FEATURES
Automatic Week/Day Detection: Handles forex (17:00 ET open) and futures (18:00 ET open) correctly
DST-Aware: Uses New York timezone with automatic daylight saving adjustments
50% Equilibrium Line: Marks the midpoint of each gap - key level for entries
Days Ago Labels: Shows how old each gap is at a glance
Extension Modes: Choose between live-extending boxes or fixed-width boxes
Separate Color Schemes: Different colors for void vs overlap NWOGs, bullish vs bearish NDOGs
INPUTS
NWOG Display
Show NWOGs: Master toggle
Extension Mode: "Extend Live" or "Extend to Week Close"
Maximum NWOGs: Limit displayed gaps (1-50)
Show Void/Overlap Gaps: Toggle each type independently
Show NWOG Labels: Toggle gap labels
NDOG Display
Show NDOGs: Master toggle
Extension Mode: "Extend Live" or "Extend to Day Close"
Maximum NDOGs: Limit displayed gaps (1-50)
Show NDOG Labels: Toggle gap labels
Filter Settings
Size Filter: Filter None / Filter Insignificant / Juicy Gaps Only
Only Show Near Price: Enable/disable distance filtering
Distance Filter: Really Close / Balanced / Slightly Far
Cleanup Interval: Immediately / 5 Minutes / 15 Minutes / 30 Minutes - controls how often gaps update visibility
ATR Period: Period for ATR calculation (default: 14)
Right Edge Offset: How many bars ahead boxes extend
Styling
Box Transparency: Fill and border opacity
Midline Style: Solid / Dotted / Dashed
Label Style: Simple ("NWOG, 5d ago") or Descriptive ("NWOG (Void Bull), 5d ago")
Label Size: Tiny / Small / Normal / Large
RECOMMENDED SETTINGS
For intraday (1m-15m):
Size Filter: Filter Insignificant
Distance Filter: Really Close or Balanced
Show NDOGs: On
Maximum NDOGs: 5-10
For swing trading (1H-4H):
Size Filter: Juicy Gaps Only
Distance Filter: Balanced or Slightly Far
Show NWOGs: On
Maximum NWOGs: 10-20
TIMEFRAME NOTES
Works on daily timeframe and below. Above daily, the indicator disables itself since NWOG/NDOG gap detection requires daily open/close data.
ASSET SUPPORT
Automatically handles different market open times:
Forex: Week opens Sunday 17:00 ET, closes Friday 17:00 ET
Futures: Week opens Sunday 18:00 ET, closes Friday 16:15 ET
Stocks/Other: Uses session-based detection
FAQ
Why do gaps appear and disappear?
That's the distance filter working. As price moves, gaps that were far away become relevant and appear. Gaps that price leaves behind disappear. This keeps your chart focused on actionable levels.
What's the difference between void and overlap gaps?
Void gaps continue Friday's direction (trend continuation). Overlap gaps conflict with Friday's direction (potential reversal setup). Different traders prefer different types.
Why can't I see any gaps?
Check your filter settings. "Juicy Gaps Only" with "Really Close" distance filter is very selective. Try "Filter Insignificant" with "Balanced" for more gaps.
DISCLAIMER
This indicator is for educational purposes only. Opening gaps are one tool among many - they don't guarantee fills or reversals. Always use proper risk management and never trade based on a single indicator. Past gap fills don't guarantee future performance. Do your own analysis.
CHANGELOG
Pro +: Added smart size/distance filtering, void/overlap classification, NDOG support, DST-aware timezone handling
Base: Initial NWOG visualization
Made with ❤️ by fstarlabs
Asset Drift ModelThis Asset Drift Model is a statistical tool designed to detect whether an asset exhibits a systematic directional tendency in its historical returns. Unlike traditional momentum indicators that react to price movements, this indicator performs a formal hypothesis test to determine if the observed drift is statistically significant, economically meaningful, and structurally stable across time. The result is a classification that helps traders understand whether historical evidence supports a directional bias in the asset.
The core question the indicator answers is simple: Has this asset shown a reliable tendency to move in one direction over the past three years, and is that tendency strong enough to matter?
What is drift and why does it matter
In financial economics, drift refers to the expected rate of return of an asset over time. The concept originates from the geometric Brownian motion model, which describes asset prices as following a random walk with an added drift component (Black and Scholes, 1973). If drift is zero, price movements are purely random. If drift is positive, the asset tends to appreciate over time. If negative, it tends to depreciate.
The existence of drift has profound implications for trading strategy. Eugene Fama's Efficient Market Hypothesis (Fama, 1970) suggests that in efficient markets, risk-adjusted drift should be minimal because prices already reflect all available information. However, decades of empirical research have documented persistent anomalies. Jegadeesh and Titman (1993) demonstrated that stocks with positive past returns continue to outperform, a phenomenon known as momentum. DeBondt and Thaler (1985) found evidence of long-term mean reversion. These findings suggest that drift is not constant and can vary across assets and time periods.
For practitioners, understanding drift is fundamental. A positive drift implies that long positions have a statistical edge over time. A negative drift suggests short positions may be advantageous. No detectable drift means the asset behaves more like a random walk, where directional strategies have no inherent advantage.
How professionals use drift analysis
Institutional investors and hedge funds have long incorporated drift analysis into their systematic strategies. Quantitative funds typically estimate drift as part of their alpha generation process, using it to tilt portfolios toward assets with favorable expected returns (Grinold and Kahn, 2000).
The challenge lies not in calculating drift but in determining whether observed drift is genuine or merely statistical noise. A naive approach might conclude that any positive average return indicates positive drift. However, financial returns are noisy, and short samples can produce misleading estimates. This is why professional quants rely on formal statistical inference.
The standard approach involves testing the null hypothesis that expected returns equal zero against the alternative that they differ from zero. The test statistic is typically a t-ratio: the sample mean divided by its standard error. However, financial returns often exhibit serial correlation and heteroskedasticity, which invalidate simple standard errors. To address this, practitioners use heteroskedasticity and autocorrelation consistent standard errors, commonly known as HAC or Newey-West standard errors (Newey and West, 1987).
Beyond statistical significance, professional investors also consider economic significance. A statistically significant drift of 0.5 percent annually may not justify trading costs. Conversely, a large drift that fails to reach statistical significance due to high volatility may still inform portfolio construction. The most robust conclusions require both statistical and economic thresholds to be met.
Methodology
The Asset Drift Model implements a rigorous inference framework designed to minimize false positives while detecting genuine drift.
Return calculation
The indicator uses logarithmic returns over non-overlapping 60-day periods. Non-overlapping returns are essential because overlapping returns introduce artificial autocorrelation that biases variance estimates (Richardson and Stock, 1989). Using 60-day horizons rather than daily returns reduces noise and captures medium-term drift relevant for position traders.
The sample window spans 756 trading days, approximately three years of data. This provides 12 independent observations for the full sample and 6 observations per half-sample for structural stability testing.
Statistical inference
The indicator calculates the t-statistic for the null hypothesis that mean returns equal zero. To account for potential residual autocorrelation, it applies a simplified HAC correction with one lag, appropriate for non-overlapping returns where autocorrelation is minimal by construction.
Statistical significance requires the absolute t-statistic to exceed 2.0, corresponding to approximately 95 percent confidence. This threshold follows conventional practice in financial econometrics (Campbell, Lo, and MacKinlay, 1997).
Power analysis
A critical but often overlooked aspect of hypothesis testing is statistical power: the probability of detecting drift when it exists. With small samples, even substantial drift may fail to reach significance due to high standard errors. The indicator calculates the minimum detectable effect at 95 percent confidence and requires observed drift to exceed this threshold. This prevents classifying assets as having no drift when the test simply lacks power to detect it.
Robustness checks
The indicator applies multiple robustness checks before classifying drift as genuine.
First, the sign test examines whether the proportion of positive returns differs significantly from 50 percent. This non-parametric test is robust to distributional assumptions and verifies that the mean is not driven by outliers.
Second, mean-median agreement ensures that the mean and median returns share the same sign. Divergence indicates skewness that could distort inference.
Third, structural stability splits the sample into two halves and requires consistent signs of both means and t-statistics across sub-periods. This addresses the concern that drift may be an artifact of a specific regime rather than a persistent characteristic (Andrews, 1993).
Fourth, the variance ratio test detects mean-reverting behavior. Lo and MacKinlay (1988) showed that if returns follow a random walk, the variance of multi-period returns should scale linearly with the horizon. A variance ratio significantly below one indicates mean reversion, which contradicts persistent drift. The indicator blocks drift classification when significant mean reversion is detected.
Classification system
Based on these tests, the indicator classifies assets into three categories.
Strong evidence indicates that all criteria are met: statistical significance, economic significance (at least 3 percent annualized drift), adequate power, and all robustness checks pass. This classification suggests the asset has exhibited reliable directional tendency that is both statistically robust and economically meaningful.
Weak evidence indicates statistical significance without economic significance. The drift is detectable but small, typically below 3 percent annually. Such assets may still have directional tendency but the magnitude may not justify concentrated positioning.
No evidence indicates insufficient statistical support for drift. This does not prove the asset is driftless; it means the available data cannot distinguish drift from random variation. The indicator provides the specific reason for rejection, such as failed power analysis, inconsistent sub-samples, or detected mean reversion.
Dashboard explanation
The dashboard displays all relevant statistics for transparency.
Classification shows the current drift assessment: Positive Drift, Negative Drift, Positive (weak), Negative (weak), or No Drift.
Evidence indicates the strength of evidence: Strong, Weak, or None, with the specific reason for rejection if applicable.
Inference shows whether the sample is sufficient for analysis. Blocked indicates fewer than 10 observations. Heuristic indicates 10 to 19 observations, where asymptotic approximations are less reliable. Allowed indicates 20 or more observations with reliable inference.
The t-statistics for full sample and both half-samples show the test statistics and sample sizes. Double asterisks denote significance at the 5 percent level.
Power displays OK if observed drift exceeds the minimum detectable effect, or shows the MDE threshold if power is insufficient.
Sign Test shows the z-statistic for the proportion test. An asterisk indicates significance at 10 percent.
Mean equals Median indicates agreement between central tendency measures.
Struct(m) shows structural stability of means across half-samples, including the standardized level deviation.
Struct(t) shows whether t-statistics have consistent signs across half-samples.
VR Test shows the variance ratio and its z-statistic. An asterisk indicates the ratio differs significantly from one.
Econ. Sig. indicates whether drift exceeds the 3 percent annual threshold.
Drift (ann.) shows the annualized drift estimate.
Regime indicates whether the asset exhibits mean-reverting behavior based on the variance ratio test.
Practical applications for traders
For discretionary traders, the indicator provides a quantitative foundation for directional bias decisions. Rather than relying on intuition or simple price trends, traders can assess whether historical evidence supports their directional thesis.
For systematic traders, the indicator can serve as a regime filter. Trend-following strategies may perform better on assets with detectable positive drift, while mean-reversion strategies may suit assets where drift is absent or the variance ratio indicates mean reversion.
For portfolio construction, drift analysis helps identify assets where long-only exposure has historical justification versus assets requiring more balanced or tactical positioning.
Limitations
This indicator performs retrospective analysis and does not predict future returns. Past drift does not guarantee future drift. Markets evolve, regimes change, and historical patterns may not persist.
The three-year sample window captures medium-term tendencies but may miss shorter regime changes or longer structural shifts. The 60-day return horizon suits position traders but may not reflect intraday or weekly dynamics.
Small samples yield heuristic rather than statistically robust results. The indicator flags such cases but users should interpret them with appropriate caution.
References
Andrews, D.W.K. (1993) Tests for parameter instability and structural change with unknown change point. Econometrica, 61(4).
Black, F. and Scholes, M. (1973) The pricing of options and corporate liabilities. Journal of Political Economy, 81(3).
Campbell, J.Y., Lo, A.W. and MacKinlay, A.C. (1997) The econometrics of financial markets. Princeton: Princeton University Press.
DeBondt, W.F.M. and Thaler, R. (1985) Does the stock market overreact? Journal of Finance, 40(3).
Fama, E.F. (1970) Efficient capital markets: a review of theory and empirical work. Journal of Finance, 25(2).
Grinold, R.C. and Kahn, R.N. (2000) Active portfolio management. 2nd ed. New York: McGraw-Hill.
Jegadeesh, N. and Titman, S. (1993) Returns to buying winners and selling losers. Journal of Finance, 48(1).
Lo, A.W. and MacKinlay, A.C. (1988) Stock market prices do not follow random walks. Review of Financial Studies, 1(1).
Newey, W.K. and West, K.D. (1987) A simple, positive semi-definite, heteroskedasticity and autocorrelation consistent covariance matrix. Econometrica, 55(3).
Richardson, M. and Stock, J.H. (1989) Drawing inferences from statistics based on multiyear asset returns. Journal of Financial Economics, 25(2).
ANTS MVP Indicator David Ryan's Institutional Accumulation🚀 ANTS MVP Indicator – David Ryan's Legendary Accumulation Signal
Discover stocks under heavy **institutional buying** before they explode — just like 3-time U.S. Investing Champion David Ryan used to crush the markets!
This is a faithful, open-source recreation of the famous **ANTS (Momentum-Volume-Price)** pattern popularized by David Ryan (protégé of William O'Neil / IBD / CAN SLIM fame). It scans for the classic 15-day "MVP" setup that often appears in early stages of massive winners.
Key Features:
• Colored "Ants" diamonds show signal strength:
- Gray: Momentum only (12+ up days in 15)
- Yellow: Momentum + Volume surge (≥20% avg volume increase)
- Blue: Momentum + Price gain (≥20% rise)
- Green: FULL MVP (all three!) – the strongest institutional demand signal!
• Toggle to show ONLY green ants for cleaner charts
• Position ants above or below bars
• Built-in alert for NEW green ants (copy the alert condition or use alert() triggers)
• Optional background highlight + label on the last bar for quick spotting
Why ANTS Works:
- Flags consistent up-days + volume explosion + solid price advance
- Often clusters before major breakouts (cup-with-handle, flat bases, etc.)
- Used by pros to find leaders early (think NVDA, TSLA, CELH runs)
- Great for daily charts + combining with RS Rating, earnings growth, and market uptrends
How to Use:
1. Add to daily stock charts
2. Watch for GREEN ants (full MVP) in bases or near pivots
3. Wait for volume breakout above resistance for entry
4. Set alerts for "GREEN ANTS MVP detected!" to catch them live
Fully open code – feel free to tweak thresholds (lookback, % gains, etc.)!
Inspired by public descriptions from IBD, Deepvue, and Ryan's teachings.
If this helps you spot winners, drop a ❤️ like, comment your biggest ANTS catch, and follow for more CAN SLIM-style tools!
Questions? Want screener tweaks or strategy version? Comment below!
#ANTS #DavidRyan #MVPPattern #InstitutionalAccumulation #CANSLIM #TradingView #MomentumTrading #StockScanner The time it takes for a stock to rise significantly after a green ANTS (full MVP) signal appears varies widely — there is no fixed or guaranteed timeframe. The ANTS indicator (developed by David Ryan) flags strong institutional accumulation over a rolling ~3-week (15-day) period, but the actual price breakout or major advance often comes later, after further consolidation or a proper setup.
Typical Timings from Real-World Usage and Examples
Short-term (days to weeks): Sometimes the green ants appear during or right at the start of a breakout — price can rise 10–30%+ in the following 1–4 weeks if momentum continues and volume supports it (e.g., Rocket Lab (RKLB) showed ANTS strength ahead of a powerful breakout in examples from IBD).
Medium-term (weeks to months): More commonly, green ants signal early accumulation while the stock is still building or tightening in a base (e.g., cup-with-handle, flat base, high tight flag, or pullback to 10/21 EMA). The big move (often 50–200%+) happens after the stock forms a proper buy point (pivot breakout on high volume), which can take 2–12 weeks after the first green ants.
Longer-term leaders: In historical CAN SLIM winners, ANTS often appeared during the stealth accumulation phase (before the stock became obvious), with the major multi-month/year run starting 1–6 months later once the market confirmed an uptrend and the stock broke out.
Key points from David Ryan/IBD sources:
ANTS is a demand confirmation tool, not a precise timing signal.
Many stocks with green ants are extended when the signal fires — wait for a pullback/consolidation before expecting the next leg up.
In strong bull markets, clusters of green ants over several bars increase the odds of an imminent or near-term move.
If no breakout follows within ~1–3 months (and market weakens), the signal may fizzle — cut losses or move on.
Bottom line: Expect 0–3 months for meaningful upside in good setups, but always wait for a classic buy point (breakout above resistance on volume) rather than buying the ants alone. Backtest examples (e.g., via TradingView replay on past leaders like NVDA, TSLA, or CELH during their runs) to see the lag in action.
Optimized SMC - OB & FVG MTFOB & FVG on different timeframes
Optimized version that can show HTF PDAs on LTF
US Recessions - ShadingThis indicator shades the chart background during every U.S. recession as dated by the National Bureau of Economic Research (NBER). Recessions are defined using NBER’s business cycle peak-to-trough months, and the script shades from the peak month through the trough month (inclusive) using monthly boundaries.
What it does
* Applies a shaded overlay on your chart **only during recession periods**.
* Works on any symbol and any timeframe (crypto, equities, FX, commodities, bonds, indices).
* Includes options to:
- Toggle shading on/off
- Choose your preferred shading colour
- Adjust transparency for readability
Why this overlay is important for analysing any asset class
Even if you trade or invest in assets that aren’t directly tied to U.S. GDP (like crypto or commodities), U.S. recessions often coincide with major shifts in:
-Risk appetite (risk-on vs risk-off behaviour)
-Liquidity conditions (credit availability, financial stress)
-Interest-rate expectations and central bank response
-Earnings expectations and corporate defaults
-Volatility regimes (large, sustained changes in volatility)
Having recession shading directly on the price chart helps you quickly see whether price action is happening in a historically “normal” expansion environment, or in a macro regime where behaviour can change dramatically. This is particularly useful in a deeper analysis like comparing GOLD to SPX. This chart makes it clear how in recessions the S&P bleeds against Gold therefor making the concept more visual and better for understanding.
Of course this is just an example of how it can be used, there are plenty of other factors which can be overlayed like unemployment and interest rates for an even better understanding.
Please DM majordistribution.inc on Instagram for any info - FREE - NO Course
7 Custom Moving Averages (SMA / EMA / HMA)Key Features
✅ 7 Moving Averages at Once
✅ You can choose the type of each moving average (SMA / EMA / HMA)
✅ Each moving average has its own length and color
✅ Direct overlay on the price chart
✅ Pine Script v6 (latest)
3 MA Smart Money System v6 (No Repaint)✅ INDICATOR SPECIFICATIONS
🎯 Moving Average Type
SMA – Simple Moving Average
EMA – Exponential Moving Average
HMA – Hull Moving Average
🔥 Complete Features
✔ 3 moving averages in 1 indicator
✔ SMA/EMA/HMA options
✔ Turn each moving average on/off
✔ Multi-Timeframe (MTF)
✔ Auto Color Trend
✔ MA labels on the chart
✔ Alerts for all moving average combinations
✔ Color fill between moving averages (trend zones)
✔ Automatic MA crossover strategy (Buy/Sell)
✔ Smart Money + Moving Average (major trend filter)
✔ Moving average as automatic support & resistance
✔ NO REPAINT (safe for backtesting & live use)
🧠 SYSTEM LOGIC
MA 3 = Smart Money MA (main trend)
BUY
MA1 crosses UP MA2
Price above MA3
SELL
MA1 MA2 crosses down
Price below MA3
The MA3 zone is considered dynamic support/resistance.
Created by Dr. Trade
Reflation Proxy: (QQQ/GSG) vs QQQ (Base-100)This indicator builds a single “reflation impulse” line by standardizing the QQQ/GSG ratio (growth equities vs commodities) and comparing it to QQQ over the same Base-100 lookback window. The result highlights when commodities are catching up to or outperforming growth (reflation/broadening impulse) versus when growth is dominating real assets (disinflation/duration regime). The main line is smoothed with a user-defined EMA and includes three configurable control EMAs (21/50/100 by default). Rising readings generally reflect growth leadership; a rollover into a sustained decline tends to mark reflation pressure building under the surface.
Star SMC and Price action [ARule]This script is a Smart Money Concepts (SMC) + Price Action + VWAP + Swing Zones indicator.
It detects and draws:
✅ Fair Value Gaps (FVG)
✅ Imbalances (HTF FVG)
✅ BOS / CHoCH (Market Structure)
✅ Internal & Swing Structure
✅ Order Blocks (Internal + Swing)
✅ Equal High / Equal Low (EQH / EQL)
✅ Premium / Discount Zones
✅ Multi-Timeframe High & Low levels
✅ VWAP trend filter
✅ Swing High / Low zones with volume/count filter
✅ Alerts for all major SMC events
👉 Basically:
💎 “All-in-one institutional trading indicator”
✅ 1) HTF FVG / Imbalance System (First Part)
This part:
Uses multiple higher timeframes:
5m, 15m, 1H, 4H, 1D, 1W
Detects imbalance (FVG-like gaps)
Draws boxes on chart
Marks mitigated zones
Adds labels like: 5m, 15m, 1H etc.
Logic:
An imbalance forms when:
current high < previous low (gap down)
or
current low > previous high (gap up)
Then it draws a box 📦
✅ 2) Mitigation Logic (Very Important)
Your script checks when FVG is filled:
Options:
Wick filled
Body filled
Half filled
None
Example:
"Wick filled" => low <= imb.open
Meaning:
👉 Price touched the FVG → mark as mitigated.
✅ 3) Smart Money Concepts (SMC Core)
This huge section detects:
🔹 BOS (Break of Structure)
When price breaks previous swing high/low.
🔹 CHoCH (Change of Character)
Trend reversal signal.
Example:
Uptrend → break low → CHoCH bearish
Downtrend → break high → CHoCH bullish
✅ 4) Internal vs Swing Structure
Internal Structure:
Small moves (lower timeframe)
Fast signals ⚡
Swing Structure:
Major trend structure
Strong signals 💪
You can enable/disable both in settings.
✅ 5) Order Blocks (OB)
Detected when structure breaks.
Two types:
🟢 Bullish OB
🔴 Bearish OB
Logic:
Script finds last opposite candle before BOS/CHoCH.
Then draws OB box 📦
Also checks mitigation:
close > OB high → bearish OB broken
close < OB low → bullish OB broken
✅ 6) Equal High / Equal Low (Liquidity)
Detects liquidity zones:
EQH = Equal High
EQL = Equal Low
Logic:
If two highs/lows are close within ATR threshold.
Used for:
👉 Liquidity grab / stop hunt zones.
✅ 7) Fair Value Gaps (FVG) – Another System
This is separate from HTF imbalance.
Condition:
currentLow > high → bullish FVG
currentHigh < low → bearish FVG
Draws 2 boxes per FVG.
✅ 8) Premium / Discount Zones
Based on latest swing high & low:
Premium zone = top 50%
Discount zone = bottom 50%
Equilibrium = middle
Used in SMC for entries.
✅ 9) Multi-Timeframe High/Low Levels
Draws:
Previous Day High/Low
Previous Week High/Low
Previous Month High/Low
✅ 10) VWAP Filter (Your Added Block)
You added:
VWAP Line
vwapValue = ta.vwap(close)
Trend Filter
Bullish → price above VWAP
Bearish → price below VWAP
ATM / ITM / OTM logic
atm_condition = abs(close - vwap) <= 25
Meaning:
ATM = price near VWAP
ITM / OTM = based on VWAP direction
💡 This is NOT real option ATM — it's a conceptual filter.
✅ 11) Swing High / Low Zones (Last Part)
This part:
Detects swing highs & lows using pivot logic
Creates zones (boxes)
Counts touches or volume inside zone
Filters strong zones
Example:
More touches = stronger support/resistance
More volume = institutional interest
✅ What makes this script powerful 💎
It combines:
Concept Purpose
FVG / Imbalance Institutional gaps
BOS / CHoCH Trend change
Order Blocks Smart money zones
EQH/EQL Liquidity
Premium/Discount Entry zones
VWAP Trend filter
Swing Zones Support/Resistance
👉 This is almost like ICT + SMC + Volume + VWAP hybrid.
✅ If you want, I can help you:
I can:
✅ Simplify this script (remove heavy parts)
✅ Add NIFTY / BANKNIFTY option logic
✅ Add Buy/Sell signals
✅ Add scanner (BOS + VWAP + FVG)
✅ Add dashboard table
✅ Optimize performance (reduce lag)
✅ Convert VWAP → real ATM strike logic
✅ Explain any part line-by-line
Option Levels PlottingThis script plots the levels for options of single legs and 4 vertical spreads.
Multi-Indicator Dashboard# Multi-Indicator Dashboard v3.7
## What Makes This Script Original?
This dashboard is **not a simple indicator mashup**. It implements a **unique multi-layer decision system** that combines three distinct methodologies into a unified framework:
1. **Ehlers' Laguerre Mathematics** - 18 weighted Laguerre filters with consensus voting
2. **Minervini's Trend Template** - Structural trend analysis using SMA relationships
3. **Defensive Voting System** - A 7-jury protection mechanism to prevent false signals
The key innovation is the **layered signal override architecture**: each layer can downgrade (but never upgrade) signals from the previous layer, creating a "safety net" that catches bull traps and false breakouts.
---
## How It Works: The 5-Layer Protection System
### Layer 1: Laguerre Consensus (Signal Generation)
The script calculates 18 Laguerre filters with gamma values from 0.10 to 0.95. Each filter "votes" bullish or bearish based on:
- Price position relative to filter
- Filter direction (rising/falling)
Votes are weighted by gamma (slower filters = higher weight). The **Effective Consensus** percentage determines the base signal strength.
### Layer 2: Market Filter (Macro Protection)
```
IF Reference Index (SPY/QQQ) < 200-day SMA
THEN Market = Bearish → Block ENTER signals
```
This prevents new entries during bear markets, regardless of individual stock strength.
### Layer 3: Regime Filter (Market Condition)
The script detects three market regimes using 7 criteria:
- ADX level (trend strength)
- DI+ vs DI- spread
- RSI position
- SMA convergence
- Volatility contraction
- Laguerre spread
**Choppy or Sideways regime** → Downgrade TREND/ENTER to CAUTION
### Layer 4: Protection Score (7-Jury System)
Seven independent "juries" vote on structural health:
| Jury | Condition | Meaning |
|------|-----------|---------|
| Laguerre | Close < Lag01 | Fast support broken |
| MACD | Histogram < 0 | Momentum negative |
| OBV | Trend = -1 | Volume selling |
| SMA20 | Close < SMA20 | Short-term trend broken |
| EMA Structure | EMA10 < SMA20 | Trend structure damaged |
| RS Line | RS < RS SMA50 | Underperforming index |
| Net Momentum | RSC < 50 | Sellers stronger than buyers |
**Scoring:**
- 0-1 points: Normal
- 2 points: Yellow Alert (TREND → WAIT)
- 3+ points: Red Alert (→ CAUTION)
### Layer 5: RSI Divergence Alert (Visual Warning)
When price approaches a 60-day high but RSI is 5+ points lower than at the previous peak, a warning icon (⚠️) appears. This **does not change signals** - it's informational only.
---
## Signal Interpretation
| Signal | Code | Meaning | Action |
|--------|------|---------|--------|
| 🟢 ENTER | 5 | Strong setup, all layers confirm | Consider entry |
| 🟢 TREND | 4 | Trend continues, structure intact | Hold position |
| 🟠 CAUTION | 3 | Warning signs present | Avoid new entries |
| 🟡 WATCH | 2 | Developing, too early | Monitor closely |
| ⚪ WAIT | 1 | Conditions unfavorable | Stay in cash |
---
## Key Indicators Explained
### RSC (Relative Strength of Change)
```
RSC = Sum of Positive Changes / Total Changes × 100
```
- RSC > 50: Buyers creating larger moves
- RSC < 50: Sellers creating larger moves
### Effective Consensus
Weighted average of 18 Laguerre filter votes. Higher gamma filters (slower, more reliable) have 2x weight compared to fast filters.
### LaRSI (Laguerre RSI)
Ehlers' smoothed RSI variant. Key zones:
- Below 0.20: Oversold (potential bottom)
- 0.30-0.55: Pullback zone (entry opportunity if turning up)
- Above 0.80: Overbought (caution)
---
## How to Use
1. **Check FINAL SIGNAL** - This is the output after all 5 layers process
2. **Read Status Row** - Shows which filter is currently active (if any)
3. **Monitor RSI Alert** - Orange color with ⚠️ means divergence detected
4. **Use Data Window** - Right-click chart → Data Window for all raw values
### Settings
- **Reference Index**: SPY for US stocks, BTCUSD for crypto
- **RS Lookback**: Period for relative strength calculation (default 50)
- **Filters can be toggled** on/off based on your strategy
---
## Important Disclaimers
- This indicator does not guarantee profits
- Past performance ≠ future results
- ENTER signal ≠ "buy immediately" - always confirm with your own analysis
- Risk management remains your responsibility
---
## Credits & Methodology Sources
- **Laguerre Filters**: John Ehlers, "Cybernetic Analysis for Stocks and Futures"
- **Trend Template**: Mark Minervini, "Trade Like a Stock Market Wizard"
- **CANSLIM**: William O'Neil, "How to Make Money in Stocks"
---
ADR from 50 SMA - Histogram & LabelMore inside the script
INDICATOR PURPOSE:
This indicator measures how far price has moved from the 50-period SMA
in terms of Average Daily Range (ADR). It helps identify:
- When stocks are overextended and may be due for pullback/consolidation
- Potential entry/exit points based on momentum extremes
- Position trimming opportunities when price is stretched
INTERPRETATION:
- Positive values = Price is ABOVE the 50 SMA
- Negative values = Price is BELOW the 50 SMA
- Higher absolute values = More extreme/stretched moves
- Values >2 or <-2 typically indicate overextended conditions
Macro Risk SentimentOverview
This indicator provides a simple traffic light for your trading: green means go, red means slow down.
The background color appears directly on your price chart and in the oscillator pane below. When green, macro conditions favor risk assets and you can trade with full conviction. When red, the indicator suggests reducing position sizes, tightening stops, or stepping aside entirely.
The oscillator pane shows the underlying calculation so you can see how close the market is to flipping regimes.
The Core Idea
Markets move in risk cycles. When institutional money is confident, it flows into equities, high-yield bonds, and away from safe havens. When fear takes over, money rotates into treasuries, the dollar strengthens, and volatility spikes.
This indicator reads those flows by monitoring four markets simultaneously:
Risk-On Signals (good for stocks when rising)
TLT - Long-term Treasury bonds
JNK - High-yield corporate credit
Risk-Off Signals (bad for stocks when rising)
DXY - US Dollar strength
VIX - Market volatility
When bonds and credit are strong relative to their recent history while the dollar and volatility are weak, the background turns green. You have a tailwind. When the opposite occurs, the background turns red. You are fighting the current.
How It Works
Step 1: Z-Score Normalization
Each input is converted to a z-score: how many standard deviations the current value is from its 252-day rolling average. This puts all four inputs on a comparable scale regardless of their absolute price levels.
Step 2: Composite Calculation
Macro Score = (TLT z-score + JNK z-score) minus (DXY z-score + VIX z-score)
Risk-on inputs contribute positively when elevated. Risk-off inputs subtract when elevated. The result is clamped between -1.5 and +1.5 and smoothed with EMAs.
Step 3: State Machine
The indicator uses crossover-based transitions with memory:
RISK ON triggers when the smoothed macro line crosses above its signal line.
RISK OFF triggers when the macro line crosses below its signal line, or when price breaks below its EMA while the macro value is negative (double confirmation exit).
How to Use It
Green Background - Full Steam Ahead
Macro conditions support risk-taking. This is when trend-following strategies tend to work best. Use normal position sizes, take breakout trades, and hold winners longer.
Red Background - Reduce Risk
The macro wind is against you. Consider smaller positions, quicker profit-taking, or sitting out entirely. Mean-reversion setups may work better than trend-following during these periods. Many major drawdowns occur during red regimes.
The Oscillator Pane
The colored line is the macro reading, the white line is its signal. When the colored line crosses above the signal, conditions turn bullish. When it crosses below, conditions turn bearish. The zero line represents neutral. Positive values mean macro conditions are better than the one-year average.
What Makes This Original
This implementation combines z-score normalization across multiple asset classes with a state machine approach that reduces whipsaws. The price filter acts as a circuit breaker but only triggers exits when macro conditions are also deteriorating, preventing premature exits during temporary price weakness.
Settings Guide
Main Settings
Z-Score Lookback (default 252) - Period for calculating mean and standard deviation. 252 bars equals one trading year on daily charts.
Macro EMA (default 7) - Smoothing applied to the raw composite score.
Signal EMA (default 8) - Secondary smoothing for the crossover signal line.
Price Filter
Enable Price Filter (default On) - When enabled, price breaking below the EMA triggers an exit only if the macro value is also negative.
EMA Length (default 20) - The EMA period for the price filter.
Data Sources
Each source (TLT, JNK, DXY, VIX) can be enabled or disabled and weighted from 0 to 3. Default is equal weighting (1.0) for all sources.
Limitations
This is a daily-timeframe indicator. On intraday charts, signals reflect yesterday's macro reading until the day closes.
The z-score lookback creates recency bias. What was normal over the past year may not reflect longer-term historical norms.
Intermarket correlations can change. What worked in recent decades may shift in different monetary regimes.
Not all equity drawdowns come with macro warning. Flash crashes and idiosyncratic events can occur without macro deterioration.
The indicator identifies conditions, not predictions. Green does not guarantee gains. Red does not guarantee losses.
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice.
Green background does not mean buy. Red background does not mean sell. These are environmental readings to help you calibrate your risk-taking, not trade signals.
Past intermarket relationships do not guarantee future behavior. Always conduct your own research. Consider your personal risk tolerance. Never risk more than you can afford to lose.
India Union Budget Days Marker🇮🇳 India Union Budget Day Marker
This indicator marks Indian Union Budget presentation days directly on the chart using a single vertical line, making it easy to visually identify how markets behave around budget announcements.
The dates are hard-coded for historical accuracy and extended to future years based on the standard 1st February schedule.
What this indicator does
Draws one vertical line on each Union Budget day
Covers historical budget dates from 1980 onward
Marks future budget days up to the next 5 years, assuming 1st February
Works on daily and intraday charts
Does not repaint and does not rely on external data
Why this is useful
Study volatility, gaps, and trend behavior on budget days
Analyze pre-budget and post-budget price action
Identify structural changes, continuations, or reversals
Useful for investors, swing traders, and intraday traders
Customization
You can adjust:
Line color
Line style (solid, dashed, dotted)
Line thickness
Important notes
Vertical lines appear only when price data exists for that date
Future budget lines will show automatically when those dates are reached.
Past years include both interim and full budgets where applicable.
Recommended use
Combine this indicator with:
Price action analysis
Trend and bias tools
Volatility or range expansion studies
Event-based market behavior analysis
This indicator is designed to provide context, not signals.
Use it to understand when an important macro event occurred, not to predict market direction.
Optimal Day Trading System🚥 How to Trade with ODTS
The indicator provides visual cues on the chart (triangles) and a real-time Status Table to help you make decisions.
Signal Definitions
Buy Signal (Green Triangle): Price is above the Sunya line and the Primary Cycle is trending up.
Strong Buy (Lime Triangle): All criteria are met, plus the Secondary Cycle has also turned bullish. This indicates "confluence".
Sell Signal (Red Triangle): Price is below the Sunya line and the Primary Cycle is trending down.
Strong Sell (Maroon Triangle): Both Primary and Secondary cycles are aligned with a price break below the Sunya line.
Real-Time Status Table
Located at the top right, this table gives you an instant "health check" of the current asset:
Price > Sunya: Confirms if the current price is above or below the FLD.
Cycle Dir: Shows the slope of the primary trend.
Position: Tells you if price is "Inside" the envelope (ranging) or "Above/Below" (overextended).
📈 Best Practices
Confluence is Key: The strongest trades occur when the Signal column in the table shows "STRONG BUY" or "STRONG SELL," meaning multiple cycles are in agreement.
Envelope Extremes: If the Status Table shows the Position as "ABOVE" or "BELOW" the envelope, be cautious about entering new trades, as the price may be overextended and due for a reversion to the Basis (mean).
Timeframe Synergy: Use the 15-minute timeframe for swing trade entries and the 1-minute or 5-minute for precise day trading executions.






















