Polynomial Regression Channel [ChartPrime]⯁ OVERVIEW
The Polynomial Regression Channel fits price action using advanced polynomial regression, extending beyond simple linear or logarithmic models. By leveraging matrix calculations, it builds a curved regression line that adapts to swings more naturally. The channel includes extrapolated forward projections, helping traders visualize where price may gravitate in the near future. Midline color shifts reflect directional bias, while prediction ranges are marked with dashed extensions, labeled prices, and a live table for clarity.
⯁ KEY FEATURES
Polynomial Regression Core:
Uses matrix algebra to calculate a polynomial fit of customizable degree, adapting to complex, non-linear market structures.
polyreg(source, length, degree, extrapolate) =>
total = length + extrapolate
X_all = matrix.new(total, degree + 1, 0.0)
for i = 0 to total - 1
for j = 0 to degree
matrix.set(X_all, i, j, math.pow(i, j))
// y (length × 1), oldest→newest over the fit window
y = matrix.new(length, 1, 0.0)
for i = 0 to length - 1
matrix.set(y, i, 0, source )
// X_train (first `length` rows of X_all)
X_tr = matrix.new(length, degree + 1, 0.0)
for i = 0 to length - 1
for j = 0 to degree
matrix.set(X_tr, i, j, matrix.get(X_all, i, j))
// OLS via normal equations: (X'X)^(-1)b = X'y ⇒ b = (X'X)^(-1) X'y
Xt = matrix.transpose(X_tr) // X'
XtX = matrix.mult(Xt, X_tr) // (X'X)
Xty = matrix.mult(Xt, y) // X'y
XtX_inv = matrix.inv(XtX) // (X'X)^(-1)
b = matrix.mult(XtX_inv, Xty) // b = (X'X)^(-1) X'y
// Predictions for all rows (fit + extrap)
preds = matrix.mult(X_all, matrix.col(b,0))
preds
Extrapolated Future Projections:
Forward-looking range (dashed lines + circular markers) shows where the fitted polynomial suggests price may move.
Dynamic Midline Coloring:
Regression midline shifts green when slope turns upward and magenta when slope turns downward, giving instant directional context.
Channel Boundaries:
Upper and lower levels expand from the midline using a volatility-based offset, framing potential overbought and oversold conditions.
Top-Right Data Table:
A live table displays Upper, Middle, and Lower Prediction values, updating in real time for quick reference without scanning the chart.
⯁ USAGE
Use the regression midline to gauge underlying market bias; green slopes suggest continuation, magenta slopes caution for weakness.
Watch dashed extrapolated ranges as potential targets or reaction zones during upcoming sessions.
Price labels and table values act as precise reference levels for planning entries, exits, or stop placement.
Increase Degree for more curve-fitting on choppy markets, or keep it low for broader trend approximation.
Adjust Period and Extrapolate length to balance stability vs. responsiveness.
⯁ CONCLUSION
The Polynomial Regression Channel offers a mathematically advanced way to visualize price trends and anticipate future paths. With matrix-driven polynomial fitting, extrapolated projections, and integrated live labels, it combines statistical rigor with practical trading visuals — a robust upgrade over standard regression channels.
サイクル
Planetary IngressDisplays planetary ingresses, the moments when a planet crosses from one zodiac sign into another. This indicator marks historical ingresses directly on your chart and projects upcoming ones with precise date, time, and retrograde status.
Powered by the open-source BlueprintResearch Planetary Ephemeris library , which implements truncated VSOP87 (planets) and ELP2000 (Moon) series for high-accuracy celestial calculations entirely within Pine Script.
█ FEATURES
• All 10 celestial bodies — Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto
• Geocentric or Heliocentric views — toggle between Earth-centered (standard astrology) and Sun-centered perspectives
• Retrograde indicator — shows ℞ symbol when a planet is in apparent retrograde motion (geocentric only)
• Future ingress projection — displays the following sign change as a dotted vertical line with customizable date/time and timezone
• Color-coded by zodiac sign — 12 fully customizable colors for each sign
• Per-sign visibility controls — easily show/hide specific signs
• Per-sign alerts — get notified when a planet enters selected signs
• Fully customizable labels — adjust size, colors, transparency, and placement
█ HOW TO USE
1. Select your planet from the dropdown
2. Choose Geocentric (traditional) or Heliocentric view
3. Historical ingresses appear as labels above price bars with a planet symbol and a zodiac sign
4. The next future ingress is shown as a dotted vertical line with projected date/time
5. Hover over labels for exact degree position (e.g., "0°Ari00'")
6. Set up alerts via "Alert on Ingress" settings for specific sign entries
█ LIMITATIONS & ACCURACY
This indicator uses optimized, truncated VSOP87 and ELP2000 series tailored for Pine Script performance. It delivers excellent accuracy for trading and analytical purposes, but is not intended for professional astronomical use.
Expected Ingress Timing Accuracy (Geocentric view):
• Sun, Moon, Mercury, Venus, Mars: Within hours to ±1 day
• Jupiter, Saturn: Within ±1–2 days
• Uranus, Neptune: Within ±3–7 days
• Pluto: Within ±1–2 weeks (simplified Meeus method, valid 1900–2100)
Heliocentric view: Inner and faster-moving planets match geocentric accuracy. Outer planets (especially Uranus/Neptune) may occasionally show larger variances (up to ±1 month in rare cases) due to their extremely slow motion amplifying minor truncation effects in the series.
Why outer planets vary more:
Slower planets take weeks or months to cross a single degree. Even minor positional discrepancies from truncated terms can shift ingress timing by days or weeks—most noticeable with the outermost bodies.
Recommendation: For mission-critical timing, always cross-reference with professional tools such as JPL Horizons , Swiss Ephemeris, or Astro.com.
█ ROADMAP
Accuracy improvements are an ongoing priority. The modular library design allows targeted upgrades to individual planets without breaking existing functionality.
Planned Enhancements:
• Higher-precision outer planet calculations (Uranus, Neptune)
• Improved heliocentric outer planet accuracy
• Enhanced Pluto method
• Additional series terms where beneficial
Updates will be released through the BlueprintResearch/lib_ephemeris library—follow for notifications.
█ OPEN SOURCE
This indicator is part of the fully open-source Planetary Ephemeris project. The core ephemeris library is public for study, modification, and reuse in your own scripts:
• BlueprintResearch/lib_ephemeris — Main planetary calculation engine
Licensed under MPL 2.0 — free to use and modify, with changes to the library shared back to the community.
Multi-Metric Market Regime Detector - [KK]This indicator identifies current market behavioral regimes by synthesizing six complementary analytical methodologies. Rather than generating trading signals, it provides contextual analysis to help traders understand market conditions and adapt their strategies accordingly.
Markets cycle through distinct behavioral states - trending efficiently, consolidating in ranges, compressing before breakouts, or transitioning between states. This tool quantifies these conditions using only price action data (OHLC), enabling traders to filter strategies based on current market structure.
Core Methodology
The indicator combines six independent metrics into a weighted composite classification system:
Efficiency Ratio (30% weight)
Measures the signal-to-noise ratio of price movement by comparing net price displacement to total path traveled. High efficiency indicates clean directional movement; low efficiency indicates choppy, noisy conditions.
Choppiness Index (25% weight)
Quantifies whether the market is trending or consolidating by comparing cumulative True Range to actual price range. Values below 38.2 suggest trending behavior; values above 61.8 suggest range-bound consolidation.
Volatility Analysis (20% weight)
Detects compression and expansion cycles using the relationship between Bollinger Bands and Keltner Channels. Compression phases (squeeze conditions) often precede significant directional moves.
Fractal Efficiency Proxy (10% weight)
Analyzes path complexity by comparing net displacement to cumulative range, providing insight into the smoothness versus randomness of price action.
Market Structure (15% weight)
Examines pivot point sequences to identify structural trends. Higher Highs and Higher Lows indicate bullish structure; Lower Lows and Lower Highs indicate bearish structure.
Wick-to-Body Ratio Analysis (qualitative)
Identifies rejection and indecision patterns by measuring the proportion of candle wicks to bodies, highlighting potential reversal zones or liquidity events.
Regime Classifications
The composite scoring system produces four distinct regime states:
TRENDING : High efficiency, low choppiness, clear directional structure. Favorable conditions for momentum and trend-following strategies.
CHOPPY/RANGE : Low efficiency, high choppiness, mean-reverting behavior. Favorable conditions for range trading and counter-trend setups.
COMPRESSION : Volatility squeeze detected, market coiling. Anticipate expansion; reduce position size until breakout confirmation.
TRANSITION : Mixed signals, conflicting metrics, unclear direction. Recommended to reduce exposure and wait for regime clarity.
Visual Features
Regime-Colored Candles (enabled by default)
Candles are colored according to the current regime state for immediate visual identification. Green indicates trending, gray indicates choppy, orange indicates compression, and yellow indicates transition.
Comprehensive Metrics Table (top right)
Displays real-time values for all six metrics along with individual regime assessments and the final composite classification with score.
Regime Guide Table (middle right)
Quick reference guide showing recommended strategies and actions to avoid for each regime state.
Chart Label ( optional)
Summary label displaying current regime and key metric values.
Background Coloring (optional)
Alternative visualization using background colors instead of candle coloring.
Indicator Plots (optional)
Displays Efficiency Ratio and Choppiness Index with threshold reference lines.
Customization Options
All calculation parameters are adjustable:
- Efficiency Ratio lookback period and thresholds
- Choppiness Index length and classification thresholds
- Volatility analysis parameters (BB/KC multipliers and lengths)
- Pivot detection sensitivity (left/right bars)
- Text size controls for both tables (Tiny to Huge)
- Visual element toggles (candles, background, label, tables, plots)
The indicator automatically detects chart theme (dark/light) and adjusts text colors for optimal readability.
Practical Application
This is a context tool, not a signal generator. Use it to:
- Filter trend-following strategies to trending regimes only
- Identify range-bound conditions for mean-reversion setups
- Anticipate breakout opportunities during compression phases
- Reduce exposure during transitional periods with mixed signals
- Improve risk management by matching position size to regime clarity
The indicator works on all timeframes and instruments using only OHLC data. Higher timeframes generally provide more stable regime classifications.
Alert Conditions
Four alert types are available:
- Efficiency Ratio crosses trend threshold
- Choppiness Index enters range territory
- Volatility squeeze released
- Regime state change detected
Technical Notes
Built with Pine Script v5. Uses up to 500 bars of historical data for stable calculations. All metrics are calculated in real-time with no repainting on confirmed pivots. Compatible with all chart themes through adaptive text coloring.
Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or trading recommendations. Past performance and theoretical analysis do not guarantee future results. Always conduct independent research and implement appropriate risk management. Trading financial instruments involves substantial risk of loss.
Usage Philosophy
The goal is not to trade more frequently, but to think more clearly about market conditions. Use this tool to develop deeper intuition about market structure and to enforce discipline by avoiding low-probability setups during unfavorable regime conditions.
Gold Chop MeterWhat it does
It’s a market quality filter. It does NOT tell you direction.
It tells you when Gold is too compressed/choppy to trust clean expansions.
NORMAL = tradable conditions
CHOP = compressed / messy conditions
NO TRADE (30M BOX) = hard stop (30M is CHOP)
NO TRADE (HTF CHOP) = hard stop (majority of higher TFs are CHOP)
How to read the panel (left → right)
You’ll see:
1H: NORMAL/CHOP | 30M: NORMAL/CHOP | 15M: NORMAL/CHOP | 5M: NORMAL/CHOP | TRADE/NO TRADE
The rules (exact)
If 30M = CHOP → NO TRADE (30M BOX)
This is your strongest filter. Don’t fight it.
If 30M isn’t CHOP, then it checks majority:
Default: 1H + 30M + 15M
If 2 of 3 are CHOP → NO TRADE (HTF CHOP)
If those are not true → it prints TRADE
If 15M is CHOP but 30M is NORMAL, it prints:
“TRADE (CAUTION – 15M CHOP)”
That means: trade smaller, quicker, or wait for cleaner trigger.
Settings you actually need to touch
1) Profile
Auto (by session) = best for most days (it changes the threshold by time window)
NYO / Overnight / London profiles are there if you want to force one behavior.
2) ATR Length (fixed)
Default 4 is good for Gold.
If it’s too sensitive (flips CHOP too often), raise to 5.
If it’s too slow (stays NORMAL when price is dead), drop to 3.
3) Include 5M in majority filter? (default OFF)
OFF = cleaner, less restrictive (recommended)
ON = stricter filter (needs 3 of 4 to be CHOP for “HTF CHOP” but 5M influences the count)
How to use it with your purge strategy (simple playbook)
When it says TRADE
You’re allowed to execute your normal model:
Sweep → displacement / CHoCH → first return → run
When it says TRADE (CAUTION – 15M CHOP)
Still tradable, but:
take A+ only
smaller size
quicker TP, don’t expect runners
demand a cleaner trigger (strong displacement)
When it says NO TRADE
You don’t force entries.
What you do instead:
wait for 30M to flip back to NORMAL
or wait for a clear range break + retest that turns the environment back to expansion
Quick “decision cheat”
30M CHOP? → Stop. No trade.
2/3 HTFs CHOP? → Stop. No trade.
Only 15M CHOP? → Trade, but cautious.
All NORMAL? → Green light.
Price-Time Confluence Engine
Price-Time Confluence Engine is a dual-layer market analysis indicator designed to synchronize price-based targets with time-based momentum projections, helping traders anticipate potential reaction points, reversals, and momentum shifts.
The indicator combines adaptive ATR price targets with deviation context on the chart, alongside a forward-projected Stochastic RSI structure in a dedicated pane.
🔹 Core Components
1️⃣ Adaptive Price Targets (Chart Overlay)
On every new candle, a new ATR-based price target is generated automatically.
The target updates dynamically with live price movement until the candle closes.
Targets are directionally aligned with the current candle’s momentum.
A HIT label is displayed when price reaches the active target during the candle.
Behavioral Insight
If a target fails to be hit and remains red after the next candle forms, this behavior has shown a tendency to correlate with short-term swing reversals, signaling potential exhaustion or loss of momentum.
2️⃣ Mean & Deviation Framework
A configurable mean (moving average) is plotted with up to four deviation bands.
Deviation bands provide contextual boundaries for price targets and help visually frame volatility expansion or compression.
An optional filter allows HIT labels to require alignment with the first deviation band.
3️⃣ Stochastic RSI Projection (Indicator Pane)
The lower pane displays live Stochastic RSI %K and %D values.
A historical Stoch RSI pattern is cloned and projected forward in time, creating a time-based momentum forecast.
The projection highlights anticipated crossing points between %K and %D before they occur.
A single dynamic “Projected Cross” label marks the next expected crossing location.
Vertical reference lines and directional arrows help visualize projected momentum shifts.
Important Note on Timeframes
The projection logic is optimized for the Daily timeframe.
Other timeframes may require different lookback settings for meaningful alignment.
Price-based targets and deviation logic function on any timeframe.
🔧 User Controls
ATR length and multiplier
Mean length and deviation depth
Number of deviation bands displayed
Label visibility and history limits
Projection visibility and forward shift
Optional normalization of projected momentum
Visual toggles for arrows, vertical lines, and labels
📈 How to Use
Observe the active price target forming with each new candle.
Watch whether price hits or fails to hit the target before the next candle.
Use deviation bands to contextualize where targets sit within volatility structure.
Reference the Projected Cross in the lower pane to anticipate potential momentum transitions.
Look for confluence between unhit targets and projected momentum shifts as potential inflection zones.
⚠️ Disclaimer
This indicator is a visual analysis and decision-support tool.
It does not generate trade signals and should be used in conjunction with proper risk management and additional market context.
Momentum Burst + Absolute Momentum(TI65) + EP9M)This is a momentum burst indicator popularized by StockBee (hey EGeee). Track the stock absolute momentum for continuation breakout. Last but not least, identify EP9M. It can be Episodic pivot 9M volume breakout as a classic EP (CANSLIM type) for a long term trade or a regular EP9M or EP9M delayed reaction for swing trade. KISS - don't over complicate.
QTاندیکاتور "QT" در پلتفرم TradingView یک ابزار پیشرفته برای تجزیه و تحلیل بازار است که از چندین چرخه زمانی مختلف بهره میبرد. این اندیکاتور به شما کمک میکند تا نقاط بحرانی در بازههای زمانی مختلف (سالیانه، ماهانه، هفتگی، روزانه، 90 دقیقهای و میکرو) را شناسایی کنید. ویژگی برجسته این اندیکاتور، استفاده از SSMT (Same Cycle Multiple Timeframes) و PSP (Price Signal Patterns) برای ارائه سیگنالهای دقیقتر است. این دو بخش باعث میشوند که اندیکاتور "QT" به ابزاری قدرتمند برای تریدرها تبدیل شود.
ویژگیهای اصلی:
SSMT (Same Cycle Multiple Timeframes):
SSMT یک روش تجزیه و تحلیل پیشرفته است که در آن یک چرخه زمانی خاص بهطور همزمان در چندین تایم فریم مختلف رصد میشود. این اندیکاتور با استفاده از SSMT، به شما این امکان را میدهد که تغییرات قیمت در تایم فریمهای مختلف را مقایسه کنید و سیگنالهایی که در چندین تایم فریم همزمان فعال هستند، شناسایی کنید.
این سیگنالها میتوانند به شما کمک کنند که نقاط ورود و خروج بهتری داشته باشید، چرا که تایید شدن سیگنال در چند تایم فریم به معنای اعتبار بالای آن است.
به عنوان مثال، زمانی که یک شکست قیمتی در تایم فریم روزانه رخ میدهد و همزمان در تایم فریمهای هفتگی و ماهانه هم تأیید میشود، احتمال اینکه این حرکت ادامهدار باشد، بسیار بالا خواهد بود.
SSMT قابلیت تنظیم دارد و میتوانید آن را بر اساس نیاز خود بهطور سفارشی تنظیم کنید، از جمله تعیین نحوه نمایش علامتها، رنگها و خطوط سیگنال.
PSP (Price Signal Patterns):
PSP یکی از بخشهای کلیدی اندیکاتور QT است که از الگوهای خاص قیمتی برای شناسایی تغییرات مهم در بازار استفاده میکند. این الگوها میتوانند شامل شکستها (Breakouts)، برگشتها (Reversals) و تغییرات روند (Trend Changes) باشند.
اندیکاتور PSP از دو نماد مختلف برای مقایسه استفاده میکند (مثلاً "SPY" و "QQQ") و نقاطی که این نمادها با یکدیگر دچار انحراف میشوند را شناسایی میکند. به عنوان مثال، اگر یک نماد صعودی باشد اما دیگری نزولی باشد، این میتواند بهعنوان یک هشدار برای تغییر روند بازار عمل کند.
در کنار این الگوها، این اندیکاتور از نشانگرهای گرافیکی (مانند مثلثها، فلشها و علامتهای دایرهای) برای نمایش این تغییرات استفاده میکند.
PSP همچنین این امکان را به شما میدهد که سیگنالهای قیمتی را در تایم فریمهای مختلف مشاهده کرده و تصمیمات دقیقتری بگیرید.
چرخههای زمانی و جعبهها:
اندیکاتور QT از جعبههای زمانی برای نمایش تغییرات در چارچوبهای زمانی مختلف (سالیانه، ماهانه، هفتگی و غیره) استفاده میکند.
این جعبهها میتوانند بهطور خودکار و با تنظیمات سفارشی شما رسم شوند، بهطوری که شما میتوانید روندهای مختلف بازار را در تایم فریمهای متفاوت مشاهده کنید.
بهطور کلی، این ویژگی به شما کمک میکند که نقاط حمایت و مقاومت مهم در زمانهای مختلف بازار را شناسایی کنید.
گرافیک و سفارشیسازی:
این اندیکاتور به شما این امکان را میدهد که رنگها، اندازهها، و استایلهای گرافیکی را به دلخواه خود تغییر دهید. این ویژگی به تریدرها این امکان را میدهد که ابزار را با توجه به نیاز خود شخصیسازی کنند.
همچنین، از آنجا که این اندیکاتور از چندین چرخه زمانی استفاده میکند، شما میتوانید هرکدام از این چرخهها را با استایلهای مختلف نمایش دهید، مثل استفاده از خطچین، نقطهچین یا خطهای عادی.
خلاصه:
اندیکاتور "QT" با استفاده از تکنیکهای پیشرفته مانند SSMT و PSP، تجزیه و تحلیل بازار را در چندین تایم فریم مختلف برای شما امکانپذیر میسازد. این اندیکاتور با تحلیل دقیق چرخههای زمانی مختلف و شناسایی الگوهای قیمتی، سیگنالهایی را برای ورود و خروج به بازار به شما ارائه میدهد که میتواند بهطور قابلتوجهی به استراتژی معاملاتی شما کمک کند.
English:
Detailed Description of QT Indicator with Focus on SSMT and PSP:
The "QT" indicator on TradingView is an advanced tool designed for market analysis using multiple time cycles. It provides traders with a comprehensive view of market trends across different time frames (Yearly, Monthly, Weekly, Daily, 90-minute, and Micro). The standout feature of this indicator is its utilization of SSMT (Same Cycle Multiple Timeframes) and PSP (Price Signal Patterns), which enhances its ability to deliver more accurate signals. These two components make the "QT" indicator a powerful tool for traders.
Main Features:
SSMT (Same Cycle Multiple Timeframes):
SSMT is an advanced analysis technique that monitors a specific cycle across multiple time frames simultaneously. By using SSMT, this indicator allows traders to compare price changes across different time frames and identify signals that are active across multiple time frames.
These signals help traders identify high-probability entry and exit points because when a signal is confirmed across several time frames, it indicates a strong likelihood of a sustained price move.
For example, if a price breakout occurs on the daily time frame and is simultaneously confirmed on the weekly and monthly time frames, it is more likely to continue.
SSMT is highly customizable, allowing traders to adjust how markers, colors, and signal lines are displayed based on their preferences.
PSP (Price Signal Patterns):
PSP is one of the key components of the QT indicator that uses specific price patterns to identify significant market changes. These patterns can include breakouts, reversals, and trend changes.
The indicator utilizes two symbols (e.g., "SPY" and "QQQ") to compare and identify when these symbols diverge, signaling potential market shifts. For instance, if one symbol is bullish while another is bearish, this could signal a change in market direction.
In addition to these patterns, the indicator uses graphical markers (such as triangles, arrows, and circles) to visually represent these market changes and signals.
PSP allows traders to view price signals across different time frames, helping them make more informed decisions.
Time Cycles and Boxes:
The QT indicator uses time boxes to visually display price changes across different time frames (Yearly, Monthly, Weekly, etc.).
These boxes are automatically drawn and can be customized based on the user's settings, allowing traders to observe market trends across various periods.
Overall, this feature helps traders identify critical support and resistance levels at different points in time.
Graphics and Customization:
This indicator allows traders to customize colors, sizes, and graphical styles to fit their needs.
Additionally, since the indicator uses multiple time cycles, traders can display each cycle with different styles, such as solid, dotted, or dashed lines.
Summary:
The "QT" indicator, using advanced techniques like SSMT and PSP, allows traders to analyze the market across multiple time frames. By detecting significant price patterns and utilizing time cycles, the QT indicator provides high-probability signals for market entry and exit. This can greatly assist in enhancing your trading strategy.
Index Guided Exit (Sell Only )Small Cap Guided Exit (Sell Only) – Weekly Index EWMA
Small Cap Guided Exit – Weekly EWMA (Sell‑Side Model)
This indicator is designed for positional/swing investors who use fundamentals for buying decisions and want a disciplined, rule‑based SELL/EXIT strategy driven by market regime.
It combines stock‑level EWMA trend tracking with a weekly Small Cap index regime filter (NIFTYSMLCAP250) to tighten exits during weak market phases and stay patient during bullish periods.
🔍 Core Concept
The indicator provides SELL signals only.
Your entries remain discretionary (based on fundamentals).
Exits adapt dynamically depending on the overall Small Cap Market Regime.
It uses two simple but powerful EWMA rules:
Case 1 — Weak Market (Index filter OFF)
Stock exits when price closes below 21‑EWMA.
Suitable for neutral/uncertain market phases.
Case 2 — Bull Market Regime (Index filter ON)
The Weekly Small Cap Index (NIFTYSMLCAP250 — Weekly timeframe) determines the exit logic:
1️⃣ Bullish Regime
If Index > Weekly 10‑EWMA
→ Stock exit = 21‑EWMA (gives room for big uptrends)
2️⃣ Regime Breach / Market Weakness
If Index falls below Weekly 10‑EWMA
→ Stock exit tightens to 10‑EWMA (protect profits early)
This simple regime‑based tightening helps you:
Ride strong trends longer
Exit faster when overall market momentum weakens
Avoid overreacting to temporary dips during bull markets
📌 Key Features
✔️ Weekly Index Regime Filter (NIFTYSMLCAP250)
Uses Weekly timeframe EWMA to identify broad small‑cap market conditions.
✔️ Adaptive Exit EWMA
21‑EWMA during bullish regime
10‑EWMA after index weakness (profit‑protection mode)
✔️ Clean Visuals (fully configurable)
Toggle on/off:
SELL labels
Index event labels
Background tint for regime
Bar color changes
Default mode keeps the chart minimal.
✔️ Alert System (clean, configurable)
SELL Alert
Optional Index Breach alerts
(Only fire if user enables them)
✔️ No repainting
All index data uses:
lookahead = off
Weekly timeframe
No future-bar dependencies
🎯 Who Should Use This Indicator
Investors who prefer EWMA‑based exits on individual stocks
Those tracking Small Cap / Mid Cap portfolios
Traders who want exits guided by market regime, not emotions
Users who rely on fundamental-based entries but want a mechanical exit rule
📈 Why This Works
Small-cap stocks tend to:
Trend strongly in bullish phases
Correct sharply when the index weakens
By tying your stop‑loss EWMA to index regime, you automatically reduce risk during downturns and maximize gains during expansions.
⚙️ Recommended Settings
Small Cap Index: NSE:NIFTYSMLCAP250
Index Timeframe: Weekly
Index EWMA Length: 10
Stock EWMA (Bull): 21
Stock EWMA (Tightening): 10
These reflect the exact logic in your strategy.
📡 Disclaimer
This indicator is for educational & analytical purposes only.
Always backtest on your preferred stocks.
Not investment advice.
Nested SMA WaveThe "Nested SMA Wave" is a custom Pine Script (v5) indicator for TradingView that overlays a series of 8 Simple Moving Averages (SMAs) on the price chart. These SMAs use exponentially increasing lengths based on powers of 2, starting from a user-defined base length (default: 25). This creates lengths like 25, 50, 100, 200, 400, 800, 1600, and 3200.
Each SMA is plotted in a distinct color, forming a "wave" of nested lines that fan out from short-term (faster, more responsive) to long-term (slower, smoother). Semi-transparent colored fills (shaded zones) are added between consecutive SMAs, with customizable toggles and transparency levels, creating layered visual bands that highlight the spaces between different trend timescales.
Use Cases
Multi-Timeframe Trend Visualization: The power-of-2 nesting approximates higher timeframe trends on lower timeframes without switching charts. Shorter SMAs react quickly to price changes, while longer ones show major trends, helping identify overall market structure at a glance.
Support/Resistance Identification: Price interacting with the SMA lines or shaded zones can act as dynamic support/resistance. Crossovers between nested SMAs signal potential momentum shifts.
Trend Strength and Alignment: When SMAs are widely spaced and aligned (e.g., all sloping up), it indicates strong trends. Converging or crossing SMAs suggest consolidation or reversals. The shaded zones add depth, making expansions/contractions in volatility or trend power visually obvious.
Ribbon-Style Trading: Similar to moving average ribbons, traders can look for price pulling back to inner zones for entries in the direction of the broader "wave," or use zone breaks for signals.
Customization for Different Assets/Timeframes: Adjust the base length (e.g., smaller for crypto volatility, larger for stocks) and toggle shades to reduce clutter.
This creates a visually rich, rainbow-like overlay that's particularly useful for trend-following strategies on any chart.
Mashrab | Momentum X-RayStop guessing if a stock is strong or weak. The Momentum X-Ray is a professional Heads-Up Display (HUD) that tells you the truth about a stock in seconds.
Most indicators just look at price. This dashboard looks at the Context:
Relative Strength (The "King of the Hill" Check):
It doesn't just compare stocks to the S&P 500.
It automatically detects the stock's specific industry (e.g., Semiconductors, Regional Banks, Gold Miners) and compares it against its actual peers.
Green = The stock is a Leader (Beating its sector).
Red = The stock is a Laggard (Losing to its sector).
Fundamental Health (The "Engine" Check):
Instantly see Revenue Growth (QoQ and YoY) and Net Profit Margins.
Filters out "junk" stocks that are moving up on hype but have no real business growth.
Volatility Scanner:
Calculates the ADR (Average Daily Range) to help you size your positions correctly.
How to Read the Signals:
Top Table (Momentum): Look for Double Green. If a stock is beating the SPY and its Sector, it is an "Alpha Leader."
Bottom Table (Context): Check the "Industry" row to see exactly which ETF the script is using for comparison (e.g., SMH for Chips, KRE for Banks).
Algonova TrendFlowWhat was previously a (very!) manual process of looking at "UPs" and "DOWNs" to determine which way the market is "flowing" has now been automated! Urban TrendFlow is an immense timesaver for our users as we search for opportunities to go long and short (and especially when we need to sit on our hands and let uncertain markets "find their flow".
Adaptive Regime Z-Score (ARZ)Adaptive Regime Z-Score (ARZ) — Description
Adaptive Regime Z-Score (ARZ) is a regime-weighted, volatility-normalized price deviation histogram.
It measures the distance between price and a slow EMA (market center), normalized by ATR, and amplifies this deviation only when a directional trend regime is confirmed.
The output is displayed as a signed histogram, capped between -100 and +100, with directional regime awareness (bullish or bearish trends).
🔍 What ARZ measures
Normalized price deviation
Distance of price from the EMA center, expressed in ATR units and scaled to a fixed range.
Directional trend regime detection
A trend regime is confirmed only when all three conditions align:
EMA slope has a clear direction
Price is sufficiently far from the EMA (ATR-based distance)
ADX is above its threshold
Regime-weighted deviation
When a trend regime is active, the deviation is scaled by a trend-strength score
When no trend is detected, the output collapses toward zero
📊 How to read the histogram
Green bars → confirmed bullish trend regime
(price extended above EMA, positive deviation)
Red bars → confirmed bearish trend regime
(price extended below EMA, negative deviation)
Near-zero values → no confirmed trend regime
(range / transition state, not highlighted)
There is no separate “ranging” histogram:
absence of bars (or minimal values) implicitly represents non-trending conditions.
🎨 Visual elements
Histogram
Green = bullish trend regime
Red = bearish trend regime
Intensity reflects trend strength × extension
Highlighted only when a directional trend regime is active
Neutral otherwise
Upper / Lower Visual Levels
Reference levels only
Professional Breakout Indicator (DC + ATR Filter)Description Elements (Professional): Benefits of Donchian Channel (DC): Uses $\text{highest(high, N)}$ and $\text{lowest(low, N)}$ to determine the historical price accumulation range ($N$). Identifies resistance/support levels that serve as natural market breakout points. ATR Filter: Uses the Average True Range (ATR) multiplied by the multiplier ($\text{Multiplier}$) to increase the distance from the DC edges. Prevents False Breakouts: Signals only occur when the breakout has enough strength (momentum) to overcome the average volatility ( NYSE:ATR $). Input Parameters: Allow users to customize $N$, $\text{ATR Length}$, and $\text{ATR Multiplier}$. Flexibility: The indicator can be adapted to different assets (stocks, Forex, crypto) or timeframes. Alerts ($\text{alertcondition}$): Adds an automatic alert function when a confirmed breakout signal occurs. Convenience: Traders do not need to constantly monitor the screen. Notifications can be set to be sent to mobile phones or emails. Visuals show breakout boundaries and plot shapes clearly display buy/sell signals. Clarity: Facilitates easy visual decision-making and backtesting.
ETH Vol Breakout - NO ERROR VERSIONThis strategy examines the impact of Eth.d Vol on Ethereum price. Looking at ETHDVOL -60 (Support) and 78 (Resistance)—tell a very specific story - analyzing a High Volatility Regime.
The support level around 60 and resistance 78, tend to only occurs during Bull Runs or Market Crashes.
In the "Quiet Years", ETHDVOL rarely touched 60, let alone 78.
Trying to develop a strategy that is perfectly tuned for a Bull Market or a Crisis,
1. The "60 Floor" (Support)
Context: In a high-volatility regime, when ETHDVOL drops to 60, it indicates the market has "cooled off" just enough to reload leverage.
Historical Behavior (2021-2022 Context):
July 2021: After the May crash, ETHDVOL compressed down and found support at ~65.
Result: This marked the local bottom before the massive run-up to the November All-Time Highs ($4,800).
Outcome: Strong Buy Signal (Trend Continuation).
January 2022: ETHDVOL dropped to ~58-60 while price was hovering around $3,000.
Result: The floor broke, volatility spiked to 80+, and price crashed to $2,200.
Outcome: Trap / Warning Signal.
The Pattern: When Volatility hits 60 (Support), price is usually Coiling.
If Price is trending UP: This is a "dip buy" opportunity. The coil resolves upwards.
If Price is trending DOWN: This is the "calm before the flush." The coil resolves downwards.
2. The "78 Ceiling" (Resistance)
Context: 78 is an extreme reading. It represents panic (bottom) or euphoria (blow-off top).
Historical Behavior:
May 2021 (The Crash): ETHDVOL smashed through 78, peaking at 100+.
Price Action: Price collapsed from $4,000 to $1,700.
Signal: If Vol > 78, you are in a capitulation event. Buying spot here is usually profitable within 3-6 months (buying the blood).
November 2022 (FTX Collapse): ETHDVOL spiked to ~75-80.
Price Action: ETH hit $1,100 (Cycle Lows).
Signal: Hitting 78 marked the Absolute Bottom.
November 2021 (The Top): Interestingly, at the $4,800 price peak, Volatility was NOT at 78. It was lower (~60-70).
Insight: Bull market tops often happen on lower volatility than bear market bottoms.
Sarina - 6 EMA Smart Signals - V12292025Overview
This advanced trend-following indicator combines 6 Exponential Moving Averages (EMA) into three synchronized layers to provide a comprehensive view of market structure, momentum, and potential future direction. Designed with visual clarity and professional analysis in mind, it uses a dynamic "ribbon" system and a composite momentum engine.
Key Features
Triple-Layer Ribbon System: EMAs are paired in three sets (Fast, Medium, Slow). The space between each pair is dynamically colored based on the relationship between price action and momentum.
4-Stage Dynamic Coloring: The fill color isn't just about the trend; it's about strength.
Strong Bullish/Bearish: Trend and Momentum are aligned.
Weak Bullish/Bearish: Trend is present, but momentum is fading.
Composite Trend Projection: Using a physics-based velocity and acceleration algorithm, the indicator plots three non-linear projection curves to forecast potential EMA paths.
Fully Customizable Signals: Includes 12 different signal types (EMA Crossovers and MACD Zero-Cross) for each layer, all toggleable and pre-configured for a clean chart experience.
Scale-Stable UI: Optimized for TradingView’s scaling system, ensuring projection lines stay perfectly aligned with price action during manual chart adjustments.
How to Use
Trend Ribbon: Look for "Strong" colors (Solid Green/Red) for high-probability trend following.
Soft Transparency: Use the opacity settings (35%, 50%, 75%) to overlay multiple layers without cluttering your view.
Projections: Observe the curvature of the projection lines. A flattening curve often precedes a trend reversal or consolidation.
Signal Layers: Enable EMA signals for trend entries and MACD signals for early momentum warnings.
Settings
Global Colors: Customize the 4-stage trend colors to fit your dark or light theme.
Layer Controls: Independent periods for all 6 EMAs and 3 MACD oscillators.
Projection Toggle: Enable/Disable the curve forecasting system.
Market Up and Low VolatilityMarket Up and Low Volatility is a trend-filter indicator designed to help traders visually identify periods when an equity index is in an upward trend and market volatility is relatively low. The script combines price trend analysis using exponential moving averages (EMAs) with external volatility confirmation to highlight more favorable risk environments.
Concept and Methodology
This indicator is based on two core ideas:
1. Trend Confirmation Using EMAs
The script calculates a 10-period EMA and a 20-period EMA on the selected index (default: S&P 500).
A bullish trend condition requires:
The 10 EMA to be above the 20 EMA
Both EMAs to be rising compared to their values three bars ago
This helps confirm not just trend direction, but also trend momentum.
2. Volatility Filter Using an External Symbol
The indicator also fetches data from a volatility index (default: VIX).
A user-defined volatility threshold is applied
When volatility is below this threshold, it is treated as a lower-risk market environment
Only when both trend and volatility conditions align does the indicator consider the environment favorable.
Visual Output
The index price is plotted in a separate pane.
The plot dynamically changes color:
Green when all trend and volatility conditions are met
Red when one or more conditions are not met
This color-based approach allows traders to quickly assess market conditions without interpreting multiple indicators.
How to Use
This indicator is intended as a market condition filter, not a standalone buy or sell signal.
It can be used to:
Confirm whether broader market conditions are supportive of long strategies
Avoid trading during periods of elevated volatility or weakening trends
Complement existing entry and exit systems
Users can customize:
The index symbol
The volatility symbol
The volatility threshold
to adapt the indicator to different markets or trading styles.
Notes
Calculations are performed on daily timeframe data, regardless of the chart timeframe. This indicator does not predict future price movement and should be used alongside proper risk management and additional analysis.
Taipan's Linear Regression Signals with TPHave fun. You can basically figure out how it works. Works best at finding breakouts and where it returns.
Ultimate Imbalance + RSI + Mean Reversion (v6)
FVG / Imbalance Logic:
🔵 Blue boxes (solid)
Bullish imbalances
These are areas where buying was so aggressive that price skipped levels.
What they represent
• Inefficient auction
• Buyers overwhelmed sellers
• Market left “unfinished business” below price
Types inside blue boxes
• Solid blue box = FVG or Opening Gap
• Blue dotted box = Volume Imbalance (VI)
__________________________________________________
🔴 Red boxes (solid)
Bearish imbalances
Opposite of blue: selling pressure skipped levels upward.
What they represent
• Aggressive sellers
• Liquidity vacuum above price
• Unfinished auction above
__________________________________________________
Gray boxes
Dead / resolved imbalances
These were once valid, but are now structurally irrelevant.
Boxes turn Gray when one of two things happened:
1. Filled
• Bullish → price traded down into the bottom of the box
• Bearish → price traded up into the top of the box
2. Invalidated
• Bullish → price closed below the box
• Bearish → price closed above the box
Gray = do not trade anymore // It’s historical context only.
They extend forward to:
• To visually show when they were resolved
• Help you see how long imbalances tend to survive on that market / timeframe
__________________________________________________
RSI Logic:
RSI filter (RSI 9, smoothed)
• Long bias: RSI ≤ 20 (oversold)
• Short bias: RSI ≥ 80 (overbought)
👉 RSI must already be extreme // We do NOT trade mid-range RSI.
__________________________________________________
Mean Reversion Channel (MRC) Logic:
What it measures:
• Distance from statistically “fair” price
• Uses volatility-adjusted bands (not fixed %)
Zones:
• Inner band = Normal mean oscillation
• Outer band = Exhaustion
• Beyond outer = Forced unwind / liquidation
Trade bias logic:
• Long allowed only if: price at or below lower outer band
• Short allowed only if: price at or above upper outer band
__________________________________________________
Final Signal from all 3 (prints a triangle):
✅ Long setup
1. Active bullish imbalance is touched
2. RSI ≤ oversold
3. Price is at MRC oversold zone
✅ Short setup
1. Active bearish imbalance is touched
2. RSI ≥ overbought
3. Price is at MRC overbought zone
This is why signals are intentionally rare.
Wick Connection Alerts (12M/6M/3M/1M)If you want touch/overlap, pick: Any Range Overlap (High-Low)
If you want wick-to-wick specifically, pick: Wick-to-Wick Zones (now with fewer false signals)
Day HighlighterThis simple indicator highlights specific days of the week on your chart to assist with backtesting and pattern analysis.
Selectable Days: You can toggle specific days (e.g., Monday, Friday) on or off via the settings menu.
Visual Indicators: A red circle and the day name are displayed above the high of the candle for the selected days.
Visibility: The text is white to ensure high readability on dark backgrounds.
차트 보다가 '이게 무슨 요일이지?' 하고 일일이 날짜 확인하기 귀찮아서 만들었습니다. 설정에서 원하는 요일(예: 월요일)만 체크하면, 캔들 위에 빨간 원과 요일 이름을 자동으로 찍어줍니다. 특정 요일 무빙 복기할 때 편해요
Rango y Apertura PersonalizadoThis indicator highlights the opening times, and also shows the highest and lowest point on that candle.
SCR Signals(개요) 스토캐스틱, CCI, RSI를 결합한 지표입니다. 편의상 SCR이라고 명명할게요
* 블로거 'SOXL연구원님의 SCR을 지표화했습니다.
(지표설명)
1. 스토캐스틱은 %K길이, %K스무딩, %D스무딩이 각각 5,1,3 이 기본입니다. 어퍼밴드(과매수)는 80, 로우어밴드(과매도)는 20이며 설정해서 수정 가능합니다.
2. CCI는 길이 20이 기본입니다. 어퍼밴드(과매수)는 100, 로우어밴드(과매도)는 -100이며 역시 설정에서 변경가능합니다.
3. RSI 길이 14가 기본입니다. 어퍼밴드(과매수)는 70, 로우어밴드(과매도)는 30이며 역시 설정에서 변경가능합니다.
(시그널)
세개 지표 중 1개지표가 동시에 과매수 해소되는 순간 S1, 2개지표가 동시에 과매수 해소되는 순간 S2, 3개지표 동시에 과매수 해소시 S3로 하고 캔들 위쪽에 표시 / 세개 지표 중 1개지표가 과매도 진입시 B1, 2개지표가 동시에 과매도 진입시 B2, 3개지표가 동시에 과매도 진입시 B3로 하고 캔들 아래쪽에 표시
Overview
SCR is a combined signal system built from Stochastic, CCI, and RSI.
For convenience, I call this indicator SCR.
This script is an implementation/visualization of the SCR concept shared by the blogger “SOXL Researcher” (SOXL연구원).
Indicator Settings
Stochastic
Default parameters: %K Length = 5, %K Smoothing = 1, %D Smoothing = 3
Default bands: Overbought (Upper) = 80, Oversold (Lower) = 20
All values can be changed in the settings.
CCI
Default length: 20
Default bands: Overbought (Upper) = 100, Oversold (Lower) = -100
All values can be changed in the settings.
RSI
Default length: 14
Default bands: Overbought (Upper) = 70, Oversold (Lower) = 30
All values can be changed in the settings.
Signals (Plotted on the Main Price Chart)
Signals are generated when the indicators trigger their conditions on the same bar (simultaneously).
Overbought Resolution Signals (S) — plotted above candles
S1: Exactly 1 of the three indicators resolves overbT (overbought resolution) on the same bar
S2: Exactly 2 indicators resolve overbought on the same bar
S3: All 3 indicators resolve overbought on the same bar
Oversold Entry Signals (B) — plotted below candles
B1: Exactly 1 of the three indicators enters oversold on the same bar
B2: Exactly 2 indicators enter oversold on the same bar
B3: All 3 indicators enter oversold on the same bar






















