Nifty Trendometer - Nifty 50 Live Tracker🚀 Nifty Trendometer — The Ultimate Live Market Tracker for the Nifty 50 🚀 
 🔍 One glance, total clarity. One tool, total control. 
The Nifty Trendometer is a next-generation TradingView indicator designed for serious traders and portfolio managers who want to see what institutions see. It merges advanced demand–supply analytics, live breadth monitoring, and macro stress signals — all in one clean, self-updating dashboard.
 🧭 What It Does? 
 Tracks Nifty 50 internals live:  See how many of India’s top 30 stocks are gaining, losing, or collapsing beyond key thresholds.
 Identifies actionable demand and supply zones:  The algorithm automatically scans for low-volume demand zones, supply imbalances, and high-volume consolidation clusters (HVNs) — letting you spot where smart money is active.
 Generates precision buy/sell decisions:  Smart zone-touch detection coupled with real-time volume validation gives you high-confidence reversal or breakout signals — without repainting.
 Measures macro risk instantly:  Integrated India VIX, USDINR, Bank Index, and Basis stress readings tell you when the market’s underlying engine is overheating or calming down.
 ⚡ Key Highlights 
 ✅ Dynamic Zone Mapping  — Automatically highlights fresh demand (green), supply (purple), and HVN (blue) regions as they form — no manual drawing needed.
 ✅ Smart Volume Logic  — Detects price reactions backed by significant volume surges — confirming genuine breakouts, not noise.
 ✅ Crash & Rally Detector  — A proprietary “Crash Probability” engine calculates live risk and momentum balance, showing how close the market is to tipping into panic or breakout.
 ✅ ORB & Gap Analysis  — Monitors intraday open-range breakouts, gap fades, and continuation patterns with volatility confirmation.
 ✅ Macro Stress Dashboard  — Instantly shows whether India’s market risk is local, global, or liquidity-driven — using DXY-relative INR movement, bank index health, and basis stress.
 ✅ Smart Alerts  — Be notified automatically when the system detects:
 • Crash Symptoms (Warning)
 • Crash Confirmation (Crisis)
 • Rally Watch
 • Rally Start (Go Signal)
 🧠 The Logic — Simplified 
 The Trendometer combines the following: 
Volume profile geometry (for hidden demand/supply zones)
Price reaction mapping (for confirmed reversals and rejections)
Multi-factor stress scoring (VIX, currency, banks, basis, and breadth)
Probability modeling (a smooth blend of seven risk dimensions, scaled to a live “Crash–Rally Probability” score)
Everything updates tick-by-tick, producing a dynamic, data-driven market weather report.
 📊 One Dashboard, Infinite Insight 
The indicator creates a compact, color-coded table on your TradingView chart showing:
VIX % change
USDINR strength (absolute or DXY-relative)
Bank index trend
Nifty breadth and depth (number of stocks down / deeply down)
Basis stress (futures vs spot)
ORB/gap behavior
Overall crash or rally probability (e.g., “↓ 68% | ↑ 32%”)
Visual cues instantly shift from green (safe) to orange (watch) to red (crisis) — no guessing required.
 💡 Ideal For: 
Intraday traders seeking early directional bias confirmation
Swing traders spotting reversals at demand/supply pivots
Investors wanting macro stress signals before volatility spikes
Quant-oriented analysts tracking multi-factor market health
 ⚙️ Plug-and-Trade Simplicity 
Just add the Nifty Trendometer to your TradingView chart and watch the market structure, sentiment, and institutional footprints reveal themselves in real time.
No parameter tuning. No manual drawing. No data delays.
 📈 Nifty Trendometer — When precision meets perspective. 
Because the best traders don’t predict — they measure the factors which affect the market.
基本面分析
Economic Cycle Signal (USA)📊 Economic Cycle Signal (USA)
This indicator overlays both the U.S. Federal Reserve Funds Rate (Fed Funds) and the U.S. Inflation Rate YoY directly onto your stock market chart (e.g., S&P 500). It visually connects monetary policy and inflation dynamics with equity market performance, helping traders and analysts understand how macroeconomic shifts impact risk assets.
🔹 Key Features
• Plots the monthly U.S. Fed Funds Rate alongside your chart.
• Overlays the U.S. Inflation Rate YoY, offering a direct and realistic view of inflation pressure instead of CPI.
• Shades the background to reflect different economic cycle phases (recovery, recession, expansion, late cycle).
• Highlights how the stock market reacts during shifting monetary and inflationary conditions.
• Provides a clear traffic-light style signal for quick macro interpretation.
• Now includes dynamic inflation color logic based on the Fed’s 2% target and 5% threshold (explained below).
🔹 Inflation Line Color Logic (New)
The inflation line now changes color dynamically to show whether inflation is within or outside the Federal Reserve’s comfort zone, and whether it’s rising or falling:
Inflation Condition Interpretation Line Color
Inflation > 5% and Rising Inflation overheating (well above target) 🔴 Red
Inflation > 5% and Falling Cooling off from high levels 💚 Lime
Inflation < 5% and Falling Disinflation / stable price environment 🟢 Green
Inflation < 5% and Rising Early inflation rebound 🟡 Yellow
This color-coded logic mirrors the interest rate phase colors, giving traders an instant visual cue about inflationary pressure and possible policy turning points.
🔹 How Traders & Analysts Can Use It
• Visualize the interaction between U.S. monetary policy and inflation cycles in real time.
• Identify historically supportive phases when low or easing rates follow moderate inflation.
• Detect tightening cycles when inflation spikes first and the Fed reacts, signaling potential equity headwinds.
• Use as a macro compass to anticipate inflation pressure, policy changes, and market regime shifts.
• Combine with technical analysis, fundamentals, or leading indicators for deeper macro insights.
🔹 Color Legend (Economic Phases)
🟩 Light Green → Recovery (Early Cycle)
• Rates: low or falling
• Inflation: low/stable
🟩 Green → Recession (Down Cycle)
• Rates: cut aggressively
• Inflation: falling
🟨 Yellow → Expansion (Mid Cycle)
• Rates: rising gradually
• Inflation: moderate
🟥 Red → Overheating (Late Cycle)
• Rates: high / rising fast
• Inflation: high
🔹 Inflation Context
• Inflation typically leads the policy rate cycle, offering early insight into future Fed actions.
• The U.S. Inflation Rate YoY provides a direct measure of consumer price changes compared to the same month last year — a clearer gauge of inflation pressure than CPI.
• The new color logic helps visualize whether inflation is accelerating or cooling, relative to the Fed’s 2% target and 5% upper threshold.
• This dual-overlay makes it easy to interpret the cause (inflation) and effect (interest rate policy) in one synchronized chart.
⚠️ Disclaimer
This script is for educational and informational purposes only. It does not provide financial advice or trading signals. Always combine it with your own research, proper risk management, and professional judgment.
Economic Cycle Signal (Pakistan)📊 Economic Cycle Signal (Pakistan)
This indicator overlays both the Pakistan Policy Rate (PKINTR) and the Pakistan Inflation Rate YoY (PKIRYY) directly onto your KSE or Pakistan market chart. It visually connects monetary policy and inflation dynamics with market performance, helping traders and analysts understand how shifts in economic conditions impact risk assets in Pakistan.
🔹 Key Features
• Plots the monthly Pakistan Policy Rate alongside your chart.
• Overlays the Pakistan Inflation Rate YoY to track how price pressures evolve before policy rate adjustments.
• Shades the background to reflect different economic cycle phases (recovery, recession, expansion, late cycle).
• Highlights how equities and other risk assets react during shifting monetary and inflationary conditions.
• Provides a clear traffic-light style signal for quick macro interpretation.
• Now includes dynamic inflation color logic based on the State Bank of Pakistan’s (SBP) 5–7% target range and thresholds for overheating or cooling inflation.
🔹 Inflation Line Color Logic (New)
The inflation line color dynamically reflects whether inflation is within or outside SBP’s target range, and whether it’s rising or falling:
Inflation Condition Interpretation Line Color
Inflation > 7% and Rising Inflation overheating (well above SBP target) 🔴 Red
Inflation > 7% and Falling Cooling off from high levels 💚 Lime
Inflation < 5% and Falling Disinflation / stable price environment 🟢 Green
Inflation < 5% and Rising Early inflation rebound 🟡 Yellow
This adaptive color logic mirrors the interest rate cycle signals, helping traders instantly interpret Pakistan’s inflation trajectory and anticipate potential monetary policy turning points.
🔹 How Traders & Analysts Can Use It
• Visualize Pakistan’s monetary policy cycles and inflation trends in real time.
• Identify supportive phases when rate cuts or low policy rates follow controlled inflation.
• Detect tightening cycles when inflation spikes and the SBP reacts with rate hikes, often creating headwinds for equities.
• Use as a macro compass to anticipate inflation pressure, potential policy actions, and shifts in market risk appetite.
• Combine with technical analysis, fundamentals, or macro indicators for deeper insights into Pakistan’s economic conditions.
🔹 Color Legend (Economic Phases)
🟩 Light Green → Recovery (Early Cycle)
• Rates: low or falling
• Inflation: low/stable
🟩 Green → Recession (Down Cycle)
• Rates: cut aggressively
• Inflation: falling
🟨 Yellow → Expansion (Mid Cycle)
• Rates: rising gradually
• Inflation: moderate
🟥 Red → Overheating (Late Cycle)
• Rates: high / rising fast
• Inflation: high
🔹 Inflation Context
• SBP’s medium-term inflation target range is 5–7%, aimed at balancing growth and price stability.
• The script applies the same visual logic used in the U.S. version, now calibrated to Pakistan’s macro environment.
• The Pakistan Inflation Rate YoY (PKIRYY) line color shifts dynamically — clearly showing when inflation is rising above target, cooling, or stabilizing.
• This dual-overlay helps interpret both the cause (inflation) and effect (policy response) within Pakistan’s economic cycle, giving investors a clear macro perspective.
⚠️ Disclaimer
This script is for educational and informational purposes only. It does not provide financial advice or trading signals. Always combine it with your own research, proper risk management, and professional judgment.
Gold–Bitcoin Correlation (Offset Model) by KManus88This indicator analyzes the correlation between Gold (XAU/USD) and Bitcoin (BTC/USD) using a time-offset model adjustable by the user.
The goal is to detect cyclical leads or lags between both assets, highlighting how capital flows into Gold may precede or follow movements in the crypto market.
Key Features:
Dynamic correlation calculation between Gold and Bitcoin.
Adjustable offset in days (default: 107) to fine-tune the temporal shift.
Automatic labels and on-chart visualization.
Compatible with multiple timeframes and logarithmic scales.
Interpretation:
Positive correlation suggests synchronized trends between both assets.
Negative correlation signals divergence or rotation of liquidity.
The time-offset parameter helps estimate when a shift in Gold could later reflect in Bitcoin.
Recommended use:
For macro-financial and global liquidity cycle analysis.
As a complementary tool in cross-asset momentum strategies.
© 2025 – Developed by KManus88 | Inspired by monetary correlation studies and global liquidity cycles.
This script is for educational purposes only and does not constitute financial advice.
VAGANZA Swings V1 LITE1. Introduction: The Philosophy Behind VAGANZA Swings
The VAGANZA Swings V1 LITE was developed to solve a common problem faced by swing traders: getting caught in low-probability trades during choppy, sideways markets. Many indicators can identify a trend, but few can effectively measure its quality and pinpoint optimal, low-risk entry points within that trend.
This script is not merely a "mashup" of existing indicators. It is a structured, multi-layered filtering system where each component is specifically chosen to address the weaknesses of the others. The core philosophy is to trade only when there is a clear market consensus, confirmed by trend, strength, momentum, and volume. This results in fewer signals, but each signal is designed to be of significantly higher quality.
2. The VAGANZA Confirmation Engine: A Deeper Look at the Logic
A signal is only generated when four distinct market conditions align. This sequential confirmation process is what makes the script unique and robust.
Layer 1: The Trend Regime Filter
What it does: The indicator first establishes the dominant market bias using a dual-speed baseline system. A faster-reacting baseline is compared against a slower, more stable baseline to determine if the market is in a long-term bullish or bearish "regime."
Why it's important: This foundational step ensures we are never fighting the primary market current. BUY signals are disabled during a bearish regime, and SELL signals are disabled during a bullish regime, instantly eliminating 50% of potentially bad trades.
Layer 2: The Trend Strength & Conviction Qualifier
What it does: This is the script's core intelligence. After confirming the trend's direction, this layer uses a directional volatility engine to measure the trend's strength or conviction. It analyzes the expansion between bullish and bearish price movements.
Why it's important: A simple moving average crossover can occur in a weak, drifting market, leading to false signals. This filter requires the trend to be demonstrably powerful (above a predefined strength threshold of 25) before allowing the system to even look for an entry. It's the primary filter for avoiding sideways market traps.
Layer 3: The Dynamic Pullback & Entry Trigger
What it does: Instead of chasing price at its peak, the script waits for a natural "breather" or pullback. It employs a momentum cycle oscillator to identify when the price has become temporarily oversold within a strong uptrend, or overbought within a strong downtrend. The signal is triggered at the precise moment momentum appears to be rejoining the primary trend.
Why it's important: This ensures a more favorable risk-to-reward ratio. By entering on a pullback, traders can avoid buying the top or selling the bottom of a short-term swing, which is a common mistake.
Layer 4: The Volume Participation Check
What it does: As a final confirmation, the script checks the volume on the signal candle. It requires the volume to be higher than its recent average.
Why it's important: A price move without significant volume can be a trap. This final check confirms that there is genuine market participation and conviction behind the signal, suggesting that larger market players are supporting the move.
3. The Synergy of the System (Why This Combination is Original)
The originality of VAGANZA Swings lies not in its individual components, but in their synergistic interaction:
The Trend Regime Filter sets the stage.
The Trend Strength Qualifier prevents signals when the stage is poorly lit (i.e., a weak trend).
The Pullback & Entry Trigger tells the actor exactly when to enter the stage for maximum impact.
The Volume Check ensures the audience is actually watching.
Without the strength filter, the trend filter would fail in ranging markets. Without the pullback trigger, entries would have poor risk-reward. This interdependent, sequential logic provides a unique and useful tool that goes beyond what a single indicator can offer.
4. How to Use This Script
Timeframe: Optimized for the 4-Hour (H4) chart, as this provides a balance between meaningful swings and actionable signals. It can also be used on the Daily (D1) chart for longer-term analysis.
BUY Signal (Green "BUY" Arrow): Appears only when a strong, confirmed uptrend experiences a temporary, oversold pullback and volume confirms renewed buying interest. This is a high-probability signal to consider a long position.
SELL Signal (Red "SELL" Arrow): Appears only when a strong, confirmed downtrend experiences a temporary, overbought rally and volume confirms renewed selling pressure. This is a high-probability signal to consider a short position.
Risk Management: This indicator provides entry signals only. It is crucial that you apply your own risk management rules. Always use a stop-loss and have a clear take-profit strategy for every trade.
Disclaimer: This tool is for decision-support and does not constitute financial advice. All trading involves risk. Past performance is not indicative of future results. Please backtest thoroughly before using this script with real capital.
Business Predictability | Robinhodl21Have you ever wondered why a company beats earnings estimates yet its stock barely moves—or even drops? It might be because the market already expected a beat. Companies that consistently outperform forecasts tend to attract higher expectations over time, so another “+20 % surprise” may no longer surprise anyone. In other cases, investors may weigh sales growth more heavily than earnings, especially in growth sectors where top-line momentum matters more than margin control.
This indicator was built to explore exactly that dynamic. It helps you quantify how predictable a business truly is, how consistently it beats (or misses) expectations, and how well management seems to understand and guide its own performance. It’s not a timing tool, but a quality lens for long-term stock pickers who want to identify stable, well-managed companies with disciplined forecasting and execution.
 What the indicator is 
its is designed to quantify how often and how well a company beats-or-misses expectations (earnings and sales) over multiple years, then map that into a “predictability” and “quantile” score that you can use to compare across stocks. Its core logic combines deviation from estimates, rolling history, and statistical ranking to highlight companies where the management and the business appear to be aligned, stable and reliable.
 Key features: 
(• Choice of financial data frequency: you can select FQ (quarterly) or FY (annual) mode so the indicator adapts to your preferred horizon.
(• Deviation calculation: earnings surprise and/or sales surprise can be combined via a weighted setup so you pick which metric drives the score.
(• History buffer: you choose how many “commit points” (i.e., past surprises) to include in the statistics and quantile calculations.
(• Quantile ranking: the tool computes how the company’s recent deviation stacks up versus its own history; in FY-mode we still use quarterly density for statistical robustness.
(• Predictability & volatility metrics: beyond the quantile, you get a predictability score (low recent deviation + low volatility) and a simple “moat” / management-quality overlay via the SLOAN ratio.
(• Status and CI table: the indicator comes with a visualization panel summarizing mean surprise, standard deviation, sample length, and your computed quantile and predictability grades.
(• Future box: optional forward-map showing the next earnings date, estimated deltas and flagged surprises.
 What it is not 
It is not a timing indicator (i.e., it won’t tell you when to buy or sell precisely). It does not predict short-term price movements. Instead, it is tuned for fundamental stock picking: look for companies that repeatedly deliver surprise results, for which you believe management and business model give an advantage. Use it to add an extra dimension of “earnings surprise stability & management forecasting quality” to your dashboard.
 My usage case 
I developed this indicator as part of a broader portfolio strategy: I screen for companies that are both highly predictable (i.e., rarely miss) and have the capacity to beat earnings by a meaningful margin, because I believe this reflects strong business execution and good internal alignment. Over time I plan to expand the dashboard with more indicators geared toward company quality and moat (quantitative metrics built from financial statement data). This version is still work in progress (there may be bugs), so consider the output as one more input—do not rely on it exclusively.
 Important caveats 
The code is relatively computation-intensive, especially with large lookback windows and quarterly frequency. On my Mac Pro it runs smoothly—but depending on your device and market data feed you may experience slower performance. Also: synchronising earnings release timing and sales release timing across companies is tricky—sometimes data lags or is updated later, so there may be discrepancies. Because of this the indicator’s output should be treated as a guide rather than a guarantee.
 Empirical background 
The academic literature supports the idea that consistent surprises and management execution can matter—but the relationship is complex. For example, research on post-earnings-announcement drift (PEAD) shows that markets often under-react to surprise earnings and that returns continue to drift in the direction of surprise for weeks or months.   At the same time, studies such as Skinner & Sloan (2000) show that when you control for growth expectations the relation of surprise to future returns becomes weaker.   In other words: just beating earnings by 20 % repeatedly does not guarantee outsized share-price gains, because market expectations adjust, estimates bake in the beat and other factors (discount rates, fundamentals) still dominate.
 Final word 
Use it as part of your fundamental stock-analysis toolkit to gauge how well a company consistently delivers relative to expectations, how volatile those surprises are, and whether you think management has a competitive edge in forecasting or executing. As mentioned, this is a work in progress and should not be your only tool—but used wisely, it can add a meaningful extra dimension to your decision-making. I’ll continue to improve it and add new quality-and-moat oriented indicators in future releases.
Index of Civilization DevelopmentIndex of Civilization Development Indicator 
This Pine Script (version 6) creates a custom technical indicator for TradingView, titled Index of Civilization Development. It generates a composite index by averaging normalized stock market performances from a selection of global country indices. The normalization is relative to each index's 100-period simple moving average (SMA), scaled to a percentage (100% baseline). This allows for a comparable "development" or performance metric across diverse markets, potentially highlighting trends in global economic or "civilizational" progress based on equity markets.The indicator plots as a single line in a separate pane (non-overlay) and is designed to handle up to 40 symbols to respect TradingView's request.security() call limits.Key FeaturesComposite Index Calculation: Fetches the previous bar's close (close ) and its 100-period SMA for each selected symbol.
Normalizes each: (close  / SMA(100)) * 100.
Averages the valid normalizations (ignores invalid/NA data) to produce a single "Index (%)" value.
Symbol Selection Modes:Top N Countries: Selects from a predefined list of the top 50 global stock indices (by market cap/importance, e.g., SPX for USA, SHCOMP for China). Options: Top 5, 15, 25, or 50.
Democratic Countries: ~38 symbols from democracies (e.g., SPX, NI225, NIFTY; based on democracy indices ≥6/10, including flawed/parliamentary systems).
Dictatorships: ~12 symbols from authoritarian/hybrid regimes (e.g., SHCOMP, TASI, IMOEX; scores <6/10).
Customization:Line color (default: blue).
Line width (1-5, default: 2).
Line style: Solid line (default), Stepline, or Circles.
Data Handling:Uses request.security() with lookahead enabled for real-time accuracy, gaps off, and invalid symbol ignoring.
Runs calculations on every bar, with max_bars_back=2000 for historical depth.
Arrays are populated only on the first bar (barstate.isfirst) for efficiency.
Predefined Symbol Lists (Examples)Top 50: SPX (USA), SHCOMP (China), NI225 (Japan), ..., BAX (Bahrain).
Democratic: Focuses on free-market democracies like USA, Japan, UK, Canada, EU nations, Australia, etc.
Dictatorships: Authoritarian markets like China, Saudi Arabia, Russia, Turkey, etc.
Usage TipsAdd to any chart (e.g., daily/weekly timeframe) to view the composite line.
Ideal for macro analysis: Compare democratic vs. authoritarian performance, or track "top world" equity health.
Potential Limitations: Relies on TradingView's symbol availability; some exotic indices (e.g., KWSEIDX) may fail if not supported. The 40-symbol cap prevents errors.
Interpretation: Values >100 indicate above-trend performance; <100 suggest underperformance relative to recent averages.
This script blends financial data with geopolitical categorization for a unique "civilization index" perspective on global markets. For modifications, ensure symbol tickers match TradingView's format.
X-GoldThis indicator visualizes the relationship between Gold’s global strength and the U.S. Dollar Index (DXY) to help traders identify periods of confluence or divergence between the two assets.
It combines:
# Gold Spread Index (GSI) – the average normalized value of XAU quoted against several major currencies (USD, AUD, CHF, EUR, GBP, and Silver).
This helps measure gold’s strength across global markets, not just against the U.S. dollar.
# Normalized DXY line – a z-scored and smoothed version of the U.S. Dollar Index for visual comparison.
The background highlights confluence zones:
🟢 Bullish Confluence – GSI trending up while DXY trends down
🔴 Bearish Confluence – GSI trending down while DXY trends up
⚫ Neutral / Divergence – both move in the same direction (often signals indecision or ranging conditions)
Key Features:
# Works on any timeframe
# Real-time background color zones for instant trend confluence visualization
# Optional alerts for buy/sell/neutral confluence transitions
# Clean layout in a separate panel for clear comparison
Disclaimer:
This script is for educational and analytical purposes only.
It does not provide financial advice or guarantee any trading outcomes.
Always perform your own analysis before making investment decisions.
Sessions - [CLEAN SESSION LEVELS UPDATED 2.0 ]s indicator automatically plots high and low levels for all major trading sessions — Asia, London, and New York — helping traders identify key liquidity zones and structure points throughout the day. Designed for precision and clarity, it adapts seamlessly across timeframes and pairs, making it ideal for session-based strategies, sweep setups, and intraday market structure analysis.
Eye on ValueEYE on Value auto-draws the core levels we use every day.
-Clean
-Consistent
9 Levels auto drawn for you
NY IB
Globex IB
European IB
Lunch Levels
MOC
Daily
Weekly
Monthly
Yearly
global credit spread with global yield curveglobal credit spread with global yield curve designed to give short term and longer term asset price reversal
Global Risk-On / Risk-Off: Global 2s10s + Credit SpreadGlobal Risk-On / Risk-Off: Global 2s10s + Credit Spread
Moving Average Trend Strategy V2.1 — With Stop Loss and Add Posi**Strategy Feature Description:**
---
### **Entry Logic:**
* When **MA7** crosses **MA15**, and the distance between **MA15** and **MA99** is less than **0.5%**
* When **MA15** crosses **MA99**, and the distance between **MA7** and **MA15** is less than **0.5%**
* When the distance among all three MAs (**MA7**, **MA15**, **MA99**) is less than **0.5%** (adjustable via parameters)
---
### **Capital Management:**
* Initial capital: **$100**
* Each position uses **15%** of total capital
* Opens **both long and short positions simultaneously** (dual-direction mode)
---
### **Risk Control:**
* **Long position stop-loss:** Entry price − 2%
* **Short position stop-loss:** Entry price + 2%
* Uses a **five-level take-profit grid**:
  * Every 5% profit → close 20% of position
* Any pending take-profit orders are automatically canceled when stop-loss triggers
---
### **Visualization Features:**
* Real-time display of the three moving averages
* Chart annotations for entry signal points
* All trade signals and performance can be viewed through **TradingView backtest reports**
---
### **Notes:**
* Parameters can be adjusted based on the volatility of the instrument (historical backtesting is recommended first)
* Dual-direction positions may generate **hedging costs** — recommended for low-fee markets
* Real trading must consider **exchange minimum order size limits**
* Suggest enabling a **volume filter mechanism** (extension interface already reserved)
* Always perform **historical backtesting and parameter optimization** in TradingView before connecting to live trading systems
Project Pegasus SideMap • VRP Heatmap • Volume Node DetectionDescription   CME_MINI:NQ1!  
 Project Pegasus – Volume SideMap V 1.0 builds a right-anchored horizontal volume heatmap silhouette, visualizing buy/sell participation per price level over any chosen lookback or visible range. It automatically detects Low-Volume Nodes (LVN), Medium-Volume Nodes (MVN), and High-Volume Nodes (HVN), while also marking Top Volume Peaks, POI Lines (Most-Touched Levels), and complete Value Area Levels (POC / VAH / VAL) including optional session highs/lows. 
 What’s Unique 
 Right-Fixed Rendering – All profile rows are anchored to the chart’s right edge, creating a consistent visual reference during live trading.
Gap-Free Silhouette – Each price row blends seamlessly with its neighbors, producing a clean and continuous volume shape.
Triple-Tier Node Detection (LVN / MVN / HVN) – Automatically highlights zones of rejection, transition, and acceptance based on relative volume strength.
Dynamic Binning System – Adapts to price range and lookback while preserving proportional per-row volume distribution.
POI Finder (Most Touches) – Highlights price rows that have been touched most frequently by bars (traffic clusters).
Top-N Peaks – Sorts and draws the strongest single-price clusters by total volume while respecting minimum spacing.
Integrated Value Area Metrics – Calculates and plots POC, VAH, and VAL with optional session High/Low markers.
Color Modes – Choose between heatmap intensity (volume-based) or buy/sell ratio blending for directional context.
Performance Optimized – Rebuilds only when structure changes, ensuring smooth operation even with large histories. 
 Technical Overview  
 1. Binning & Aggregation
The full price range is divided into a user-defined number of rows (bins) of equal height.
For each bar, traded volume is distributed across all intersecting bins proportionally to price overlap.
A buy/sell proxy is estimated based on candle close position, producing per-row Buy, Sell, and Total Volume arrays.
2. Silhouette Rendering
Each row’s strength = total volume ÷ maximum volume.
Two color modes:
• Volume Mode → intensity scales by relative volume (heatmap).
• Ratio Mode → blend between sell and buy base colors based on dominance (close position).
Weak or neutral rows can be faded or forced to minimum width via strength and ratio-deviation filters.
3. Node Detection (LVN / MVN / HVN)
Relative bands are defined by lower/upper % thresholds.
Consecutive rows meeting criteria are grouped into “bands.”
Optional gap-merge unifies nearby bands separated by small gaps (in ticks).
Quality filters:
• Min. Average in Band (%) → enforces minimum average participation.
• Min. Prominence vs. Neighbors (%) → compares contrast against adjacent volume peaks.
Enforces minimum center distance (in ticks) to prevent overlap.
Each valid band draws a Top/Bottom line pair and optional mid-label (LVN/MVN/HVN).
4. Volume Peaks
Ranks all rows by total volume (descending) and selects top N peaks with spacing filters.
Drawn as horizontal lines or labeled markers (P1, P2, etc.).
5. POI Lines (Most Touches)
During aggregation, each row counts how many bars overlap it.
The top X rows with highest touch counts are drawn as POI lines—often strong participation or mean-retest zones.
6. Value Area (POC / VAH / VAL)
POC = row with highest total volume.
Expands outward symmetrically until the configured Value Area % of total volume is covered.
VAH and VAL mark the acceptance range; optional High/Low lines outline total range boundaries.
7. Right-Fix Layout
All components are rendered relative to the chart’s rightmost bar.
Width dynamically scales with visible bars × % width setting, ensuring proportional scaling across zoom levels.
 How to Use 
Read market structure:
HVNs = high acceptance or balance areas → likely mean-reversion zones.
LVNs = thin participation → breakout or rejection points (“air pockets”).
MVNs = transition areas between acceptance and rejection.
Trade around POC / VAH / VAL:
These levels represent fair-value boundaries and rotational pivots.
POI & Peaks:
Use them as strong reference lines for responsive trading decisions.
Ratio-Color Mode:
Exposes directional imbalance and potential absorption zones visually.
Best practice:
Live trading → right-fix active, moderate row count.
Post-session analysis → higher granularity, LVN/HVN/MVN and peaks enabled with labels. 
 Key Settings 
 Core
Lookback length or visible-range mode
Row count (granularity)
Profile width (% of visible bars)
Right offset, minimum box width, transparency
Date Filter
Aggregate only bars from a defined start date onward.
Coloring
Buy/Sell ratio mode toggle
Base colors for buy and sell volume
Filters
Minimum ratio deviation (±) → ignore nearly balanced rows
Minimum volume strength (%) → fade weak rows
LVN / MVN / HVN Detection
Independent enable toggles
Lower/upper % thresholds
Minimum band height (rows)
Merge small gaps (ticks)
Minimum average in band (%)
Minimum prominence vs. neighbors (%)
Minimum distance between bands (ticks)
Line color, width, style, and label options
Peaks
Number of peaks (0–20)
Minimum distance between peaks (ticks)
Color, width, style, label placement
POI Lines
Enable toggle
POI count (1–5)
Minimum gap between POIs (rows)
Color, width, style, label offset
Value Levels (POC / VAH / VAL)
Show/hide Value Area Levels
Value Area % coverage
POC / VAH / VAL line styles, widths, colors
Optional Session High/Low lines 
 Notes & Limitations 
 Optimized for intraday and swing data; accuracy depends on chart volume granularity.
Large lookbacks with high row counts and all detection layers enabled may impact performance—adjust parameters for balance.
Buy/Sell ratio is a visual approximation based on candle structure, not actual order-book delta.
Designed as a contextual visualization tool, not a trade signal generator. 
 Disclaimer 
 For educational and informational purposes only.
Not financial advice.
Liquidity Index with Advanced Statistical NormalizationLiquidity Index with Advanced Statistical Normalization
  An open-source TradingView indicator for analyzing global liquidity cycles using robust statistical methods
  Overview
  This Pine Script indicator combines multiple macroeconomic data sources to construct a composite liquidity index that tracks global financial conditions. It employs advanced statistical techniques typically found in quantitative finance research, adapted for real-time charting.
  Key Features
  📊 Multi-Source Data Integration
  - Federal Reserve Components: Fed Funds Rate, Reverse Repo (RRP), Treasury General Account (TGA)
  - PBOC Components: China M2 Money Stock adjusted by CNY/USD exchange rate
  - Volatility Index: MOVE Index (bond market volatility)
  🔬 Advanced Statistical Methods
  1. Theil-Sen Estimator: Robust trend detection resistant to outliers
  2. Triple Normalization:
    - Z-score normalization
    - MAD (Median Absolute Deviation) normalization
    - Quantile normalization via inverse normal CDF
  3. Multi-Timeframe Analysis: Short (8-bar) and long (34-bar) windows with blended composite
  📈 Signal Processing
  - Log-transformation for non-linear relationships
  - Smoothing via customizable SMA
  - Composite signal averaging across normalization methods
  Why This Approach?
  Traditional liquidity indicators often suffer from:
  - Sensitivity to outliers in economic data
  - Assumption of normal distributions
  - Single-timeframe bias
  This script addresses these issues by:
  - Using median-based robust statistics (Theil-Sen, MAD)
  - Applying multiple normalization techniques
  - Blending short and long-term perspectives
  Customization Options
  short_length      // Short window (default: 8)
  long_length       // Long window (default: 34)
  show_short        // Display short composite
  show_long         // Display long composite
  show_blended      // Display blended signal
  smoothing_length  // SMA smoothing period (default: 10)
  How to Use
  1. Liquidity Expansion (positive values): Risk-on environment, favorable for asset prices
  2. Liquidity Contraction (negative values): Risk-off environment, potential market stress
  3. Divergences: Compare indicator direction vs. price action for early warnings
  Potential Improvements
  Community members are encouraged to enhance:
  - Additional data sources (ECB balance sheet, BOJ operations, etc.)
  - Alternative normalization methods (robust scaling, rank transformation)
  - Machine learning integration (LSTM forecasting, regime detection)
  - Alert conditions for liquidity inflection points
  - Volatility-adjusted weighting schemes
  Technical Notes
  - Uses request.security() for multi-symbol data fetching
  - All calculations handle missing data via nz() functions
  - Median-based statistics computed via array operations
  - Custom inverse CDF approximation (no external libraries required)
  Contributing
  This is a foundation for liquidity analysis. Potential extensions:
  - LLM Integration: Use language models to parse Fed/PBOC meeting minutes and adjust weights dynamically
  - Sentiment Layer: Incorporate crypto funding rates or options skew
  - Adaptive Parameters: Auto-tune window lengths based on market regime
  - Cross-Asset Validation: Backtest signals against BTC, equities, bonds
  ---
  License: Open source - modify and redistribute freelyDisclaimer: For educational purposes only. Not financial advice.
Live Volume TickerGives current real-time volume of tick movements denoted in the timeframe of the current candle.
PPI Inflation Monitor (Change YoY & MoM)📊 PPI Inflation Monitor - Leading Inflation Indicator
The Producer Price Index (PPI) measures wholesale/producer-level prices and serves as a critical leading indicator for consumer inflation trends. This tool helps you anticipate CPI movements and identify corporate margin pressures before they show up in earnings.
🎯 KEY FEATURES:
- Dual Perspective Analysis:
  - Year-over-Year (YoY): Histogram bars showing annual producer price inflation
  - Month-over-Month (MoM): Line overlay showing monthly wholesale price changes
  
- Visual Reference System:
  - Dashed line at 2% (typical target for producer price inflation)
  - Dotted line at 0.17% (equivalent monthly target)
  - Color-coded bars: Red above target, Green below target
  
- Real-Time Data Table:
  - Current PPI Index value
  - YoY inflation rate with color coding
  - MoM inflation rate with color coding
  - Deviation from target level
- Automated Alerts:
  - YoY crosses above/below target
  - MoM crosses above/below target
  - Early warning system for inflation trends
📈 WHY PPI IS YOUR EARLY WARNING SYSTEM:
PPI typically leads CPI by 1-3 months because:
- Producers face cost increases first
- These costs are eventually passed to consumers
- Shows whether companies can maintain pricing power
Rising PPI with stable CPI = Margin compression → Bearish for stocks
Rising PPI followed by rising CPI = Broad inflation → Fed hawkishness incoming
Falling PPI = Disinflationary trend starting → Positive for risk assets
🔍 TRADING APPLICATIONS:
1. Lead Time Advantage: Position before CPI confirms PPI trends
2. Sector Rotation: High PPI = favor companies with pricing power
3. Margin Analysis: PPI-CPI divergence = margin pressure/expansion signals
4. Fed Anticipation: PPI acceleration = Fed likely to turn hawkish soon
💡 STRATEGIC USE CASES:
- Value vs. Growth: Rising PPI favors value stocks with pricing power
- Commodities: PPI often correlates with commodity price trends
- Small Caps: More vulnerable to input cost increases (high PPI = cautious)
- Corporate Earnings: Anticipate margin pressure before quarterly reports
🔄 COMBINE WITH:
- CPI: Confirm if producer costs reach consumers
- PCE: Validate Fed's preferred inflation metric response
- Fed Funds Rate: Assess if Fed is behind/ahead of curve
📊 DATA SOURCE:
Official PPI data from FRED (Federal Reserve Economic Data), updated monthly when new data releases occur.
🎨 CUSTOMIZATION:
Fully customizable:
- Toggle YoY/MoM displays
- Adjust reference target levels
- Customize colors
- Show/hide absolute PPI values
Perfect for: Macro traders, fundamental analysts, earnings traders, and investors seeking early inflation signals before they appear in consumer prices.
⚡ Remember: PPI leads CPI. Use this advantage to position ahead of the crowd.
PCE Inflation Monitor (Change YoY & MoM)📊 PCE Inflation Monitor - The Fed's Most Important Metric
Personal Consumption Expenditures (PCE) is the Federal Reserve's preferred inflation measure and THE metric they target for their 2% inflation goal. If you want to predict Fed policy, you need to watch PCE.
🎯 KEY FEATURES:
- Dual Perspective Analysis:
  - Year-over-Year (YoY): Histogram bars showing annual PCE inflation
  - Month-over-Month (MoM): Line overlay showing monthly consumption price changes
  
- Visual Reference System:
  - Dashed line at 2% (Fed's official PCE inflation target)
  - Dotted line at 0.17% (equivalent monthly target)
  - Color-coded bars: Red above Fed target, Green below target
  
- Real-Time Data Table:
  - Current PCE Index value
  - YoY inflation rate vs. Fed's 2% target
  - MoM inflation rate with color coding
  - Exact deviation from Fed target (critical for policy predictions)
- Automated Alerts:
  - PCE crosses Fed's 2% target (major policy signal!)
  - MoM crosses monthly target
  - Stay informed of Fed-relevant inflation changes
📈 WHY PCE IS DIFFERENT (AND MORE IMPORTANT):
PCE vs. CPI differences:
- Flexible basket: PCE adjusts for substitution (beef → chicken if prices rise)
- Broader coverage: Includes healthcare paid by insurance/government
- Lower readings: Typically 0.2-0.4% below CPI
- Fed's choice: Explicitly stated as their target metric
Most importantly: When Powell speaks about "our 2% target," he means PCE, not CPI!
🔍 TRADING IMPLICATIONS:
PCE Above 2% (Red Zone):
→ Fed under pressure to maintain/raise rates
→ Hawkish policy stance likely
→ Negative for growth stocks, crypto
→ Positive for USD, bearish for gold
PCE Below 2% (Green Zone):
→ Fed has flexibility to cut rates
→ Dovish policy stance possible
→ Positive for risk assets, growth stocks
→ Negative for USD, bullish for commodities
PCE Approaching 2% from Above:
→ Fed "mission accomplished" narrative
→ Rate cut cycle becomes possible
→ Major bullish signal for equities/crypto
💡 ADVANCED STRATEGIES:
1. Fed Meeting Preparation: Check PCE before FOMC meetings for policy clues
2. Dot Plot Predictions: PCE trend determines Fed's rate forecast updates
3. Pivot Timing: When PCE MoM turns negative, Fed pivot becomes realistic
4. Press Conference Analysis: Compare Powell's comments to PCE deviation
🎯 KEY LEVELS TO WATCH:
- 2.0% YoY: Fed's official target - crossing this level is major news
- 2.5% YoY: "Uncomfortably high" - Fed forced to stay restrictive
- 3.0% YoY: "Crisis mode" - Fed turns very hawkish
- 1.5% YoY: "Below target" - Rate cuts become likely
🔄 COMBINE WITH:
- CPI: Public perception vs. Fed's metric (often diverge)
- Core PCE: Even more important (excludes food/energy volatility)
- Fed Funds Rate: Is Fed responding appropriately to PCE?
📊 DATA SOURCE:
Official PCE data from FRED (Federal Reserve Economic Data), updated monthly typically in the last week of each month (after CPI/PPI releases).
🎨 CUSTOMIZATION:
Fully customizable:
- Toggle YoY/MoM displays
- Adjust Fed target if needed
- Customize colors
- Show/hide absolute PCE values
Perfect for: Fed watchers, macro traders, policy analysts, and serious investors who want to predict monetary policy changes before they happen.
⚠️ CRITICAL INSIGHT: While media focuses on CPI, the Fed focuses on PCE. Trade what the Fed trades, not what the headlines say.
🎓 Pro Tip: Fed members often mention "Core PCE" (excluding food/energy). Consider adding that indicator alongside this one for complete Fed policy analysis.
CPI Inflation Monitor (Change YoY & MoM)📊 CPI Inflation Monitor - Complete Macro Analysis Tool
This indicator provides a comprehensive view of Consumer Price Index (CPI) inflation trends, essential for understanding monetary policy, market conditions, and making informed trading decisions.
🎯 KEY FEATURES:
- Dual Perspective Analysis:
  - Year-over-Year (YoY): Histogram bars showing annual inflation rate
  - Month-over-Month (MoM): Line overlay showing monthly price changes
  
- Visual Reference System:
  - Dashed line at 2% (Fed's official inflation target for YoY)
  - Dotted line at 0.17% (equivalent monthly target for MoM)
  - Color-coded bars: Red above target, Green below target
  
- Real-Time Data Table:
  - Current CPI Index value
  - YoY inflation rate with color coding
  - MoM inflation rate with color coding
  - Deviation from Fed target
- Automated Alerts:
  - YoY crosses above/below 2% target
  - MoM crosses above/below 0.17% target
  - Perfect for staying informed without constant monitoring
📈 WHY THIS MATTERS FOR TRADERS:
CPI is the most widely reported inflation metric and directly influences:
- Federal Reserve interest rate decisions
- Bond yields and currency valuations
- Stock market sentiment (especially growth vs. value rotation)
- Cryptocurrency and risk asset performance
Rising inflation (red bars) typically leads to:
→ Higher interest rates → Negative for growth stocks, crypto
→ Stronger USD → Pressure on commodities
Falling inflation (green bars) typically leads to:
→ Rate cut expectations → Positive for growth stocks, crypto
→ Weaker USD → Support for commodities
🔍 HOW TO USE:
1. Strategic Positioning: Use YoY trend (thick bars) for long-term asset allocation
2. Tactical Timing: Use MoM trend (thin line) to identify turning points early
3. Divergence Trading: When MoM falls but YoY remains high, anticipate trend reversal
4. Fed Policy Prediction: Distance from 2% target indicates Fed's likely hawkishness
💡 PRO TIPS:
- Multiple months of MoM above 0.3% = Accelerating inflation → Fed turns hawkish
- MoM turning negative while YoY still elevated = Peak inflation → Position for pivot
- Compare with PPI and PCE indicators for complete inflation picture
- Use alerts to catch important threshold crossings automatically
📊 DATA SOURCE:
Official CPI data from FRED (Federal Reserve Economic Data), updated monthly mid-month when new data releases occur.
🎨 CUSTOMIZATION:
Fully customizable through settings:
- Toggle YoY/MoM displays
- Adjust target levels
- Customize colors for visual preference
- Show/hide absolute CPI values
Perfect for: Macro traders, swing traders, long-term investors, and anyone wanting to understand the inflation environment affecting their portfolio.
Note: This indicator works on any chart timeframe as it loads external monthly economic data.
FX vs Yield-Spread OscillatorFollow me at for more guidance on how to use the indicator: 
www.instagram.com
The FX vs Yield-Spread Oscillator measures how an exchange rate’s movement compares with changes in its corresponding interest-rate differential. It quantifies whether a currency pair is moving in line with, or diverging from, the bond-market forces that normally drive it.
At its core, the indicator tracks the relative performance between:
 
 The price change of the selected FX pair, and
 The change in the yield spread between the base country’s and quote country’s government bonds (e.g., US02Y − JP02Y for USDJPY).
 
 
Concept of Indicator 
Currencies tend to strengthen when their domestic yields rise faster than their counterpart’s—reflecting higher expected returns or tighter monetary policy. This indicator visualizes that relationship dynamically.
When the oscillator rises, the FX pair is outperforming what the yield spread implies (the currency is stronger than rates alone justify).
When it falls, the pair is underperforming the spread (rates are favorable, but the currency lags).
Key Features
 
 Auto-mapping: Detects the chart’s base and quote currencies and automatically selects their corresponding bond yields from TradingView’s TVC database.
 Tenor Control: Choose bond maturity (1-month to 10-year) to match your trading horizon.
 Mode Selection: Compare moves using percentage change or basis-point (bps) spread delta.
 Rescaled Oscillator: Normalized between −100 and +100, highlighting relative extremes over a chosen look-back window.
 Visual Alerts: Shaded background marks strong positive (overperformance) and negative (underperformance) zones.
 Manual Override: Manually specify yield symbols if your data plan uses different tickers (e.g., DE02Y for EUR).
 Alerts: Optional signals when the oscillator crosses zero or predefined upper/lower thresholds.
 
Interpretation
 
 Above +75 / below −75: FX price has deviated sharply from yield-spread behavior—potential exhaustion or continuation zone.
 Crossing 0: Realignment between FX movement and yield differential; often coincides with regime or sentiment shifts.
 Persistent divergence: May indicate risk-sentiment decoupling (safe-haven flows, intervention expectations, or commodity-price effects).
 
Typical Uses
 
 Intraday or swing-trading confirmation of rate-driven impulses.
 Identifying when currencies are over- or under-reacting to bond-market repricing.
 Cross-checking macro trades (e.g., carry trades, policy-expectation trades).
 Early warning when price diverges from fundamental yield direction.
CMF, RSI, CCI, MACD, OBV, Fisher, Stoch RSI, ADX (+DI/-DI)Eight normalized indicators are used in conjunction with the CMF, CCI, MACD, and Stoch RSI indicators. You can track buy and sell decisions by tracking swings. The zero line is for reversal tracking at -20, +20, +50, and +80. You can use any of the nine indicators individually or in combination.
Quarterly Financials on Chart with Estimates by SpeedEdge)# Quarterly Financials on Chart with Estimates
## WHAT THIS SCRIPT DOES
This indicator displays comprehensive quarterly financial data directly on your trading chart, eliminating the need to switch between charting and fundamental analysis platforms. The script automatically fetches and organizes key financial metrics including earnings per share (EPS), revenue, operating margins, depreciation & amortization, and quarterly estimates alongside actual results for comparative analysis.
## WHY THIS COMBINATION IS ORIGINAL AND USEFUL
**The Problem Solved:** Traders conducting fundamental analysis typically need to toggle between trading charts and separate financial platforms to view quarterly results, estimates, and year-over-year comparisons. This workflow is inefficient and makes it difficult to correlate price movements with earnings announcements.
**The Solution:** This script integrates fundamental financial data directly into the price chart environment, providing:
- Side-by-side comparison of quarterly estimates versus actual results
- Automatic calculation of Quarter-over-Quarter (QoQ) and Year-over-Year (YoY) growth rates
- Color-coded visualization of financial performance trends
- Regional number formatting (Indian Crores or Global Billions/Millions)
- Key valuation metrics (Market Cap, Free Float, PEG Ratio, CFO/EBITDA) in header
**Unique Features:**
1. **Dual Number Format System**: Automatically formats financial figures in Indian Crores (Cr, K Cr, L Cr) or Global formats (M, B, T) based on user preference
2. **Estimate Integration**: Shows analyst estimates for upcoming quarters alongside historical actuals for beat/miss analysis
3. **Intelligent Growth Analysis**: Automatically calculates and color-codes quarterly and yearly growth comparisons with smart handling of missing data
4. **Context-Aware Color Coding**: Green/red visualization adapts based on metric type - growth metrics, cash flow quality indicators, and expense trends each use appropriate color logic
5. **Configurable History**: Display 4 to 20 previous quarters based on analysis needs
## HOW THE SCRIPT WORKS TECHNICALLY
### Core Methodology:
**1. Financial Data Integration:**
The script accesses quarterly and annual financial statement data from public company filings, including:
- **Earnings Estimates**: Analyst consensus forecasts for upcoming quarters
- **Quarterly Actuals**: Reported earnings per share, revenue, margins, and operating expenses
- **Key Ratios**: Shares outstanding data, valuation multiples, and cash flow metrics
All data is sourced from TradingView's fundamental database, which aggregates information from official regulatory filings (10-Q, 10-K, annual reports) filed by publicly traded companies.
**2. Historical Data Organization:**
The script employs a sophisticated data structure system that:
- Detects when new quarterly results are released by monitoring data changes
- Automatically indexes financial data by quarters relative to the current date
- Creates a chronological timeline of financial performance
- Maintains historical records for comparison calculations
- Updates dynamically as new earnings are reported
**3. Intelligent Number Formatting:**
**Indian Regional Format:**
- Converts absolute values to Crore denomination (1 Crore = 10 Million)
- Scales to Thousand Crores (K Cr) for mid-size companies
- Scales to Lakh Crores (L Cr) for large corporations
- Appropriate for analyzing Indian market stocks
**Global Standard Format:**
- Uses Million (M) for smaller companies
- Scales to Billion (B) for mid-cap and large-cap stocks
- Uses Trillion (T) for mega-cap corporations
- Thousands (K) for smaller financial figures
- Standard across US and international markets
**4. Comparative Growth Analysis:**
**Quarter-over-Quarter (QoQ) Calculations:**
The script compares each quarter's performance against the immediately preceding quarter to identify:
- Sequential growth trends
- Momentum acceleration or deceleration
- Short-term business trajectory
- Seasonal pattern changes
**Year-over-Year (YoY) Calculations:**
Compares each quarter against the same quarter from the previous year to:
- Eliminate seasonal effects
- Identify sustainable growth trends
- Normalize for business cycles
- Provide apples-to-apples comparison
Both calculations automatically handle edge cases like missing data, account for different fiscal year conventions, and provide meaningful "N/A" indicators when comparative data is unavailable.
**5. Adaptive Color Coding System:**
**Growth Metrics (EPS, Revenue):**
- Positive growth → Green shading indicates improving performance
- Negative growth → Red shading signals declining performance
- Missing data → Gray indicates insufficient information
**Quality Indicators (Free Float %):**
- Lower float (<40%) → Green indicates potentially better supply-demand dynamics
- Higher float (≥40%) → Red suggests more diluted ownership
**Cash Flow Quality (CFO/EBITDA):**
- Strong cash conversion (≥50%) → Green shows quality earnings
- Weak cash conversion (<50%) → Red flags potential accounting concerns
**Expense Trends (Depreciation & Amortization):**
- Decreasing D&A → Green indicates improving cash flow characteristics
- Increasing D&A → Red suggests rising capital intensity
- Stable D&A → Default color shows consistency
**Future Estimates:**
- Yellow coloring clearly distinguishes forward-looking estimates from historical actuals
**6. Date and Quarter Intelligence:**
The script automatically:
- Determines the current financial quarter based on real-time date
- Maps calendar months to fiscal quarters (Q1-Q4)
- Handles different fiscal year conventions globally
- Calculates quarter differentials for accurate historical lookback
- Formats display labels showing quarter-end months and years (e.g., "Mar 24", "Dec 23")
### Advanced Calculations:
**Free Float Percentage:**
Calculates the proportion of shares available for public trading relative to total shares outstanding. Lower percentages indicate more concentrated ownership, which can affect volatility and liquidity.
**Market Capitalization:**
Real-time calculation using total shares outstanding multiplied by current market price, automatically updated with each price tick and formatted according to regional preferences.
**CFO/EBITDA Cash Quality Ratio:**
Measures what percentage of accounting earnings converts to actual operating cash flow. Higher ratios indicate better earnings quality and less aggressive accounting. Industry standards vary, but 60-100% typically signals strong cash generation.
**Operating Profit Margin Tracking:**
Monitors the percentage of revenue retained as operating profit after deducting operating expenses, providing insight into operational efficiency and pricing power trends.
## HOW TO USE THIS SCRIPT
### Initial Setup:
**1. Region Configuration:**
- **India**: Select for Indian stocks - formats numbers in Crores (₹10M = 1 Cr)
- **Global**: Select for international stocks - formats in Millions/Billions
**2. Display Settings:**
- **Position**: Choose table location on chart (Top Right recommended)
- **Table Size**: Adjust based on screen resolution (Normal is default)
- **Short Labels**: Enable to condense industry/sector names for space saving
- **Lookback Quarters**: Set how many previous quarters to display (4-20, default 5)
**3. Visual Customization:**
- **Background Color**: Customize table background color and transparency
- **Text Color**: Adjust text color for visibility
- **Border/Frame Colors**: Modify table borders for preferred appearance
### Reading the Dashboard:
**Header Section (Top 3 Rows):**
**Row 1:**
- **Ticker | Mcap**: Company symbol and current market capitalization
- **FF (Free Float)**: Percentage of freely traded shares (Green < 40% is positive, Red ≥ 40%)
- **CFO/EBITDA**: Cash flow quality ratio (Green ≥ 50% is positive, Red < 50%)
**Row 2:**
- **Industry**: Company's specific industry classification
- **Sector**: Broader sector classification
- **PEG Ratio**: Price/Earnings to Growth ratio (< 1 traditionally considered undervalued)
**Data Section:**
**Column Explanations:**
1. **Fin Q**: Financial quarter (format: "Mar 24" = Q4 FY2024 ending March)
2. **EPS**: Earnings Per Share in reporting currency
3. **QoQ %**: EPS growth versus previous quarter (Green = increase, Red = decrease)
4. **YoY %**: EPS growth versus same quarter last year
5. **Sales**: Total revenue (formatted in Cr or M/B based on region)
6. **QoQ %**: Revenue growth versus previous quarter
7. **YoY %**: Revenue growth versus same quarter last year
8. **OPM %**: Operating Profit Margin percentage
9. **D&A**: Depreciation & Amortization (Green if decreasing = cash flow positive)
**Estimates Row (Yellow Text):**
- Shows "Q Est." for upcoming quarter
- Displays analyst consensus estimates for EPS and Sales
- Compare actuals against estimates after earnings release to identify beats/misses
### Trading Applications:
**Fundamental Analysis:**
- **Earnings Quality Check**: Look for consistent QoQ and YoY growth in both EPS and Sales
- **Margin Trend Analysis**: Monitor OPM % changes to assess operational efficiency
- **Estimate Comparison**: Identify stocks that consistently beat or miss estimates
- **Cash Flow Validation**: Use CFO/EBITDA ratio to verify earnings quality
**Entry/Exit Timing:**
- **Post-Earnings Analysis**: Check if stock beat estimates and by what margin
- **Trend Confirmation**: Strong YoY growth + improving margins = positive fundamentals
- **Warning Signs**: Declining margins, negative growth, or deteriorating CFO/EBITDA
**Portfolio Screening:**
- **Growth Stocks**: Look for consistent QoQ and YoY EPS/Sales growth
- **Value Stocks**: Low PEG ratios combined with positive fundamentals
- **Quality Filter**: High CFO/EBITDA ratios (>75%) indicate superior cash generation
### Interpretation Guidelines:
**Strong Fundamental Setup:**
- YoY growth > 15% in both EPS and Sales
- QoQ growth positive for 2+ consecutive quarters
- OPM % stable or improving
- CFO/EBITDA > 60%
- Actual results exceed estimates
**Concerning Signals:**
- Declining YoY growth rates
- Shrinking operating margins
- Consistently missing estimates
- CFO/EBITDA < 40%
- Increasing D&A as percentage of revenue
## IMPORTANT USAGE NOTES
**Data Limitations:**
- Financial data depends on official company filings and reporting schedules
- Some stocks may have incomplete historical data depending on listing history
- Estimates may not be available for all companies, especially smaller-cap stocks
- Data updates occur after official earnings releases, not in real-time during announcements
**Realistic Expectations:**
- This tool displays historical fundamental data for analysis - not predictive signals
- Always verify critical financial data with official company filings when making investment decisions
- Fundamental analysis should complement technical analysis, not replace it
- Past financial performance does not guarantee future results
- Earnings estimates are analyst opinions, not certainties
**Best Practices:**
- Cross-reference important data points with company investor relations pages
- Consider industry-specific metrics beyond the displayed general figures
- Use in conjunction with technical indicators for comprehensive analysis
- Monitor for data anomalies (stock splits, accounting changes, restatements) that may affect comparisons
- Understand that different accounting standards (GAAP vs IFRS) may affect international comparisons
**Regional Considerations:**
- Indian stocks: Numbers in Crores (1 Cr = 10 Million Rupees)
- Global stocks: Numbers in standard M/B/T format
- Currency conversions are not performed - data shown in reporting currency
- Fiscal year conventions vary by region (India typically uses Apr-Mar fiscal year, US uses Jan-Dec or custom fiscal years)
- Different markets have different reporting timelines and requirements
## CONFIGURATION RECOMMENDATIONS
**For Indian Stocks:**
- Region: India
- Lookback: 5-8 quarters (recommended)
- Focus on YoY growth due to seasonal business patterns in many Indian companies
**For US/Global Stocks:**
- Region: Global  
- Lookback: 4-6 quarters for tech/growth stocks
- Lookback: 8-12 quarters for cyclical/industrial stocks
- Monitor QoQ trends closely for rapid-growth sectors
**For Long-term Investors:**
- Increase lookback to 12-20 quarters to see multi-year trends
- Focus on consistency rather than individual quarter volatility
- Pay close attention to CFO/EBITDA quality metric for sustainable businesses
- Look for stable or improving margins over extended periods
**For Active Traders:**
- Use 4-6 quarter lookback for recent trend focus
- Concentrate on latest QoQ trends and estimate beats/misses
- Monitor table closely before/after earnings announcements
- Compare estimate versus actual immediately post-earnings for trading opportunities
**For Swing Traders:**
- 6-8 quarter lookback provides good balance
- Focus on acceleration/deceleration in growth rates
- Use margin trends to identify operational inflection points
- Combine with technical analysis for optimal entry/exit timing
This script serves as a comprehensive fundamental analysis tool for traders and investors who want seamless chart integration of financial data without workflow interruption, enabling faster and more informed decision-making.
MariTrades Gold Indicator B-Stop loss and Take profitsThe MariTrades Gold Indicator B is an original Trading View script designed to help traders visualize entry points, stop loss (SL), take profit (TP), and key structure levels on gold charts. This publication fully complies with Trading View’s public script rules, including originality, English description, chart clarity, and Pine Script v5 usage.
Key Features:
Break of Structure (BOS) Detection:
  
Detects trend reversals by identifying when price closes above/below the previous swing high/low.
BOS signals are marked on the chart for both buy and sell opportunities.
Fibonacci Retracement Levels:
Automatically plots retracements from the last swing high to swing low.
(NOT LABELLED)
Entry signals are confirmed when price retraces to these levels after BOS.
  
Automatic SL and TP Visualization:
Stop loss and take profit levels are drawn directly on the chart.
Default values: SL = 5 pips, TP = 10 pips (customizable via inputs).
Entry Signals:
Buy: Price breaks structure (BOS) and retraces to Fibonacci level → label and lines drawn.
Sell: Price breaks structure (BOS) and retraces to Fibonacci level → label and lines drawn.
Clean, readable chart overlay:
  
Previous signals are automatically removed to avoid clutter.
SL lines in red, TP lines in green, entry labels clearly displayed.






















