Uptrick: Majors Directional BiasOverview
Uptrick: Majors Directional Bias is a trend-following indicator designed for higher timeframe markets, with a particular focus on the daily chart. It keeps a persistent bullish or bearish stance, highlights confirmed trend flips with one-time markers, and plots a slim, adaptive flow trail that often acts as dynamic support in bullish conditions and resistance in bearish conditions. It is purpose-built for BTC, ETH, and SOL, with safeguards to warn users if applied elsewhere.
Introduction
This indicator was created to simplify trend tracking on higher timeframes. Rather than layering multiple moving averages, oscillators, or external signals, it keeps everything on the price chart itself. Candles are colored by the active stance, a single marker shows the bar where a trend flip is confirmed, and the flow trail follows price closely while adjusting to volatility. For traders working with the daily chart, the trail becomes a practical tool: in an uptrend, it often serves as a natural stop placement zone or structural support, while in a downtrend it behaves like dynamic resistance. The combination of persistence, confirmation, and structure gives traders a clean map of market direction without noise or clutter.
Purpose
The tool is designed to help traders follow medium to long-term market trends rather than react to short intraday moves. Its focus is clarity and continuity — it latches onto a stance and only changes when a new confirmed flip occurs. This makes it suitable for swing traders and position traders who want to stay aligned with the prevailing trend on the daily chart.
Practical uses include identifying trend shifts, entering trades in the direction of the new stance, managing positions by trailing stops along the flow trail, and monitoring pullbacks for whether they respect or break the trail. In this way, the indicator supports both entry timing and ongoing trade management on higher timeframe markets.
Originality and uniqueness
The originality of this script lies in its blend of complexity and simplicity. Internally, it uses multiple filters and layered components to reduce market noise, smooth out erratic fluctuations, and avoid false flips that are common on higher timeframes. Externally, the presentation is deliberately simple: candles are colored by trend, a single marker identifies each confirmed flip, and a slim trail with soft fills shows where the trend structure sits. Many tools either overload traders with information or flicker constantly in uncertain conditions. This script strikes a balance — complex logic works in the background, but what the trader sees is minimal and actionable. Its ability to filter out noise, persist with confidence, and present direction in the simplest terms makes it unique among trend-following overlays.
Why these components were merged
Each component has a clear role in supporting higher timeframe trading. Persistent bias coloring ensures the dominant trend is always visible, making it easy to stay aligned with the market. Flip markers give clarity by identifying the exact bar where the stance shifts, allowing traders to backtest or audit trends quickly. The flow trail provides a structural guide that adapts to volatility: in bull phases it runs under price, often acting as support, while in bear phases it runs above price, often behaving as resistance. Together, these features provide three layers of information in one view — direction, confirmation, and structure — giving traders a reliable framework for swing and position trading on the daily chart.
Step-by-Step
The script determines the dominant trend and locks that stance until an opposite confirmation occurs.
On confirmation of a new trend, a single marker prints on the bar of the flip.
A slim, adaptive trail plots under price in bull phases and above price in bear phases, with a soft fill to reinforce the state.
Price candles are colored by the active stance so the overall direction is always clear.
If the indicator is loaded on assets outside BTC, ETH, or SOL, a warning panel appears to set expectations.
Features
Persistent trend stance
Candles are always bull or bear, with no neutral state. This reduces ambiguity and keeps the trend visible at all times.
One-time flip markers
Markers plot once at the confirmed flip bar, preventing repetitive clutter and making historical review straightforward.
Adaptive flow trail with soft fill
The trail tracks price while adjusting to volatility. In bull trends it acts like dynamic support, in bear trends like dynamic resistance. Traders can use it as a practical stop-loss reference, trailing their risk along the line as the trend progresses.
Noise filtering logic
Internally, the indicator applies multiple filters and components to dampen false signals and avoid unnecessary flips. This is particularly important on higher timeframes, where swings are larger and stability is critical.
Asset-aware design
The indicator is tuned for BTC, ETH, and SOL, with an internal mode that adapts its responsiveness to each. A warning panel appears when used outside these majors.
Overlay-only clarity
Everything is drawn directly on the main chart. The trail gaps at regime changes, fills are soft and non-obstructive, and the overall design emphasizes readability on higher timeframe candles.
Conclusion
The MDB is a higher timeframe trend-following overlay built for BTC, ETH, and SOL, with daily charts as its ideal setting. It combines persistent bias coloring, one-time flip markers, and an adaptive flow trail to give traders direction, confirmation, and structure in the simplest possible form. Internally, it uses complex filtering to reduce noise and maintain reliable signals, but externally it stays minimal and clean. For swing and position traders who want to follow the daily trend with clarity and discipline, this indicator provides a focused solution.
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial advice. Trading involves risk, including the risk of loss. Past performance does not guarantee future results. Always conduct your own analysis and use appropriate risk management.
Statistics
Fed Rate Change Impact📊 Fed Rate Change Impact — Macro Event-Driven Indicator
Fed Rate Change Impact is an advanced indicator designed to analyze the impact of Federal Reserve interest rate changes on financial markets. It integrates event-driven logic with dynamic visualization, percentage diagnostics, and multi-asset selection, offering a clear and customizable view of post-event effects.
🔍 Key Features 📅 Preloaded Fed Events : Includes over 30 historical rate cut (↓) and hike (↑) dates from 2008 to 2024.
📈 Post-Event Analysis : Calculates the percentage change of the selected asset 5, 10, and 30 days after each event.
📌 Vertical Chart Lines : Visually highlights each event directly on the chart, with dynamic coloring (red for hikes, green for cuts).
📋 Diagnostic Table : Displays real-time impact for each event, with color-coded values and a compact layout.
🧠 Interactive Filter: Choose to display only hikes, only cuts, or both.
🧭 Flexible Asset Selection : Analyze the current chart asset, pick from a predefined list, or manually input any ticker via input.symbol().
🎯 Contextual Highlighting : The table highlights the analyzed asset if it matches the active chart symbol.
⚙️ Customizable Parameters lookahead5, lookahead10, lookahead30: Define the time horizon for measuring post-event impact.
eventFilter : Choose which type of events to display.
presetAsset / customAsset : Select or input the asset to analyze.
🧪 Recommended Use Cases Macroeconomic analysis on indices, commodities, crypto, and forex
Studying delayed effects of rate changes on sensitive assets
Building event-driven strategies or diagnostic overlays
Visual backtesting and cross-asset comparison
🧠 Technical Notes The indicator is compatible with overlay=true and works best on Daily timeframe.
The table automatically adapts to the number of events and includes visual padding for improved readability.
All calculations are performed in real time and require no external data.
FOMC Policy Events[nakano]### FOMC Policy Events
#### Summary / 概要
This indicator plots the historical policy decisions of the U.S. Federal Open Market Committee (FOMC) directly onto your chart. It is an essential tool for traders and analysts who want to visualize how the market reacts to changes in monetary policy. All historical event data from 2000 onwards is hard-coded into the script for fast and reliable performance.
このインジケーターは、米国連邦公開市場委員会(FOMC)の過去の政策決定をチャート上に直接プロットします。金融政策の変更に対する市場の反応を視覚的に分析したいトレーダーやアナリストにとって不可欠なツールです。2000年以降の全ての過去イベントデータが含まれます。
---
#### Features / 主な機能
* **Comprehensive Historical Data / 包括的な過去データ**
Includes all historical scheduled and emergency FOMC rate decisions from January 2000.
2000年1月以降の、全ての定例および緊急のFOMC金利決定の履歴を含みます。
* **Detailed Event Labels / 詳細なイベントラベル**
Each event is marked with a clear label showing:
各イベントには、以下の情報を示す明確なラベルが表示されます:
* The exact date of the announcement.
発表の正確な日付
* The type of decision (Rate Hike, Rate Cut, Hold, or Emergency Cut).
決定内容(利上げ、利下げ、据え置き、緊急利下げ)
* The resulting Federal Funds Target Rate.
決定後の政策金利(FF金利ターゲット)
* **Fully Customizable Display / 柔軟な表示設定**
From the indicator's settings menu, you can:
インジケーターの設定画面から、以下の操作が可能です:
* Individually toggle the visibility of Rate Hikes, Rate Cuts, and Holds.
「利上げ」「利下げ」「据え置き」の表示・非表示を個別に切り替える
* Choose your preferred language for the labels (English or Japanese).
ラベルの表示言語を「英語」または「日本語」から選択する
* **Clear Visual Cues / 明確なビジュアル**
* **Rate Hikes:** Green labels positioned below the price bars.
**利上げ:** バーの下に緑色のラベル
* **Rate Cuts:** Red labels positioned above the price bars.
**利下げ:** バーの上に赤色のラベル
* **Holds:** Gray labels positioned above the price bars.
**据え置き:** バーの上に灰色のラベル
* **Emergency Events:** Specially highlighted in maroon for easy identification.
**緊急イベント:** 識別しやすいように特別な色(ワインレッド)で強調表示
---
#### How to Use / 使用方法
1. Add the indicator to your chart.
インジケーターをチャートに追加します。
2. Click the **Settings (gear icon)** next to the indicator name on your chart.
チャート上のインジケーター名の横にある**設定(歯車アイコン)**をクリックします。
3. In the "Display Settings" section, check or uncheck the boxes to show or hide different event types.
「Display Settings」セクションで、各イベントタイプの表示・非表示をチェックボックスで切り替えます。
4. In the "Language Settings" section, select your preferred language from the dropdown menu.
「Language Settings」セクションで、ドロップダウンメニューからお好みの言語を選択します。
---
#### A Note on Data / データについて
The event data included in this script is static and contains historical decisions up to September 2025. The script does not plot future scheduled meetings and will need to be manually updated as new policy decisions are made.
このスクリプトに含まれるイベントデータは静的なものであり、2025年9月までの過去の決定を含んでいます。未来のスケジュールをプロットする機能はなく、新しい金融政策が決定された場合は、スクリプトの手動更新が必要です。
Aggregated OI by MalexThis indicator aggregates Open Interest data from multiple major exchanges (Binance, Bybit, OKX) to provide a comprehensive view of market positioning across platforms.
Original idea by Alex Nikulin.
FEATURES:
Multi-exchange OI aggregation with customizable exchange selection
Choose between Sum or Average aggregation methods
Individual exchange OI display (optional)
Clean mode - show only aggregated data
Real-time status monitoring for each exchange
Candlestick visualization matching standard OI indicators
Information panel showing current values and active exchanges
USAGE:
Enable/disable specific exchanges in settings
Choose aggregation method (Average recommended for balanced view)
Toggle individual exchange display or use clean mode
Monitor the info panel for data availability status
COMPATIBILITY:
Works with any symbol that has Open Interest data available on the selected exchanges.
Best used on perpetual futures contracts (e.g., BTCUSDT, ETHUSDT, etc.)
Smarter Money Concepts Dashboard [PhenLabs]📊Smarter Money Concepts Dashboard
Version: PineScript™v6
📌Description
The Smarter Money Concepts Dashboard is a comprehensive institutional trading analysis tool that combines six of our most powerful smarter money concepts indicators into one unified suite. This advanced system automatically detects and visualizes Fair Value Gaps, Inverted FVGs, Order Blocks, Wyckoff Springs/Upthrusts, Wick Rejection patterns, and ICT Market Structure analysis.
Built for serious traders who need institutional-grade market analysis, this dashboard eliminates subjective interpretation by automatically identifying where smart money is likely positioned. The integrated real-time dashboard provides instant status updates on all active patterns, making it easy to monitor market conditions at a glance.
🚀Points of Innovation
● Multi-Module Integration: Six different SMC concepts unified in one comprehensive system
● Real-Time Dashboard Display: Live tracking of all active patterns with customizable positioning
● Advanced Volume Filtering: Institutional volume confirmation across all pattern types
● Automated Pattern Management: Smart memory system prevents chart clutter while maintaining relevant zones
● Probability-Based Wyckoff Detection: Mathematical probability calculations for spring/upthrust patterns
● Dual FVG System: Both standard and inverted Fair Value Gap detection with equilibrium analysis
🔧Core Components
● Fair Value Gap Engine: Detects standard FVGs with volume confirmation and equilibrium line analysis
● Inverted FVG Module: Advanced IFVG detection using RVI momentum filtering for inversion confirmation
● Order Block System: Institutional order block identification with customizable mitigation methods
● Wyckoff Pattern Recognition: Automated spring and upthrust detection with probability scoring
● Wick Rejection Analysis: High-probability reversal patterns based on wick-to-body ratios
● ICT Market Structure: Simplified institutional concepts with commitment tracking
🔥Key Features
● Comprehensive Pattern Detection: All major SMC concepts in one indicator with automatic identification
● Volume-Confirmed Signals: Multiple volume filters ensure only institutional-grade patterns are highlighted
● Interactive Dashboard: Real-time status display with active pattern counts and module status
● Smart Memory Management: Automatic cleanup of old patterns while preserving relevant market zones
● Full Alert System: Complete notification coverage for all pattern types and signal generations
● Customizable Display Options: Adjustable colors, transparency, and positioning for all visual elements
🎨Visualization
● Color-Coded Zones: Distinct color schemes for bullish/bearish patterns across all modules
● Dynamic Box Extensions: Automatically extending zones until mitigation or invalidation
● Equilibrium Lines: Fair Value Gap midpoint analysis with dotted line visualization
● Signal Markers: Clear spring/upthrust signals with directional arrows and probability indicators
● Dashboard Table: Professional-grade status panel with module activation and pattern counts
● Candle Coloring: Wick rejection highlighting with transparency-based visual emphasis
📖Usage Guidelines
Fair Value Gap Settings
● Days to Analyze: Default 15, Range 1-100 - Controls historical FVG detection period
● Volume Filter: Enables institutional volume confirmation for gap validity
● Min Volume Ratio: Default 1.5 - Minimum volume spike required for gap recognition
● Show Equilibrium Lines: Displays FVG midpoint analysis for precise entry targeting
Order Block Configuration
● Scan Range: Default 25 bars - Lookback period for structure break identification
● Volume Filter: Institutional volume confirmation for order block validation
● Mitigation Method: Wick or Close-based invalidation for different trading styles
● Min Volume Ratio: Default 1.5 - Volume threshold for significant order block formation
Wyckoff Analysis Parameters
● S/R Lookback: Default 20 - Support/resistance calculation period for spring/upthrust detection
● Volume Spike Multiplier: Default 1.5 - Required volume increase for pattern confirmation
● Probability Threshold: Default 0.7 - Minimum probability score for signal generation
● ATR Recovery Period: Default 5 - Price recovery calculation for pattern strength assessment
Market Structure Settings
● Auto-Detect Zones: Automatic identification of high-volume thin zones
● Proximity Threshold: Default 0.20% - Price proximity requirements for zone interaction
● Test Window: Default 20 bars - Time period for zone commitment calculation
Display Customization
● Dashboard Position: Four corner options for optimal chart layout
● Text Size: Scalable from Tiny to Large for different screen configurations
● Pattern Colors: Full customization of all bullish and bearish zone colors
✅Best Use Cases
● Swing Trading: Identify major institutional zones for multi-day position entries
● Day Trading: Precise intraday entries at Fair Value Gaps and Order Block boundaries
● Trend Analysis: Market structure confirmation for directional bias establishment
● Risk Management: Clear invalidation levels provided by all pattern boundaries
● Multi-Timeframe Analysis: Works across all timeframes from 1-minute to monthly charts
⚠️Limitations
● Market Condition Dependency: Performance varies between trending and ranging market environments
● Volume Data Requirements: Requires accurate volume data for optimal pattern confirmation
● Lagging Nature: Some patterns confirmed after initial price movement has begun
● Pattern Density: High-volatility markets may generate excessive pattern signals
● Educational Tool: Requires understanding of smart money concepts for effective application
💡What Makes This Unique
● Complete SMC Integration: First indicator to combine all major smart money concepts comprehensively
● Real-Time Dashboard: Instant visual feedback on all active institutional patterns
● Advanced Volume Analysis: Multi-layered volume confirmation across all detection modules
● Probability-Based Signals: Mathematical approach to Wyckoff pattern recognition accuracy
● Professional Memory Management: Sophisticated pattern cleanup without losing market relevance
🔬How It Works
1. Pattern Detection Phase:
● Multi-timeframe scanning for institutional footprints across all enabled modules
● Volume analysis integration confirms patterns meet institutional trading criteria
● Real-time pattern validation ensures only high-probability setups are displayed
2. Signal Generation Process:
● Automated zone creation with precise boundary definitions for each pattern type
● Dynamic extension system maintains relevance until mitigation or invalidation occurs
● Alert system activation provides immediate notification of new pattern formations
3. Dashboard Update Cycle:
● Live status monitoring tracks all active patterns and module states continuously
● Pattern count updates provide instant feedback on current market condition density
● Commitment tracking for market structure analysis shows institutional engagement levels
💡Note:
This indicator represents institutional trading concepts and should be used as part of a comprehensive trading strategy. Pattern recognition accuracy improves with understanding of smart money principles. Combine with proper risk management and multiple confirmation methods for optimal results.
PolyFilter [BackQuant]PolyFilter
A flexible, low-lag trend filter with three smoothing engines—optimized for clean bias, fewer whipsaws, and clear alerting.
What it does
PolyFilter draws a single “intelligent” baseline that adapts to price while suppressing noise. You choose the engine— Fractional MA , Ehlers 2-Pole Super Smoother , or a Multi-Kernel blend . The line can color itself by slope (trend) or by position vs price (above/below), and you get four ready-made alerts for flips and crosses.
What it plots
PolyFilter line — your smoothed trend baseline (width set by “Line Width”).
Optional candle & background coloring — choose: color by trend slope or by whether price is above/below the filter.
Signal markers — Arrows with L/S when the slope flips or when price crosses the line (if you enable shapes/alerts).
How the three engines differ
Fractional MA (experimental) — A power-law weighting of past bars (heavier focus on the most recent samples without throwing away history). The Adaptation Speed acts like the “fraction” exponent (default 0.618). Lower values lean more on recent bars; higher values spread weight further back.
Ehlers 2-Pole Super Smoother — Classic low-lag IIR smoother that aggressively reduces high-frequency noise while preserving turns. Great default when you want a steady, responsive baseline with minimal parameter fuss.
Multi-Kernel — A 70/30 blend of a Gaussian window and an exponential kernel. The Gaussian contributes smooth structure; the exponential adds a hint of responsiveness. Useful for assets that oscillate but still trend.
Reading the colors
Trend mode (default) — Line & candles turn green while the filter is rising (signal > signal ) and red while it’s falling.
Above/Below mode — Line & candles reflect price’s position relative to the filter: green when price > filter, red when price < filter. This is handy if you treat the filter like a dynamic “fair value” or bias line.
Inputs you’ll actually use
Calculation Settings
Price Source — Default HLC/3. Switch to Close for stricter trend, or HLC3/HL2 to soften single-print spikes.
Filter Length — Window/period for all engines. Shorter = snappier turns; longer = smoother line.
Adaptation Speed — Only affects Fractional MA . Lower it for faster, more local weighting; raise it for smoother, more global weighting.
Filter Type — Pick one of: Fractional MA, Ehlers 2-Pole, Multi-Kernel.
UI & Plotting
Color based off… — Choose Trend (slope) or > or < Close (position vs price).
Long/Short Colors — Customize bull/bear hues to your theme.
Show Filter Line / Paint candles / Color background — Visual toggles for the line, bars, and backdrop.
Line Width — Make the filter stand out (2–3 works well on most charts).
Signals & Alerts
PolyFilter Trend Up — Slope flips upward (the filter crosses above its prior value). Good for early continuation entries or stop-tightening on shorts.
PolyFilter Trend Down — Slope flips downward. Often used to scale out longs or rotate bias.
PolyFilter Above Price — The filter line crosses up through price (filter > price). This can confirm that mean has “caught up” after a pullback.
PolyFilter Below Price — The filter line crosses down through price (filter < price). Useful to confirm momentum loss on bounces.
Quick starts (suggested presets)
Intraday (5–15m, crypto or indices) — Ehlers 2-Pole, Length 55–80. Trend coloring ON, candle paint ON. Look for pullbacks to a rising filter; avoid fading a falling one.
Swing (1H–4H) — Multi-Kernel, Length 80–120. Background color OFF (cleaner), candle paint ON. Add a higher-TF confirmation (e.g., 4H filter rising when you trade 1H).
Range-prone FX — Fractional MA, Length 70–100, Adaptation ~0.55–0.70. Consider Above/Below mode to trade mean reversion to the line with a strict risk cap.
How to use it in practice
Bias line — Trade in the direction of the filter slope; stand aside when it flattens and color chops back and forth.
Dynamic support/resistance — Treat the line as a moving value area. In trends, entries often appear on shallow tags of the line with structure confluence.
Regime switch — When the filter flips and holds color for several bars, tighten stops on the opposing side and look for first pullback in the new color.
Stacking filters — Many users run PolyFilter on the active chart and a slower instance (longer length) on a higher timeframe as a “macro bias” guardrail.
Tuning tips
If you see too many flips, lengthen the filter or switch to Multi-Kernel.
If turns feel late, shorten the filter or try Ehlers 2-Pole for lower lag.
On thin or very noisy symbols, prefer HLC3 as the source and longer lengths.
Performance note: very large lengths increase computation time for the Multi-Kernel and Fractional engines. Start moderate and scale up only if needed.
Summary
PolyFilter gives you a single, trustworthy baseline that you can read at a glance—either as a pure trend line (slope coloring) or as a dynamic “above/below fair value” reference. Pick the engine that matches your market’s personality, set a sensible length, and let the color and alerts guide bias, entries on pullbacks, and risk on reversals.
Expected Value Monte CarloI created this indicator after noticing that there was no Expected Value indicator here on TradingView.
The EVMC provides statistical Expected Value to what might happen in the future regarding the asset you are analyzing.
It uses 2 quantitative methods:
Historical Backtest to ground your analysis in long-term, factual data.
Monte Carlo Simulation to project a cone of probable future outcomes based on recent market behavior.
This gives you a data-driven edge to quantify risk, and make more informed trading decisions.
The indicator includes:
Dual analysis: Combines historical probability with forward-looking simulation.
Quantified projections: Provides the Expected Value ($ and %), Win Rate, and Sharpe Ratio for both methods.
Asset-aware: Automatically adjusts its calculations for Stocks (252 trading days) and Crypto (365 days) for mathematical accuracy.
The projection cone shows the mean expected path and the +/- 1 standard deviation range of outcomes.
No repainting
Calculation:
1. Historical Expected Value:
This is a systematic backtest over thousands of bars. It calculates the return Rᵢ for N past trades (buy-and-hold). The Historical EV is the simple average of these returns, giving a baseline performance measure.
Historical EV % = (Σ Rᵢ) / N
2. Monte Carlo Projection:
This projection uses the Geometric Brownian Motion (GBM) model to simulate thousands of future price paths based on the market's recent behavior.
It first measures the drift (μ), or recent trend, and volatility (σ), or recent risk, from the Projection Lookback period. It then projects a final return for each simulation using the core GBM formula:
Projected Return = exp( (μ - σ²/2)T + σ√T * Z ) - 1
(Where T is the time horizon and Z is a random variable for the simulation.)
The purple line on the chart is the average of all simulated outcomes (the Monte Carlo EV). The cone represents one standard deviation of those outcomes.
The dashed lines represent one standard deviation (+/- 1σ) from the average, forming a cone of probable outcomes. Roughly 68% of the simulated paths ended within this cone.
This projection answers the question: "If the recent trend and volatility continue, where is the price most likely to go?"
Here's how to read the indicator
Expected Value ($/%): Is my average trade profitable?
Win Rate: How often can I expect to be right?
Sharpe Ratio: Am I being adequately compensated for the risk I'm taking?
User Guide
Max trade duration (bars): This is your analysis timeframe. Are you interested in the probable outcome over the next month (21 bars), quarter (63 bars), or year (252 bars)?
Position size ($): Set this to your typical trade size to see the Expected Value in real dollar terms.
Projection lookback (bars): This is the most important input for the Monte Carlo model. A short lookback (e.g., 50) makes the projection highly sensitive to recent momentum. Use this to identify potential recency bias. A long lookback (e.g., 252) provides a more stable, long-term projection of trend and volatility.
Historical Lookback (bars): For the historical backtest, more data is always better. Use the maximum that your TradingView plan allows for the most statistically significant results.
Use TP/SL for Historical EV: Check this box to see how the historical performance would have changed if you had used a simple Take Profit and Stop Loss, rather than just holding for the full duration.
I hope you find this indicator useful and please let me know if you have any suggestions. 😊
VIX Price BoxVIX Price Box (Customizable Colors)
This indicator displays the current VIX (CBOE Volatility Index) value in a fixed box on the top-right corner of the chart. It’s designed to give traders a quick, at-a-glance view of market volatility without needing to switch tickers.
Features
Pulls the live VIX price and updates automatically on every bar.
Displays the value inside a table box that stays fixed in the top-right corner.
Threshold-based coloring: the text color changes depending on whether the VIX is below, between, or above your chosen threshold levels.
5 built-in color modes:
Custom mode – choose your own colors for low, medium, and high volatility zones.
Adjustable threshold levels, background color, and frame color.
Use Cases
Monitor overall market risk sentiment while trading other instruments.
Identify periods of low vs. high volatility at a glance.
Pair with strategies that rely on volatility (options trading, hedging, breakout setups, etc.).
Cointegration IndicationThis indicator is inspired by Nobel Prize–winning research (Engle & Granger, 1987). The core idea is simple but powerful: even if two markets look noisy on their own, their relationship can be surprisingly stable over the long run. When they drift apart, history suggests they often snap back together and that’s exactly where opportunities arise.
What this tool does is bring that theory into practice. It estimates a long-run equilibrium between two assets (Y ~ α + βX), calculates the residual spread (ε), and then evaluates whether that spread behaves in a mean-reverting way. The Z-Score tells you when the spread has moved far from its historical mean. The Error Correction Model (ECM) adds a second layer: it checks whether the spread tends to close again, and how strong that adjustment pressure is. If λ is negative and stable, the relationship is cointegrated and mean-reverting. If not, the pair is unstable — even if the Z-Score looks attractive.
Signals are summarized clearly:
– Strong Setup appears when we see both extreme divergence and a stable, negative λ.
– Weak Setup means only partial confirmation.
– Invalid means the relationship is breaking down.
Why this matters
Cointegration analysis is widely used by institutional desks, especially in pairs trading, statistical arbitrage, and risk management. Classic cases include equity index futures vs ETFs (Alexander, 2001), oil vs energy stocks (Chen & Huang, 2010), or swap spreads in fixed income (Tsay, 2010). In crypto, temporary cointegration has been observed between BTC and ETH in periods of high liquidity (Corbet et al., 2018). With this indicator, you can explore these relationships directly on TradingView, test asset pairs, and see when divergences become statistically significant.
Limitations to keep in mind
– Timeframe choice matters: Daily calculations are usually more stable; weekly or intraday often show unstable signals. To avoid confusion, you can fix the calculation timeframe in the settings.
– Cointegration is not permanent. Structural breaks (earnings, regulation, macro shifts) can destroy old relationships.
– Results are approximate. Rolling regressions, Z-Scores, and ECM estimates are sensitive to the length of the chosen windows.
– This is a research tool — not a ready-made trading system. It should be used as one piece in a broader framework.
References
Alexander, C. (2001). Market models: A guide to financial data analysis. Wiley.
Chen, S. S., & Huang, C. W. (2010). Long-run equilibrium and short-run dynamics in energy stock prices and oil prices. Energy Economics, 32(1), 19–26.
Corbet, S., Meegan, A., Larkin, C., Lucey, B., & Yarovaya, L. (2018). Exploring the dynamic relationships between cryptocurrencies and other financial assets. Economics Letters, 165, 28–34.
Engle, R. F., & Granger, C. W. J. (1987). Co-integration and error correction: Representation, estimation, and testing. Econometrica, 55(2), 251–276.
Tsay, R. S. (2010). Analysis of financial time series (3rd ed.). Wiley.
DCA Cost Basis (with Lump Sum)DCA Cost Basis (with Lump Sum) — Pine Script v6
This indicator simulates a Dollar Cost Averaging (DCA) plan directly on your chart. Pick a start date, choose how often to buy (daily/weekly/monthly), set the per-buy amount, optionally add a one-time lump sum on the first date, and visualize your evolving average cost as a VWAP-style line.
Features
Customizable DCA Plan — Set Start Date , buy Frequency (Daily / Weekly / Monthly), and Recurring Amount (in quote currency, e.g., USD).
Lump Sum Option — Add a one-time lump sum on the very first eligible date; recurring DCA continues automatically after that.
Cost Basis Line — Plots the live average price (Total Cost / Total Units) as a smooth, VWAP-style line for instant breakeven awareness.
Buy Markers — Optional triangles below bars to show when simulated buys occur.
Performance Metrics — Tracks:
Total Invested (quote)
Total Units (base)
Cost Basis (avg entry)
Current Value (mark-to-market)
CAGR (Annualized) from first buy to current bar
On-Chart Summary Table — Displays Start Date, Plan Type (Lump + DCA or DCA only), Total Invested, and CAGR (Annualized).
Data Window Integration — All key values also appear in the Data Window for deeper inspection.
Why use it?
Visualize long-term strategies for Bitcoin, crypto, or stocks.
See how a lump sum affects your average entry over time.
Gauge breakeven at a glance and evaluate historical performance.
Note: This tool is for educational/simulation purposes. Results are based on bar closes and do not represent live orders or fees.
Smart Index Levels — GSK-VIZAG-AP-INDIA📌 Smart Index Levels — GSK-VIZAG-AP-INDIA
Smart Index Levels is a versatile support and resistance plotting tool designed for intraday, weekly, and monthly analysis.
It automatically generates key price zones based on user-defined step sizes, helping traders visualize important market levels more clearly.
🔹 Features
Daily / Weekly / Monthly Modes
Switch easily between daily, weekly, or monthly reference levels.
Customizable Level Steps
Choose step intervals of 50 or 100 points for cleaner index-based zones.
Support & Resistance Zones
Auto-draws multiple support and resistance levels around the opening base price.
Mid-Level Marking
Highlights the nearest “mid” price level for balance reference.
Weekly High/Low Tracking (Optional)
Plots dynamic weekly high & low levels with dotted lines.
Monthly High/Low Tracking (Optional)
Displays monthly high & low levels for broader market context.
Custom Market Session Timing
Define your own market open and close times.
Line Style & Colors
Fully customizable line styles (solid, dashed, dotted) and colors.
⚙️ How It Works
At the start of the selected session (daily, weekly, or monthly), the script identifies the opening reference price.
From this base, it calculates and draws support and resistance levels at fixed step intervals.
Optionally, it overlays weekly and monthly high/low levels for additional perspective.
This provides a structured price map that helps you quickly spot potential reaction zones, without cluttering the chart.
🖥️ Best Use Cases
Intraday index traders who want quick reference levels (Nifty, BankNifty, etc.)
Swing traders who prefer weekly and monthly zones for context.
Anyone looking for clean, rule-based support/resistance plotting.
⚠️ Disclaimer
This indicator is for educational and informational purposes only.
It does not provide financial advice or trading signals. Always use in combination with your own analysis and risk management.
AWSA "Level Indicator with ATR" isn't a single, defined indicator but typically refers to a trading strategy or indicator that uses the Average True Range (ATR) to create dynamic levels on a price chart, such as support, resistance, or stop-loss levels. The ATR is a volatility indicator that measures market volatility; when high, it suggests the market has large price swings, and when low, small price swings. By using the ATR value with a multiplier, traders can set price levels that adapt to changing market volatility, providing more objective and dynamic trading signals than fixed-price levels.
Aggregated OI (Binance + Bybit + OKX)RU
Агрегатор Open Interest для крипты по трём биржам: Binance, Bybit, OKX/OKEX.
Показывает OI-свечи или дельту OI, есть мини-легенда (Open Interest, Rekt Longs/Shorts, Aggressive Longs/Shorts). Можно переключать биржи и единицы отображения (USD / COIN).
Данные зависят от доступности OI-тикеров в TradingView (…USDT.P_OI). Если по паре нет фида на бирже — она игнорируется. Основано на скрипте LeviathanCapital (MPL-2.0), модификация — SaneQ. Не является финсоветом.
EN
Aggregated Open Interest for crypto across Binance, Bybit, OKX/OKEX.
Plots OI candles or OI delta, plus a compact legend (Open Interest, Rekt Longs/Shorts, Aggressive Longs/Shorts). You can toggle exchanges and display units (USD / COIN).
Data depends on TV OI feeds (…USDT.P_OI). If a pair lacks a feed on an exchange, that source is skipped. Based on LeviathanCapital’s script (MPL-2.0), modified by SaneQ. Not financial advice.
OG OHLC MarkerDraws, OHLC for Previous day and Today with options to add alerts when any PD Array is swept
Volatility Momentum Score | Lyro RSVolatility Momentum Score | Lyro RS
Overview
The Volatility Momentum Score (VMS) combines price movement and volatility into a single, easy-to-read signal. Using z-scores, standard deviation bands, and flexible display modes, it helps traders identify trends, overbought/oversold conditions, and potential reversals quickly and effectively.
Key Features
Price + Volatility Blend
Tracks price action and volatility with separate z-scores and merges them into a unified momentum score.
Standard Deviation Bands
Upper and lower bands highlight extreme readings.
Adjustable multipliers allow for fine-tuning sensitivity.
Two Signal Modes
Trend Mode: Plots “Long” and “Short” signals when momentum crosses bands.
Reversion Mode: Colors the chart background when the score indicates stretched conditions.
Overbought & Oversold Alerts
▲ markers indicate oversold conditions.
▼ markers indicate overbought conditions.
Custom Colors
Four preset color themes or fully customizable bullish/bearish colors.
Clear Visuals
Dynamic line coloring based on momentum.
Candles recolored at signal points.
Background shading for quick visual assessment.
How It Works
Calculates z-scores for both price and volatility.
Blends the z-scores into a single average score.
Compares the score against dynamic upper and lower bands.
Triggers signals, markers, or background shading depending on the chosen display mode.
Practical Use
Ride trends: Follow Trend Mode signals to align with momentum.
Spot reversals: Watch ▲ and ▼ markers when markets are overextended.
Stay aware: Background shading highlights potentially overheated conditions.
Customization
Set lookback lengths for price, volatility, and bands.
Adjust band multipliers for more or less sensitive signals.
Choose between Trend or Reversion mode based on trading style.
Select color themes or create custom palettes.
⚠️ Disclaimer
This indicator is a technical analysis tool and does not guarantee results. It should be used alongside other methods and proper risk management. The creators are not responsible for any financial decisions based on its signals.
Pivot + Mean Reversion + RSI (Signals Only) by Shashwat KhuranaShow BUY labels below bars when a bullish reversal is detected.
Show SELL labels above bars when a bearish reversal is detected.
Uses pivot levels, mean reversion, big candle, RSI, and volume filters.
Moon Phase & Celestial Events TrackerMoon Phase & Celestial Events Tracker
Overview
A comprehensive astronomical and celestial event indicator that tracks and projects major cosmic events from 2011 to 2040. This indicator overlays important astronomical phenomena directly on your charts, allowing traders and researchers to analyze potential correlations between celestial events and market movements.
Key Features
Eclipse Tracking 🌑
Blood Moons (Total Lunar Eclipses) including 2014-2015 tetrad
Partial Lunar Eclipses with distinctive yellow markers
Solar Eclipses: Total, Annular, Partial, and Hybrid types with unique symbols
Optional eclipse season background highlighting
Moon Cycles 🌕
Supermoons at perigee (closest Earth approach)
Regular moon phases: New, First Quarter, Full, Last Quarter
Adjustable phase marking with day-offset capability
Mercury Retrograde ☿
Start and end dates clearly marked
Optional period highlighting for entire retrograde duration
Complete cycle tracking through 2040
Seasonal Transitions ✨
Spring Equinox, Summer Solstice, Autumn Equinox, Winter Solstice
Precise astronomical season changes
Future Projections 📊
Event forecasting up to 5 years ahead
Customizable projection range (30-1825 days)
Selective projection by event type
Adjustable visual styles and transparency
Interpretation Guide
Blood Moons
Total lunar eclipses where Earth's atmosphere creates the red appearance. In financial astrology, these are often watched as potential reversal or volatility periods, though correlations vary significantly.
Eclipse Seasons
Twice-yearly windows when Sun-Earth-Moon alignment allows eclipses. Some market practitioners note increased volatility during these periods, though empirical evidence remains debated.
Mercury Retrograde
The apparent backward motion of Mercury occurs 3-4 times yearly. In trading folklore, it's associated with communication issues, technical problems, and false signals. Many practitioners suggest extra caution with new positions during these periods.
Supermoons
Full or new moons at closest Earth approach. Some traders track these for potential short-term highs/lows, particularly in commodities and currencies, though effects are subtle if present.
Seasonal Markers
Astronomical season changes have been incorporated into various market timing systems, with some analysts noting clustering of trend changes around these dates.
Use Cases
Historical pattern analysis
Event-based research
Educational astronomy tracking
Market cycle studies
Long-term planning and observation
Technical Details ⚙️
Data Coverage: 2011-2040 (30 years of precise astronomical events)
Compatibility: All timeframes with smart filtering (Weekly/Monthly show only major events)
Performance: Lightweight with efficient calculations and minimal chart impact
Data Source: Based on NASA ephemeris data for precise event timing
Customization Options 🎨
Individual colors for each event type
Transparency controls for projections
Event visibility toggles
Optional date labels on events
Alert Options 🔔
Set custom alerts for any tracked event including all eclipse types, moon phases, Mercury retrograde start/end, and seasonal transitions.
⚠️ Important Note
This indicator displays astronomical events for research and educational purposes. Any perceived correlations with market movements should be thoroughly backtested. Financial astrology interpretations are included for historical context only and should not be considered trading advice. Always use proper risk management and multiple forms of analysis in trading decisions.
Best Suited For
Market researchers and analysts
Students of market cycles
Those interested in astronomical timing
Educational and observational purposes
Long-term pattern analysis
Position Sizing Calculator with ADR%, Account %, and RSILET ME KNOW IN COMMENTS IF YOU HAVE ANY ISSUES!
Overview
The Position Sizing Calculator with ADR% + RSI is a indicator that helps traders calculate position sizes based on risk management parameters (stop loss at low of day). It uses a fixed percentage of the account size, risk per trade, and stop loss distance (current price minus daily low) to determine the number of shares or contracts to trade. Additionally, it displays the Average Daily Range (ADR) as a percentage, the Relative Strength Index (RSI), and the price’s percentage distance from the daily low in a real-time table.
Features
Position Sizing: Calculates position size based on a fixed account percentage, risk per trade, and stop loss distance, ensuring the position value stays within the allocated capital.
ADR% Display: Shows the ADR as a percentage of the daily low, colored green if >5% or red if ≤5%.
RSI Display: Shows the RSI, colored green if oversold (<30), red if overbought (>70), or gray otherwise.
Distance from Low: Displays the current price’s percentage distance from the daily low for context.
Real-Time Table: Presents all metrics in a top-right table, updating in real-time.
Position Value Cap: Ensures the position value doesn’t exceed the allocated capital.
Minimum Stop Loss: Prevents oversized positions due to very small stop loss distances.
Customizable Parameters
Account Size ($): Set the total account balance (default: $1,000, min: $100, step: $100).
Risk Per Trade (%): The percentage of allocated capital to risk per trade (default: 1%, range: 0.1% to 10%, step: 0.1%).
Max % of Account: The fixed percentage of the account to allocate for the trade (default: 50%, range: 10% to 100%, step: 1%).
ADR Period: The number of days to calculate the ADR (default: 14, min: 1, step: 1).
RSI Length: The period for RSI calculation (default: 14, min: 1, step: 1).
Min Stop Loss Distance ($): The minimum stop loss distance to prevent oversized positions (default: $0.01, min: $0.001, step: $0.001).
Calculations
Stop Loss Distance: Current price minus daily low, with a minimum value set by the user.
Position Size: (Account Size * Max % of Account * Risk Per Trade %) / Stop Loss Distance, capped so the position value doesn’t exceed the allocated capital.
ADR%: 100 * (SMA(daily high / daily low, ADR Period) - 1), reflecting the average daily range relative to the low.
RSI: Calculated using the smoothed average of gains and losses over the RSI period, with special handling for zero gains or losses.
Distance from Low: (Current Price - Daily Low) / Daily Low * 100.
Table Display
Account Size: The input account balance.
Risk Per Trade: The risk percentage.
Stop Loss Distance: The price difference between the current price and daily low.
Distance from Low: The percentage distance from the daily low.
Account % Used: The fixed percentage of the account allocated.
Position Size: The calculated number of shares or contracts.
Position Value: The position size multiplied by the current price.
ADR %: The ADR percentage, colored green (>5%) or red (≤5%).
RSI: The RSI value, colored green (<30), red (>70), or gray (30–70).
Usage
Ideal for traders managing risk by allocating a fixed portion of their account and sizing positions based on stop loss distance.
The ADR% and RSI provide market context, with color coding to highlight high volatility or overbought/oversold conditions.
Adjust the customizable parameters to fit your trading style, such as increasing the risk percentage for aggressive trades or adjusting the ADR/RSI periods for different time horizons.
Earnings line & P/E Tracker# Earnings line & P/E Tracker
**A comprehensive fundamental analysis indicator that overlays earnings data and P/E ratios directly on your price charts.**
## 📊 Key Features
### Automatic Data Retrieval
- **Real-time financial data** pulled directly from TradingView's financial database
- **Multiple data sources**: Earnings Per Share (Basic/Diluted), Total Revenue, Net Income
- **Flexible periods**: TTM (Trailing Twelve Months), FQ (Quarterly), FY (Annual)
- **Live P/E ratio calculation** based on current price and TTM earnings
### Visual Display Options
- **Earnings progression line** overlaid on price chart for easy comparison
- **P/E ratio plot** with distinctive circle markers
- **Comprehensive data table** showing all key metrics in real-time
- **Dark mode optimized** with high-contrast colors for excellent readability
### Optional Event Tracking
- **Custom earnings dates** input for upcoming releases
- **Visual markers** on earnings announcement dates
- **Background highlighting** during earnings weeks
- **Smart alerts** for significant P/E changes and data updates
## 🎯 Perfect For
- **Fundamental analysts** comparing earnings growth vs stock price movement
- **Value investors** tracking P/E ratios and earnings trends
- **Earnings season trading** with visual release date markers
- **Long-term investors** monitoring fundamental health alongside technical analysis
## ⚙️ Customization Options
### Data Selection
- Choose between EPS Basic, EPS Diluted, Total Revenue, or Net Income
- Select TTM, quarterly, or annual reporting periods
- Toggle individual display elements on/off
### Visual Styling
- Customizable colors for earnings line, P/E ratio, and event markers
- Adjustable line width and styling options
- Moveable data table with size and position controls
### Event Management
- Input custom earnings release dates
- Enable/disable earnings event markers
- Background highlighting for earnings periods
- Configurable alert thresholds
## 📈 How It Works
1. **Automatic Detection**: The indicator automatically detects available fundamental data for your selected symbol
2. **Real-time Updates**: Financial metrics update as new data becomes available
3. **Visual Integration**: Earnings data is scaled and overlaid directly on your price chart
4. **Status Monitoring**: Clear indicators show data availability and freshness
## 🔧 Setup Instructions
1. Add the indicator to your chart
2. Select your preferred data source (EPS recommended for P/E tracking)
3. Choose time period (TTM recommended for most analyses)
4. Customize colors and display options to your preference
5. Optionally add upcoming earnings dates for event tracking
## 💡 Pro Tips
- **Use TTM EPS** for the most accurate P/E ratio calculations
- **Compare earnings line slope** with price movement to spot divergences
- **Enable earnings events** to prepare for volatility around announcements
- **Works best on daily/weekly timeframes** for fundamental analysis
## ⚠️ Data Availability
- Requires stocks with available fundamental data in TradingView's database
- Most major US stocks, ETFs, and international equities supported
- Limited data may be available for small-cap or recently listed companies
- Clear "No Data" indicator when fundamental data is unavailable
## 🎨 Display Features
- **High contrast colors** optimized for both light and dark chart themes
- **Clean, professional table** displaying all key metrics
- **Intuitive visual markers** for earnings events and data points
- **Responsive design** that adapts to different chart sizes
---
**Perfect for traders and investors who want to combine fundamental analysis with technical charting in a single, comprehensive view.**
## ⚠️ Important Disclaimer
**This indicator is provided for educational and informational purposes only. The author (raptor2030) is not responsible for:**
- **Data accuracy or completeness** - Financial data is sourced from TradingView's database and may contain errors, delays, or omissions
- **Trading decisions** - This tool should not be used as the sole basis for investment decisions
- **Financial losses** - Past performance does not guarantee future results
- **Data reliability** - Third-party data sources may experience outages or provide incorrect information
- **Market timing** - Earnings dates and projections may be inaccurate or outdated
**Always verify critical information from official company sources and consult with qualified financial professionals before making investment decisions.**
**Use this indicator at your own risk. The author disclaims all liability for any direct, indirect, or consequential damages arising from the use of this script.**
tanishqfvgThis indicator is designed for swing traders who want to combine market structure, Optimal Trade Entry (OTE), and Fibonacci levels into one simple tool.
🔹 Swing Detection – Automatically identifies swing highs and lows to highlight key turning points.
🔹 OTE Zone – Marks the optimal trade entry zone between 62%–79% retracement for high-probability setups.
🔹 Fibonacci Levels – Dynamic Fibonacci retracements are plotted to show confluence with swing structure.
🔹 Smart Visualization – Clear zones and levels that help traders quickly spot potential entries and targets.
✅ Works on any timeframe and market (forex, indices, crypto, stocks).
✅ Ideal for structure-based traders who rely on precision entries and confluence setups.
Extended Majors Rotation System | AlphaNattExtended Majors Rotation System | AlphaNatt
A sophisticated cryptocurrency rotation system that dynamically allocates capital to the strongest trending major cryptocurrencies using multi-layered relative strength analysis and adaptive filtering techniques.
"In crypto markets, the strongest get stronger. This system identifies and rides the leaders while avoiding the laggards through mathematical precision."
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 SYSTEM OVERVIEW
The Extended Majors Rotation System (EMRS) is a quantitative momentum rotation strategy that:
Analyzes 10 major cryptocurrencies simultaneously
Calculates relative strength between all possible pairs (45 comparisons)
Applies fractal dimension analysis to identify trending behavior
Uses adaptive filtering to reduce noise while preserving signals
Dynamically allocates to the mathematically strongest asset
Implements multi-layer risk management through market regime filters
Core Philosophy:
Rather than trying to predict which cryptocurrency will perform best, the system identifies which one is already performing best relative to all others and maintains exposure until leadership changes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT MAKES THIS SYSTEM UNEQUIVOCALLY UNIQUE
1. True Relative Strength Matrix
Unlike simple momentum strategies that look at individual asset performance, EMRS calculates the complete relative strength matrix between all assets. Each asset is compared against every other asset using fractal analysis, creating a comprehensive strength map of the entire crypto market.
2. Hurst Exponent Integration
The system employs the Hurst Exponent to distinguish between:
Trending behavior (H > 0.5) - where momentum is likely to persist
Mean-reverting behavior (H < 0.5) - where reversals are likely
Random walk (H ≈ 0.5) - where no edge exists
This ensures the system only takes positions when mathematical evidence of persistence exists.
3. Dual-Layer Filtering Architecture
Combines two advanced filtering techniques:
Laguerre Polynomial Filters: Provides low-lag smoothing with minimal distortion
Kalman-like Adaptive Smoothing: Adjusts filter parameters based on market volatility
This dual approach preserves important price features while eliminating noise.
4. Market Regime Awareness
The system monitors overall crypto market conditions through multiple lenses and only operates when:
The broad crypto market shows positive technical structure
Sufficient trending behavior exists across major assets
Risk conditions are favorable
5. Rank-Based Selection with Trend Confirmation
Rather than simply choosing the top-ranked asset, the system requires:
High relative strength ranking
Positive individual trend confirmation
Alignment with market regime
This multi-factor approach reduces false signals and whipsaws.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡️ SYSTEM ROBUSTNESS & DEVELOPMENT METHODOLOGY
Pre-Coding Design Philosophy
This system was completely designed before any code was written . The mathematical framework, indicator selection, and parameter ranges were determined through:
Theoretical analysis of market microstructure
Study of persistence and mean reversion in crypto markets
Mathematical modeling of relative strength dynamics
Risk framework development based on regime theory
No Post-Optimization
Zero parameter fitting: All parameters remain at their originally designed values
No curve fitting: The system uses the same settings across all market conditions
No cherry-picking: Parameters were not adjusted after seeing results
This approach ensures the system captures genuine market dynamics rather than historical noise
Parameter Robustness Testing
Extensive testing was conducted to ensure stability:
Sensitivity Analysis: System maintains positive expectancy across wide parameter ranges
Walk-Forward Analysis: Consistent performance across different time periods
Regime Testing: Performs in both trending and choppy conditions
Out-of-Sample Validation
System was designed on a selection of 10 assets
System was tested on multiple baskets of 10 other random tokens, to simualte forwards testing
Performance remains consistent across baskets
No adjustments made based on out-of-sample results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 PERFORMANCE METRICS DISPLAYED
The system provides real-time performance analytics:
Risk-Adjusted Returns:
Sharpe Ratio: Measures return per unit of total risk
Sortino Ratio: Measures return per unit of downside risk
Omega Ratio: Probability-weighted ratio of gains vs losses
Maximum Drawdown: Largest peak-to-trough decline
Benchmark Comparison:
Live comparison against Bitcoin buy-and-hold strategy
Both equity curves displayed with gradient effects
Performance metrics shown for both strategies
Visual representation of outperformance/underperformance
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 OPERATIONAL MECHANICS
Asset Universe:
The system analyzes 10 major cryptocurrencies, customizable through inputs:
Bitcoin (BTC)
Ethereum (ETH)
Solana (SOL)
XRP
BNB
Dogecoin (DOGE)
Cardano (ADA)
Chainlink (LINK)
Additional majors
Signal Generation Process:
Calculate relative strength matrix
Apply Hurst Exponent analysis to each ratio
Rank assets by aggregate relative strength
Confirm individual asset trend
Verify market regime conditions
Allocate to highest-ranking qualified asset
Position Management:
Single asset allocation (no diversification)
100% in strongest trending asset or 100% cash
Daily rebalancing at close
No leverage employed in base system
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 VISUAL INTERFACE
Information Dashboard:
System state indicator (ON/OFF)
Current allocation display
Real-time performance metrics
Sharpe, Sortino, Omega ratios
Maximum drawdown tracking
Net profit multiplier
Equity Curves:
Cyan curve: System performance with gradient glow effect
Magenta curve: Bitcoin HODL benchmark with gradient
Visual comparison of both strategies
Labels indicating current values
Alert System:
Alerts fire when allocation changes
Displays selected asset symbol
"CASH" alert when system goes defensive
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT CONSIDERATIONS
Appropriate Use Cases:
Medium to long-term crypto allocation
Systematic approach to crypto investing
Risk-managed exposure to cryptocurrency markets
Alternative to buy-and-hold strategies
Limitations:
Daily rebalancing required
Not suitable for high-frequency trading
Requires liquid markets for all assets
Best suited for spot trading (no derivatives)
Risk Factors:
Cryptocurrency markets are highly volatile
Past performance does not guarantee future results
System can underperform in certain market conditions
Not financial advice - for educational purposes only
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎓 THEORETICAL FOUNDATION
The system is built on several academic principles:
1. Momentum Anomaly
Extensive research shows that assets exhibiting strong relative momentum tend to continue outperforming in the medium term (Jegadeesh & Titman, 1993).
2. Fractal Market Hypothesis
Markets exhibit fractal properties with periods of persistence and mean reversion (Peters, 1994). The Hurst Exponent quantifies these regimes.
3. Adaptive Market Hypothesis
Market efficiency varies over time, creating periods where momentum strategies excel (Lo, 2004).
4. Cross-Sectional Momentum
Relative strength strategies outperform time-series momentum in cryptocurrency markets due to the high correlation structure.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 USAGE GUIDELINES
Capital Requirements:
Suitable for any account size
No minimum capital requirement
Scales linearly with account size
Implementation:
Can be traded manually with daily signals
Suitable for automation via alerts
Works with any broker supporting crypto
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 FINAL NOTES
The Extended Majors Rotation System represents a systematic, mathematically-driven approach to cryptocurrency allocation. By combining relative strength analysis with fractal market theory and adaptive filtering, it aims to capture the persistent trends that characterize crypto bull markets while avoiding the drawdowns of buy-and-hold strategies.
The system's robustness comes not from optimization, but from sound mathematical principles applied consistently. Every component was chosen for its theoretical merit before any backtesting occurred, ensuring the system captures genuine market dynamics rather than historical artifacts.
"In the race between cryptocurrencies, bet on the horse that's already winning - but only while the track conditions favour racing."
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Developed by AlphaNatt | Quantitative Rotation Systems
Version: 1.0
Strategy Type: Momentum Rotation
Classification: Systematic Trend Following
Not financial advice. Always DYOR.
Pivot + OHLC【Pivot + OHLC|使い方(日本語)】
■ 概要
前日のOHLCラインと、当日の高値/安値(点線)を表示しつつ、標準ピボット(複数方式)を同一チャートに描画するインジケーターです。デイトレ~スイングでの当日レンジ把握、前日基準の反発/ブレイク確認、ピボット到達の可視化に向きます。
■ 主な機能
- 前日OHLC:前日の「Open/High/Low/Close」を水平ステップラインで描画(色変更可)
- 当日H/L:当日の「高値/安値」を点線のライン&ラベルで表示(最終バーのみ)
- ピボット:Traditional / Fibonacci / Woodie / Classic / DM / Camarilla に対応
- 表示制御:ピボット各レベル(P, R1~R5, S1~S5)の個別ON/OFF、色、ラベル位置を設定可
- パフォーマンス:古いピボットは自動削除(件数を設定可能)
■ 基本の使い方
1) チャートに追加したら、時間軸を普段の取引足に設定します。
2) 「OHLC Resolution」で前日の参照解像度(通常は1D)を選択。
3) 「Hide past OHLC」をONにすると、前日のOHLCは“表示用解像度の最終バー”付近のみ表示され、過去の混雑を抑えます。
4) 「Display resolution (for OHLC)」はOHLCラベルの表示基準となる時間足(通常は1D)です。
5) 「Line Width」で前日OHLC&当日H/L&ピボットの線幅を共通で調整します。
6) ピボットは「Pivot Type」「Pivots Timeframe」「Use Daily-based Values」等で調整します。
- デイトレ用途:Pivot Timeframe=“Auto or Daily”、Use Daily-based Values=ON が手堅い構成です。
7) 「labels」グループで「Show Labels」「Show Prices」「Labels Position(Left/Right)」を調整します。
■ パラメータ早見表
- OHLC Resolution:前日データの参照足(既定:1D)
- Hide past OHLC:過去の前日OHLCを非表示(既定:ON)
- Display resolution (for OHLC):OHLCラベルの表示基準足(既定:1D)
- Open/High/Low/Close:前日ライン色
- Line Width:全ライン共通の太さ
- Show Labels / Show Prices:ラベルの名称/価格の表示切替
- Pivot Type:ピボット方式(Traditional / Fibonacci / Woodie / Classic / DM / Camarilla)
- Pivots Timeframe:ピボット計算のアンカー(Auto / Daily / Weekly / … / Yearly派生)
- Number of Pivots Back:履歴ピボット保持数(古いものは自動削除)
- Use Daily-based Values:日足ベースで安定描画(短期足での未確定ずれを抑制)
- Labels Position:ピボットラベルの左右
■ 表示仕様のポイント
- 当日H/Lは点線ライン+ラベル(日本語表記:当日高値/当日安値)。最新バー時のみ表示・更新。
- 前日OHLCはステップライン。色を変更すると対応するラベル色も自動で連動。
- ピボットは方式により有効なレベル数が異なります(例:DMは少なめ、Traditional/CamarillaはR5/S5まで可)。
- レベルの個別トグル(Show P, Show R1 …)で混雑を抑えられます。
■ 注意事項 / ヒント
- 低スペック環境や極端に長い履歴では「Number of Pivots Back」を下げると安定します。
- 取引所/銘柄のセッションや休日によっては、1日の切替タイミングと当日H/Lの更新に差異が出る場合があります。
- Intradayでの“開場直後~日足切替前後”はリフレッシュによりH/Lやラベル位置が追随します。
- 「Use Daily-based Values」をONにすると、短期足でのピボット再計算による細かなズレを抑制できます。
■ 使いどころ
- 前日安値→当日戻り高値→ピボットR1の順に到達など、日内の“基準面”を連結して相場の節目を確認。
- ブレイク判定時に当日H/Lとピボット到達を併読して、利確/押し目候補を素早く評価。
- 指値戦略では、前日値幅(H-L)とピボット帯の重なりで「厚い」価格帯を抽出。
■ Overview
This indicator overlays prior-day OHLC lines, today’s high/low (dotted), and standard Pivot Points on the same chart. It’s built for quick intraday context: prior-day anchors, current-day range, and pivot confluence.
■ Key Features
- Yesterday’s OHLC: horizontal step-lines with customizable colors
- Today’s High/Low: dynamic dotted lines + labels (shown/updated on the latest bar)
- Pivot Points: Traditional / Fibonacci / Woodie / Classic / DM / Camarilla
- Fine control: per-level toggles (P, R1–R5, S1–S5), colors, label side
- Performance-aware: old pivots are auto-pruned by “Number of Pivots Back”
■ Quick Start
1) Add to your chart and choose your working timeframe.
2) Set “OHLC Resolution” (usually 1D).
3) Turn ON “Hide past OHLC” to keep charts clean by only showing recent prior-day OHLC.
4) “Display resolution (for OHLC)” defines the baseline timeframe for OHLC label placement (usually 1D).
5) Adjust “Line Width” to control all line thicknesses at once.
6) Configure pivots via “Pivot Type”, “Pivots Timeframe”, and “Use Daily-based Values”.
- For day trading, “Auto or Daily” + “Use Daily-based Values = ON” is a robust setup.
7) In “labels”, toggle “Show Labels”, “Show Prices”, and choose “Labels Position (Left/Right)”.
■ Parameter Cheatsheet
- OHLC Resolution: timeframe used for prior-day data (default 1D)
- Hide past OHLC: hide historical prior-day OHLC (default ON)
- Display resolution (for OHLC): baseline for OHLC label placement (default 1D)
- Open/High/Low/Close: colors for the four prior-day lines
- Line Width: global thickness for OHLC / Today H/L / Pivots
- Show Labels / Show Prices: text/price display for labels
- Pivot Type: Traditional / Fibonacci / Woodie / Classic / DM / Camarilla
- Pivots Timeframe: anchor timeframe (Auto / Daily / Weekly / … / Yearly variants)
- Number of Pivots Back: how many historical pivot sets to keep (older ones are deleted)
- Use Daily-based Values: stabilize pivot drawing on intraday charts
- Labels Position: left or right for pivot labels
■ Display Notes
- Today’s H/L are dotted lines with labels (“Today’s High” / “Today’s Low”); they update only on the latest bar.
- Prior-day OHLC uses step-lines; label color automatically follows line color.
- Available pivot levels depend on the chosen type (e.g., DM has fewer, Traditional/Camarilla support up to R5/S5).
- Use per-level toggles (Show P, Show R1, …) to reduce clutter.
■ Tips / Caveats
- On modest hardware or very long histories, reduce “Number of Pivots Back” for stability.
- Exchange sessions/holidays can slightly shift the daily roll and when Today’s H/L updates.
- Around the daily roll, intraday charts may refresh H/L/labels as new data confirms.
- “Use Daily-based Values = ON” helps avoid micro-shifts from frequent intraday recalculations.
■ Practical Use
- Chain prior-day low → intraday pullback high → pivot R1 to frame day structure.
- On breakouts, read Today’s H/L with pivot reaches to judge take-profit / pullback zones.
- For limit orders, intersect prior-day range (H–L) with pivot bands to find “thick” price zones.
SPPO - Statistical Price Position OscillatorSPPO - Statistical Price Position Oscillator - Time-Weighted
Based on a time-weighted statistical model, this indicator quantifies price deviation from its recent mean. It uses a Z-Score to normalize price position and calculates the statistical probability of its occurrence, helping traders identify over-extended market conditions and mean-reversion opportunities with greater sensitivity.
- Time-Weighted Model: Reacts more quickly to recent price changes by using a Weighted Moving Average (WMA) and a weighted standard deviation.
- Statistical Foundation: Utilizes Z-Score standardization and a probability calculation to provide an objective measure of risk and price extremity.
- Dynamic Adaptation: Automatically adjusts its calculation period and sensitivity based on market volatility, making it versatile across different market conditions.
- Intelligent Visuals: Dynamic line thickness and gradient color-coding intuitively display the intensity of price deviations.
- Multi-Dimensional Analysis: Combines the main line's position (Z-Score), a momentum histogram, and real-time probability for a comprehensive view.
1. Time-Weighted Statistical Model (Z-Score Calculation)
- Weighted Mean (μ_w): Instead of a simple average, the indicator uses a Weighted Moving Average (ta.wma) to calculate the price mean, giving more weight to recent data points.
- Weighted Standard Deviation (σ_w): A custom weighted_std function calculates the standard deviation, also prioritizing recent prices. This ensures that the measure of dispersion is more responsive to the latest market behavior.
- Z-Score: The core of the indicator is the Z-Score, calculated as Z = (Price - μ_w) / σ_w. This value represents how many weighted standard deviations the current price is from its weighted mean. A higher absolute Z-Score indicates a more statistically significant price deviation.
2. Probability Calculation
- The indicator uses an approximation of the Normal Cumulative Distribution Function (normal_cdf_approx) to calculate the probability of a Z-Score occurring.
- The final price_probability is a two-tailed probability, calculated as 2 * (1 - CDF(|Z-Score|)). This value quantifies the statistical rarity of the current price deviation. For example, a probability of 0.05 (or 5%) means that a deviation of this magnitude or greater is expected to occur only 5% of the time, signaling a potential market extreme.
3. Dynamic Parameter Adjustment
- Volatility Measurement: The system measures market volatility using the standard deviation of price changes (ta.stdev(ta.change(src))) over a specific lookback period.
- Volatility Percentile: It then calculates the percentile rank (ta.percentrank) of the current volatility relative to its history. This contextualizes whether the market is in a high-volatility or low-volatility state.
- Adaptive Adjustment:
- If volatility is high (e.g., >75th percentile), the indicator can shorten its distribution_period and increase its position_sensitivity. This makes it more responsive to fast-moving markets.
- If volatility is low (e.g., <25th percentile), it can lengthen the period and decrease sensitivity, making it more stable in calmer markets. This adaptive mechanism helps maintain the indicator's relevance across different market regimes.
4. Momentum and Cycle Analysis (Histogram)
- The indicator does not use a Hilbert Transform. Instead, it analyzes momentum cycles by calculating a histogram: Histogram = (Z-Score - EMA(Z-Score)) * Sensitivity.
- This histogram represents the rate of change of the Z-Score. A positive and rising histogram indicates accelerating upward deviation, while a negative and falling histogram indicates accelerating downward deviation. Divergences between the price and the histogram can signal a potential exhaustion of the current deviation trend, often preceding a reversal.
- Reversal Signals: Look for the main line in extreme zones (e.g., Z-Score > 2 or < -2), probability below a threshold (e.g., 5%), and divergence or contraction in the momentum histogram.
- Trend Filtering: The main line's direction indicates the trend of price deviation, while the histogram confirms its momentum.
- Risk Management: Enter a high-alert state when probability drops below 5%; consider risk control when |Z-Score| > 2.
- Gray, thin line: Price is within a normal statistical range (~1 sigma, ~68% probability).
- Orange/Yellow, thick line: Price is moderately deviated (1 to 2 sigma).
- Cyan/Purple, thick line: Price is extremely deviated (>2 sigma, typically <5% probability).
- Distribution Period: 50 (for weighted calculation)
- Position Sensitivity: 2.5
- Volatility Lookback: 10
- Probability Threshold: 0.03
Suitable for all financial markets and timeframes, especially in markets that exhibit mean-reverting tendencies.
This indicator is a technical analysis tool and does not constitute investment advice. Always use in conjunction with other analysis methods and a strict risk management strategy.
Copyright (c) 2025 | Pine Script v6 Compatible
---
统计价格位置振荡器 (SPPO) - 时间加权版
基于时间加权统计学模型,该指标量化了当前价格与其近期均值的偏离程度。它使用Z分数对价格位置进行标准化,并计算其出现的统计概率,帮助交易者更灵敏地识别市场过度延伸和均值回归的机会。
- 时间加权模型:通过使用加权移动平均(WMA)和加权标准差,对近期价格变化反应更迅速。
- 统计学基础:利用Z分数标准化和概率计算,为风险和价格极端性提供了客观的衡量标准。
- 动态自适应:根据市场波动率自动调整其计算周期和敏感度,使其在不同市场条件下都具有通用性。
- 智能视觉:动态线条粗细和渐变颜色编码,直观地展示价格偏离的强度。
- 多维分析:结合了主线位置(Z分数)、动能柱和实时概率,提供了全面的市场视角。
1. 时间加权统计模型 (Z分数计算)
- 加权均值 (μ_w):指标使用加权移动平均 (ta.wma) 而非简单平均来计算价格均值,赋予近期数据点更高的权重。
- 加权标准差 (σ_w):通过一个自定义的 weighted_std 函数计算标准差,同样优先考虑近期价格。这确保了离散度的衡量对最新的市场行为更敏感。
- Z分数:指标的核心是Z分数,计算公式为 Z = (价格 - μ_w) / σ_w。该值表示当前价格偏离其加权均值的加权标准差倍数。Z分数的绝对值越高,表示价格偏离在统计上越显著。
2. 概率计算
- 指标使用正态累积分布函数 (normal_cdf_approx) 的近似值来计算特定Z分数出现的概率。
- 最终的 price_probability 是一个双尾概率,计算公式为 2 * (1 - CDF(|Z分数|))。该值量化了当前价格偏离的统计稀有性。例如,0.05(或5%)的概率意味着这种幅度或更大的偏离预计只在5%的时间内发生,这预示着一个潜在的市场极端。
3. 动态参数调整
- 波动率测量:系统通过计算特定回溯期内价格变化的标准差 (ta.stdev(ta.change(src))) 来测量市场波动率。
- 波动率百分位:然后,它计算当前波动率相对于其历史的百分位排名 (ta.percentrank)。这将当前市场背景定义为高波动率或低波动率状态。
- 自适应调整:
- 如果波动率高(例如,>75百分位),指标可以缩短其 distribution_period(分布周期)并增加其 position_sensitivity(位置敏感度),使其对快速变化的市场反应更灵敏。
- 如果波动率低(例如,<25百分位),它可以延长周期并降低敏感度,使其在较平静的市场中更稳定。这种自适应机制有助于保持指标在不同市场制度下的有效性。
4. 动能与周期分析 (动能柱)
- 该指标不使用希尔伯特变换。相反,它通过计算一个动能柱来分析动量周期:动能柱 = (Z分数 - Z分数的EMA) * 敏感度。
- 该动能柱代表Z分数的变化率。一个正向且不断增长的动能柱表示向上的偏离正在加速,而一个负向且不断下降的动能柱表示向下的偏离正在加速。价格与动能柱之间的背离可以预示当前偏离趋势的衰竭,通常发生在反转之前。
- 反转信号:寻找主线进入极端区域(如Z分数 > 2 或 < -2)、概率低于阈值(如5%)以及动能柱出现背离或收缩。
- 趋势过滤:主线的方向指示价格偏离的趋势,而动能柱确认其动量。
- 风险管理:当概率降至5%以下时进入高度警惕状态;当|Z分数| > 2时考虑风险控制。
- 灰色细线:价格处于正常统计范围内(约1个标准差,约68%概率)。
- 橙色/黄色粗线:价格中度偏离(1到2个标准差)。
- 青色/紫色粗线:价格极端偏离(>2个标准差,通常概率<5%)。
- 分布周期:50(用于加权计算)
- 位置敏感度:2.5
- 波动率回溯期:10
- 概率阈值:0.03
适用于所有金融市场和时间框架,尤其是在表现出均值回归特性的市场中。
本指标为技术分析辅助工具,不构成任何投资建议。请务必结合其他分析方法和严格的风险管理策略使用。
版权所有 (c) 2025 | Pine Script v6 兼容