US Presidents 1920–2024Description:
This indicator displays all U.S. presidential elections from 1920 to 2024 on your chart.
Features:
Vertical lines at the date of each presidential election.
Line color by party:
Red = Republican
Blue = Democrat
Gray = Other/None
Labels showing the name of each president.
Modern flag style: Presidents from 1900 onward are highlighted as modern, giving clear historical separation.
Fully overlayed on the price chart for timeline context.
Customizable: Label position (above/below bar) and line width.
Use case: Useful for analyzing modern U.S. presidential cycles, market reactions to elections, or quickly referencing recent presidents directly on charts.
Forecasting
FED Rate Decisions (Cuts & Hikes)This indicator highlights key moments in U.S. monetary policy by plotting vertical lines on the chart for Federal Reserve interest rate decisions.
Features:
Rate Cuts (red): Marks dates when the Fed reduced interest rates.
Rate Hikes (green): Marks dates when the Fed increased interest rates.
Configurable view: Choose between showing all historical decisions or only those from 2019 onwards.
Labels: Each event is tagged with “FED CUT” or “FED HIKE” above or below the bar (adjustable).
Alerts: You can set TradingView alerts to be notified when the chart reaches a Fed decision day.
🔧 Inputs:
Show decisions: Switch between All or 2019+ events.
Show rate cuts / hikes: Toggle visibility separately.
Colors: Customize line and label colors.
Label position: Place labels above or below the bar.
📈 Usage:
This tool helps traders and investors visualize how Fed policy shifts align with market movements. Rate cuts often signal economic easing, while hikes suggest tightening monetary policy. By overlaying these events on price charts, you can analyze historical reactions and prepare for similar scenarios.
Divergences v2.4 [LTB][SPTG]Open-source credit & license
Original author: LonesomeTheBlue.
This fork by: sirpipthegreat — with attribution to the original work.
License: Open-source, published under the MPL-2.0 (same license header in the code).
I am publishing this open-source in accordance with TradingView’s Open-source reuse rules.
What’s new:
- Fixes & stability (addresses “historical offset beyond buffer” errors)
- Capped and validated all historical indexing with guarded lookbacks (e.g., min(…, 200) style limits) to prevent referencing data beyond the buffer on shorter histories/thin symbols.
- Refactored highest/lowest bars scans to obey the cap and avoid cumulative overflows on long sessions.
- Added per-bar counters with safety clamps to ensure it never exceeds available history.
- Ensured HTF switching doesn’t create invalid offsets when the higher timeframe compresses history.
Modernization & user control:
- Pine v6 upgrade and re-organization of logic for clarity/performance.
- More predictable tops/bottoms detection.
What it does:
- Detects regular (trend-reversal) and optional hidden (trend-continuation) divergences between price swing tops/bottoms and the selected oscillator(s).
- Computes candidate pivots with a light HTF alignment to reduce micro-noise; validates divergence when oscillator and price move in opposite directions across those pivots.
- Plots colored lines/labels on price to highlight bearish (regular & hidden) and bullish (regular & hidden) patterns.
How to use:
- Choose the oscillator set you trust (start with RSI + MACD).
- Consider confluence (S/R, volume, trend filters). This tool only identifies conditions
Justin's MSTR Powerlaw Price PredictorJustin's MSTR Powerlaw Price Predictor is a Pine Script v6 indicator for TradingView that adapts Giovanni Santostasi’s Bitcoin power law model to forecast MicroStrategy (MSTR) stock prices. The price prediction is based on the the formula published in this article:
www.ccn.com
Sniper Fade Indicator™️Sniper Fade Indicator™️
The Sniper Fade Indicator™️ is built to help traders spot potential fade opportunities — areas where price may exhaust and reverse during key sessions.
Features:
Fade Zone Mapping → visual zones highlighting likely reversal areas.
Time-Based Filters → optimized for London & New York sessions.
Clean Visual Overlays → boxes & markers for quick recognition.
Customizable Alerts → get notified when fade conditions align.
Works Across Markets → Forex, Futures, and Indices (including NAS100).
How to Use:
Use this indicator to plan trades around potential exhaustion zones. It works best when combined with daily bias context and liquidity levels. Always apply risk management and confirmation from your own strategy.
Notes:
Educational purposes only.
Not financial advice.
For best results, test in multiple markets and sessions.
Economic Profit (Fixed & Labeled) — Rated + PeersFRAC (Fundamental-Rated-Asset-Calculate)
FRAC is a fundamentals-driven tool designed to measure whether a company is creating or destroying shareholder value. Unlike surface ratios, FRAC uses Economic Profit (ROIC – WACC) as its engine, showing whether a business truly outperforms its cost of capital.
🔹 What FRAC Does
Calculates ROIC (Return on Invested Capital) vs. WACC (Weighted Average Cost of Capital).
Shows whether a company is creating or destroying shareholder value.
Uses tiered color coding for clarity:
🔵 Superior (Aqua Blue) → Top tier; best of the best.
🟣 Elite (Purple) → Strong value creation.
🟢 Positive (Green) → Solid, creating shareholder value.
🟡 Marginal (Yellow) → Barely covering cost of capital.
🔴 Negative (Red) → Value destruction.
🔹 Composite Ranking System (1–4)
FRAC also assigns each company a Composite Rank so you can compare multiple names side by side. The rank works like this:
Rank 1 → Superior (🔵 Aqua Blue)
Best possible rating; wide gap between ROIC and WACC.
Rank 2 → Elite (🟣 Purple)
Strongly positive; above-average capital efficiency.
Rank 3 → Positive (🟢 Green)
Creating value but only moderately; not a top compounder.
Rank 4 → Marginal/Negative (🟡/🔴)
Weak or destructive; either barely covering WACC or losing money on capital.
✅ How to Use the Ranks
When comparing a set of peers (e.g., NVDA, AMD, INTC):
FRAC will display each company’s color rating + composite rank (1–4).
You can instantly see who is strongest vs. weakest in the group.
Best decisions = overweight Rank 1 & 2 companies, avoid Rank 4 names.
🔹 Key Inputs Explained
Risk-Free Asset → Typically the 10-Year US Treasury yield (US10Y).
Corporate Tax Rate → Effective tax rate for the company’s country (e.g., USCTR).
Expected Market Return → Historical average ~8–10%, adjustable.
Beta Lookback Period → Controls how far back Beta is calculated (longer = more stable, shorter = more reactive).
👉 These must be set correctly for FRAC to calculate WACC accurately.
🔹 Example Comparison
NVDA: ROIC 25% – WACC 7% = +18% → 🔵 Superior → Rank 1
AMD: ROIC 17% – WACC 8% = +9% → 🟣 Elite → Rank 2
INTC: ROIC 11% – WACC 9% = +2% → 🟢 Positive → Rank 3
FSLY: ROIC 5% – WACC 10% = –5% → 🔴 Negative → Rank 4
🔹 Why It Matters
Buffett said: “The best businesses are those that can consistently generate returns on capital above their cost of capital.”
FRAC turns that into a visual + numeric rating system (1–4), making comparisons across peers simple and actionable.
🔹 Credit
FRAC was created by Hunter Hammond (Elite x FineFir), inspired by corporate finance models of Economic Profit and Economic Value Added (EVA).
⚠️ Disclaimer: FRAC is a research framework, not financial advice. Always pair with full due diligence.
Justin's Bitcoin Power Law Predictor (Santostasi Model)This indicator uses the Powerlaw to predict the BTC price.
Custom Volume + Buyer & Price %Title: Custom Volume + Buyer & Price %
Description:
This indicator helps you see who is controlling the market — buyers or sellers — using volume and price action. It works even if your chart is on a small timeframe (like 5-min or 15-min), by showing Daily, Weekly, and Monthly information from the higher timeframe volume charts.
Key Features & How It Works:
Buyer % (B%):
Measures where the closing price is within the high-low range of a candle.
Calculation:
\text{Buyer %} = \frac{\text{Close} - \text{Low}}{\text{High} - \text{Low}} \times 100
Interpretation:
> 50% → Buyers are stronger
< 50% → Sellers are stronger
50% → Balanced
Volume Coloring:
Volume bars are colored based on Buyer %, not price movement:
Green → Buyers dominate
Red → Sellers dominate
Yellow → Balanced day
Higher Timeframe Insight:
Displays Daily, Weekly, and Monthly volume & Buyer % even if your chart is on a smaller timeframe.
Lets you understand long-term buying or selling pressure while trading intraday.
21-Day Average:
Shows average Buyer % and average volume over the past 21 days for trend context.
Why It’s Useful:
Quickly visualize whether the market is buyer-driven or seller-driven.
Identify strong accumulation or distribution days.
Works on any chart timeframe while giving higher timeframe perspective.
Ideal for traders who want easy, visual insight into market sentiment.
⛓️ Scalping Fusion [AlexSvet]An indicator with a table that takes into account the trend for scalping trading.
Calculadora de posicion)Position Size Calculator is a simple tool that helps traders instantly know how many contracts or lots to use based on their risk.
Just set your account size, risk percentage, and stop loss distance — the calculator does the rest.
Stay disciplined, control your risk, and trade with confidence.
DR + Fibonacci Zones — 🔵 Bullish Scenario -- 🔴 Bearish ScenarioElliott + Fibonacci Zones — 🔵 Bullish Scenario & 🔴 Bearish Scenario
A visual tool that combines Elliott Waves and Fibonacci levels to help traders map out potential market scenarios.
✦ Features:
Manual plotting of Elliott Waves (1→5) using customizable highs and lows.
Display of classic Fibonacci retracements (0.236 – 0.382 – 0.5 – 0.618 – 0.786) with individual on/off controls.
Display of Fibonacci extensions (1.272 – 1.618) to project possible Wave (5) targets.
Full customization options:
• Line styles (Solid / Dashed / Dotted).
• Line extension (Left / Right / Both / None).
• Label background colors with adjustable transparency.
• Custom text color for labels.
Flexible inputs to adjust wave points according to your own market analysis.
✦ How to Use:
Set the wave levels (Wave 1–4) in the input panel.
Enable or disable Fibonacci levels as needed.
Watch the key retracement and extension areas:
🔵 Bullish scenario: Wave (5) continuation after breaking resistance.
🔴 Bearish scenario: Support failure and breakdown through critical retracement zones.
✦ Benefit:
This indicator provides a clear visual roadmap of critical support and resistance zones, combining Elliott Wave structure with Fibonacci confluence to anticipate potential reversals or price extensions.
Near New High ScreenerA simple indicator intended to be used in a pinescript scanner to find stocks that are re reaching highs after a pullback or base formation. To use add it as a favourite indicator so it can be selected in a pinescript scanner.
In the settings you can select whether to use the highest high or highest close for the previous high (defaults to close) and whether to use the all time high or the high from the last X days (defaults to 252 days).
Once opened in a pine scanner apply to a watchlist and scan. Stocks with a positive % have broken out from a previous high today, those with a negative % are that % away from the previous high.
You can sort by the “Pct from Prev High%” column or use the scanner filter to filter for stocks between two values, for example between 0 and -5% to find stocks near a new high, or >0 to find stocks that have broken out today.
ATAI Volume Pressure Analyzer V 1.0 — Pure Up/DownATAI Volume Pressure Analyzer V 1.0 — Pure Up/Down
Overview
Volume is a foundational tool for understanding the supply–demand balance. Classic charts show only total volume and don’t tell us what portion came from buying (Up) versus selling (Down). The ATAI Volume Pressure Analyzer fills that gap. Built on Pine Script v6, it scans a lower timeframe to estimate Up/Down volume for each host‑timeframe candle, and presents “volume pressure” in a compact HUD table that’s comparable across symbols and timeframes.
1) Architecture & Global Settings
Global Period (P, bars)
A single global input P defines the computation window. All measures—host‑TF volume moving averages and the half‑window segment sums—use this length. Default: 55.
Timeframe Handling
The core of the indicator is estimating Up/Down volume using lower‑timeframe data. You can set a custom lower timeframe, or rely on auto‑selection:
◉ Second charts → 1S
◉ Intraday → 1 minute
◉ Daily → 5 minutes
◉ Otherwise → 60 minutes
Lower TFs give more precise estimates but shorter history; higher TFs approximate buy/sell splits but provide longer history. As a rule of thumb, scan thin symbols at 5–15m, and liquid symbols at 1m.
2) Up/Down Volume & Derived Series
The script uses TradingView’s library function tvta.requestUpAndDownVolume(lowerTf) to obtain three values:
◉ Up volume (buyers)
◉ Down volume (sellers)
◉ Delta (Up − Down)
From these we define:
◉ TF_buy = |Up volume|
◉ TF_sell = |Down volume|
◉ TF_tot = TF_buy + TF_sell
◉ TF_delta = TF_buy − TF_sell
A positive TF_delta indicates buyer dominance; a negative value indicates selling pressure. To smooth noise, simple moving averages of TF_buy and TF_sell are computed over P and used as baselines.
3) Key Performance Indicators (KPIs)
Half‑window segmentation
To track momentum shifts, the P‑bar window is split in half:
◉ C→B: the older half
◉ B→A: the newer half (toward the current bar)
For each half, the script sums buy, sell, and delta. Comparing the two halves reveals strengthening/weakening pressure. Example: if AtoB_delta < CtoB_delta, recent buying pressure has faded.
[ 4) HUD (Table) Display /i]
Colors & Appearance
Two main color inputs define the theme: a primary color and a negative color (used when Δ is negative). The panel background uses a translucent version of the primary color; borders use the solid primary color. Text defaults to the primary color and flips to the negative color when a block’s Δ is negative.
Layout
The HUD is a 4×5 table updated on the last bar of each candle:
◉ Row 1 (Meta): indicator name, P length, lower TF, host TF
◉ Row 2 (Host TF): current ↑Buy, ↓Sell, ΔDelta; plus Σ total and SMA(↑/↓)
◉ Row 3 (Segments): C→B and B→A blocks with ↑/↓/Δ
◉ Rows 4–5: reserved for advanced modules (Wings, α/β, OB/OS, Top
5) Advanced Modules
5.1 Wings
“Wings” visualize volume‑driven movement over C→B (left wing) and B→A (right wing) with top/bottom lines and a filled band. Slopes are ATR‑per‑bar normalized for cross‑symbol/TF comparability and converted to angles (degrees). Coloring mirrors HUD sign logic with a near‑zero threshold (default ~3°):
◉ Both lines rising → blue (bullish)
◉ Both falling → red (bearish)
◉ Mixed/near‑zero → gray
Left wing reflects the origin of the recent move; right wing reflects the current state.
5.2 α / β at Point B
We compute the oriented angle between the two wings at the midpoint B:
β is the bottom‑arc angle; α = 360° − β is the top‑arc angle.
◉ Large α (>180°) or small β (<180°) flags meaningful imbalance.
◉ Intuition: large α suggests potential selling pressure; small β implies fragile support. HUD cells highlight these conditions.
5.3 OB/OS Spike
OverBought/OverSold (OB/OS) labels appear when directional volume spikes align with a 7‑oscillator vote (RSI, Stoch, %R, CCI, MFI, DeMarker, StochRSI).
◉ OB label (red): unusually high sell volume + enough OB votes
◉ OS label (teal): unusually high buy volume + enough OS votes
Minimum votes and sync window are user‑configurable; dotted connectors can link labels to the candle wick.
5.4 Top3 Volume Peaks
Within the P window the script ranks the top three BUY peaks (B1–B3) and top three SELL peaks (S1–S3).
◉ B1 and S1 are drawn as horizontal resistance (at B1 High) and support (at S1 Low) zones with adjustable thickness (ticks/percent/ATR).
◉ The HUD dedicates six cells to show ↑/↓/Δ for each rank, and prints the exact High (B1) and Low (S1) inline in their cells.
6) Reading the HUD — A Quick Checklist
◉ Meta: Confirm P and both timeframes (host & lower).
◉ Host TF block: Compare current ↑/↓/Δ against their SMAs.
◉ Segments: Contrast C→B vs B→A deltas to gauge momentum change.
◉ Wings: Right‑wing color/angle = now; left wing = recent origin.
◉ α / β: Look for α > 180° or β < 180° as imbalance cues.
◉ OB/OS: Note labels, color (red/teal), and the vote count.
◉Top3: Keep B1 (resistance) and S1 (support) on your radar.
Use these together to sketch scenarios and invalidation levels; never rely on a single signal in isolation.
[ 7) Example Highlights (What the table conveys) /i]
◉ Row 1 shows the indicator name, the analysis length P (default 55), and both TFs used for computation and display.
◉ B1 / S1 blocks summarize each side’s peak within the window, with Δ indicating buyer/seller dominance at that peak and inline price (B1 High / S1 Low) for actionable levels.
◉ Angle cells for each wing report the top/bottom line angles vs. the horizontal, reflecting the directional posture.
◉ Ranks B2/B3 and S2/S3 extend context beyond the top peak on each side.
◉ α / β cells quantify the orientation gap at B; changes reflect shifting buyer/seller influence on trend strength.
Together these visuals often reveal whether the “wings” resemble a strong, upward‑tilted arm supported by buyer volume—but always corroborate with your broader toolkit
8) Practical Tips & Tuning
◉ Choose P by market structure. For daily charts, 34–89 bars often works well.
◉ Lower TF choice: Thin symbols → 5–15m; liquid symbols → 1m.
◉ Near‑zero angle: In noisy markets, consider 5–7° instead of 3°.
◉ OB/OS votes: Daily charts often work with 3–4 votes; lower TFs may prefer 4–5.
◉ Zone thickness: Tie B1/S1 zone thickness to ATR so it scales with volatility.
◉ Colors: Feel free to theme the primary/negative colors; keep Δ<0 mapped to the negative color for readability.
Combine with price action: Use this indicator alongside structure, trendlines, and other tools for stronger decisions.
Technical Notes
Pine Script v6.
◉ Up/Down split via TradingView/ta library call requestUpAndDownVolume(lowerTf).
◉ HUD‑first design; drawings for Wings/αβ/OBOS/Top3 align with the same sign/threshold logic used in the table.
Disclaimer: This indicator is provided solely for educational and analytical purposes. It does not constitute financial advice, nor is it a recommendation to buy or sell any security. Always conduct your own research and use multiple tools before making trading decisions.
Liquidity-Weighted Business Cycle (Satoshi Global Base)🌍 BTC-Affinity Global Liquidity Business Cycle (MACD Model)
This indicator models Bitcoin’s macroeconomic business cycle using a BTC-weighted global liquidity index as its foundation. It adapts a MACD-based framework to visualize expansions and contractions in fiat liquidity across major economies with high Bitcoin affinity.
🔍 What It Does:
🧠 Constructs a Global M2 Liquidity Index from the top 10 most BTC-relevant fiat currencies
(USD, EUR, JPY, GBP, INR, CNY, KRW, BRL, CAD, AUD)
— each weighted by its Bitcoin adoption score and FX-converted into USD.
📊 Applies a MACD (Moving Average Convergence Divergence) signal to the index to detect macro liquidity trends.
🟢 Plots a histogram of business cycle momentum (red = expansion, green = contraction).
🔴 Marks potential cycle peaks, useful for macro trading alignment.
⚖️ BTC Affinity-Weighted Countries:
🇺🇸 United States
🇪🇺 Eurozone
🇯🇵 Japan
🇬🇧 United Kingdom
🇮🇳 India
🇨🇳 China
🇰🇷 South Korea
🇧🇷 Brazil
🇨🇦 Canada
🇦🇺 Australia
Weights are user-adjustable to reflect evolving capital controls, regulation, and real-world BTC adoption trends.
✅ Use Cases:
Confirm macro risk-on vs risk-off regimes for BTC and crypto.
Identify ideal entry and exit zones in macro pair trades (e.g., MSTR vs MSTY).
Monitor how global monetary expansion feeds into BTC valuations.
Renko Open Range 𝛥
Delta Renko-Style Indicator Guide (NQ Focus)
This indicator takes inspiration from the Renko Chart concept and is optimized for the RTH session (New York time zone), specifically applied to the Nasdaq futures (NQ) product.
If you’re unfamiliar with Renko charts, it may help to review their basics first, as this indicator borrows their clean, block-based perspective to simplify price interpretation.
⸻
🔧 How the Indicator Works
• At market open (9:30 AM EST), the indicator plots a horizontal open price line, referred to as 0 delta.
• From this anchor, it plots 10 incremental levels (deltas) both above and below the open, each spaced by 62.5 NQ points.
Why 62.5?
• With NQ currently trading in the 23,000–24,000 range, a 62.5-point move represents roughly 0.26% of the daily average range.
• This makes each delta step significant enough to capture movement while filtering out smaller noise.
A mini table (location adjustable) displays:
• Current delta zone
• Last touched delta level
This gives you a quick snapshot of where price sits relative to the open.
⸻
📈 How to Read the Market
• At the open, price typically oscillates between 0 and +1 / -1 delta.
• A break beyond this zone often signals stronger directional intent:
• Trending day: price can push into +2, +3, +4, +5 (or the inverse for downside).
• Range day: expect price to bounce between +1, 0, -1 deltas.
⚠️ Note: This is a visualization tool, not a trading system. Its purpose is to help you quickly recognize range vs. trend conditions.
⸻
📊 Example
• In this case, NQ reached +1 delta shortly after open.
• A retest of 0 delta followed, and price later surged to +5/+6 deltas (helped by Fed news).
⸻
🛠️ Practical Uses
This indicator can help you:
• Define profit targets
• Place hard stop levels
• Gauge whether a counter-trend trade is worth the risk
⚠️ Caution: Avoid counter-trend trades if price is aggressively pushing toward +5/+6 or -5/-6 deltas, as trend exhaustion usually hasn’t set in yet.
⸻
🔄 Adapting for ES (S&P Futures)
• On NQ, 62.5 points ≈ $1,250 per contract.
• For ES, this translates to 25 points.
• Since 1 NQ contract ≈ 2 ES contracts in dollar terms, an optimized ES delta step would be 12.5 points.
You may also experiment with different delta values (e.g., 50 or 31.25 for NQ) to align with your risk profile and trading style.
⸻
🧪 Extending Beyond NQ
You can experiment with applying this indicator to ES or even stocks, but non-futures assets may require additional calibration and testing.
⸻
✅ Bottom line: This tool provides a clean, Renko-inspired framework for quickly gauging trend vs. range conditions, setting realistic profit targets, and avoiding poor counter-trend setups.
AndrologQuartileAndrologQuartile
This indicator is based on the assumption that if a candle closes in the upper or lower quartile of its range, the next candle often tends to take out the high or low of that candle.
The script does two things:
It calculates and displays live statistics on how often this condition occurs and how often it is successful.
It highlights candles that meet the quartile condition so you can track them in real time.
It is most meaningful to use this indicator on higher timeframes (from 1h upwards).
You can also set an alert: once configured, the alert will always trigger for the timeframe that was active at the moment of setup.
Usage tip:
Click the statistics panel in the top right corner to adjust settings and alerts.
Adjustable parameters:
Quartiles: Default values are 25% and 75%.
Min Distance: Defines how far the high/low must be from the candle’s close (in %) to be considered relevant. A smaller value is applied automatically on intraday timeframes under 5 minutes.
20W SMA (true 20W or 140D match)Modified SMA to reflect true 20W Smooth Moving Average.
Choose between different TF's and the price remains the same
Forex 60m Simple Scanner + RSI Divergence“Forex 60m Simple Scanner + RSI Divergence”
This scanner helps beginner traders quickly identify trade opportunities across the top 10 forex pairs. It combines a simple EMA crossover system with an optional RSI filter to confirm trend direction, and adds RSI divergence detection to spot potential reversals early.
The built-in table shows each pair’s trend, RSI value, buy/sell signal, and divergence status—all in one place.
For beginners, this makes it easier to:
Avoid flipping between multiple charts.
See clear BUY/SELL 🚀 signals instead of guessing.
Spot high-probability setups with RSI divergence markers (😊/☹️).
It simplifies decision-making by turning complex signals into a straightforward dashboard that highlights where attention is needed most.
Forex 5m Simple Scanner + RSI DivergenceHello everyone. this is a easy to use indicator.
I wanted something very easy to visualize and understand. Great for the beginner's.
About this script:
“Forex 5m Simple Scanner + RSI Divergence”
This scanner helps beginner traders quickly identify trade opportunities across the top 10 forex pairs. It combines a simple EMA crossover system with an optional RSI filter to confirm trend direction, and adds RSI divergence detection to spot potential reversals early.
The built-in table shows each pair’s trend, RSI value, buy/sell signal, and divergence status—all in one place.
For beginners, this makes it easier to:
Avoid flipping between multiple charts.
See clear BUY/SELL 🚀 signals instead of guessing.
Spot high-probability setups with RSI divergence markers (😊/☹️).
It simplifies decision-making by turning complex signals into a straightforward dashboard that highlights where attention is needed most.
MarketSurge EPS Line [tradeviZion]MarketSurge EPS Line
EPS trend line overlay for TradingView charts, inspired by the IBD MarketSurge (formerly MarketSmith) EPS line style.
Displays EPS trend line on price charts
Uses 4-quarter earnings moving average
Shows earnings momentum over time
Works with actual, estimated, or standardized earnings data
Customizable line color and width
This script creates an EPS trend line overlay, similar to the EPS line feature in IBD MarketSurge (previously MarketSmith), allowing you to visualize earnings trends alongside price action.
Add script to chart
EPS line appears automatically
Adjust color and width in settings if needed
Hover over line for earnings details
Settings:
EPS data type (actual/estimate/standardized)
Line color and width
💡 Tip:
For the complete IBD Style experience, pair this EPS line with IBD Style Candles to visualize price action with clean bars like IBD Style
MTF Advanced Disparity Index (Oscillator)multi time frame disparity index indicator is good for intraday ,we can find buy sell signals by using it's overbought & oversold zone
Gott's Copernican Trend PredictorThe Gott's Copernican Trend Predictor predicts trend duration using the Copernican Principle - Based on astrophysicist Richard Gott's temporal prediction method.
I had the idea to create this indicator after reading the book The Doomsday Calculation by William Poundstone.
Background & Theory
This indicator implements J. Richard Gott III's Copernican Principle - a statistical method that famously predicted the fall of the Berlin Wall and the duration of Broadway shows with remarkable accuracy.
The Copernican Principle Explained
Named after Copernicus who showed that Earth is not at the center of the universe, this principle assumes that you are not observing something at a special moment in time. When you observe a trend at any random point, you're statistically more likely to be seeing it during the "middle portion" of its lifetime rather than at its very beginning or end.
The Mathematics
Gott's formula provides a 95% confidence interval for how much longer a trend will continue:
Minimum remaining duration = Current Age ÷ 39
Maximum remaining duration = Current Age × 39
The factor of 39 comes from statistical analysis where:
There's only a 2.5% chance you're observing in the first 1/40th of the trend's life
There's only a 2.5% chance you're observing in the last 1/40th of the trend's life
This gives us 95% confidence that the trend will last between Age/39 and Age×39
How It Works
Trend Detection
The indicator uses dual moving averages (default: 50 & 200 period) to identify trend changes:
Bullish Cross: Fast MA crosses above Slow MA → Uptrend begins
Bearish Cross: Fast MA crosses below Slow MA → Downtrend begins
Real-Time Predictions
Once a trend is detected, the indicator continuously calculates:
Trend Age: How long the current trend has been active
Gott's 95% CI: Statistical range for remaining trend duration
Projected End Dates: Calendar dates when the trend might end
How to Use
Setup
Add the indicator to any timeframe (works on minutes, hours, days, weeks)
Customize MA periods and type (SMA, EMA, WMA)
Choose table position and font size for optimal viewing
Interpretation
Example: If a trend is 100 hours old:
Minimum duration: 100 ÷ 39 = ~3 more hours
Maximum duration: 100 × 39 = ~3,900 more hours
95% confidence: The trend will end between these times
This indicator might be useful for swing traders, trend followers, and quantitative analysts.
Coca-Cola example:
Coca-Cola's chart shows an uptrend spanning 810 weeks, approximately 15.5 years. According to Gott's Copernican Principle, this trend age generates a 95% confidence interval predicting the trend will continue for a minimum of 20 weeks and a maximum of 31,590 weeks.
On the other hand, a shorter trend age produces a proportionally smaller minimum duration and different risk profile in terms of statistical continuation probability. For this reason, more recent trends (and more recent companies) are likely to remain in trend for shorter.