Earnings Day - Price Predictor [DunesIsland]It's designed to analyze and visualize historical stock price movements on earnings report days, focusing on percentage changes.
Here's a breakdown of what it does, step by step:
Key Inputs and Setup
User Input: There's a single input for "Lookback Years" (default: 10), which determines how far back in time (approximately) the indicator analyzes earnings data. It uses a rough calculation of milliseconds in that period to filter historical data.
Data Fetching: It uses TradingView's request.earnings function to pull actual earnings per share (EPS) data for the current ticker. Earnings days are identified where EPS data exists on a bar but not on the previous one (to avoid duplicates).
Price Change Calculation: For each detected earnings day, it computes the percentage price movement as (close - close ) / close * 100, representing the change from the previous close to the current close on that day.
Processing and Calculations (on the Last Bar)
Lookback Filter: It calculates a cutoff timestamp for the lookback period and processes only earnings events within that window.
Overall Averages:
Separates positive (≥0%) and negative (<0%) percentage changes.
Seasonality (Next Quarter Prediction):
Identifies the most recent earnings quarter (latest_q).
Predicts the "next" quarter (e.g., if latest is Q4, next is Q1;
Again, separates positive and negative changes, computing their respective averages.
Visual Outputs
Lookback: How far to fetch the data in years.
Average Change (Green): Showing the average of all positive changes.
Average Change (Red): Showing the average of all negative changes.
Seasonality Change (Green): Showing the average of positive changes for the predicted next quarter.
Seasonality Change (Red): Showing the average of negative changes for the predicted next quarter.
Purpose and Usage
This indicator helps traders assess a stock's historical reaction to earnings announcements. The overall averages give a broad sense of typical gains/losses, while the seasonality focuses on quarter-specific trends to "predict" potential movement for the upcoming earnings (based on past same-quarter performance). It's best used on daily charts for stocks with reliable earnings data. Note that quarter inference is calendar-based and may not perfectly match fiscal calendars for all companies—it's an approximation.
Indicatori e strategie
lib_master_indicators_v2Library "lib_master_indicators_v2"
f_adx_di(h, l, c, len)
Parameters:
h (float)
l (float)
c (float)
len (int)
f_di_pack(h, l, c, len)
Parameters:
h (float)
l (float)
c (float)
len (int)
f_ce_long(h, l, c, len, mult, useClose)
Parameters:
h (float)
l (float)
c (float)
len (simple int)
mult (float)
useClose (bool)
f_wavetrend(src, n1, n2)
Parameters:
src (float)
n1 (simple int)
n2 (simple int)
f_utbot(close_src, key, atrPeriod, useHA)
Parameters:
close_src (float)
key (float)
atrPeriod (simple int)
useHA (bool)
f_rex(src_o, src_h, src_l, src_c, maType, len, sigType, sigLen)
Parameters:
src_o (float)
src_h (float)
src_l (float)
src_c (float)
maType (string)
len (simple int)
sigType (string)
sigLen (simple int)
f_srocst(src, rocLen, smoothLen, maType, lsmaOffset)
Parameters:
src (float)
rocLen (int)
smoothLen (simple int)
maType (string)
lsmaOffset (simple int)
f_kalman_hull_st(src, measurementNoise, processNoise, atrLen, factor)
Parameters:
src (float)
measurementNoise (float)
processNoise (float)
atrLen (simple int)
factor (float)
f_smc_v2_placeholder()
RSI Colored by Relative StrengthThis indicator enhances the traditional RSI by combining it with Relative Strength (RS) — the ratio of an asset’s price to a chosen benchmark (e.g., SPY, QQQ, BTCUSD) — to create a more accurate, powerful, and dynamic momentum confirmation tool.
Instead of relying solely on RSI’s internal momentum, this version color-codes RSI values and backgrounds based on whether the asset is outperforming, underperforming, or neutral relative to the benchmark, not only identifying the RSI value, but color codes it in relation to the overall market to give more accurate confirmations.
• RS > 1 → The asset is outperforming the benchmark (relative strength).
• RS < 1 → The asset is underperforming.
• RS ≈ 1 → Neutral or moving in sync with the benchmark.
Gradient background zones:
• Green tones = outperformance (RS > 1).
• Red tones = underperformance (RS < 1).
• Gray neutral band = parity (RS ≈ 1).
Intensity adjusts dynamically based on how far RS deviates from 1, giving an at-a-glance view of market leadership strength.
• Color-coded RSI line: Green when RS > 1, red when RS < 1.
• Optional markers and labels show confirmed RS+RSI crossovers with smart spacing to prevent clutter.
• Alerts included for bullish and bearish RS+RSI alignment events.
How to Use
1. Add your preferred benchmark symbol (default: SPY).
2. Move this indicator into the same pane as your RSI (No need to overlay, does so automatically) and can also be used standalone.
3. Watch for:
• Green RSI & background: Significant momentum strength (asset trending upward and outpacing the market).
• Red RSI & background: False or insignificant momentum (asset lagging).
• Gray zone: neutral phase — consolidation or rotation period.
Use this as a trend-confirmation filter rather than a signal generator.
For example:
• Confirm and refine breakout entries when RS > 1 (RSI support = stronger conviction).
• Take profits when RSI weakens and RS slips below 1.
TST Rahmat RamadhanThis indicator was created to simplify (Time Session Trading) in regions with GMT +7 time zones, using the London Session, Asia Session, and New York Session time systems.
The purpose of dividing trading sessions is to make it easier to see price movements during trading hours based on the trading session.
This indicator was created for personal use, but can be used by anyone in the same time zone.
Please note that this indicator does not display buy or sell signals, so technical analysis skills are required to use it.
Good luck!
Glork-SMA20D
50D
200D
200W
50W
Works on all time frames. Prints to the current candle
Colors are adjustable
Enhanced SMA RibbonThe "Enhanced SMA Ribbon" indicator, implemented in TradingView's Pine Script, is a technical analysis tool that overlays multiple Simple Moving Averages (SMAs) on a price chart to help traders identify trends, potential reversals, and the overall market direction. Here's a detailed explanation of what it does:
What It Does
Calculates Multiple SMAs:
The indicator calculates 13 SMAs with different periods: 5, 6, 8, 10, 15, 20, 30, 50, 75, 100, 150, 200, and 300 bars.
Each SMA is based on the closing price (close) of the chart's data, smoothing out price fluctuations over the specified number of periods to reveal underlying trends.
Creates a Ribbon Effect:
These SMAs are plotted as lines on the chart, forming a "ribbon" where the lines spread out or converge based on the price action.
Shorter-period SMAs (e.g., 5, 6, 8) react quickly to price changes, while longer-period SMAs (e.g., 200, 300) move more slowly, creating a visual gradient of trend strength.
Visualizes Trend Direction:
When the ribbon fans out and all SMAs slope upward (e.g., shorter SMAs above longer ones), it indicates a strong uptrend.
When the ribbon compresses and slopes downward (e.g., shorter SMAs below longer ones), it suggests a downtrend.
A flat or converging ribbon can signal a consolidation phase or potential reversal.
Uses Distinct Colors:
Each SMA is assigned a unique color using RGB values, transitioning from red (short-term, e.g., SMA 5) to gray (long-term, e.g., SMA 300). The colors are:
SMA 5: Red (#FF0000)
SMA 6: OrangeRed (#FF4500)
SMA 8: Orange (#FFA500)
SMA 10: Yellow (#FFFF00)
SMA 15: GreenYellow (#ADFF2F)
SMA 20: Green (#00FF00)
SMA 30: Cyan (#00FFFF)
SMA 50: DodgerBlue (#1E90FF)
SMA 75: Blue (#0000FF)
SMA 100: Purple (#800080)
SMA 150: Magenta (#FF00FF)
SMA 200: DarkTurquoise (#00CED1)
SMA 300: Gray (#808080)
This color gradient helps traders quickly distinguish between short-, medium-, and long-term trends.
Overlays on Price Chart:
The indicator is set to overlay=true, meaning it plots directly on the price chart (e.g., candlesticks or bars) rather than in a separate pane, allowing for direct comparison with price movements.
How Traders Use It
Trend Confirmation: A widening ribbon with upward-sloping SMAs confirms a bullish trend, while a narrowing ribbon with downward-sloping SMAs confirms a bearish trend.
Crossover Signals: Crossovers between shorter and longer SMAs (e.g., SMA 5 crossing SMA 50) can indicate potential buy or sell signals, though this requires additional logic (not included here).
Support and Resistance: Longer SMAs (e.g., 200, 300) often act as dynamic support or resistance levels.
Market Context: The ribbon provides a multi-timeframe view, combining short-term reactions with long-term trends, useful for swing traders or those analyzing market cycles.
Example Behavior
In an uptrend, the price might stay above the ribbon, with shorter SMAs (e.g., 5, 10) leading the upward movement, followed by longer SMAs (e.g., 200, 300) catching up.
In a downtrend, the price might fall below the ribbon, with shorter SMAs dropping first, creating a red-dominated lower section.
During consolidation, the SMAs might bunch together, forming a tight ribbon with minimal slope.
Limitations
The indicator can become cluttered on lower timeframes (e.g., 1-minute charts) due to the number of lines.
It’s a lagging indicator since SMAs are based on past data, so it’s best used with other tools (e.g., RSI, MACD) for confirmation.
ATR %ATR % Oscillator
A simple and effective Average True Range (ATR) indicator displayed as a percentage of the current price in a separate panel.
FEATURES:
• ATR displayed as percentage of current price for easy cross-asset comparison
• EMA smoothing line using the same period as ATR
• Configurable ATR period (default: 20)
• Clean visualization with zero reference line
HOW IT WORKS:
The indicator calculates ATR and converts it to a percentage: (ATR / Close) × 100
This normalization allows you to:
- Compare volatility across different instruments regardless of price
- Identify high and low volatility periods
- Use the EMA line to spot volatility trends
PARAMETERS:
ATR Period - The lookback period for ATR calculation (default: 20)
Timeframe - Choose any timeframe for ATR calculation independently from the chart timeframe (default: chart timeframe)
Z-Cum Delta 4U [ZuperView]Z-Cum Delta 4U is an order flow indicator that helps traders see through price action and determine whether aggressive buying or selling pressure is dominating the market.
By accumulating delta volume over time, it paints a clear picture of how control shifts between buyers and sellers.
📌 Key features
🔸 Market control transition
Z-Cum Delta 4U detects when market pressure is likely to shift from one side to the other.
Bullish reversal signal
When the histogram turns from red (negative) to green (positive), buyers have absorbed selling pressure.
This indicates accumulation at the bottom and offers a strong Buy opportunity.
Bearish reversal signal
When the histogram turns from green to red, selling pressure has overtaken buying pressure.
This often marks a market top and the start of a distribution phase, providing a reliable Sell opportunity.
🔸 Early momentum warnings
Traders usually don’t wait for the histogram to change color. They compare it with moving averages to identify early signs of momentum exhaustion, serving as an early warning of a potential reversal.
When the histogram reaches extreme positive or negative levels, it reflects strong momentum, making an immediate reversal unlikely.
Momentum weakening in an uptrend:
This is an early warning that the uptrend may be weakening before the histogram turns red.
Interpretation: Aggressive buying momentum is fading; upward strength is weakening.
Action: Tighten risk management, adjust stop-loss levels, or take partial profits to protect gains and prepare for a potential pullback.
Momentum weakening in a downtrend:
This is an early warning that the downtrend may be weakening before the histogram turns green.
Interpretation: Selling pressure is fading as buyers begin to absorb volume quietly.
Action: Close short positions, lock in profits, and prepare for potential long entries once a reversal confirmation appears.
🔸 Divergence detection
Divergence between price and the histogram of Z-Cum Delta 4U highlights a mismatch between price action and actual market pressure.
Positive divergence
Condition: Price forms a lower low, while the indicator forms a higher low.
Interpretation: Selling pressure is losing momentum while smart money accumulates – signaling a potential bullish reversal.
Negative divergence
Condition: Price forms a higher high, while the histogram forms a lower high.
Interpretation: Price is being pushed higher by weak or declining buying pressure – a potential bull trap warning of a sell-off.
🔸 Volume exhaustion and absorption
Z-Cum Delta 4U also helps identify final moves by dominant participants – often marking the end of a major trend.
Volume exhaustion
When the histogram spikes sharply to an extreme (positive or negative) and immediately reverses, it indicates that the last buyers or sellers have stepped in.
The market has run out of opposing liquidity, often leading to a sharp reversal.
Volume absorption
When the histogram rises or falls strongly near a key support or resistance level but the price fails to move further, it shows that large opposing orders are being absorbed.
Once absorption is complete, the price often breaks out decisively in the direction of the absorbing side.
In summary, the indicator enables traders to interpret smart money behavior through order flow dynamics.
By combining early warning signals (via the MA), divergence analysis, and volume absorption patterns, traders can move from reacting to price action to anticipating it – gaining a genuine strategic edge.
📌 Signal mechanism
These 3 signal types form an analytical framework for understanding market behavior, from confirming trend reversals and assessing momentum strength to detecting early reversal warnings.
🔸 Reversal signal
Based on the histogram color transitions, this signal represents a shift in control between buyers and sellers.
Bullish reversal signal
When the histogram changes from red to green.
→ Selling pressure has been absorbed, and aggressive buyers have regained control, confirming a likely bottom and a strong buy signal.
Bearish reversal signal
When the histogram changes from green to red.
→ Buying pressure is exhausted, and aggressive sellers dominate, confirming a likely top and a strong sell signal.
🔸 Momentum signal
This signal uses the indicator’s moving average as a benchmark to gauge the strength and sustainability of order flow.
Mechanism: Triggered when the histogram crosses its MA in the direction of the trend.
Meaning:
Uptrend: When the histogram rises above its MA → strong, sustained buying pressure from institutional activity.
Downtrend: When the histogram falls below its MA → dominant selling pressure drives continuation.
Action: Hold or scale into positions aligned with the trend, as the move is supported by persistent order flow.
🔸 Early reversal signal
This signal allows traders to optimize entry and exit points before a reversal occurs.
Mechanism:
Uptrend: When the histogram remains positive but declines and crosses below its MA.
Downtrend: When the histogram remains negative but rises and crosses above its MA.
Meaning: Momentum exhaustion in the dominant force (buyers in uptrends or sellers in downtrends). The color hasn’t flipped yet, but the intensity has weakened significantly.
Action:
Tighten stop-loss levels
Take partial profits
Prepare for a possible reversal signal
GT One-Shot: Buy/Sell Alert Only [v2.4]🔹 Purpose
This indicator automatically detects Buy/Sell signals based on
EMA crossover + RSI filter + Bollinger Bands confirmation.
It then sends alerts automatically — to TradingView, Telegram, or any webhook.
You can use it on multiple timeframes (1m, 5m, 15m, 1h) without creating separate signals manually.
Momentum Flow Build w/ FVG v2Good day.
The Momentum Flow Build w/ FVG v2 indicator
shows the previous session levels of Asia and London,
and the 5 min NY open levels (for 15 min go to 15 min chart).
The indicator also shows the FVGs.
The idea is that if price reaches a key level, we then
watch the level for whether price respects FVGs with a
retracement and engulfing candle at the FVG, or whether
price inverts the FVG (IFVG).
Cool. Be encouraged. Peace
[v2.3 Progressive TP - Clean] GT One-Shot: TP/SL Result Tracker Purpose
This indicator is an auto-signal and results tracker.
It gives Buy/Sell entries, auto-calculates Take-Profit 1-3 and Stop-Loss, shows them on the chart, and keeps a live table of values and outcomes (which TP/SL was hit).
No repainting — all checks occur on confirmed bars.
RBD Advanced PinbarInputs / Settings
Detection parameters
lookback_period → How far back to compare wick sizes.
min_wick_ratio → Minimum wick length as % of total candle height.
max_body_ratio → Maximum body size as % of total candle height.
atr_multiplier → Ensures the pinbar candle’s total height is at least a multiple of the ATR (filters out small candles).
wick_size_multiplier → The wick must be at least X times larger than the biggest wick in recent candles.
Visual options
Toggle display of hammer / shooting star markers, labels, background highlights, and info table.
Customize colors and label size.
For each candle:
Calculates upper wick, lower wick, and body size in both absolute and percentage terms.
Checks if the total candle size is “large enough” using ATR.
Looks back lookback_period bars to find the largest historical upper and lower wick.
Compares current wick size to the past max wick (must exceed it by wick_size_multiplier).
Classifies the candle:
Hammer Pinbar (Bullish) if
Lower wick ≥ min_wick_ratio
Body ≤ max_body_ratio
Candle is big enough (ATR filter)
Lower wick is significantly longer than past wicks
Shooting Star (Bearish) if
Upper wick ≥ min_wick_ratio
Body ≤ max_body_ratio
Candle is big enough
Upper wick is significantly longer than past wicks
BXIt includes six MA (moving average) lines, three EMA (exponential moving average) lines, and Bollinger Bands, making it easy and intuitive to observe the support and resistance levels on the candlestick chart.
Inflection/ Bull Bear/ Weekly R&S VisualizerDisplay: Weekly Support/ Resistance, Inflection Levels, Bullbear
Adjust: Line Color, strength, style, opacity
Add: Zone around Inflection Level
Stock Fundamental Overlay [DarwinDarma]Stock Fundamental Overlay
Stock Fundamental Overlay is a comprehensive valuation indicator that displays multiple fundamental analysis metrics directly on your price chart.
Key Features:
• Graham Number - Benjamin Graham's intrinsic value formula
• Book Value Per Share (BVPS) - Net asset value baseline
• DCF Valuation - Discounted Cash Flow analysis (non-financial stocks)
• DDM Valuation - Dividend Discount Model (dividend-paying stocks)
• Visual Value Zones - Color-coded undervalued/overvalued regions
• Real-time Fundamental Table - Live metrics and valuations
• Price vs Graham Comparison - Quick valuation assessment
• Built-in Alerts - Notification when price crosses key levels
Valuation Models:
• Graham Number: √(22.5 × EPS × BVPS)
• DCF: Customizable discount rate, growth rate, and forecast period
• DDM: Gordon Growth Model for dividend analysis
Visual Elements:
• Plot lines for BVPS, Graham Number, and DCF values
• Shaded value zone between BVPS and Graham Number
• Background coloring: Deep value (below BVPS), Undervalued (below Graham), Overvalued (>1.5x Graham)
• Dynamic table showing all metrics with theme-aware text colors
Special Handling:
• Financial sector detection - DCF disabled for banks/financials where FCF metrics are distorted
• Automatic light/dark theme adaptation
• TTM (Trailing Twelve Months) data for current metrics
How to Use - Value Investing Approach:
1. Identifying Undervalued Stocks:
• Look for price trading BELOW the Graham Number (green zone) - potential value opportunity
• Deep value: Price below BVPS indicates trading below net asset value
• Check "Price vs Graham" % in table - negative values suggest undervaluation
• Compare multiple models: When price is below Graham, DCF, and BVPS simultaneously, stronger buy signal
2. Margin of Safety:
• Benjamin Graham recommended buying at 2/3 of intrinsic value (33% margin of safety)
• Monitor the gap between current price and valuation lines
• Larger gaps = greater margin of safety = lower downside risk
• Use the shaded "Value Zone" as your target buying range
3. Setting Alerts:
• "Price Below Graham Number" - Notifies when stock enters value territory
• "Price Below Book Value" - Extreme value alert for deep value hunters
• "Price Below DCF Value" - Cash flow-based value signal
• Set alerts on watchlist stocks to catch value opportunities
4. Customizing for Your Strategy:
• Conservative investors: Use lower growth rates (3-4%) and higher discount rates (12-15%)
• Growth-value investors: Adjust growth rate (6-8%) for quality compounders
• Dividend investors: Focus on DDM value and Div/Share metrics
• Adjust forecast years based on business predictability (stable = 10 years, cyclical = 5 years)
5. Red Flags to Avoid:
• Negative EPS or FCF (red values in table) - proceed with caution
• Financial sector stocks - Use DDM and Graham, ignore DCF
• Price far above Graham (>1.5x) with red background = overvalued territory
• No fundamental data = "N/A" in table - stock may lack reporting or be too small
• Stock persistently below BVPS for extended periods - potential value trap or business in distress
• Price significantly above ALL models (BVPS, Graham, DCF) - sentiment-driven, lacks intrinsic value foundation (fragile)
⚠️ Important Value Investing Warnings:
• Value Trap Alert: A stock staying below BVPS for months/years may signal fundamental deterioration, asset impairments, or dying industry - not just "cheap." Investigate WHY it's cheap before buying
• Sentiment Bubble Risk: When price trades far above BVPS, Graham Number, AND DCF simultaneously, the stock has no intrinsic value basis. Examples: commodity stocks during boom cycles (gold miners in gold rallies), meme stocks, hype-driven sectors. These are highly fragile and vulnerable to mean reversion
• Cyclical Trap: Commodity/cyclical stocks can appear "cheap" at peak earnings (low P/E, high FCF) but are actually expensive. Normalize earnings across the cycle before valuing
• Quality Matters: Some excellent businesses (asset-light, high ROIC) naturally trade above book value. Don't avoid quality - adjust expectations for business model
6. Monitoring Positions:
• Watch for price approaching or exceeding Graham Number - consider taking profits
• Track EPS and FCF trends quarter-to-quarter in the table
• If fundamentals deteriorate (falling BVPS, negative FCF), reassess thesis
• Use background colors for quick visual check: green = hold/buy, red = overvalued
Perfect for:
Value investors seeking multi-model fundamental analysis, long-term investors comparing intrinsic value to market price, dividend investors evaluating yield stocks, and fundamental traders looking for entry/exit signals.
Note: Only works with stocks that have financial data available. Not applicable to crypto, forex, or futures. This indicator provides analysis tools; always conduct thorough research and due diligence before investing.
fenshiThis is an indicator that only displays the intraday weighted price, similar to the intraday charts in other software.
Ikas Forex SM ConceptsIkas Forex SM Concepts (SMC) – All-in-One Indicator
This indicator automatically analyzes market structure, liquidity zones, and institutional trading areas, allowing you to interpret price movements using the “Smart Money Concepts” approach.
It directly plots the most important concepts such as real-time BOS (Break of Structure), CHoCH (Change of Character), Order Block, Fair Value Gap (FVG), Equal High/Low, and Premium/Discount zones onto the chart.
⚙️ Features
Intra & Swing Market Structure: Shows micro and macro breaks (BOS/CHoCH) in price movement in real time.
Order Blocks: Marks potential areas where institutional participants open positions (bull/bear blocks).
Fair Value Gaps: Automatically detects price imbalances, identifies potential entry/exit zones.
Equal Highs & Lows (EQH/EQL): Highlights double top/bottom formations, visualizes potential liquidity traps.
Premium & Discount Zones: Shows whether the price is in an overvalued (premium) or undervalued (discount) zone.
MTF High/Low Levels: Automatically plots daily, weekly, and monthly high-low levels.
Style and Filtering: Offers flexible options such as color or monochrome views, BOS filtering, and FVG threshold settings.
📊 How to Use?
Trend Direction: CHoCH and BOS labels help identify trend reversals and continuations.
Liquidity Zones: Order blocks and equal high/low levels clarify institutional liquidity zones.
Entry/Exit Planning: When combined with FVG and Premium/Discount zones, high-probability trade points can be identified.
Chart Cleanliness: Since all these components are drawn automatically, the manual analysis burden is reduced.
💡 Why is it important?
Smart Money Concepts (SMC) is an approach popularized by ICT that analyzes price movement not only with formations but also with liquidity and market structure dynamics.
This indicator combines these concepts into a single tool, providing a visual, simple, and functional analysis environment.



















