Stock Valuation Models - Professional Investment Analysis Tool📊 Overview
Stock Valuation Models is a comprehensive financial analysis indicator that combines multiple valuation methodologies to calculate intrinsic stock value. This professional-grade tool implements 7 different valuation methods , risk assessment framework, and financial health metrics to provide data-driven investment decisions.
🎯 Key Features
📈 Multiple Valuation Methods
Graham's Valuation - Conservative asset-based approach by Benjamin Graham
Multiples Valuation - Market-based P/E and P/B ratios from sector peers
Discounted Cash Flow (DCF) - Future cash flow projections with present value calculation
Dividend Discount Model - Gordon Growth Model for dividend-paying stocks
FCFF Model - Enterprise-level Free Cash Flow to Firm analysis
EVA Model - Economic Value Added measurement above cost of capital
Advanced Multiples - Enterprise Value ratios (EV/EBITDA, EV/Sales)
🏥 Financial Health Metrics
Altman Z-Score - Bankruptcy prediction and financial distress assessment
Piotroski F-Score - 9-point fundamental strength evaluation
Beneish M-Score - Earnings manipulation detection system
Magic Formula - Joel Greenblatt's combined quality and value scoring
⚖️ Risk Assessment Framework
Multi-Factor Risk Scoring - Fundamental, market, quality, and data quality risks
Risk-Adjusted Margin of Safety - Dynamic safety thresholds based on risk level
Position Sizing Guidance - Risk-appropriate investment allocation recommendations
🔍 Data Quality System
Real-Time Quality Tracking - Visual warnings for insufficient data
Fallback Methodology - Alternative calculations when primary data unavailable
Confidence Scoring - Method agreement and data quality assessment
⚙️ Settings & Parameters
Main Settings
Margin of Safety (%) - Minimum discount required before buying (Default: 15%)
Table Font Size - Choose between "Small" and "Normal" text size
Valuation Methods
Graham's Valuation - Best for mature, stable companies with strong fundamentals
Multiples Valuation - Compares to industry peers using dynamic sector ratios
Discounted Cash Flow - Ideal for growth companies with predictable cash flows
Dividend Discount Model - For consistent dividend-paying stocks (disabled by default)
FCFF Model - Enterprise approach for leveraged companies and M&A analysis
EVA Model - Measures value creation above cost of capital
Advanced Multiples - Wall Street standard EV ratios for professional analysis
Additional Metrics
Magic Formula - Combined quality and value scoring system
Altman Z-Score - Bankruptcy risk assessment (Safe >2.99, Distress <1.81)
Piotroski F-Score - Fundamental quality score (Excellent ≥8, Poor <4)
Beneish M-Score - Manipulation detector (High Risk >-2.22, Low Risk ≤-2.22)
🔧 How It Works
Dynamic Calculations
Sector-Based Ratios - Automatically detects company sector and applies appropriate valuation multiples
Economic Integration - Uses real-time risk-free rates, VIX volatility, and GDP growth data
Quality Weighting - Adjusts method weights based on company type (growth/mature/distressed) and market conditions
Negative Value Handling - Shows actual calculated values but excludes negative results from weighted average
Risk-Adjusted Analysis
VIX Integration - Higher market volatility increases required margin of safety
Sector Risk Premiums - Energy and Financial sectors get higher risk multipliers
Quality Adjustments - High Piotroski F-Score companies get lower risk ratings
Data Quality Impact - Insufficient data increases risk score and safety requirements
Visual Display
Horizontal Table Layout - Organized by method groups (Valuation → Results → Risk → Health)
Color-Coded Results - Green/Yellow/Red indicators for risk levels and recommendations
Warning Symbols - ⚠️ for data quality issues, ❌ for excluded negative values
Dollar Amounts - Both percentage and dollar-based margin of safety calculations
📈 Interpretation Guide
💎 Intrinsic Value Results
Weighted Average - Combines all enabled methods based on intelligent weighting
Confidence Level - High/Medium/Low based on method agreement and data quality
Method Count - Number of successful valuation calculations
🎯 Margin of Safety
Percentage - Current discount/premium to calculated intrinsic value
Dollar Amount - Absolute dollar difference per share
Buy Price - Risk-adjusted target purchase price
⚖️ Risk Assessment
Low Risk (Green) - Normal position sizing (3-5%)
Medium Risk (Yellow) - Reduced position sizing (1-3%)
High Risk (Red) - Minimal position sizing (<1%)
📊 Recommendations
STRONG BUY - Low risk + adequate margin + high confidence
BUY - Meets risk-adjusted margin requirements
HOLD - Positive margin but higher risk
SELL - Insufficient margin for risk level
🎓 Educational Tooltips
Every parameter includes detailed explanations accessible by hovering over the setting. Learn about:
When to use each valuation method
How different metrics are calculated
Interpretation thresholds and ratings
Risk factors and quality indicators
💡 Best Practices
🚀 For Growth Stocks
Enable DCF and Advanced Multiples
Focus on Piotroski F-Score for quality assessment
Use higher margin of safety due to volatility
💰 For Value Stocks
Enable Graham's and Multiples Valuation
Check Altman Z-Score for financial stability
Consider Magic Formula rating
📈 For Dividend Stocks
Enable Dividend Discount Model
Focus on sustainable dividend coverage
Check for consistent dividend history
⚠️ For Distressed Situations
Prioritize Graham's asset-based approach
Monitor Altman Z-Score closely
Use higher risk-adjusted margins
⚠️ Important Notes & Data Limitations
📅 Data Timing Considerations
Fundamental Data Lag - Company financial data (earnings, cash flows, balance sheet items) may be 1-3 months behind current market conditions
Quarterly Reporting Delays - Most recent available data reflects the company's situation as of the last filed quarterly/annual report
Market vs. Fundamentals Gap - Stock prices react instantly to news, while fundamental data updates occur periodically
Accuracy Impact - Recent business changes, market events, or company developments may not be reflected in current calculations
🔧 Technical Limitations
Data Dependencies - Requires fundamental data availability from TradingView
Quality Warnings - Pay attention to ⚠️ symbols indicating insufficient data
Risk Context - Always consider risk score in investment decisions
Market Conditions - Tool automatically adjusts for market volatility (VIX)
Sector Specificity - Ratios automatically adjust based on company's sector
💡 Best Practice Recommendations
Supplement with Current Analysis - Always combine with recent news, earnings calls, and management guidance
Monitor Data Quality - Check when the underlying financial data was last updated
Consider Market Context - Factor in recent market events that may affect company performance
Use as Starting Point - Treat calculations as baseline analysis requiring additional research
🔗 Methodology
Based on established academic research and professional practices:
Benjamin Graham - Security Analysis principles
Joel Greenblatt - Magic Formula methodology
Edward Altman - Z-Score bankruptcy prediction
Joseph Piotroski - Fundamental analysis scoring
Messod Beneish - Earnings manipulation detection
Modern Portfolio Theory - Risk-adjusted decision making
This indicator is designed for educational and analytical purposes. Always conduct additional research and consider consulting with financial professionals before making investment decisions.
Statistics
Pro Day Trader (v7)Pro Day Trader (v6) — Update Summary
Core behavior (unchanged by default)
EMA(9/21) + RSI(14) with HTF EMA filter.
Same alerts, plots, and session handling.
All new features are opt-in (off by default) to preserve existing signals.
New features (opt-in)
Adaptive RSI
Inputs: Use Dynamic RSI, RSI slope lookback, RSI slope relax threshold, RSI relax step.
Relaxes RSI gates slightly during strong momentum slopes.
Dynamic ATR Multiplier
Inputs: Dynamic ATR multiplier, ATR long MA length, ATR ratio low/high, Scale when below/above.
Adapts stop multiple to volatility (tightens in chop, loosens in expansions).
Entry Mode
Inputs: Entry Mode = Immediate / Pullback EMA / Pullback VWAP, Pullback wait bars (max).
Optional “arm-then-pullback” entry to improve price on signals after a valid cross.
MTF RSI Filter
Inputs: Use MTF RSI filter, MTF #1, MTF #2, MTF RSI length, MTF RSI long min / short max.
Requires 15m/60m RSI alignment with 5m entries.
DI Direction Confirmation
Input: Use DI direction confirm.
Confirms longs with +DI > −DI and shorts with −DI > +DI.
PA Gate Score
Inputs: Use PA Gate Score, PA score min (default 0.65), Near OR penalty factor, Lunch penalty factor.
Combines RVOL/ADX/penalties into one score; normalized to ≤ 1.0.
Gate mode quality-of-life
Auto gate mode retained for HTF/VWAP: Both in RTH / Either outside RTH.
Preset/EZ behavior preserved (e.g., Scalp → Either).
Risk & trail fixes
Trailing ATR persistence: resets the opposite trail on a new entry to avoid stale lines.
Dynamic ATR uses atrMultUse in stop math (targets unchanged).
Dashboard additions
Displays: PA Score & threshold, Dyn RSI thresholds, Trail ATR status, DI Confirm, Dyn ATR mult, Entry Mode, and MTF RSI status (only meaningful when features are on).
Internals / safety
Non-repainting maintained (request.security(..., lookahead_off)).
Series computed each bar (no conditional function calls).
PA Score clamped to ≤ 1.0 to prevent over-weighting single factors in high-RVOL regimes.
Suggested presets (optional)
Futures (MES/ES/MNQ): Gate = Auto, Use Dynamic ATR = ON, Entry = Pullback EMA, Use DI Confirm = ON.
Equities (TSLA/NVDA): Use Dynamic RSI = ON, Entry = Pullback EMA (first 60–90m RTH).
If enabling PA Score: start with PA score min = 0.65–0.75.
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.
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.)
Real Yields vs Gold vs DXYThis indicator overlays U.S. real yields, gold prices, and the U.S. Dollar Index (DXY) on the same chart, with optional normalization (raw values, Z-Score, or % change since start). It pulls macroeconomic data directly from the Federal Reserve Economic Data (FRED) (TIPS yields, nominal Treasuries, and breakeven inflation) and compares it against market feeds for gold and the dollar.
⸻
📌 What it shows you
1. Real Yields (teal line):
• The inflation-adjusted interest rate.
• Higher real yields typically reduce gold’s appeal (since gold doesn’t yield anything).
• Lower real yields usually support gold, as holding non-yielding assets becomes more attractive.
2. Gold (orange line, with optional MA):
• Spot gold (or futures) price series.
• Often moves inversely to real yields, but can diverge when inflation fears or safe-haven demand dominate.
3. U.S. Dollar Index (DXY) (blue line):
• The strength of the U.S. dollar versus major currencies.
• A strong USD often pressures gold (since it’s priced in dollars).
• Weakness in the USD often supports gold.
4. Reference Lines (0, +3, –3):
• In Z-Score mode, these act as statistical boundaries.
• Movements beyond +3 or –3 standard deviations usually signal extreme, unsustainable conditions.
📌 Why it matters for macro outlook
This indicator lets you see the three most important macro forces on gold in one pane:
• Real yields → reflect Fed policy, inflation expectations, and bond market pricing.
• DXY → reflects capital flows into or out of the USD.
• Gold → reacts to both, serving as a hedge, safe-haven, or inflation play.
By watching how these move together or diverge, you can answer key macro questions:
• Is gold moving inversely to real yields (normal regime)?
• Is gold rising even when real yields rise (inflation stress or risk aversion)?
• Is the dollar breaking the relationship (e.g., strong USD pushing gold lower despite falling yields)?
• Are we at statistical extremes (beyond ±3 Z-score), signaling stretched positioning?
⸻
✅ In short: This indicator is a macro overlay tool. It tells the story of how bond markets (real yields), currency markets (USD), and commodities (gold) interact — and whether gold’s behavior is consistent with macro fundamentals or signaling something unusual.
Mag 7 Weighted Performance % (Today Only)shows the cumulative weighted performance of mag 7 stocks as a percentage.
ml_toolkitLibrary "ml_toolkit"
normalize(src, lookback)
Parameters:
src (float)
lookback (int)
standardize(src, lookback)
Parameters:
src (float)
lookback (int)
sigmoid(x)
Parameters:
x (float)
relu(x)
Parameters:
x (float)
tanh(x)
Parameters:
x (float)
logistic_regression(features, weights, bias)
Parameters:
features (array)
weights (array)
bias (float)
linear_regression(features, weights, bias)
Parameters:
features (array)
weights (array)
bias (float)
ensemble_vote(predictions, weights)
Parameters:
predictions (array)
weights (array)
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.
Options Straddle Strategy Backtester 140% APR for 2025This script provides the most convenient manual tool for backtesting a straddle stagy in options.
The straddle is when you buy a call and a put option at the same price and the expiration date. You profit when the price movement at expiry (8 am UTC) in either directions surpass the price of the premium paid. The price of opening this straddle on ETH is always 1.6% of the current ETH price including fees.
In my example I use ETH options, I am buying a straddle at 8:30 UTC every day with the next day expiration date. In the script it looks like I am opening a long position on ETH at 8:30 and then close it the next days. We need to use 1 minute chart, chart time set to UTC for exact results and deep back testing function to go back in time.
Once the system generates a trade report - we need to download it and go to the list of trades sections, there we do the following:
1) remove all long entry lines leaving only long exit lines that have all the information we need.
2) We add one column that calculates the cost of premium for every trade: Position size*1.6%=cost of premium with fees.
3)We add a second column copying all Net PNL in USDT changing negative amounts to positive - since it doesn't matter for us which direction the move was towards.
The results are quite impressive: If you were buying straddles during 2025 that is not ended yet you will get 69% return on investment (11K paid in premiums, 19K return, 8K net profit). 2024 and 2025 combined: 53% (29 K, 45 K, and 15 profits).
Moreover, since you have the date of the trade in the table you can filter the results further to figure out if trading on some days is less profitable. Interestingly trades from Sun to Mon given are not profitable at -15% and most profitable days are Mon to Tue - 103%, Friday to Sat - 102 %. So if we remove Sun to Monday trades we will be at 89% for the first 221 days of the year or 140% APR.
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. 😊
USD vs USDT Perp PremiumPerp Premiu. An indicator that analyzes the differences betweenvarious crypto price oracles
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.).
Advanced Trading Dashboard📊 Advanced Trading Dashboard - Multi-Indicator Analysis Tool
Comprehensive Market Analysis at a Glance
This professional trading dashboard consolidates multiple technical indicators into a single, easy-to-read overlay table that provides instant market insights for informed trading decisions.
✨ Key Features:
📈 Multi-Indicator Analysis:
Real-time Price Action vs EMA8 with percentage strength
RSI momentum with overbought/oversold signals
MACD trend confirmation with bullish/bearish status
Multi-timeframe trend analysis (EMA50/200 + Supertrend)
Volume analysis with ratio to moving average
Bollinger Bands positioning with band width metrics
ATR volatility measurements with percentage levels
Stochastic oscillator for entry/exit timing
🎯 Advanced Market Intelligence:
Automated Market Structure detection (Higher Highs/Lower Lows)
Dynamic Support & Resistance level identification
Smart Overall Signal generation based on 5+ confluence factors
Color-coded status indicators for quick visual assessment
⚙️ Customization Options:
Repositionable dashboard (6 position options)
Toggle visibility on/off
Clean, professional interface with intuitive color coding
💡 Perfect For:
Day traders seeking quick market assessment
Swing traders analyzing trend strength
Multi-timeframe analysis confirmation
Risk management and volatility assessment
Entry/exit signal confluence
The dashboard eliminates the need to switch between multiple indicators, providing all essential market data in one consolidated view. Each metric includes both numerical values and interpretive status, making it suitable for both novice and experienced traders.
Compatible with all markets and timeframes. Best used as a supplementary analysis tool alongside your existing trading strategy.
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.
FXHacker BUY SELL SIGNAL V2“FXHacker BUY SELL SIGNAL V2 marks key Nairobi session blocks and detects liquidity sweeps. Traders can choose between Strict CHoCH (confirmation on structure break) or Immediate Sweep (signal at first sweep). Designed to highlight high-probability reversal zones within important time windows.”
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.
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.