Enhanced Seasonality Trade BacktestEnhanced Seasonality Trade Backtest
Overview
A comprehensive Pine Script indicator that backtests seasonal trading strategies by analyzing historical price performance during specific date ranges. The tool provides detailed statistics, visual markers, and election cycle filtering to identify profitable seasonal patterns.
Key Features
📊 Backtesting Engine
Tests up to 50 years of historical data
Configurable entry/exit dates (day/month)
Automatic holiday/weekend date adjustment
Separate analysis for long and short positions
🗳️ Election Cycle Filter
All Years: Test every year in the lookback period
Election Years: US presidential election years only (2024, 2020, 2016...)
Pre-Election Years: Years before elections (2023, 2019, 2015...)
Post-Election Years: Years after elections (2021, 2017, 2013...)
📈 Comprehensive Statistics
Win rate percentage
Total and average returns
Best/worst performing years
Detailed trade-by-trade breakdown
Years tested vs. years filtered
🎯 Visual Indicators
Entry/exit lines for all historical trades
Future trade date projections
Background highlighting during trade periods
Color-coded performance labels
⚙️ Customization Options
Toggle between long/short analysis
Show/hide price and date details
Adjustable table position
Future trade date visualization
Use Cases
Seasonal Trading: Identify recurring profitable periods (e.g., "Sell in May")
Election Cycle Analysis: Test how political cycles affect market performance
Strategy Validation: Backtest specific date-range strategies
Risk Assessment: Analyze worst-case scenarios and drawdowns
Perfect For
Swing traders looking for seasonal edges
Portfolio managers timing market entries/exits
Researchers studying market cyclicality
Anyone wanting to quantify seasonal market behavior
ONLY WORKS IN 1D TIME FRAME
Statistics
Session Status Table📌 Session Status Table
Session Status Table is an indicator that displays the real-time status of the four major trading sessions:
* 🇯🇵 Asia (Tokyo)
* 🇬🇧 London
* 🇺🇸 New York AM
* 🇺🇸 New York PM
It shows which sessions are currently open, how much time remains until they open or close, and optionally sends alerts in advance.
🧩 Features:
* Real-time session table — shows the status of each session on the chart.
* Color-coded statuses:
* 🟢 Green – Session is open
* 🔴 Red – Session is closed
* ⚪ Gray – Weekend
* Countdown timers until session open or close.
* User alerts — receive a notification a custom number of minutes before a session starts.
⚙️ Customization:
* Table position — fully configurable.
* Session colors — customizable for open, closed, and weekend states.
* Session labels — customizable with icons.
* Notifications:
* Enabled through TradingView's Alerts panel.
* User-defined lead time before session opens.
🕒 Time Zones:
All times are calculated in UTC to ensure consistency across different markets and regions, avoiding discrepancies from time zones and daylight saving time.
🚨 How to enable alerts:
1. Open the "Alerts" panel in TradingView.
2. Click "Create Alert".
3. In the condition dropdown, choose "Session Status Table".
4. Set to any alert() trigger.
5. Save — you'll be notified a set number of minutes before each session begins.
ℹ️ Technical Notes:
* Built with Pine Script version 6.
* Logically divided into clear sections: inputs, session calculations, table rendering, and alerts.
* Optimized for performance and reliability on all timeframes.
Ideal for traders who use session activity in their strategies — especially in Forex, crypto, and futures markets.
time-specific standard devs [keypoems]Time-Specific Net Change Percentage Standard Deviations Extensions
A candlestick is the story of how price moved during a single period: it opens, explores a high and a low, and finally closes.
The indicator asks one question:
“By what percentage did price change from open to close?”
That single percentage value – called the net-change % – is the raw material for everything that follows.
Why net-change % matters
If you collect that percentage for thousands of finished candles (daily candles, 1-hour, 4-hour – whatever you close) you get a probability distribution: most candles move only a little, a few move a lot. When you plot those percentages you get the familiar bell-curve. From any bell-curve you can read two key statistics:
Mean – the “typical” net-change.
Standard Deviation (σ) – how far a candle normally wanders from that mean.
A well-known property of a bell-curve is that ≈68 % of all observations stay between –1 σ and +1 σ, and ≈95 % stay within ±2 σ.
For traders that translates into a probabilistic map of where an unfinished candle is likely to close.
What the indicator draws
Open-anchored levels
Every box is centred on the candle’s open price.
The indicator draws boxes that mark +σ, +½ σ, –½ σ, –σ … as selected in the Inputs.
Time-specific calculation
Instead of mixing all 1-hour candles together, the script isolates only the 09:00-10:00 New-York hour (or any other slot you are at that moment) and builds a bell-curve from that subset.
The result is a set of expectations truly tailored to that exact hour’s behaviour.
Generic and Specific Std Dev Box
Indicator computes both generic levels – the classic “all candles aggregated” standard deviations, and specific levels – the refined, hour-by-hour (or 4-hour-by-4-hour, etc.) deviations.
The indicator shows Boxes that represent both aggregated values and "per period" standard deviation projection levels.
Mirrored levels (optional)
Negative σ levels are drawn automatically so you have symmetrical upside & downside projections.
Math behind the scenes
For each chosen higher-timeframe (HTF):
Collect the last N net-change % values (user-defined look-back, default 5 000 candles).
Compute:
μ = mean(net-change %)
σ = stdev(net-change %)
Project prices:
LevelPrice = Open × (1 + k × σ)
where k is 0 , ±0.5 , ±1 , ±1.5 … as enabled in the inputs.
Because everything is done in percentage space the technique adapts automatically to instruments that trade at very different absolute prices (equities, futures, crypto, FX).
How to read it in real time
When a developing candle races straight into +1 σ with plenty of time left, statistics say “68 % of the time it will finish back inside the box.”
A tag of +2 σ is an even rarer event (~5 % probability) – a natural place to look for exhaustion or take-profit cues.
Conversely, if price refuses to reverse at +1 σ and instead sticks above that edge, it is signalling an unusually strong session and may warrant trend-continuation tactics.
Key Inputs
Higher Timeframe Choose 5m to H8 reference frame
Show levels for last X periods
Look-back length Sample size for σ
StdDev Fibs Fib1 … Fib9 toggles & values: Decide which σ multiples to plot
Mirror levels Draw matching negative projections
Extend boxes Keep boxes visible beyond their candle
Best-practice usage
Combine with structure – treat σ edges as context, not automatic entry.
Mind the sample size – if you choose extremely narrow windows (e.g., Sunday 18:00-19:00 futures open) make sure your look-back still captures hundreds of cases.
Disclaimer
Trading involves risk. The author and this indicator simply display historical probability ranges; they do not assure profits or prevent losses. Always perform your own due diligence and, if necessary, consult a licensed financial professional before dealing in any financial instrument.
Money Risk Management with Trade Tracking
Overview
The Money Risk Management with Trade Tracking indicator is a powerful tool designed for traders on TradingView to simplify trade simulation and risk management. Unlike the TradingView Strategy Tester, which can be complex for beginners, this indicator provides an intuitive, beginner-friendly interface to evaluate trading strategies in a realistic manner, mirroring real-world trading conditions.
Built on the foundation of open-source contributions from LuxAlgo and TCP, this indicator integrates external indicator signals, overlays take-profit (TP) and stop-loss (SL) levels, and provides detailed money management analytics. It empowers traders to visualize potential profits, losses, and risk-reward ratios, making it easier to understand the financial outcomes of their strategies.
Key Features
Signal Integration: Seamlessly integrates with external long and short signals from other indicators, allowing traders to overlay TP/SL levels based on their preferred strategies.
Realistic Trade Simulation: Simulates trades as they would occur in real-world scenarios, accounting for initial capital, risk percentage, leverage, and compounding effects.
Money Management Dashboard: Displays critical metrics such as current capital, unrealized P&L, risk amount, potential profit, risk-reward ratio, and trade status in a customizable, beginner-friendly table.
TP/SL Visualization: Plots TP and SL levels on the chart with customizable styles (solid, dashed, dotted) and colors, along with optional labels for clarity.
Performance Tracking: Tracks total trades, win/loss counts, win rate, and profit factor, providing a clear overview of strategy performance.
Liquidation Risk Alerts: Warns traders if stop-loss levels risk liquidation based on leverage settings, enhancing risk awareness.
Benefits for Traders
Beginner-Friendly: Simplifies the complexities of the TradingView Strategy Tester, offering an intuitive interface for new traders to simulate and evaluate trades without confusion.
Real-World Insights: Helps traders understand the actual profit or loss potential of their strategies by factoring in capital, risk, and leverage, bridging the gap between theoretical backtesting and real-world execution.
Enhanced Decision-Making: Provides clear, real-time analytics on risk-reward ratios, unrealized P&L, and trade performance, enabling informed trading decisions.
Customizable and Flexible: Allows customization of TP/SL settings, table positions, colors, and sizes, catering to individual trader preferences.
Risk Management Focus: Encourages disciplined trading by highlighting risk amounts, potential profits, and liquidation risks, fostering better financial planning.
Why This Indicator Stands Out
Many traders struggle to translate backtested strategy results into real-world outcomes due to the abstract nature of percentage-based profitability metrics. This indicator addresses that challenge by providing a practical, user-friendly tool that simulates trades with real-world parameters like capital, leverage, and compounding. Its open-source nature ensures accessibility, while its integration with other indicators makes it versatile for various trading styles.
How to Use
Add to TradingView: Copy the Pine Script code into TradingView’s Pine Editor and add it to your chart.
Configure Inputs: Set your initial capital, risk percentage, leverage, and TP/SL values in the indicator settings. Select external long/short signal sources if integrating with other indicators.
Monitor Dashboards: Use the Money Management and Target Dashboard tables to track trade performance and risk metrics in real time.
Analyze Results: Review win rates, profit factors, and P&L to refine your trading strategy.
Credits
This indicator builds upon the open-source contributions of LuxAlgo and TCP , whose efforts in sharing their code have made this tool possible. Their dedication to the trading community is deeply appreciated.
Nova SMC Key TimesThe Nova SMC Key Times is a focused TradingView® indicator tailored for futures traders who want clear visual markers at key session transitions. Designed with simplicity in mind, it automatically plots two dashed vertical lines each trading day to highlight the pre-market and official market-open times (adjusted for Micro E-mini S&P 500 and Micro Gold contracts).
Pre-Market Marker: A semi-transparent white dashed line drawn at the start of pre-market activity, helping you observe early liquidity movements and potential order accumulation.
Market-Open Marker: A fully opaque white dashed line at the exact opening bar of the main session, providing a clear reference for breakout attempts and volatility spikes.
Because LSF detects the appropriate timestamps based on the loaded symbol (MES1! or MGC1!), you never need to manually set session times. If applied to other symbols, it remains silent, ensuring that charts stay uncluttered.
You can easily customize line colors to match your visual preferences under the provided style settings. By visually framing these two critical moments each day, Nova LSF helps traders anticipate stop hunts, breakout retests, and initial momentum moves—making it a useful complement to any liquidity-oriented or order-flow strategy.
PLR-Z For Loop🧠 Overview
PLR-Z For Loop is a trend-following indicator built on the Power Law Residual Z-score model of Bitcoin price behavior. By measuring how far price deviates from a long-term power law regression and applying a custom scoring loop, this tool identifies consistent directional pressure in market structure. Designed for BTC, this indicator helps traders align with macro trends.
🧩 Key Features
Power Law Residual Model: Tracks deviations of BTC price from its long-term logarithmic growth curve.
Z-Score Normalization: Applies long-horizon statistical normalization (400/1460 bars) to smooth residual deviations into a usable trend signal.
Loop-Based Trend Filter: Iteratively scores how often the current Z-score exceeds prior values, emphasizing trend persistence over volatility.
Optional Smoothing: Toggleable exponential smoothing helps filter noise in choppier market conditions.
Directional Regime Coloring: Aqua (bullish) and Red (bearish) visuals reinforce trend alignment across plots and candles.
🔍 How It Works
Power Law Curve: Price is compared against a logarithmic regression model fitted to historical BTC price evolution (starting July 2010), defining structural support, resistance, and centerline levels.
Residual Z-Score: The residual is calculated as the log-difference between price and the power law center.
This residual is then normalized using a rolling mean (400 days) and standard deviation (1460 days) to create a long-term Z-score.
Loop Scoring Logic:
A loop compares the current Z-score to a configurable number of past bars.
Each higher comparison adds +1, and each lower one subtracts -1.
The result is a trend persistence score (z_loop) that grows with consistent directional momentum.
Smoothing Option: A user-defined EMA smooths the score, if enabled, to reduce short-term signal noise.
Signal Logic:
Long signal when trend score exceeds long_threshold.
Short signal when score drops below short_threshold.
Directional State (CD): Internally manages the current market regime (1 = long, -1 = short), controlling all visual output.
🔁 Use Cases & Applications
Macro Trend Alignment: Ideal for traders and analysts tracking Bitcoin’s structural momentum over long timeframes.
Trend Persistence Filter: Helps confirm whether the current move is part of a sustained trend or short-lived volatility.
Best Suited for BTC: Built specifically on the BNC BLX price history and Bitcoin’s power law behavior. Not designed for use with other assets.
✅ Conclusion
PLR-Z For Loop reframes Bitcoin’s long-term power law model into a trend-following tool by scoring the persistence of deviations above or below fair value. It shifts the focus from valuation-based mean reversion to directional momentum, making it a valuable signal for traders seeking high-conviction participation in BTC’s broader market cycles.
⚠️ Disclaimer
The content provided by this indicator is for educational and informational purposes only. Nothing herein constitutes financial or investment advice. Trading and investing involve risk, including the potential loss of capital. Always backtest and apply risk management suited to your strategy.
M2 Lag Correlation | QuantumResearch🧠 M2 Lag Correlation | QuantumResearch
Global M2 vs. Asset Lagged Correlation Dashboard
Measuring delayed macroeconomic impact across regions and asset classes
🌍 Why Is It Unique?
This is the first macro-financial correlation tool on TradingView that tracks and aggregates lagged money supply (M2) data across 20 global economies, FX-adjusted into USD equivalence, and overlays it against your selected chart (BTC, ETH, SPX, etc.).
It does more than just plot macro data — it quantifies the delayed correlation between asset price action and macro liquidity trends, providing a unique macro-lag insight tool for serious analysts and long-term investors.
📌 What It Does:
Computes the global M2 aggregate using 20 region-specific M2 datasets, normalized via local exchange rates
Lets you shift the M2 data forward using a customizable day offset (default: 96D) to model macro lag effects
Calculates rolling Pearson correlation between your charted asset and the lagged M2 line
Outputs correlation scores across four windows:
🟢 30D (Monthly)
🟢 90D (Quarterly)
🟢 182D (Semester)
🟢 365D (Yearly)
➕ Includes a composite Average Score
Displays values in a clean dashboard-style table with color-coded feedback
🔍 Use Cases:
Detect how macro liquidity expansion or contraction influences your asset
Determine the macro lag window — the period after which monetary supply affects asset prices
Validate cycle transitions using data-backed macro alignment
Compare lag response between assets (e.g., BTC vs. ETH vs. NASDAQ)
📊 Macro Lag Insight:
As of recent data:
Bitcoin (BTC) shows the strongest correlation with global M2 at approximately 97 days of lag
Ethereum (ETH) shows its peak correlation around 108 days of lag
These lag values are not static and may evolve over time as macro conditions shift. The script allows users to explore such relationships interactively.
⚙️ Customizable Parameters:
🔄 Offset (Days) – Slide the M2 curve forward to match historical asset reactions
🎨 Color Mode – 8 color palettes to match your visual preferences
📍 Table Position – Place the correlation display wherever you want on your chart
✅ Requirements:
Access to ECONOMICS and FX_IDC feeds on TradingView
Chart timeframe: preferably daily or higher for macro relevance
⚠️ Disclaimer:
Disclaimer: The content on this indicator is for informational and educational purposes only. Nothing contained within should be considered financial, investment, legal, or other professional advice. Past performance does not guarantee future results. Trading cryptocurrencies involves substantial risk of loss and is not suitable for every investor.
Correlation does not imply causation. This tool offers macro-aligned insight, not direct price prediction. Use it alongside a broader macro and market framework.
Last Week's APM & Daily % Move(Corrected)Last Week's Average Price Movement + Daily Percentage Move (based on NY time)
This indicator accurately displays last week's Average Pip Movement (APM) consistently across all timeframes and tracks the true daily percentage move relative to that APM in a clear table in the top-right corner.
Key Features:
-Consistent Last Week's APM: Calculates the average pip movement from Monday to Friday of the previous trading week (based on daily wick-to-wick ranges, divided by 5). This APM value is now stable and the same across all chart timeframes.
-Accurate Live Daily % Move: Tracks the maximum percentage the price has moved (either up or down) since the 5 PM New York time daily open, compared to last week's APM. The percentage holds the maximum value reached during the day and resets at the next 5 PM NY open.
-NY Time Alignment: All time-based calculations are aligned with the New York time zone
Pip Adjustment: Automatically adjusts for JPY pairs.
⚠️ Important: For the intended display and relevance of the daily percentage move, this indicator is best used on timeframes 4-hour and under. On Daily and Weekly timeframes, the APM display will show a message indicating this.
We hope this indicator enhances your trading analysis.
Macro Context v1 - NobruzeraaaHMacro Context v1
Advanced Multi-Asset Correlation Analysis for Professional Trading
"In institutional trading, correlation is king. This panel puts the crown on your charts."
Overview
This is a sophisticated real-time market analysis tool that monitors critical institutional correlations across traditional and cryptocurrency markets. This indicator provides traders with actionable insights based on academic research and institutional trading patterns.
Features
- **Multi-Asset Correlation Engine**
- **13 Advanced Analysis Layers** covering macro, crypto, and institutional flows
- **Real-time Correlation Detection** between BTC, equities, bonds, and commodities
- **Institutional Divergence Alerts** for early trend identification
- **Risk Sentiment Analysis** using VIX, DXY, and yield curve data
**Professional Grade Analytics**
- **NDX/SPX vs BTC Correlation** - Critical tech-crypto relationship monitoring
- **VIX Breakout Detection** - Institutional panic (>30) and dangerous complacency (<15) alerts
- **Yield Curve Inversion Monitoring** - Recession signal detection via US10Y-US2Y spread
- **Institutional Flow Tracking** - Real proxies using MSTR/COIN performance
- **DXY Critical Levels** - USD dominance (>105) and weakness (<95) thresholds
**Smart Actionable Signals**
- **Opportunity Detection** in altcoins during confirmed risk-on periods
- **Divergence Warnings** when BTC-Tech correlations break down
- **Volatility Preparation** alerts during market complacency
- **Hedge Recommendations** during institutional flight to quality
Correlation Matrix Monitored
**Traditional Markets**
| Asset | Function | Institutional Significance |
|-------|----------|---------------------------|
| **SPX** | Equity benchmark | Risk-on/off sentiment |
| **NDX** | Tech growth proxy | Innovation capital flows |
| **VIX** | Volatility index | Fear/greed institutional gauge |
| **DXY** | Dollar strength | Global liquidity flows |
| **US10Y-US2Y** | Yield curve | Recession probability |
| **Gold** | Safe haven | Inflation hedge demand |
| **Copper** | Industrial metal | Growth expectations |
**Cryptocurrency Markets**
| Asset | Function | Institutional Significance |
|-------|----------|---------------------------|
| **BTC** | Digital store of value | Institutional adoption gauge |
| **ETH** | Smart contract platform | DeFi institutional interest |
| **BTC.D** | Bitcoin dominance | Crypto capital allocation |
| **USDT.D** | Stablecoin dominance | Risk-off crypto indicator |
| **TOTAL3** | Alt market cap | Retail vs institutional flow |
**Institutional Proxies**
| Asset | Function | Why It Matters |
|-------|----------|----------------|
| **MSTR** | MicroStrategy stock | Corporate BTC holdings proxy |
| **COIN** | Coinbase stock | Crypto institutional gateway |
---
Critical Correlations Detected
**1. Tech-Led Risk-On Confirmation**
**Trigger:** NDX outperforming SPX + BTC rising + VIX declining
**Signal:** Strong institutional appetite for growth assets
**Action:** Opportunity in tech and crypto momentum
**2. BTC-Tech Divergence Warning**
**Trigger:** NDX/SPX ratio positive + BTC declining significantly
**Signal:** Potential institutional crypto exit while maintaining tech exposure
**Action:** Monitor for broader crypto weakness
**3. Institutional Panic Mode**
**Trigger:** VIX > 30 + USDT.D rising + BTC/equities declining
**Signal:** Fear-driven liquidations across all risk assets
**Action:** Wait for clarity, prepare for volatility
**4. Dangerous Complacency**
**Trigger:** VIX < 15 + low volatility across assets
**Signal:** Market complacency reaching dangerous levels
**Action:** Prepare for sudden volatility spike
**5. Yield Curve Recession Signal**
**Trigger:** US10Y-US2Y spread deeply inverted (<-0.5%)
**Signal:** Bond market pricing in economic slowdown
**Action:** Defensive positioning, reduce risk exposure
**6. USD Super-Dominance**
**Trigger:** DXY > 105 + gold declining + risk assets under pressure
**Signal:** Extreme USD strength creating global liquidity stress
**Action:** Monitor emerging market stress, dollar-denominated debt concerns
**7. Altseason Confirmation**
**Trigger:** BTC.D declining + USDT.D declining + TOTAL3 outperforming + low VIX
**Signal:** Capital rotating from BTC to altcoins in risk-on environment
**Action:** Opportunity in alternative cryptocurrencies
---
Advanced Analytics Provided
**Risk Sentiment Classification**
- 🔴 **Fear in System** - Multiple fear indicators triggered
- 🟡 **Cautious Mode** - Mixed signals, proceed carefully
- 🟢 **Risk Appetite** - Confirmed risk-on environment
- 🟢 **Strong Risk-On** - Multiple bullish confirmations
- 🟠 **Dangerous Complacency** - Excessive optimism warning
**Macro Context Analysis**
- 💪 **Dollar Dominant** - USD strength driving global flows
- 🌍 **USD Weakening** - Emerging market and commodity positive
- ⚠️ **Market Stress** - Multiple stress indicators active
- 🚀 **Solid Bull Market** - Confirmed uptrend across assets
- 🏭 **Growth Acceleration** - Copper/Gold ratio signaling expansion
- 🛡️ **Defensive Rotation** - Flight to quality assets
**Actionable Intelligence**
- ✅ **Opportunity in Alts** - Multiple confirmations for altcoin exposure
- ⚠️ **Wait for Clarity** - High uncertainty, avoid new positions
- 🏛️ **Consider Hedge** - Defensive positioning recommended
- 📈 **Ride Momentum** - Trend continuation likely
- 🔍 **Monitor Divergence** - Correlation breakdown warning
- ⚠️ **Prepare for Volatility** - Complacency extreme reached
Technical Implementation
**Data Sources**
- **Traditional Markets:** TradingView real-time feeds
- **Cryptocurrency:** Binance spot prices and market cap data
- **Macro Data:** US Treasury yields, volatility indices
- **Update Frequency:** Every minute during market hours
**Calculation Methodology**
- **24-hour percentage changes** for all assets
- **Real-time price levels** for VIX and DXY thresholds
- **Spread calculations** for yield curve analysis
- **Ratio analysis** for relative performance metrics
**Multi-Language Support**
- 🇺🇸 **English** - Full professional terminology
- 🇪🇸 **Spanish** - Complete translation for Latin American markets
- 🇧🇷 **Portuguese** - Brazilian market terminology
---
Academic Foundation
This indicator is built upon peer-reviewed research and institutional trading patterns:
**Research-Based Correlations**
- **Bitcoin-NASDAQ correlation studies** (2024 academic papers)
- **VIX threshold analysis** from institutional trading desks
- **Yield curve inversion** recession prediction models
- **Dollar index breakout** historical analysis
- **Cryptocurrency dominance** flow studies
**Institutional Insights**
- **Fear & Greed Index** methodology adaptation
- **Professional volatility** threshold implementation
- **Corporate treasury** Bitcoin adoption tracking
- **Institutional proxy** correlation validation
---
Quick Start Guide
**Configuration**
- **Language Selection:** Choose your preferred language
- **Asset Selection:** Enable/disable specific asset monitoring
- **Timezone:** Set your preferred timezone for timestamp display
**Interpretation**
- **Green indicators:** Bullish/risk-on signals
- **Red indicators:** Bearish/risk-off signals
- **Yellow indicators:** Neutral/mixed signals
- **Orange indicators:** Warning/extreme conditions
---
Use Cases
**Traders**
- **Portfolio allocation** based on institutional flows
- **Risk management** through correlation monitoring
- **Market timing** using sentiment extremes
- **Divergence trading** opportunities
**Analysts**
- **Multi-asset correlation** research
- **Macro theme** identification
- **Risk sentiment** quantification
- **Flow analysis** across asset classes
**Cryptocurrency Investors**
- **Altseason timing** through dominance analysis
- **Macro correlation** understanding
- **Institutional adoption** tracking
- **Risk-on/off** positioning
---
Important Disclaimers
- **Not Financial Advice:** This tool provides analytical insights, not investment recommendations
- **Market Risk:** All trading involves substantial risk of loss
- **Correlation Changes:** Market correlations can shift rapidly during crisis periods
- **Supplementary Tool:** Should be used alongside other analysis methods
This indicator represents cutting-edge market analysis combining traditional finance and cryptocurrency insights. Regular updates ensure continued accuracy as market structures evolve.
**Version:** 1.0
**Last Updated:** 2025
**Compatibility:** Pine Script v6
**Category:** Multi-Asset Analysis
Daily ADR TableDaily ADR Table Indicator
The Daily Average Daily Range (ADR) Table displays real-time volatility statistics directly on your chart. It shows both the current day's range and the historical average daily range as percentages of the current price, providing essential volatility metrics for trading decisions.
The indicator tracks today's range in real-time throughout the trading session using session-based calculations to ensure accuracy. It compares this against a customizable historical average (default 20 days, adjustable from 1-500 days) to help traders assess whether current volatility is above or below normal levels.
All values are displayed as percentages for easy comparison across different price levels and formatted to two decimal places for precision. The table position, text size, alignment, and colors are fully customizable with nine position options and professional default styling optimized for readability.
This indicator is valuable for day traders, swing traders, and market analysts who need to quickly assess current market volatility relative to historical norms. It assists in position sizing decisions, setting stop losses, and identifying potential breakout or consolidation scenarios based on range expansion or contraction.
ATR-InfoWHAT IT SHOWS
- ATR (): Average True Range of the chosen timeframe, printed with the instrument’s native tick precision (format.mintick).
- ATR % PRICE: ATR divided by the latest close, multiplied by 100 – the range as a percentage of current price.
- LEN / TF: The ATR length and timeframe you selected (shown in small print).
INPUTS
- ATR Length (default 14)
- ATR Timeframe (for example 60, D, W)
- Design settings: table position, font size, colours, border
EXAMPLES
BTC-USD: price 67 800, ATR 2 450, ATR % 3.6
NQ E-Mini: price 18 230, ATR 355, ATR % 1.9
CL WTI: price 76.40, ATR 2.10, ATR % 2.8
EUR-USD: price 1.0860, ATR 0.0075, ATR % 0.69
USE CASES
Volatility-adjusted stops: place your stop roughly one ATR beyond the entry price.
Position sizing: money at risk divided by ATR gives the number of contracts or coins.
Market selection: trade assets only when their ATR % sits in your preferred range.
Strategy filter: trigger entries or exits only when ATR % crosses a chosen threshold.
LIMITS
ATR is descriptive; it does not predict future moves.
Illiquid symbols may show exaggerated ATR spikes.
ATR % ignores differing session lengths (24/7 crypto versus exchange-traded hours).
WLSMA: fast approximation🙏🏻 Sup TV & @alexgrover
O(N) algocomplexity, just one loop inside. No, you can't do O(1) @ updates in moving window mode, only expanding window will allow that.
Now I have time series & stats models of my own creation, nowhere else available, just TV and my github for now, ain’t no legacy academic industry I always have fun about, but back in 2k20 when I consciously ain’t known much about quant, I remember seeing post by @alexgrover recreating Moving Regression Endpoint dropped on price chart (called LSMA here) as a linear filter combination of filters (yea yeah DSP terms) as 3WMA - 2SMA. Now it’s my time to do smth alike aye?
...
This script is remake of my 1st degree WLSMA via linear filter combo. It’s much faster, we aint calculate moving regression per se, we just match its freq response. You can see it on the screen (WLSMAfa) almost perfectly matching the original one (WLSMA).
...
While humans like to overfit, I fw generalizations. So your lovely WMA is actually just one case of a more general weight pattern: pow(len - i, e), where pow is the power function and e is the exponent itself. So:
- If e = 0, then we have SMA (every number in 0th power is one)
- If e = 1, we get WMA
- If e = 2, we get quadratic weights.
We can recreate WLSMA freq response then by combining 2 filters with e = 1 and e = 2.
This is still an approximation, even tho enormously precise for the tasks you’ve shared with me. Due to the non-linear nature of the thing it’s all we can do, and as window size grows, even this small discrepancy converges with true WLSMA value, so we’re all good. Pls don’t try to model this 0.00xxxx discrepancy, it’s not natural.
...
DSP approach is unnatural for prices, but you can put this thing on volume delta and be happy, or on other metrics of yours, if for some reason u dont wanna estimate thresholds by fitting a distro.
All good TV
∞
P.S.: strangely, the first script made & dropped in the location in Saint P where my actual quant way has started ~5 years ago xD, very thankful
MÈGAS ALGO : MÈGAS Signals [INDICATOR]Overview
The MÈGAS Signals is a cutting-edge, multi-functional trading tool designed for advanced traders seeking to identify high-probability trade setups. This script combines price action analysis, machine learning techniques, and real-time signal generation across multiple timeframes to provide actionable insights. The indicator is optimized for both bullish and bearish market conditions and includes features like backtesting metrics, take-profit tools, and customizable alerts.
Key Features
1. Machine Learning and Statistical Clustering
The script implements the K-Means clustering algorithm , a widely used unsupervised machine learning technique, to segment historical price movements into distinct clusters based on magnitude and distribution characteristics. These clusters represent quantized levels of bullish and bearish momentum, enabling the system to adaptively model market behavior across varying volatility regimes.
By applying this statistical clustering approach to real-time price data, the algorithm dynamically identifies meaningful thresholds for key Smart Money Concepts (SMC) such as Break of Structure (BOS) and Change of Character (CHOCH) . This integration enhances classical SMC logic with a data-driven, self-adjusting mechanism that responds to evolving market conditions, effectively bridging traditional price action analysis with modern machine learning methodologies.
2.Multi-Timeframe Table:
A dynamic, real-time multi-timeframe table displayed on the chart that provides at-a-glance insight into:
-Current trend or signal status per timeframe
-Percentage price change relative to the previous bar
-Countdown to the next bar open , updated every second
This table empowers traders with cross-timeframe context , helping them identify confluence, reversals, or divergences across multiple horizons — from scalping (1m) to long-term trends (1D).
3.Dynamic Trailing Stops with Enhanced Visualization
The dynamic trailing stop mechanism adjusts based on volatility clusters, ensuring tighter risk
management during low-volatility periods and wider stops during high-volatility phases.
The feed speed feature enhances visualization by adjusting the transparency of candle
coloring relative to the trailing stop. This makes it easier to interpret trend strength and
momentum, allowing traders to stay ahead of price action.
4.Customizable Alerts for Seamless Execution
Sublimia Signals offers highly customizable alerts that can be tailored to specific timeframes
and trading preferences.
With the intra-bar calculation feature, alerts can be triggered on every tick rather than just
on bar close, empowering traders to act swiftly in fast-moving markets.
Personalized alert messages allow you to create clear and concise notifications for entry and
exit points, streamlining your trading workflow.
5.Comprehensive Backtesting Metrics
The built-in performance metrics table provides detailed backtesting results, including total
trades, win rates, cumulative profit/loss, profit factor, best profit, and worst loss for both
long and short positions.
These metrics enable traders to evaluate the effectiveness of their strategies and optimize
input parameters for better performance.
6.Non-Standard Candle Integration for Smoother Price Action Analysis
The optional Non-Standard Candle toggle allows users to switch between "Traditional", "Heikin-Ashi", "Volume-Weighted" and "Hybrid" candles.
This feature is particularly useful for identifying trends and filtering out market noise, while
backtesting remains based on normal candles to ensure accuracy.
7.Intra-Bar Calculation for Granular Insights
When enabled, the intra-bar calculation feature provides granular insights into price
movements within each bar, offering traders a deeper understanding of market dynamics.
This feature also modifies the algorithm's logic, triggering alerts on every tick rather than just
on bar close, making it ideal for scalpers and day traders who need ultra-responsive tools.
8.Take-Profit/Trailing-Profit Tools: Precision and Flexibility
This feature allows you to set multiple profit levels with customizable percentage
distances, giving you unparalleled control over your trades.
Selectable Type of exit mode : Take-Profit or Trailing-Profit.
Selectable Number of Profit Levels: Define as many profit targets as you need,
ensuring you can capture profits at different stages of price movement.
Percentage-Based Distance: Set each profit level based on a percentage distance from
your entry point. This ensures precise positioning tailored to your risk-reward preferences.
Integrated Alerts: Never miss an opportunity! The tool includes built-in alerts that notify you
when each take-profit level is reached, keeping you informed in real-time.
9.Optimized Visualization
The script ensures optimized visualization of trend strength through smooth transitions in
candle transparency, making it easier to interpret market momentum.
The feed speed parameter calculates how quickly the candle coloring adjusts relative to the
trailing stop, enhancing clarity and decision-making.
How it work
Identify the Primary Trend Using Multi-Timeframe Analysis :
Focus on Higher Timeframes : Start by analyzing the 4h, 8h, or 24h timeframes to determine the primary trend. These higher timeframes provide a clearer picture of long-term momentum.
The built-in table provides real-time updates across all primarly timeframes. Look for confluence—when multiple timeframes align in the same direction.
Confirm Entry Points Using Lower Timeframes :
Fine-Tune Entries with Shorter Timeframes : Once you’ve identified the primary trend, use lower timeframes (e.g., 1m, 5m, or 15m ) to confirm entry points.
Set Take-Profit Levels Based on Percentage Distances :
Customizable Take-Profit Tools : Use the take-profit feature to set multiple levels based on percentage distances from your entry point.
Use Customizable Alerts for Real-Time Updates :
Enable alerts for specific timeframes (e.g., 4h, 8h, 15m) to stay informed about changes in the primary trend or short-term opportunities.
For fast-moving markets, enable the intra-bar calculation feature to receive alerts on every tick, ensuring you don’t miss critical entries or exits.
Backtesting for Strategy Optimization :
Performance Metrics : Use the backtesting metrics table to evaluate how well your trend-following strategy performs over time. Analyze win rates, profit factor, and best/worst trades to refine your approach.
Adjust Inputs : Fine-tune settings like slippage and commission(%) to optimize the indicator for your prefer pair.
Please Note:
This indicator is provided for informational and educational purposes only. It is not financial advice, and it should not be considered a recommendation to buy, sell, or trade any financial instrument. Trading involves significant risks, including the potential loss of your entire investment. Always conduct your own research and consult with a licensed financial advisor before making any trading decisions.
The results and images provided are based on algorithms and historical/paid real-time market data but do not guarantee future results or accuracy. Use this tool at your own risk, and understand that past performance is not indicative of future outcomes.
AXR-VolSD-Loc📈 AXR-VolSD-Loc — Volatility & Range Mapping Tool for Smart Traders
The AXR-VolSD-Loc indicator is a professional-grade tool designed for traders who rely on precise volatility analysis and structured range-based levels. It combines dynamic volatility bands with configurable price ranges such as ADR, AWR, AMR, and AQR — offering strategic clarity across all timeframes.
🔍 Key Features
Multi-Timeframe Range Calculation
Supports Daily (ADR), Weekly (AWR), Monthly (AMR), and Quarterly (AQR) ranges — each with independent period controls.
Standard Deviation Volatility Bands
Automatically or manually calculate standard deviation (%) to plot multiple upper/lower levels from a base price reference.
Fully Customizable Lines & Labels
Choose the number of bands, enable half-volatility levels, apply color gradients, customize line styles, widths, label positions, font sizes and offsets.
Flexible Anchor Logic
Set the base line for volatility from Hi/Lo/50%/0% of AXR, or input your own manual price — ideal for ICT model alignment.
Smart Visuals & Optimized Drawing
Clean line and label management using line.new() and label.new() with efficient updates only when required.
Data Table & Summary Panel
Floating table displays key metrics like high/low range, midpoint, volatility settings, and source references.
Built-In Alerts
Receive alerts when price approaches key volatility levels or AXR range extremes — ideal for anticipating institutional behavior.
🛠️ How to Use & Configure
1. Choose the Range Mode
In "AXR Mode & Period Settings", select your preferred range type:
Daily (ADR) – Short-term or intraday.
Weekly (AWR) – Medium swing positions.
Monthly (AMR) – Optimal for higher-timeframe structure.
Quarterly (AQR) – Best for macro-level zones.
Then define the number of days/weeks/months/quarters used to calculate each.
2. Define the Volatility Base Line
Under "Volatility Base Line Settings", configure the anchor:
Use 0% AXR for midpoint, or Hi/Lo/50% for edges.
Manual mode allows custom price input.
Adjust the line color, style, and thickness.
3. Configure Standard Deviation
In "Standard Deviation - Calculation & Levels", select the source:
Automatic AXR — calculates % based on AXR range.
Manual — allows custom % input.
Define how many levels above/below the base line.
Use the scale factor to adjust relative strength (e.g., 0.5 = 50% of AXR).
4. Adjust Visual Display
In "Display & Labels":
Enable or disable volatility lines.
Use color progression for intensity from blue to red.
Show or hide intermediate lines (half deviation).
Choose label alignment: right, center, or left.
Fine-tune label position with candle offset and text size.
5. Extend Lines and Define Visibility
You can choose to extend the lines left, right or both directions — or use a fixed number of bars when not extended.
This applies to both volatility lines and AXR levels.
6. Show AXR Hi/Lo/50%/0% Lines
In "AXR Levels":
Enable display of Hi, Lo, midpoint, and 50% levels.
Toggle display of AXR open levels (MO-based).
Customize style, color and width of each line.
7. Enable the Table (Optional)
Turn on the floating data table to see a quick summary:
Range high/low/midpoint.
Volatility multiplier.
Source (manual vs automatic).
Period length.
Useful for fast review during market sessions.
8. Alerts
Receive automated alerts when price approaches:
AXR Hi/Lo
0% midpoint level
Custom-defined deviation bands
✅ Use Cases
Define and monitor volatility zones around structured ranges.
Combine AMR or AQR with deviation bands for swing setups.
React to price imbalances at 50% or 0% AXR zones.
Integrate with order blocks, liquidity zones or ICT-based confluences.
Questions or suggestions? Contact us via TradingView message or in the comments.
Happy trading!
Uptrick: Z-Trend BandsOverview
Uptrick: Z-Trend Bands is a Pine Script overlay crafted to capture high-probability mean-reversion opportunities. It dynamically plots upper and lower statistical bands around an EMA baseline by converting price deviations into z-scores. Once price moves outside these bands and then reenters, the indicator verifies that momentum is genuinely reversing via an EMA-smoothed RSI slope. Signal memory ensures only one entry per momentum swing, and traders receive clear, real-time feedback through customizable bar-coloring modes, a semi-transparent fill highlighting the statistical zone, concise “Up”/“Down” labels, and a live five-metric scoring table.
Introduction
Markets often oscillate between trending and reverting, and simple thresholds or static envelopes frequently misfire when volatility shifts. Standard deviation quantifies how “wide” recent price moves have been, and a z-score transforms each deviation into a measure of how rare it is relative to its own history. By anchoring these bands to an exponential moving average, the script maintains a fluid statistical envelope that adapts instantly to both calm and turbulent regimes. Meanwhile, the Relative Strength Index (RSI) tracks momentum; smoothing RSI with an EMA and observing its slope filters out erratic spikes, ensuring that only genuine momentum flips—upward for longs and downward for shorts—qualify.
Purpose
This indicator is purpose-built for short-term mean-reversion traders operating on lower–timeframe charts. It reveals when price has strayed into the outer 5 percent of its recent range, signaling an increased likelihood of a bounce back toward fair value. Rather than firing on price alone, it demands that momentum follow suit: the smoothed RSI slope must flip in the opposite direction before any trade marker appears. This dual-filter approach dramatically reduces noise-driven, false setups. Traders then see immediate visual confirmation—bar colors that reflect the latest signal and age over time, clear entry labels, and an always-visible table of metric scores—so they can gauge both the validity and freshness of each signal at a glance.
Originality and Uniqueness
Uptrick: Z-Trend Bands stands apart from typical envelope or oscillator tools in four key ways. First, it employs fully normalized z-score bands, meaning ±2 always captures roughly the top and bottom 5 percent of moves, regardless of volatility regime. Second, it insists on two simultaneous conditions—price reentry into the bands and a confirming RSI slope flip—dramatically reducing whipsaw signals. Third, it uses slope-phase memory to lock out duplicate signals until momentum truly reverses again, enforcing disciplined entries. Finally, it offers four distinct bar-coloring schemes (solid reversal, fading reversal, exceeding bands, and classic heatmap) plus a dynamic scoring table, rather than a single, opaque alert, giving traders deep insight into every layer of analysis.
Why Each Component Was Picked
The EMA baseline was chosen for its blend of responsiveness—weighting recent price heavily—and smoothness, which filters market noise. Z-score deviation bands standardize price extremes relative to their own history, adapting automatically to shifting volatility so that “extreme” always means statistically rare. The RSI, smoothed with an EMA before slope calculation, captures true momentum shifts without the false spikes that raw RSI often produces. Slope-phase memory flags prevent repeated alerts within a single swing, curbing over-trading in choppy conditions. Bar-coloring modes provide flexible visual contexts—whether you prefer to track the latest reversal, see signal age, highlight every breakout, or view a continuous gradient—and the scoring table breaks down all five core checks for complete transparency.
Features
This indicator offers a suite of configurable visual and logical tools designed to make reversal signals both robust and transparent:
Dynamic z-score bands that expand or contract in real time to reflect current volatility regimes, ensuring the outer ±zThreshold levels always represent statistically rare extremes.
A smooth EMA baseline that weights recent price more heavily, serving as a fair-value anchor around which deviations are measured.
EMA-smoothed RSI slope confirmation, which filters out erratic momentum spikes by first smoothing raw RSI and then requiring its bar-to-bar slope to flip before any signal is allowed.
Slope-phase memory logic that locks out duplicate buy or sell markers until the RSI slope crosses back through zero, preventing over-trading during choppy swings.
Four distinct bar-coloring modes—Reversal Solid, Reversal Fade, Exceeding Bands, Classic Heat—plus a “None” option, so traders can choose whether to highlight the latest signal, show signal age, emphasize breakout bars, or view a continuous heat gradient within the bands.
A semi-transparent fill between the EMA and the upper/lower bands that visually frames the statistical zone and makes extremes immediately obvious.
Concise “Up” and “Down” labels that plot exactly when price re-enters a band with confirming momentum, keeping chart clutter to a minimum.
A real-time, five-metric scoring table (z-score, RSI slope, price vs. EMA, trend state, re-entry) that updates every two bars, displaying individual +1/–1/0 scores and an averaged Buy/Sell/Neutral verdict for complete transparency.
Calculations
Compute the fair-value EMA over fairLen bars.
Subtract that EMA from current price each bar to derive the raw deviation.
Over zLen bars, calculate the rolling mean and standard deviation of those deviations.
Convert each deviation into a z-score by subtracting the mean and dividing by the standard deviation.
Plot the upper and lower bands at ±zThreshold × standard deviation around the EMA.
Calculate raw RSI over rsiLen bars, then smooth it with an EMA of length rsiEmaLen.
Derive the RSI slope by taking the difference between the current and previous smoothed RSI.
Detect a potential reentry when price exits one of the bands on the prior bar and re-enters on the current bar.
Require that reentry coincide with an RSI slope flip (positive for a lower-band reentry, negative for an upper-band reentry).
On first valid reentry per momentum swing, fire a buy or sell signal and set a memory flag; reset that flag only when the RSI slope crosses back through zero.
For each bar, assign scores of +1, –1, or 0 for the z-score direction, RSI slope, price vs. EMA, trend-state, and reentry status.
Average those five scores; if the result exceeds +0.1, label “Buy,” if below –0.1, label “Sell,” otherwise “Neutral.”
Update bar colors, the semi-transparent fill, reversal labels, and the scoring table every two bars to reflect the latest calculations.
How It Actually Works
On each new candle, the EMA baseline and band widths update to reflect current volatility. The RSI is smoothed and its slope recalculated. The script then looks back one bar to see if price exited either band and forward to see if it reentered. If that reentry coincides with an appropriate RSI slope flip—and no signal has yet been generated in that swing—a concise label appears. Bar colors refresh according to your selected mode, and the scoring table updates to show which of the five conditions passed or failed, along with the overall verdict. This process repeats seamlessly at each bar, giving traders a continuous feed of disciplined, statistically filtered reversal cues.
Inputs
All parameters are fully user-configurable, allowing you to tailor sensitivity, lookbacks, and visuals to your trading style:
EMA length (fairLen): number of bars for the fair-value EMA; higher values smooth more but lag further behind price.
Z-Score lookback (zLen): window for calculating the mean and standard deviation of price deviations; longer lookbacks reduce noise but respond more slowly to new volatility.
Z-Score threshold (zThreshold): number of standard deviations defining the upper and lower bands; common default is 2.0 for roughly the outer 5 percent of moves.
Source (src): choice of price series (close, hl2, etc.) used for EMA, deviation, and RSI calculations.
RSI length (rsiLen): period for raw RSI calculation; shorter values react faster to momentum changes but can be choppier.
RSI EMA length (rsiEmaLen): period for smoothing raw RSI before taking its slope; higher values filter more noise.
Bar coloring mode (colorMode): select from None, Reversal Solid, Reversal Fade, Exceeding Bands, or Classic Heat to control how bars are shaded in relation to signals and band positions.
Show signals (showSignals): toggle on-chart “Up” and “Down” labels for reversal entries.
Show scoring table (enableTable): toggle the display of the five-metric breakdown table.
Table position (tablePos): choose which corner (Top Left, Top Right, Bottom Left, Bottom Right) hosts the scoring table.
Conclusion
By merging a normalized z-score framework, momentum slope confirmation, disciplined signal memory, flexible visuals, and transparent scoring into one Pine Script overlay, Uptrick: Z-Trend Bands offers a powerful yet intuitive tool for intraday mean-reversion trading. Its adaptability to real-time volatility and multi-layered filter logic deliver clear, high-confidence reversal cues without the clutter or confusion of simpler indicators.
Disclaimer
This indicator is provided solely for educational and informational purposes. It does not constitute financial advice. Trading involves substantial risk and may not be suitable for all investors. Past performance is not indicative of future results. Always conduct your own testing and apply careful risk management before trading live.
Day Separator with Day LabelsAdjustable day separator that paints vertical lines through the start of day. Default set to GMT however totally customisable.
Has the day of week ladled also which is also optional in position.
there is a check box for a light chart background chart but default is dark background.
Vertical lines are customisable regarding thickness and colour.
Pretty new to it all so welcome feedback and amendment ideas.
PCA Regime-Adjusted MomentumSummary
The PCA Regime-Adjusted Momentum (PCA-RAM) is an advanced market analysis tool designed to provide nuanced insights into market momentum and structural stability. It moves beyond traditional indicators by using Principal Component Analysis (PCA) to deconstruct market data into its most essential patterns.
The indicator provides two key pieces of information:
A smoothed momentum signal based on the market's dominant underlying trend.
A dynamic regime filter that gauges the stability and clarity of the market's structure, advising you when to trust or fade the momentum signals.
This allows traders to not only identify potential shifts in momentum but also to understand the context and confidence behind those signals.
Core Concepts & Methodology
The strength of this indicator lies in its sound, data-driven methodology.
1. Principal Component Analysis (PCA)
At its core, the indicator analyzes a rolling window (default 50 periods) of standardized market data (Open, High, Low, Close, and Volume). PCA is a powerful statistical technique that distills this complex, 5-dimensional data into its fundamental, uncorrelated components of variance. We focus on the First Principal Component (PC1), which represents the single most dominant pattern or "theme" driving the market's behavior in the lookback window.
2. The Momentum Signal
Instead of just looking at price, we project the current market data onto this dominant underlying pattern (PC1). This gives us a raw "projection score" that measures how strongly the current bar aligns with the historically dominant market structure. This raw score is then smoothed using two an exponential moving averages (a fast and a slow line) to create a clear, actionable momentum signal, similar in concept to a MACD.
3. The Dynamic Regime Filter
This is arguably the indicator's most powerful feature. It answers the question: "How clear is the current market picture?"
It calculates the Market Concentration Ratio, which is the percentage of total market variance explained by PC1 alone.
A high ratio indicates that the market is moving in a simple, one-dimensional way (e.g., a clear, strong trend).
A low ratio indicates the market is complex, multi-dimensional, and choppy, with no single dominant theme.
Crucially, this filter is dynamic. It compares the current concentration ratio to its own recent average, allowing it to adapt to any asset or timeframe. It automatically learns what "normal" and "choppy" look like for the specific chart you are viewing.
How to Interpret the Indicator
The indicator is displayed in a separate pane with two key visual elements:
The Momentum Lines (White & Gold)
White Line: The "Fast Line," representing the current momentum.
Gold Line: The "Slow Line," acting as the trend confirmation.
Bullish Signal: A crossover of the White Line above the Gold Line suggests a shift to positive momentum.
Bearish Signal: A crossover of the White Line below the Gold Line suggests a shift to negative momentum.
The Regime Filter (Purple & Dark Red Background)
This is your confidence gauge.
Navy Blue Background (High Concentration): The market structure is stable, simple, and trending. Momentum signals are more reliable and should be given higher priority.
Dark Red Background (Low Concentration): The market structure is complex, choppy, or directionless. Momentum signals are unreliable and prone to failure or "whipsaws." This is a signal to be cautious, tighten stops, or potentially stay out of the market.
Potential Trading Strategies
This tool is versatile and can be used in several ways:
1. Primary Signal Strategy
Condition: Wait for the background to turn Purple, confirming a stable, high-confidence regime.
Entry: Take the next crossover signal from the momentum lines (White over Gold for long, White under Gold for short).
Exit/Filter: Consider exiting positions or ignoring new signals when the background turns Navy.
2. As a Confirmation or Filter for Your Existing Strategy
Do you have a trend-following system? Only enable its long and short signals when the PCA-RAM background is Purple.
Do you have a range-trading or mean-reversion system? It might be most effective when the PCA-RAM background is Navy, indicating a lack of a clear trend.
3. Advanced Divergence Analysis
Look for classic divergences between price and the momentum lines. For example, if the price is making a new high, but the Gold Line is making a lower high, it may indicate underlying weakness in the trend, even on a Purple background. This divergence signal is more powerful because it shows that the new price high is not being confirmed by the market's dominant underlying pattern.
MVRV Ratio [Alpha Extract]The MVRV Ratio Indicator provides valuable insights into Bitcoin market cycles by tracking the relationship between market value and realized value. This powerful on-chain metric helps traders identify potential market tops and bottoms, offering clear buy and sell signals based on historical patterns of Bitcoin valuation.
🔶 CALCULATION The indicator processes MVRV ratio data through several analytical methods:
Raw MVRV Data: Collects MVRV data directly from INTOTHEBLOCK for Bitcoin
Optional Smoothing: Applies simple moving average (SMA) to reduce noise
Status Classification: Categorizes market conditions into four distinct states
Signal Generation: Produces trading signals based on MVRV thresholds
Price Estimation: Calculates estimated realized price (Current price / MVRV ratio)
Historical Context: Compares current values to historical extremes
Formula:
MVRV Ratio = Market Value / Realized Value
Smoothed MVRV = SMA(MVRV Ratio, Smoothing Length)
Estimated Realized Price = Current Price / MVRV Ratio
Distance to Top = ((3.5 / MVRV Ratio) - 1) * 100
Distance to Bottom = ((MVRV Ratio / 0.8) - 1) * 100
🔶 DETAILS Visual Features:
MVRV Plot: Color-coded line showing current MVRV value (red for overvalued, orange for moderately overvalued, blue for fair value, teal for undervalued)
Reference Levels: Horizontal lines indicating key MVRV thresholds (3.5, 2.5, 1.0, 0.8)
Zone Highlighting: Background color changes to highlight extreme market conditions (red for potentially overvalued, blue for potentially undervalued)
Information Table: Comprehensive dashboard showing current MVRV value, market status, trading signal, price information, and historical context
Interpretation:
MVRV ≥ 3.5: Potential market top, strong sell signal
MVRV ≥ 2.5: Overvalued market, consider selling
MVRV 1.5-2.5: Neutral market conditions
MVRV 1.0-1.5: Fair value, consider buying
MVRV < 1.0: Potential market bottom, strong buy signal
🔶 EXAMPLES
Market Top Identification: When MVRV ratio exceeds 3.5, the indicator signals potential market tops, highlighting periods where Bitcoin may be significantly overvalued.
Example: During bull market peaks, MVRV exceeding 3.5 has historically preceded major corrections, helping traders time their exits.
Bottom Detection: MVRV values below 1.0, especially approaching 0.8, have historically marked excellent buying opportunities.
Example: During bear market bottoms, MVRV falling below 1.0 has identified the most profitable entry points for long-term Bitcoin accumulation.
Tracking Market Cycles: The indicator provides a clear visualization of Bitcoin's market cycles from undervalued to overvalued states.
Example: Following the progression of MVRV from below 1.0 through fair value and eventually to overvalued territory helps traders position themselves appropriately throughout Bitcoin's market cycle.
Realized Price Support: The estimated realized price often acts as a significant
support/resistance level during market transitions.
Example: During corrections, price often finds support near the realized price level calculated by the indicator, providing potential entry points.
🔶 SETTINGS
Customization Options:
Smoothing: Toggle smoothing option and adjust smoothing length (1-50)
Table Display: Show/hide the information table
Table Position: Choose between top right, top left, bottom right, or bottom left positions
Visual Elements: All plots, lines, and background highlights can be customized for color and style
The MVRV Ratio Indicator provides traders with a powerful on-chain metric to identify potential market tops and bottoms in Bitcoin. By tracking the relationship between market value and realized value, this indicator helps identify periods of overvaluation and undervaluation, offering clear buy and sell signals based on historical patterns. The comprehensive information table delivers valuable context about current market conditions, helping traders make more informed decisions about market positioning throughout Bitcoin's cyclical patterns.
Arnaud Legoux Trend Aggregator | Lyro RSArnaud Legoux Trend Aggregator
Introduction
Arnaud Legoux Trend Aggregator is a custom-built trend analysis tool that blends classic market oscillators with advanced normalization, advanced math functions and Arnaud Legoux smoothing. Unlike conventional indicators, 𝓐𝓛𝓣𝓐 aggregates market momentum, volatility and trend strength.
Signal Insight
The 𝓐𝓛𝓣𝓐 line visually reflects the aggregated directional bias. A rise above the middle line threshold signals bullish strength, while a drop below the middle line indicates bearish momentum.
Another way to interpret the 𝓐𝓛𝓣𝓐 is through overbought and oversold conditions. When the 𝓐𝓛𝓣𝓐 rises above the +0.7 threshold, it suggests an overbought market and signals a strong uptrend. Conversely, a drop below the -0.7 level indicates an oversold condition and a strong downtrend.
When the oscillator hovers near the zero line, especially within the neutral ±0.3 band, it suggests that no single directional force is dominating—common during consolidation phases or pre-breakout compression.
Real-World Example
Usually 𝓐𝓛𝓣𝓐 is used by following the bar color for simple signals; however, like most indicators there are unique ways to use an indicator. Let’s dive deep into such ways.
The market begins with a green bar color, raising awareness for a potential long setup—but not a direct entry. In this methodology, bar coloring serves as an alert mechanism rather than a strict entry trigger.
The first long position was initiated when the 𝓐𝓛𝓣𝓐 signal line crossed above the +0.3 threshold, suggesting a shift in directional acceleration. This entry coincided with a rising price movement, validating the trade.
As price advanced, the position was exited into cash—not reversed into a short—because the short criteria for this use case are distinct. The exit was prompted by 𝓐𝓛𝓣𝓐 crossing back below the +0.3 level, signaling the potential weakening of the long trend.
Later, as 𝓐𝓛𝓣𝓐 crossed below 0, attention shifted toward short opportunities. A short entry was confirmed when 𝓐𝓛𝓣𝓐 dipped below -0.3, indicating growing downside momentum. The position was eventually closed when 𝓐𝓛𝓣𝓐 crossed back above the -0.3 boundary—signaling a possible deceleration of the bearish move.
This logic was consistently applied in subsequent setups, emphasizing the role of 𝓐𝓛𝓣𝓐’s thresholds in guiding both entries and exits.
Framework
The Arnaud Legoux Trend Aggregator (ALTA) combines multiple technical indicators into a single smoothed signal. It uses RSI, MACD, Bollinger Bands, Stochastic Momentum Index, and ATR.
Each indicator's output is normalized to a common scale to eliminate bias and ensure consistency. These normalized values are then transformed using a hyperbolic tangent function (Tanh).
The final score is refined with a custom Arnaud Legoux Moving Average (ALMA) function, which offers responsive smoothing that adapts quickly to price changes. This results in a clear signal that reacts efficiently to shifting market conditions.
⚠️ WARNING ⚠️: THIS INDICATOR, OR ANY OTHER WE (LYRO RS) PUBLISH, IS NOT FINANCIAL OR INVESTMENT ADVICE. EVERY INDICATOR SHOULD BE COMBINED WITH PRICE ACTION, FUNDAMENTALS, OTHER TECHNICAL ANALYSIS TOOLS & PROPER RISK. MANAGEMENT.
Support and Resistance Logistic Regression | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Logistic Regression Support / Resistance indicator! This tool leverages advanced statistical modeling "Logistic Regressions" to identify and project key price levels where the market is likely to find support or resistance. For more information about the process, please check the "HOW DOES IT WORK ?" section.
Logistic Regression Support / Resistance Features :
Intelligent S/R Identification : The indicator uses a logistic regression model to intelligently identify and plot significant support and resistance levels.
Predictive Probability : Each identified level comes with a calculated probability, indicating how likely it is to act as a true support or resistance based on historical data.
Retest & Break Labels : The indicator clearly marks on your chart when a detected support or resistance level is retested (price touches and respects the level) or broken (price decisively crosses through the level).
Alerts : Real-time alerts for support retests, resistance retests, support breaks, and resistance breaks.
Customizable : You can change support & resistance line style, width and colors.
🚩 UNIQUENESS
What makes this indicator truly unique is its application of logistic regression to the concept of support and resistance. Instead of merely identifying historical highs and lows, our indicator uses a statistical model to predict the future efficacy of these levels. It analyzes underlying market conditions (like RSI and body size at pivot formation) to assign a probability to each potential S/R zone. This predictive insight, combined with dynamic, real-time labeling of retests and breaks, provides a more robust and adaptive understanding of market structure than traditional, purely historical methods.
📌HOW DOES IT WORK ?
The Logistic Regression Support / Resistance indicator operates in several key steps:
First, it identifies significant pivot highs and lows on the chart based on a user-defined "Pivot Length." These pivots are potential areas of support or resistance.
For each detected pivot, the indicator extracts relevant market data at that specific point, including the RSI (Relative Strength Index) and the Body Size (the absolute difference between the open and close price of the candle). These serve as input features for the model.
The core of the indicator lies in its logistic regression model. This model is continuously trained on past pivot data and their subsequent behavior (i.e., whether they were "respected" as support/resistance multiple times). It learns the relationship between the extracted features (RSI, Body Size) and the likelihood of a pivot becoming a significant S/R level.
When a new pivot is identified, the model uses its learned insights to calculate a prediction value—a probability (from 0 to 1) that this specific pivot will act as a strong support or resistance.
If the calculated probability exceeds a user-defined "Probability Threshold," the pivot is designated a "Regression Pivot" and drawn on the chart as a support or resistance line. The indicator then actively tracks how price interacts with these levels, displaying "R" labels for retests when the price bounces off the level and "B" labels for breaks when the price closes beyond it.
⚙️ SETTINGS
1. General Configuration
Pivot Length: This setting defines the number of bars used to determine a significant high or low for pivot detection.
Target Respects: This input specifies how many times a level must be "respected" by price action for it to be considered a strong support or resistance level by the underlying model.
Probability Threshold: This is the minimum probability output from the logistic regression model for a detected pivot to be considered a valid support or resistance level and be plotted on the chart.
2. Style
Show Prediction Labels: Enable or disable labels that display the calculated probability of a newly identified regression S/R level.
Show Retests: Toggle the visibility of "R" labels on the chart, which mark instances where price has retested a support or resistance level.
Show Breaks: Toggle the visibility of "B" labels on the chart, which mark instances where price has broken through a support or resistance level.
Pearson vs Approx. Spearman CorrelationThis indicator displays the rolling Pearson and approximate Spearman correlation between the chart's asset and a second user-defined asset, based on log returns over a customizable window.
Features:
- Pearson correlation of log returns (standard linear dependency measure)
- Approximate Spearman correlation, using percentile ranks to better capture nonlinear and monotonic relationships
/ Horizontal lines showing:
Maximum and minimum correlation values over a statistical window
1st quartile (25%) and 3rd quartile (75%) — helpful for identifying statistically high or low regimes
This script is useful for identifying dynamic co-movements, regime changes, or correlation breakdowns between assets — applicable in risk management, portfolio construction, and pairs trading strategies.
AltcoinEvreni Entry/TP RR ToolMulti-Entry / Take-Profit Risk-Reward Tool
This indicator is designed to help traders visually plan and manage their trade entries, take-profit targets, stop-loss levels, and risk/reward calculations directly on the chart.
Key Features:
--- Up to 3 customizable entry levels with separate position sizing for each.
--- Up to 5 take-profit (TP) levels, each with individual allocation percentages.
--- Automatic calculation of weighted average entry price.
--- Dynamic risk and potential profit calculation based on your inputs.
--- Visual colored zones for entry, stop-loss, and take-profit areas on the chart.
--- Adjustable leverage and margin for position sizing.
--- Informative floating table displaying position type, entries, stop-loss, risk in $, potential
--- profit in $, and overall RR ratio.
--- Fully customizable appearance (colors, box width, table font size, etc.).
How to Use:
1- Set your trade direction (Long or Short).
2- Enter your planned entry prices, allocation percentages, and stop-loss.
3- Configure your take-profit levels and their respective allocation percentages.
4- Adjust margin, leverage, and visual preferences as desired.
5- The tool will display all relevant zones and statistics, helping you make better risk-managed trading decisions.
Notes:
--- All calculations and drawings update dynamically as you change your parameters.
--- Works on any symbol and timeframe.
--- For educational and planning purposes – always use your own judgment and risk management.
Candle/Keltner Channels BUY SELLWhy Use Candlesticks?
They help traders visualize price action
Used in technical analysis and price pattern recognition (e.g., Doji, Engulfing, Hammer)
Assist in determining entry and exit points
Why Traders Use Keltner Channels?
Keltner Channels are widely used by traders for identifying trends, detecting volatility, and spotting trade opportunities.
1. Trend Identification
The middle line (EMA) shows the general trend.
If price consistently stays above the middle line, it indicates a strong uptrend.
If price stays below, it signals a downtrend.
Use: Traders follow the trend direction to enter trades in line with momentum.
2. Volatility Measurement
The width of the channel expands and contracts based on Average True Range (ATR).
Wider channels = high volatility, tighter channels = low volatility.
Use: Helps traders decide when to expect breakouts or calm periods.
3. Breakout Signals
A break above the upper band can signal a bullish breakout.
A break below the lower band can signal a bearish breakout.
Use: Traders use this for momentum trading and breakout entries.
4. Overbought/Oversold Conditions
Price touching or crossing the upper band may suggest it's overbought.
Price touching or crossing the lower band may suggest it's oversold.
Use: Traders combine this with RSI or MACD to confirm reversal setups.
5. Trade Entry and Exit
When price pulls back to the middle EMA during a trend, it may present a buy/sell opportunity.
Exits can also be planned if price returns inside the bands after a breakout.
Use: Helps with precise entry and exit timing.
6. Combines Well With Other Indicators
Commonly used with:
RSI (for confirmation)
MACD (for momentum)
Candlestick patterns (for price action signals)
Combining Candlestick Patterns with Keltner Channels gives traders a powerful method to confirm entries, spot reversals, and improve accuracy. Here’s why this combination works so well:
1. Context for Candlestick Signals
Candlestick patterns (like doji, engulfing, or pin bars) show potential price reversals, but they need context to be reliable. Keltner Channels provide that context:
A bullish candlestick near the lower band suggests a stronger buy signal.
A bearish candlestick near the upper band strengthens a sell signal.
2. Filtering False Signals
Candlestick patterns occur frequently, and not all are meaningful.
The location within the Keltner Channel helps filter out weak or false patterns.
Example: A bullish engulfing candle outside the lower band = high-probability reversal.
3. Improved Entry Timing
Traders wait for a candlestick pattern confirmation when price touches or crosses a Keltner band.
This avoids premature entries and allows tighter stop-losses.
4. Better Risk-Reward Setup
Candlestick entry near channel extremes (upper/lower band) lets traders place stop-losses just beyond recent highs/lows.
The target can be the opposite side of the channel or the middle EMA.
5. Visual Simplicity
Keltner Channels + Candles are visually intuitive.
Even beginner traders can easily recognize:
Overextended candles near channel edges.
Confirmed breakouts or reversals.
This Timeframe 5 min : XAUUSD