EPS QoQ % ChangeThis indicator calculates and displays the quarter-over-quarter (QoQ) percentage change in earnings per share (EPS) directly on your chart, aligned with each earnings event.
It is designed to quickly highlight EPS growth or decline without the need to open an earnings report, providing traders and investors with instant, visual performance context.
Features :
- Automatic Earnings Detection: Identifies earnings bars and calculates QoQ % change.
- Color-Coded Text: Positive changes are shown in your chosen “up” color, declines in your “down” color, and flat results in a neutral color.
- Customizable Appearance: Choose text size and colors to match your chart style.
- Tooltip Support: Optional detailed tooltip showing reported EPS, previous EPS, and calculated QoQ change.
- Compact Layout: Displays in its own pane to avoid cluttering price action.
Use Cases :
- Quickly assess EPS growth trends over time.
- Spot significant earnings beats or misses without reading earnings transcripts.
- Use alongside other technical or fundamental tools for better decision-making.
Earnings
Earnings X-Ray and Fundamentals Data:VSMarketTrendThis indicator calculates essential financial metrics for stocks using TradingView's built-in functions and custom algorithms. The values are derived from fundamental data sources available on TradingView.
Key Output Metrics(YOY Basic Quaterly DATA)
MC (Market Cap): Company’s total market value (Price × Total Shares).
TS (Total Shares Outstanding): All shares (float + restricted) in circulation.
Sales: Annual revenue (TTM or latest fiscal year).
NETIn: Net income
P/E (Price-to-Earnings): Valuation ratio (Market Cap / Net Income or Price / EPS).
EPS (Earnings Per Share): Net income per share (Net Income / TS).
OPM (Operating Margin %): Core profitability (Operating Income / Revenue × 100).
Quick Ratio: Short-term liquidity ((Current Assets – Inventory) / Current Liabilities).
BVPS (Book Value Per Share): Equity per share (Shareholders’ Equity / TS).
PS (Price-to-Sales): Revenue-based valuation (Market Cap / Annual Revenue).
FCF (Free Cash Flow Per Share): Post-CapEx cash ((Operating Cash Flow – CapEx) / TS).
Data Sources & Methods
Uses TradingView’s request.financial() for income/balance sheet data (Revenue, EBITDA, etc.).
Fetches real-time metrics via request.security() (e.g., Shares Outstanding).
Normalizes data across timeframes (quarterly/annual).
Disclaimer
Not financial advice. Verify with official filings before trading.
LevelUp^ Power Earnings Gap & EPS Acceleration ScreenerCustomizable Pine Screener to scan for stocks with a Power Earnings Gap as well as accelerating earnings and sales. Historical analysis shows that strong earnings often trigger institutional buying, pushing prices higher and increasing the likelihood of sustained price gains.
🔹 Power Earnings Gap (PEG)
A power earnings gap refers to a significant price gap up after an earnings report, reflecting a rapid shift in investor sentiment and perceived value. It’s called "power" because the move is often sharp, sustained, and accompanied by high trading volume, signaling a potential trend continuation or reversal.
A gap is the difference between the closing price of a stock on the day before an earnings report and the opening price the next trading day. A power earnings gap typically exceeds a certain threshold (e.g., 8-10% or more) and is driven by earnings surprises, guidance changes, or other significant news.
Strong earnings beats, misses, or forward-looking guidance can trigger these gaps. For example, a company reporting higher-than-expected profits or raising guidance might gap up, while a miss or weak outlook could cause a gap down.
The gap is often accompanied by above-average trading volume, confirming the move's strength. Power gaps often lead to sustained price movement in the direction of the gap (continuation) or signal a reversal if the gap fills quickly.
How Power Earnings Gap Be Helpful
▪ Power earnings gaps often indicate strong momentum. Traders can capitalize on this by entering trades in the direction of the gap (e.g., buying on a gap-up if the trend continues).
Example: If a stock gaps up 10% after a stellar earnings report and shows high volume, traders might buy, expecting further upside as momentum builds.
▪ Breakout Opportunities: A gap through key technical levels (e.g., resistance or support) can signal a breakout. Traders use these gaps to identify potential long-term trends.
Example: A stock breaking above a resistance level on a power earnings gap may continue to rally, offering a setup for swing or position traders.
▪ Volatility for Short-Term Trades: Earnings gaps create heightened volatility, ideal for day traders or scalpers. The large price swings allow for quick profits if timed correctly.
Example: A trader might use options (e.g., calls for a gap-up, puts for a gap-down) to leverage the volatility around earnings.
▪ Confirmation of Fundamental Strength/Weakness: A power earning gap often reflects a fundamental shift, e.g., strong earnings growth or a major business development. Traders can use this to align technical setups with fundamental catalysts.
Example: A gap-up after a company raises its full-year guidance might signal a long-term buying opportunity.
▪ Risk Management and Stop Losses: Gaps provide clear levels for setting stop-loss orders. For instance, traders might place stops at or below the gap up bar low to protect against a potential reversal.
Example: If a stock gaps up from $100 to $110 and intraday hits a low of $105, a trader might set a stop at $105 or lower to limit downside risk.
▪ Gap Fill Strategies:Some traders bet on gaps filling, i.e., the stock returning to its pre-gap price. If a power earnings gap seems overextended (e.g., due to market overreaction), contrarian traders might short a gap-up or buy a gap-down, anticipating a pullback.
Example: A stock gaps up 15% but lacks volume or follow-through; a trader might short it, expecting the price to retreat.
🔹 Earnings and Sales Acceleration
Earnings and sales acceleration refers to the rate of growth in a company's earnings over consecutive quarters. It highlights companies that are not only growing but doing so at an accelerating pace, signaling improving financial health and operational momentum. This metric is derived from earnings reports, which detail a company’s financial performance.
Key Concepts
▪ Earnings Acceleration: When a company’s earnings per share (EPS) growth rate increases over time (e.g., EPS growth of 10% in Q1, 15% in Q2, 20% in Q3). It indicates improving profitability, often due to cost efficiencies, margin expansion and strong demand.
▪ Sales Acceleration: When revenue growth rates increase over time (e.g., revenue growth of 5% in Q1, 8% in Q2, 12% in Q3). This reflects rising demand for products/services and operational efficiency.
▪ Relation to Earnings Reports: Acceleration is calculated by comparing sequential quarter-over-year growth rates in earnings and sales, often highlighted in earnings reports or analyst commentary. It’s a sign of fundamental strength when both metrics accelerate together.
How It’s Helpful to Traders
▪ Identify High-Potential Stocks: Stocks with accelerating earnings and sales often attract investor attention, as they signal a company is outperforming expectations and gaining market share. This can lead to sustained price appreciation.
Example: A tech company reporting 20% EPS growth and 15% sales growth quarter-over-quarter may see bullish price action as investors bet on continued momentum.
▪ Momentum Trading Opportunities: Acceleration often fuels stock price momentum, especially post-earnings. Traders can ride these trends using technical setups like breakouts or pullbacks.
Example: A stock breaking above a key resistance level after reporting accelerating growth may be a buy signal for swing traders.
▪ Early Indicator of Breakouts: Companies with accelerating fundamentals are more likely to experience price breakouts, as institutional investors (e.g., hedge funds, mutual funds) pile in. Traders can use this to position early.
Example: A retailer with accelerating sales due to strong holiday demand might gap up post-earnings, offering a breakout trade.
▪ Confirmation of Fundamental Strength: Acceleration validates a company’s growth story, reducing the risk of investing in stocks with inconsistent performance. Traders can align technical trades with strong fundamentals.
Example: A biotech with accelerating sales from a new drug launch may sustain a rally, giving traders confidence in long positions.
▪ Volatility for Short-Term Trades: Earnings reports showing acceleration often lead to significant price gaps or volatility, creating opportunities for day traders or options traders.
Example: A trader might buy call options on a stock expected to report accelerating earnings, anticipating a sharp post-earnings move.
🔹 Power Earnings Gaps - Examples
🔹 Screening Features - Setting Your Search Criteria
Power Earnings Gap
▪ Search Range
How many bars back to search for Power Earnings Gaps, anywhere between 1 and 90 bars.
▪ Last Bar Only
Look only at the last bar for Power Earnings Gaps. This is useful when looking for PEGs when screening at the end of a trading day. Choosing this option, the Search Range will be ignored.
▪ Minimum Price % Gap Up From Prior Close
This is the minimum gap up percent change to be considered a Power Earnings Gap.
▪ Minimum Volume % Change Over Average
This is the minimum volume percent change, over the 50-day average volume, to be considered a Power Earnings Gap.
▪ Require Positive Surprise
Require a positive earnings surprise and the minimum percent change.
▪ Require Closing Range
To ensure the price action closed strong on the day, specify a preferred closing range as a percentage of the bar's daily range.
▪ Gap Up Bar
The gap up bar can be configured to require one of the following:
- Open Above Prior High - Ensures there is visible gap up from the prior bar.
- Low Above Prior High - Allows for intraday price action to go below the prior bar high.
- No Requirement
Earnings And Sales Acceleration
▪ Quarters of Acceleration
You can specify between 1 and 4 quarters of earnings and/or sales acceleration.
🔹 Installation And Usage
▪ Mark this indicator as a Favorite.
▪ Use the Pine Screener to search for stocks.
▪ Save the search results to a watchlist.
▪ View the watchlist in TradingView.
🔹 Note
▪ Risk of Reversals: Not all gaps sustain their direction. Over reactions can lead to gap fills.
▪ High Volatility: Earnings gaps can be unpredictable, requiring quick decision-making & discipline.
Risk & Money Calculator / Fixed Losses This indicator is designed for people who want to control their losses as precisely as possible!
It allows you to quickly calculate the potential loss on a position, taking commission into account. It's designed so that you can have a fixed loss with different stop-loss lengths by adjusting the position size, expressed in currency!
Next to the Stop Loss price, you'll see the percentage distance to the stop and the actual loss, including the double commission (for opening and closing).
The indicator is very easy to use. You select the trade direction, enter the entry price, and the Stop Loss price. Optionally, you can set a Take Profit price to visualize the profit percentage! Since commission is charged both when opening and closing a position, you need to specify the size of your one-way commission.
Important!
• DON'T FORGET ABOUT LIQUIDATION, WHICH HAPPENS BEFORE THE CORRESPONDING STOP LOSS PERCENTAGE IS REACHED!
• YOU ARE SOLELY RESPONSIBLE FOR YOUR CALCULATIONS AND LOSSES!
• IF YOU HAVE ANY WISHES OR SUGGESTIONS RELATED TO THE INDICATOR'S OPERATION, I'M READY TO LISTEN AND POSSIBLY MAKE CHANGES TO ITS FUNCTIONALITY!
EPS, Revenue & NPM Growth Marker v2This indicator visually tracks fundamental growth by plotting smart labels on earnings dates, showing three key metrics:
EPS (Earnings Per Share)
Revenue (Sales)
Net Profit Margin (NPM)
It overlays compact, readable labels on the chart allowing you to evaluate a company's financial performance — both sequentially (QoQ) and annually (YoY).
EPS, Revenue & NPM Growth Marker v2 uses both official earnings data and fallback logic (EPS/Revenue/NPM changes) to ensure consistent detection of earnings events.
⭐ Key Features
Three Metrics: Displays EPS, Revenue, and Net Profit Margin
Growth Breakdown: Shows Absolute, Quarter-over-Quarter %, and Year-over-Year % change
Smart Arrows: Trend direction shown with emoji arrows (🡩🡫)
Earnings Detection: Aligns labels to official earnings events or fallback data
Highly Customizable: Full control over visible metrics, growth types, label style, placement, and max label count
Clean Display: Keeps the chart clean with a limit on max labels
⚙️ Customization Options
You can personalize the indicator to match your charting style:
Select metrics to display: EPS, Revenue, NPM
Toggle row types: Absolute, QoQ %, YoY %
Choose label position: Above Bar, Below Bar, Top, or Bottom
Customize line style, colors, and label text color
Set the maximum number of labels shown on chart
🧠How It Works
Absolute Value: Latest reported figure for each metric (e.g., EPS = ₹3.20)
QoQ % Change: (Current - Previous Quarter) / |Previous| * 100
YoY % Change: (Current - Same Quarter Last Year) / |Previous Year| * 100
The script uses TradingView’s request.earnings() data when available. If official earnings data is missing, it intelligently detects earnings events based on changes in EPS, Revenue, or NPM figures.
This is a major update to EPS & Sales/Revenue Growth Marker script, with expanded metrics, enhanced logic, and greater customization.
Developed & Published by: @learningvitals
Stock Earnings Viewer for Pine ScreenerThe script, titled "Stock Earnings Viewer with Surprise", fetches actual and estimated earnings, calculates absolute and percent surprise values, and presents them for analysis. It is intended to use in Pine Screener, as on chart it is redundant.
How to Apply to Pine Screener
Favorite this script
Open pine screener www.tradingview.com
Select "Stock Earnings Viewer with Surprise" in "Choose indicator"
Click "Scan"
Data
Actual Earnings: The reported earnings per share (EPS) for the stock, sourced via request.earnings().
Estimated Earnings: Analyst-predicted EPS, accessed with field=earnings.estimate.
Absolute Surprise: The difference between actual and estimated earnings (e.g., actual 1.2 - estimated 1.0 = 0.2).
Percent Surprise (%): The absolute surprise as a percentage of estimated earnings (e.g., (0.2 / 1.0) * 100 = 20%). Note: This may return NaN or infinity if estimated earnings are zero, due to division by zero.
Practical Use
This screener script allows users to filter stocks based on earnings metrics. For example, you could screen for stocks where Percent Surprise > 15 to find companies exceeding analyst expectations significantly, or use Absolute Surprise < -0.5 to identify underperformers.
EPS+Sales+Net Profit+MCap+Sector & Industry📄 Full Description
This script displays a comprehensive financial data panel directly on your TradingView chart, helping long-term investors and swing traders make informed decisions based on fundamental trends. It consolidates key financial metrics and business classification data into a single, visually clear table.
🔍 Key Features:
🧾 Financial Metrics (Auto-Fetched via request.financial):
EPS (Earnings Per Share) – Displayed with trend direction (QoQ or YoY).
Sales / Revenue – In ₹ Crores (for Indian stocks), trend change also included.
Net Profit – Also in ₹ Crores, along with percentage change.
Market Cap – Automatically calculated using outstanding shares × price, shown in ₹ Cr.
Free Float Market Cap – Based on float shares × price, also in ₹ Cr.
🏷️ Sector & Industry Info:
Automatically identifies and displays the Sector and Industry of the stock using syminfo.sector and syminfo.industry.
Displayed inline with metrics, making it easy to know what business the stock belongs to.
📊 Table View:
Compact and responsive table shown on your chart.
Columns: Date | EPS | QoQ | Sales | QoQ | Net Profit | QoQ | Metrics
Metrics column dynamically shows:
Market Cap
Free Float
Sector (Row 4)
Industry (Row 5)
🌗 Appearance:
Supports Dark Mode and Mini Mode toggle.
You can also customize:
Number of data points (last 4+ quarters or years)
Table position and size
🎯 Use Case:
This script is ideal for:
Fundamental-focused traders who use EPS/Sales trends to identify momentum.
Swing traders who combine price action with fundamental tailwinds.
Portfolio builders who want to see sector/industry alignment quickly.
It works best with fundamentally sound stocks where earnings and profitability are a major factor in price movements.
✅ Important Notes:
Script uses request.financial which only works with supported symbols (mostly stocks).
Market Cap and Free Float are calculated in ₹ Crores.
All financial values are rounded and formatted for readability (e.g., 1,234 Cr).
🙏 Credits:
Developed and published by Sameer Thorappa
Built with a clean, minimalist approach for high readability and functionality.
Earnings [theUltimator5]This indicator highlights daily price changes on earnings announcement days using dynamic colors, labels, and optional earnings markers.
🔍 Key Features:
Earnings Detection:
Highlights only the days when an earnings event occurs.
Price Change Calculation:
Computes the percentage change from open to close on earnings day.
Color-coded Labels:
Displays the % change as a floating label above the chart on earnings days.
Color intensity reflects the size and direction of the move:
Bright green for large gains (≥ +10%)
Bright red for large losses (≤ -10%)
White for negligible change
Gradient fades between those extremes
Optional "Earnings" Marker:
A small label marked “Earnings” appears beneath the % change label, controlled by a user toggle.
Background Highlight:
The chart background is shaded on earnings days with a semi-transparent color based on the % change.
⚙️ User Input:
✅ Show 'E' Marker: Toggles the visibility of the "Earnings" label below the main price change label.
✅ Ideal Use Case:
Use this indicator to visually analyze how a stock reacts on earnings days, helping traders spot consistent behavior patterns (e.g., post-earnings rallies or selloffs).
Greer Value Yields Line📈 Greer Value Yields Line – Valuation Signal Without the Clutter
Part of the Greer Financial Toolkit, this streamlined indicator tracks four valuation-based yield metrics and presents them clearly via the Data Window, GVY Score badge, and an optional Yield Table:
Earnings Yield (EPS ÷ Price)
FCF Yield (Free Cash Flow ÷ Price)
Revenue Yield (Revenue per Share ÷ Price)
Book Value Yield (Book Value per Share ÷ Price)
✅ Each yield is compared against its historical average
✅ A point is scored for each metric above average (0–4 total)
✅ Color-coded GVY Score badge highlights valuation strength
✅ Yield trend-lines Totals (TVAVG & TVPCT) help assess direction
✅ Clean layout: no chart clutter – just actionable insights
🧮 GVY Score Color Coding (0–4):
⬜ 0 = None (White)
⬜ 1 = Weak (Gray)
🟦 2 = Neutral (Aqua)
🟩 3 = Strong (Green)
🟨 4 = Gold Exceptional (All metrics above average)
Total Value Average Line Color Coding:
🟥 Red – Average trending down
🟩 Green – Average trending up
Ideal for long-term investors focused on fundamental valuation, not short-term noise.
Enable the table and badge for a compact yield dashboard — or keep it minimal with just the Data Window and trend-lines.
Nasdaq Macro Radar 3.5Nasdaq Macro Radar is an intraday tool that condenses five macro-drivers of the Nasdaq-100 into a single color-coded table:
• real-time moves in the 10- and 2-year Treasury yields
• dollar strength via the Dollar Index
• equity volatility level (VIX)
• risk tone in high-yield credit (HYG ETF)
• dynamic slope of the 2-10-year curve
Each cell flips from neutral to “long” or “short” on the fly, letting you see at a glance whether the macro backdrop is helping trend continuation or signalling a potential reversal.
• No extra pane – the table sits directly on your price chart and can be parked in any corner.
• All sensitivity thresholds are user-adjustable from Settings.
• Built-in alerts for the most critical levels.
Designed for scalpers and day-traders who need an instant macro check without juggling multiple charts
Nasdaq Macro Radar è un indicatore intraday che sintetizza, in un’unica tabella color-code, cinque motori macro-finanziari chiave per il Nasdaq-100:
• movimento dei rendimenti Treasury a 10 a & 2 a
• variazioni del Dollar Index
• livello della volatilità implicita (VIX)
• tono del mercato credito high-yield (ETF HYG)
• pendenza dinamica della curva 2-10 a
Ogni cella passa dal neutro a “long” o “short” in tempo reale, consentendo di valutare a colpo d’occhio se il contesto macro favorisce prosecuzioni o inversioni del trend di prezzo.
• Nessuna finestra separata: la tabella resta sovrapposta al grafico e può essere spostata in qualsiasi angolo.
• Parametri di sensibilità completamente regolabili dal pannello Settings.
• Alert integrati per le soglie critiche più importanti.
Pensato per chi fa scalping o day-trading sul Nasdaq e vuole un check macro immediato senza aprire dieci grafici di supporto.
Greer EPS Yield📘 Script Title
Greer EPS Yield – Valuation Insight Based on Earnings Productivity
🧾 Description
Greer EPS Yield is a valuation-focused indicator from the Greer Financial Toolkit, designed to evaluate how efficiently a company generates earnings relative to its current stock price. This script calculates the Earnings Per Share Yield (EPS%), using the formula:
EPS Yield (%) = Earnings Per Share ÷ Stock Price × 100
This yield metric provides a quick snapshot of valuation through the lens of profitability per share. It dynamically highlights when the EPS yield is:
🟢 Above its historical average (potentially undervalued)
🔴 Below its historical average (potentially overvalued)
🔍 Use Case
Quickly assess valuation attractiveness based on earnings yield.
Identify potential buy opportunities when EPS% is above its long-term average.
Combine with other indicators in the Greer Financial Toolkit for a fundamentals-driven investment strategy:
📘 Greer Value – Tracks year-over-year growth consistency across six key metrics
📊 Greer Value Yields Dashboard – Visualizes valuation-based yield metrics
🟢 Greer BuyZone – Highlights long-term technical buy zones
🛠️ Inputs & Data
Uses fiscal year EPS data from TradingView’s built-in financial database.
Tracks a static average EPS Yield to compare current valuation to historical norms.
Clean, intuitive visual with automatic color coding.
⚠️ Disclaimer
This tool is for educational and informational purposes only and should not be considered financial advice. Always conduct your own research before making investment decisions.
Greer Value Yields Dashboard🧾 Greer Value Yields Dashboard – v1.0
Author: Sean Lee Greer
Release Date: June 22, 2025
🧠 Overview
The Greer Value Yields Dashboard visualizes and evaluates four powerful valuation metrics for any publicly traded company:
📘 Earnings per Share Yield
💵 Free Cash Flow Yield
💰 Revenue Yield
🏦 Book Value Yield
Each yield is measured as a percentage of current stock price and compared against its historical average. The script assigns 1 point per metric when the current yield exceeds its long-term average. The total score (0 to 4) is displayed as a color-coded column chart, helping long-term investors quickly assess fundamental valuation strength.
✅ Key Features
📊 Real-time calculation of 4 yield-based valuation metrics
⚖ Historical average tracking for each yield
🎯 Visual scoring system:
🟥 0–1 = Weak
🟨 2 = Neutral
🟩 4 = Strong (all metrics above average)
🎛️ Toggle visibility of each yield independently
🧮 Fully compatible with other Greer Financial Toolkit indicators
🛠 Ideal For
Long-term value investors
Dividend and cash-flow-focused investors
Analysts seeking clean yield visualizations
Greer Toolkit users combining with Greer Value and BuyZone
Greer Value📈 Greer Value
This indicator evaluates the year-over-year (YoY) growth consistency of five key fundamental metrics for any stock:
Book Value Per Share
Free Cash Flow
Operating Margin
Total Revenue
Net Income
The script tracks whether each metric increases annually based on financial statement data (FY), then calculates both individual and aggregate increase percentages over time. A color-coded table is displayed on the most recent bar showing:
Raw counts of increases vs. checks per metric
Percentage of years with growth
Overall "Greer Value" score indicating total consistency across all five metrics
✅ Green = Strong YoY growth
❌ Red = Weak or inconsistent growth
Use this tool to help identify fundamentally improving companies with long-term value creation potential.
Calc win-LoserHow to Use the Calc win-Loser Indicator
The indicator calculates the profit or loss of the operation, showing how much you gained or lost on the invested amount, without adding the initial capital, displaying only the profit or loss separately.
Use a period (.) to separate decimal numbers, without thousand separators (e.g., 1000 for one thousand, 1000.50 for one thousand and fifty cents).
Price Definition for Calculation
Long Position (buy):
Low Price: entry price (lower)
High Price: exit price (higher)
Example: enter at 1 and exit at 3
Short Position (sell):
High Price: entry price (higher)
Low Price: exit price (lower)
Example: enter at 3 and exit at 1
Main Parameters
Parameter Description Example
Low Price Base price for calculation (Long: entry; Short: exit) 1
High Price Base price for calculation (Long: exit; Short: entry) 3
Leverage Operation multiplier (leverage) 2.0
Universal Amount Total amount invested 1000
Broker Fee (%) Percentage fee charged by broker 0.1
Currency Currency symbol for value display USD
Practical Example
Long: entry at 1, exit at 3, 2x leverage, $1000 investment, 0.1% fee.
Short: entry at 3, exit at 1, 2x leverage, $1000 investment, 0.1% fee.
The indicator will show the expected profit or loss based on the percentage difference adjusted by leverage and subtracting the broker fee.
Notes
Adjust prices according to the type of operation (Long or Short).
Use a period for decimals and do not use thousand separators.
This indicator is a simulation tool and does not execute automatic trades.
Original indicator by Canhoto-Medium — protected to maintain order and respect, prevent copying and plagiarism.
Enhanced Zones with Volume StrengthEnhanced Zones with Volume Strength
Your reliable visual guide to market zones — now with Multi-Timeframe (MTF) power!
What you get:
Clear visual zones on your chart — color-coded boxes that highlight important price areas.
Blue Boxes for neutral zones — easy to spot areas of indecision or balance.
Gray Boxes to show normal volume conditions, giving you context without clutter.
Green Boxes highlighting bullish zones where strength is showing.
Red Boxes marking bearish zones where weakness might be in play.
Multi-Timeframe Support:
Seamlessly visualize these zones from higher timeframes directly on your current chart for a bigger-picture view, helping you make smarter trading decisions.
How to use it:
Adjust the box width (in bars) to fit your trading style and timeframe.
Customize colors and opacity to suit your chart theme.
Toggle neutral blue and gray volume boxes on/off to focus on what matters most to you.
Set the maximum number of boxes to keep your chart clean and performant.
Why you’ll love it:
This indicator cuts through the noise by visually marking zones where volume and price action matter the most — without overwhelming your chart. The MTF feature means you’re always aligned with higher timeframe trends without switching views.
Pro tip:
Use these boxes as dynamic support/resistance areas or to confirm trade setups alongside your favorite indicators.
No complicated formulas here, just crisp, actionable visuals designed for clarity and confidence.
QoQ PAT, Sales & OPM% Labels by GauravThis indicator automatically displays the Quarter-over-Quarter (QoQ) percentage change in Sales, PAT (Profit After Tax), and Operating Profit Margin (OPM%) directly on the price chart.
It fetches quarterly financial data using TradingView’s request.financial() function for:
Sales (TOTAL_REVENUE),
PAT (NET_INCOME),
Operating Profit (OPER_INCOME).
For each earnings update, it calculates:
Sales QoQ %: Growth in sales vs. the previous quarter,
PAT QoQ %: Growth in PAT vs. the previous quarter,
OPM %: Operating Profit Margin = (Operating Profit / Sales) × 100.
This helps traders and investors quickly visualize fundamental growth trends right alongside the candlestick chart, improving fundamental + technical analysis integration.
S&P 500 Top 25 - EPS AnalysisEarnings Surprise Analysis Framework for S&P 500 Components: A Technical Implementation
The "S&P 500 Top 25 - EPS Analysis" indicator represents a sophisticated technical implementation designed to analyze earnings surprises among major market constituents. Earnings surprises, defined as the deviation between actual reported earnings per share (EPS) and analyst estimates, have been consistently documented as significant market-moving events with substantial implications for price discovery and asset valuation (Ball and Brown, 1968; Livnat and Mendenhall, 2006). This implementation provides a comprehensive framework for quantifying and visualizing these deviations across multiple timeframes.
The methodology employs a parameterized approach that allows for dynamic analysis of up to 25 top market capitalization components of the S&P 500 index. As noted by Bartov et al. (2002), large-cap stocks typically demonstrate different earnings response coefficients compared to their smaller counterparts, justifying the focus on market leaders.
The technical infrastructure leverages the TradingView Pine Script language (version 6) to construct a real-time analytical framework that processes both actual and estimated EPS data through the platform's request.earnings() function, consistent with approaches described by Pine (2022) in financial indicator development documentation.
At its core, the indicator calculates three primary metrics: actual EPS, estimated EPS, and earnings surprise (both absolute and percentage values). This calculation methodology aligns with standardized approaches in financial literature (Skinner and Sloan, 2002; Ke and Yu, 2006), where percentage surprise is computed as: (Actual EPS - Estimated EPS) / |Estimated EPS| × 100. The implementation rigorously handles potential division-by-zero scenarios and missing data points through conditional logic gates, ensuring robust performance across varying market conditions.
The visual representation system employs a multi-layered approach consistent with best practices in financial data visualization (Few, 2009; Tufte, 2001).
The indicator presents time-series plots of the four key metrics (actual EPS, estimated EPS, absolute surprise, and percentage surprise) with customizable color-coding that defaults to industry-standard conventions: green for actual figures, blue for estimates, red for absolute surprises, and orange for percentage deviations. As demonstrated by Padilla et al. (2018), appropriate color mapping significantly enhances the interpretability of financial data visualizations, particularly for identifying anomalies and trends.
The implementation includes an advanced background coloring system that highlights periods of significant earnings surprises (exceeding ±3%), a threshold identified by Kinney et al. (2002) as statistically significant for market reactions.
Additionally, the indicator features a dynamic information panel displaying current values, historical maximums and minimums, and sample counts, providing important context for statistical validity assessment.
From an architectural perspective, the implementation employs a modular design that separates data acquisition, processing, and visualization components. This separation of concerns facilitates maintenance and extensibility, aligning with software engineering best practices for financial applications (Johnson et al., 2020).
The indicator processes individual ticker data independently before aggregating results, mitigating potential issues with missing or irregular data reports.
Applications of this indicator extend beyond merely observational analysis. As demonstrated by Chan et al. (1996) and more recently by Chordia and Shivakumar (2006), earnings surprises can be successfully incorporated into systematic trading strategies. The indicator's ability to track surprise percentages across multiple companies simultaneously provides a foundation for sector-wide analysis and potentially improves portfolio management during earnings seasons, when market volatility typically increases (Patell and Wolfson, 1984).
References:
Ball, R., & Brown, P. (1968). An empirical evaluation of accounting income numbers. Journal of Accounting Research, 6(2), 159-178.
Bartov, E., Givoly, D., & Hayn, C. (2002). The rewards to meeting or beating earnings expectations. Journal of Accounting and Economics, 33(2), 173-204.
Bernard, V. L., & Thomas, J. K. (1989). Post-earnings-announcement drift: Delayed price response or risk premium? Journal of Accounting Research, 27, 1-36.
Chan, L. K., Jegadeesh, N., & Lakonishok, J. (1996). Momentum strategies. The Journal of Finance, 51(5), 1681-1713.
Chordia, T., & Shivakumar, L. (2006). Earnings and price momentum. Journal of Financial Economics, 80(3), 627-656.
Few, S. (2009). Now you see it: Simple visualization techniques for quantitative analysis. Analytics Press.
Gu, S., Kelly, B., & Xiu, D. (2020). Empirical asset pricing via machine learning. The Review of Financial Studies, 33(5), 2223-2273.
Johnson, J. A., Scharfstein, B. S., & Cook, R. G. (2020). Financial software development: Best practices and architectures. Wiley Finance.
Ke, B., & Yu, Y. (2006). The effect of issuing biased earnings forecasts on analysts' access to management and survival. Journal of Accounting Research, 44(5), 965-999.
Kinney, W., Burgstahler, D., & Martin, R. (2002). Earnings surprise "materiality" as measured by stock returns. Journal of Accounting Research, 40(5), 1297-1329.
Livnat, J., & Mendenhall, R. R. (2006). Comparing the post-earnings announcement drift for surprises calculated from analyst and time series forecasts. Journal of Accounting Research, 44(1), 177-205.
Padilla, L., Kay, M., & Hullman, J. (2018). Uncertainty visualization. Handbook of Human-Computer Interaction.
Patell, J. M., & Wolfson, M. A. (1984). The intraday speed of adjustment of stock prices to earnings and dividend announcements. Journal of Financial Economics, 13(2), 223-252.
Skinner, D. J., & Sloan, R. G. (2002). Earnings surprises, growth expectations, and stock returns or don't let an earnings torpedo sink your portfolio. Review of Accounting Studies, 7(2-3), 289-312.
Tufte, E. R. (2001). The visual display of quantitative information (Vol. 2). Graphics Press.
Stock metrics and valueThis indicator shows:
- the valuation metrics for a stock on a table on top right: PE, EPS, dividend, ROIC, ROE, ROA, EPS growth, FCF growth, Equity growth, revenue Growth
- the fair value and the value with 50% margin of safety as chart lines
The lines will be red when they are above the current price and red when they are below the current price.
The colors on the table will be red when the values are below 10% and green when they are above, that means when everything is green the metrics for the stock are good.
Constant Valuation Multiple LevelsThis indicator adds price levels at constant multiples based on your preferred valuation metric. The settings provides options for setting this metric while Operational Income is the default one.
This indicator is not perfect as it relies on historical earnings data but does not have forecast data (not available in pinescript), thus its not a guide for future price level. It also does not account for "adjusted" earnings which may skew levels for some quarters.
However this script provides a quick way to see the stock price against your preferred valuation multiple to see if it's undervalued and worth investigating further for quality and earnings forecast.
Fundamental Fair Value RangeFundamental Fair Value Range (FFV Range)
Purpose:
This indicator aims to estimate a company's intrinsic fair value range based on its historical valuation patterns and current financial health. It analyzes multiple fundamental valuation metrics to provide a comprehensive perspective, helping traders identify potential overvaluation or undervaluation relative to the company's own historical norms.
How It Works:
Data Collection: The script gathers historical financial data for the company over a user-defined number of past quarters ( Number of Quarters to Average ). It retrieves key metrics like Earnings Per Share (EPS), Book Value Per Share (BVPS), Sales Per Share, Free Cash Flow (FCF) Per Share, Tangible Book Value Per Share (TBVPS), EBITDA, Operating Cash Flow (OCF) Per Share, Enterprise Value (EV), and Net Debt. It also pulls current TTM (Trailing Twelve Months) data, forward estimates (EPS, Sales), risk metrics (Debt-to-Equity, Altman Z-Score), and dividend yield.
Historical Ratio Calculation: For each of the past quarters where data is available, the script calculates standard valuation ratios (P/E, P/B, P/S, P/FCF, P/TBV, EV/EBITDA, P/CF) using the closing price at that time and the relevant financial data. Ratios are capped ( Maximum Ratio Cap ) to prevent extreme outliers from skewing results.
Central Tendency: The script calculates the historical central tendency (either the median or mean , selectable by the user) for each valuation ratio based on the collected historical data points. Median is generally preferred to reduce the impact of outliers, but the mean option is available.
Individual Metric Fair Values: Using the current financial data (TTM EPS, BVPS, Sales/Share, etc.) and the calculated historical average ratio , the script estimates a fair value based on each individual metric . For example:
P/E Fair Value = Current EPS * Historical Average P/E Ratio
P/S Fair Value = Current Sales Per Share * Historical Average P/S Ratio
(...and so on for P/B, P/FCF, P/TBV, and P/CF.)
Forward-Looking Adjustments & Blending:
P/E: Calculates fair value using both TTM EPS and Forward EPS estimates. These two values are then blended (averaged) to incorporate future expectations. If only one is available, that one is used.
EV/EBITDA: Calculates fair value based on TTM EBITDA and also based on estimated future EBITDA (derived from Sales Estimates and historical EBITDA margin). These are then blended . The calculation converts the Enterprise Value back to an estimated equity value per share by subtracting Net Debt.
P/S: Also calculates a forward-looking P/S fair value using Sales Estimates, which is considered alongside the TTM version when weighting.
Weighted Composite Fair Value:
The script combines the individual fair value estimates into a single composite value using a weighted average .
User-Defined Weights: You assign weights to each metric (P/E, P/S, P/FCF, P/B, P/TBV, EV/EBITDA, P/CF) via the script settings.
Dynamic Weighting: The weights for P/E, P/S, and P/FCF can be set differently depending on whether the company's current TTM EPS is positive or negative. This allows the model to emphasize sales or cash flow metrics more heavily for unprofitable companies, where P/E is less meaningful.
Risk Adjustment: The composite fair value is adjusted downwards (multiplied by 0.9 for each condition met) if:
Debt-to-Equity ratio exceeds 1.5 (indicating higher leverage risk).
Altman Z-Score is below 1.8 (indicating higher bankruptcy risk).
Dividend Adjustment: The risk-adjusted fair value is then potentially increased based on the company's dividend yield. The yield is added to the value (up to a maximum adjustment of 5% - MAX_DIV_ADJ ) to reflect the value returned to shareholders via dividends. Final Fair Value = Risk-Adjusted Value * (1 + Capped Dividend Yield) .
Confidence Range: A range is calculated around the Final Fair Value. This range is determined by the standard deviation of the individual fair value components that were actually used (had valid data and positive weights) in the composite calculation. A wider range suggests less agreement between the different valuation methods.
Valuation Signal: The script compares the current closing price to the calculated Final Fair Value and the Confidence Range, using Average True Range (ATR) based thresholds near the fair value:
Very Undervalued: Price is below the Lower Bound of the confidence range.
Undervalued: Price is below the Final Fair Value minus an ATR-based buffer.
Fairly Valued: Price is near the Final Fair Value (within the ATR buffer).
Overvalued: Price is above the Final Fair Value plus an ATR-based buffer.
Very Overvalued: Price is above the Upper Bound of the confidence range.
Features & Customization:
Multi-Metric Analysis: Incorporates P/E, P/B, P/S, P/FCF, P/TBV, EV/EBITDA, and P/CF.
Historical Basis: Choose Median or Mean for historical ratio calculation and set the lookback period (number of quarters).
Flexible Weighting: Customize the importance of each metric. Crucially, set different weights for P/E, P/S, and P/FCF based on profitability (EPS > 0 or EPS ≤ 0).
Forward Data Integration: Blends TTM and forward estimates for P/E and EV/EBITDA.
Risk & Dividend Adjustments: Automatically discounts for high debt/low Altman Z-score and premiums for dividend yield (capped).
Clear Visualization:
Plots the Final Fair Value line on the chart.
Plots the Upper and Lower Confidence Bounds (based on standard deviation).
Fills the area between bounds to show the Confidence Range.
Informative Data Table:
Displays the calculated fair value for key individual metrics, their historical average ratios, and current underlying financial values (like EPS, BVPS).
Shows risk metrics (Debt/Equity, Altman Z).
Clearly presents the Final Composite Fair Value, the Confidence Range, the current Valuation Signal (e.g., "Undervalued"), and the percentage difference between the current price and the fair value.
Simple/Full Mode: Option to display a condensed table with only the summary results or the full detailed breakdown.
Display Options: Adjust table position, text size, and switch between light/dark themes for better readability.
How to Use:
Apply the indicator to a stock chart on TradingView.
Configure Settings:
Go into the indicator settings ( Gear Icon ⚙️).
- Calculation Parameters: Set the Number of Quarters to Average (e.g., 20 for 5 years) and choose Use Mean Instead of Median if desired. Adjust Maximum Ratio Cap if needed.
- Valuation Weights: This is crucial. Adjust the weights based on the industry, company maturity, and your valuation philosophy. Consider giving higher weights to metrics commonly used for that sector. Use the separate weights for positive/negative EPS scenarios thoughtfully. For instance, for unprofitable tech stocks, you might assign zero weight to P/E and higher weights to P/S or EV/EBITDA (negative EPS weights).
- Display Options: Choose table mode, position, size, and theme.
Interpret the Output:
- Observe the plotted Fair Value line relative to the current price.
- Note the Confidence Range (shaded area). A wider range indicates more uncertainty or divergence between valuation methods.
- Check the Valuation status in the table (e.g., "Undervalued", "Overvalued").
- Use the % from Fair Value in the table for a quick gauge of deviation.
- Review the individual metric fair values in the full table mode to understand which factors are driving the composite value.
Considerations:
Historical Data Dependence: The model heavily relies on past valuation patterns repeating. Significant changes in a company's business model, market, or industry may make historical ratios less relevant.
Parameter Sensitivity: The calculated fair value is sensitive to the chosen weights and the historical lookback period. Experiment and use values that make sense for your analysis style and the specific stock.
Data Quality: The accuracy of the output depends entirely on the accuracy and availability of the underlying financial data provided by TradingView for the specific ticker. Data may be missing or contain errors for some stocks.
Not Financial Advice: This indicator provides a model-based estimation of fair value. It should be used as one tool among many in your investment decision-making process, not as a sole buy/sell signal. Always conduct thorough due diligence.
Metatrader CalculatorThe “ Metatrader Calculator ” indicator calculates the position size, risk, and potential gain of a trade, taking into account the account balance, risk percentage, entry price, stop loss price, and risk/reward ratio. It supports the XAUUSD, XAGUSD, and BTCUSD pairs, automatically calculating the position size (in lots) based on these parameters. The calculation is displayed in a table on the chart, showing the lot size, loss in dollars, and potential gain based on the defined risk.
Earnings Date and CountdownOverview:
The Earnings Date & Countdown (EDC) Indicator displays the next earnings date for a stock and a countdown of days remaining until the earnings announcement. This helps traders stay informed about upcoming earnings events and adjust their strategies accordingly.
Features:
- Displays the next earnings date in a customizable format.
- Accurate countdown of days remaining until the earnings event (optional).
- Automatically adjusts for time zones and ensures the correct number of full calendar days.
- Customizable display position for easy visibility on the chart.
Settings:
- Show day of the week: option to toggle the day of the week.
- Date Format: choose between dd mmm, mmm dd, dd/mm or mm/dd.
- Show year: option to toggle the year display.
- Show (countdown): option to toggle the countdown display.
- Indicator position: adjusts the location of the display on the chart.
Why use this indicator?
Earnings reports often cause significant price movements.
This indicator helps traders plan ahead by keeping earnings dates visible and tracking the countdown with precision directly on the chart.
Cash Flow YieldsCash Flow Yields Indicator
This indicator offers a straightforward way to visualize a company’s cash flow metrics—Free Cash Flow (FCF), Operating Cash Flow (OCF), and Capital Expenditures (CapEx)—as yields relative to its market capitalization. With the flexibility to switch between Trailing Twelve Months (TTM) and Quarterly data, it’s perfect for spotting financial efficiency trends at a glance. Values are plotted as dynamic lines with smart color coding and labeled for clarity.
Features:
TTM & Quarterly Data: Toggle between financial periods to suit your analysis.
Color-Coded Lines: Green for positive OCF, teal for positive FCF, and blue for CapEx. Red and maroon kick in when values turn negative.
Yield Perspective: See FCF, OCF, and CapEx as percentages of market cap, making it easy to compare cash flow strength across companies.
Clear Labels: The latest values pop up on the chart, positioned to the right of the last bar.
Simple & Intuitive: No clutter - just clean lines and numbers to help you focus on what matters.
To use it, add it to your chart and toggle between TTM or Quarterly to see trends. FCF should roughly equal OCF minus CapEx. Adjust your view to focus on companies with strong FCF yields for potential opportunities.
This indicator is freely available and open-source on TradingView for everyone to use. Enjoy!
PE Ratio & MAPE Ratio & Moving Average Indicator
Overview:
This indicator is designed to help traders monitor changes in a stock’s Price-to-Earnings (P/E) ratio using earnings per share data provided by TradingView’s financial database. It displays the raw P/E ratio alongside a smoothed trend line in a dedicated pane, allowing you to observe valuation trends over time.
Key Features:
Customizable Earnings Period: Choose your preferred earnings period (e.g., TTM, Fiscal Year, or Fiscal Quarter) to match your analysis style.
Real-Time P/E Calculation: The indicator computes the P/E ratio based on the latest available data and the current closing price.
Smoothed Trend Line: In addition to the raw P/E ratio, a smoothed moving line is plotted to help you easily identify underlying trends and turning points.
Alert Conditions: Built-in alert settings notify you when the P/E ratio shows significant directional changes, enabling you to react quickly to market shifts.
User-Friendly Interface: Simple inputs make customization straightforward, even if you’re not a coding expert.
The indicator has been thoroughly tested and is designed to accurately calculate and display the P/E Ratio in real-time , ensuring reliability in various market conditions..
Users can fully customize the indicator by adjusting the earnings period (TTM, Fiscal Year, or Fiscal Quarter) and smoothing parameters to match their analysis style and preferences.
The moving average smoothing options allow traders to fine-tune the trend line for a more accurate representation of the stock’s valuation.
How to Use:
Add the Indicator: Apply it to your TradingView chart to see the P/E ratio and its trend line displayed in a separate pane.
Customize Settings: Adjust the earnings period as needed using the input options.
Set Up Alerts: Configure alerts through TradingView’s Alerts panel to be notified when key changes occur in the P/E ratio’s behavior.
Integrate with Your Strategy: Use this tool in combination with your other technical and fundamental analysis methods to make more informed trading decisions.
Disclaimer:
This indicator is for informational and educational purposes only and does not constitute financial advice. Always conduct your own research before making any trading decisions.