Yield Curve Regime Shading with LegendTakes two symbols (e.g. two futures contracts, two FX pairs, etc.) as inputs.
Calculates the “regime” as the sign of the change in their difference over an n‑period lookback.
Lets you choose whether you want to color the bars themselves or shade the background.
How it works
Inputs
symbolA, symbolB: the two tickers you’re comparing.
n: lookback in bars to measure the change in the spread.
mode: pick between “Shading” or “Candle Color”.
Data fetching
We use request.security() to pull each series at the chart’s timeframe.
Regime calculation
spread = priceA – priceB
spreadPrev = ta.valuewhen(not na(spread), spread , 0) (i.e. the spread n bars ago)
If spread > spreadPrev → bullish regime
If spread < spreadPrev → bearish regime
Plotting
Shading: apply bgcolor() in green/red.
Candle Color: use barcolor() to override the bar color.
Chart patterns
Live SPX Buy/Sell Zones (Simulated)This indicator allows you to see when people bought and sold by the grace of Jesus Christ
Live SPX Buy/Sell Zones (Simulated)This is a indactor that best indicates whats happening with buyers and sellers
Z Score 主图策略 — v1.02Hello Traders,
Here is my new year gift for the community, Digergence for Many Indicators v4. I tried to make it modular and readable as much as I can. Thanks to Pine Team for improving Pine Platform all the time!
How it works?
- On each candle it checks divergences between current and any of last 16 Pivot Points for the indicators.
- it search divergence on choisen indicators => RSI , MACD , MACD Histogram, Stochastic , CCI , Momentum, OBV, VWMACD, CMF and any External Indicator!
- it checks following divergences for 16 pivot points that is in last 100 bars for each Indicator.
--> Regular Positive Digergences
--> Regular Negative Digergences
--> Hidden Positive Digergences
--> Hidden Negative Digergences
- for positive divergences first it checks if closing price is higher than last closing price and indicator value is higher than perious value, then start searching divergence
- for negative divergences first it checks if closing price is lower than last closing price and indicator value is lower than perious value, then start searching divergence
Some Options:
Pivot Period: you set Pivot Period as you wish. you can see Pivot Points using "Show Pivot Points" option
Source for Pivot Points: you can use Close or High/Low as source
Divergence Type: you can choose Divergence type to be shown => "Regular", "Hidden", "Regular/Hidden"
Show Indicator Names: you have different options to show indicator names => "Full", "First Letter", "Don't Show"
Show Divergence Number: option to see number of indicators which has Divergence
Show Only Last Divergence: if you enable this option then it shows only last Positive and Negative Divergences
you can include any External Indicator to see if there is divergence
- enable "Check External Indicator"
- and then choose External indicator name in the list, "External Indicator"
- External indicator name is shown as Extrn
- related external indicator must be added before enabling this option
Coloring, line width and line style options for different type of divergences.
Following Alerts added:
- Positive Regular Divergence Detected
- Negative Regular Divergence Detected
- Positive Hidden Divergence Detected
- Negative Hidden Divergence Detected
Now lets see some examples:
GoldBurst-15min · Gold DayTrade Session Burst StrategyWhat makes it original & useful
Session micro-structure edge – exploits two well-documented volatility pockets in spot gold:
• NY futures pit open (13:05-13:35 UTC)
• London 15 h fix (14:45-15:15 UTC)
Adaptive confirmation stack
Daily-anchored VWAP to locate fair value.
Real-time volume-spike filter (live vs. 20-bar median) to catch crowd surges.
60 min EMA slope for higher-TF trend bias (no look-ahead).
Risk in context – ATR-scaled stops/targets + bars-held timer flatten positions before liquidity evaporates.
Clean visual dashboard – live window status & bias label; uncluttered chart footprint.
How the logic fires
Step Long setup (mirror for shorts)
1 Inside active session window.
2 Volume ≥ median × Vol Spike input (default = 1.3).
3 60 m EMA rising.
4 Price closes > VWAP + 0.5 × ATR ⇒ market order next bar.
5 Exit at 1.6 × ATR TP, 0.8 × ATR SL or after 2 bars (~30 min).
Max 2 trades per window; flat outside windows.
Key inputs
Input Purpose Default
ATR Length Volatility base 20
TP / SL × ATR Reward / risk 1.6 / 0.8
Volume Spike × Median Crowd filter 1.3
Trades / Window Over-trading guard 2
Time Exit (bars) Stay-in-market cap 2
Default back-test settings (Properties → Strategy)
Chosen for realistic retail conditions; please adjust to suit your broker.
Capital: 100 000 USD
Order size: 1 % of equit
Commission: 0.15 USD/contract
Slippage: 5 ticks
Pyramiding: 1
Recalculate: on bar close, bar-magnifier ON
Dataset: XAUUSD, 15 min
How to use it
Load on a 15 min XAUUSD chart set to UTC.
Keep default Inputs first; tweak ATR multiples or volume factor only after validating.
Combine with macro or DXY overlays to avoid trading into major news spikes.
Limitations & risk notice
Designed for spot gold only; other metals require re-tuning.
Highly dependent on tight spreads during bursts—use an ECN broker.
Past performance ≠ future results; test forward on demo before going live.
SMA Smooth Market Structure (Multi-Timeframe)SMA Market Structure (Multi-Timeframe) is a powerful tool for tracking structural price action, using simple moving averages across any higher timeframe (HTF). It blends Smart Money Concepts with clean swing logic to reveal trend shifts, breaks of structure, and supply/demand zones.
This indicator highlights key structure features:
• Break of Structure (BOS) – Automatic detection of bullish or bearish swing breaks
• Internal Shifts – Early clues that the market is building toward a reversal
• Liquidity Sweeps (LS) – Detects swing failures that may trap traders
• Zigzag Swing Lines – Cleanly connects swing highs and lows
• Dynamic Zones – Demand (green) and supply (red) blocks drawn from engulfing breakouts
How to Use:
• Set your preferred HTF (e.g. 1H on a 15m chart) to view structure in proper context and
adjust SMA to smooth out market structure for directional consistency
• Watch BOS lines and swing labels like HH, HL, LH, LL for directional clarity
• Use the MS (Market Shift) label to identify full reversals after internal shifts + BOS
• Demand/Supply zones mark areas of previous strength and will update or mitigate automatically
• Alerts notify you of every BOS, MS, HH, LL, and LS event — no need to monitor manually
Customization Features:
• Toggle visibility of market shift markers, internal shifts, and zones
• Choose how internal shifts are calculated (High/Low or Open)
• Customize line style, width, and colors for BOS and zigzag lines
• Control zone duration and how mitigated zones behave (fade or delete)
• Built-in safety for Pine Script’s history limits using smart offset caps
Best Use Tips:
• Combine with price action patterns or volume for confirmation
• MS + BOS + zone tap often marks a high-probability reversal setup
• Use it to align lower timeframe entries with higher timeframe structure
For traders who want structure clarity without clutter, this tool is built to keep your chart actionable and adaptive.
TR37The 377-day EMA is a long-term trend indicator, giving more weight to recent prices compared to an SMA. Traders may use it to:
Identify long-term trends (e.g., price above EMA = bullish, below = bearish).
Spot potential support/resistance levels.
Confirm trend direction for swing or position trading.
Supply & Demand Zones with Touch CountSupply and demand zones usually mean areas where price reversed multiple times, acting like support (demand) or resistance (supply).
VWAP + EMA StrategyUses Vwap and Ema for buy and sell signal. Just looking through and exploring what code can do. Not a financial advice
SerkevtinThis indicator is a combination of moving averages and bands that all price charts react to at different points. You can't just have precise entry points at these points, you have to look at it with a more open perspective and combine it with fractal analysis.
Aftershock Playbook: Stock Earnings Drift EngineStrategy type
Event-driven post-earnings momentum engine (long/short) built for single-stock charts or ADRs that publish quarterly results.
What it does
Detects the exact earnings bar (request.earnings, lookahead_off).
Scores the surprise and launches a position on that candle’s close.
Tracks PnL: if the first leg closes green, the engine automatically re-enters on the very next bar, milking residual drift.
Blocks mid-cycle trades after a loss until the next earnings release—keeping the risk contained to one cycle.
Think of it as a sniper that fires on the earnings pop, reloads once if the shot lands, then goes silent until the next report.
Core signal inputs
Component Default Purpose
EPS Surprise % +0 % / –5 % Minimum positive / negative shock to trigger longs/shorts.
Reverse signals? Off Quick flip for mean-reversion experiments.
Time Risk Mgt. Off Optional hard exit after 45 calendar days (auto-scaled to any TF).
Risk engine
ATR-based stop (ATR × 2 by default, editable).
Bar time stop (15-min → Daily: Have to select the bar value ).
No pyramiding beyond the built-in “double-tap”.
All positions sized as % of equity via Strategy Properties.
Visual aids
Yellow triangle marks the earnings bar.
Diagnostics table (top-right) shows last Actual, Estimate, and Surprise %.
Status-line tool-tips on every input.
Default inputs
Setting Value
Positive surprise ≥ 0 %
Negative surprise ≤ –5 %
ATR stop × 2
ATR length 50
Hold horizon 350 ( 1h timeframe chart bars)
Back-test properties
Initial capital 10 000
Order size 5 % of equity
Pyramiding 1 (internal re-entry only)
Commission 0.03 %
Slippage 5 ticks
Fills Bar magnifier ✔ · On bar close ✔ · Standard OHLC ✔
How to use
Add the script to any earnings-driven stock (AAPL, MSFT, TSLA…).
Turn on Time Risk Management if you want stricter risk management
Back-test different ATR multipliers to fit the stock’s volatility.
Sync commission & slippage with your broker before forward-testing.
Important notes
Works on every timeframe from 15 min to 1 D. Sweet spot around 30min/1h
All request.earnings() & request.security() calls use lookahead_off—zero repaint.
The “double-tap” re-entry occurs once per winning cycle to avoid drift-chasing loops.
Historical stats ≠ future performance. Size positions responsibly.
4 Flags Whale PatternThis indicator detects a unique 4-bar candlestick pattern characterized by alternating bullish and bearish candles (or vice versa), where all four candles have similar body sizes within a specified tolerance.
Usage:
This pattern may indicate a consolidation phase or a potential breakout zone after indecisive price action. Traders can use it to anticipate a directional move following the "tug-of-war" between buyers and sellers.
Advanced VWAP (Webull-style + Bands + Anchor)//@version=6
//© 2025 YourNameHere (optional)
//This script plots an advanced VWAP with optional bands and anchoring
/*
────────────────────────────────────────────────────────────
🔹 Advanced VWAP (Webull-style + Bands + Anchor)
────────────────────────────────────────────────────────────
This indicator replicates Webull-style VWAP behavior by:
• Calculating VWAP during only regular trading hours (9:30 AM – 4:00 PM ET)
• Optionally including pre-market and post-market sessions
• Supporting VWAP bands at ±1σ and ±2σ for volatility analysis
• Optional anchor feature to start VWAP from a custom price level
────────────────────────────────────────────────────────────
📌 Features:
────────────────────────────────────────────────────────────
✅ VWAP calculated using (High + Low + Close) / 3
✅ Optional inclusion of extended hours
✅ Toggleable ±1σ and ±2σ bands (standard deviation)
✅ Anchor VWAP to any price breakout (e.g., yesterday's high)
────────────────────────────────────────────────────────────
🛠 How to Use:
────────────────────────────────────────────────────────────
1. Toggle "Include Extended Hours" to match your broker (like Webull).
2. Use anchor mode to begin VWAP when price crosses a key level.
3. Use bands to identify overbought/oversold zones.
4. Combine with price action for momentum/bounce trades.
────────────────────────────────────────────────────────────
🔔 Tips:
────────────────────────────────────────────────────────────
• Use this VWAP on 1m–15m charts for intraday momentum.
• Set anchor to a specific price like previous day open/high/low.
• Bands are useful for scalping and mean-reversion entries.
────────────────────────────────────────────────────────────
📧 Created by: Adebola| © 2025
────────────────────────────────────────────────────────────
*/
Ampel Score)The Ampel Score (German for "traffic light score") is a multi-indicator signal system designed to identify high-probability LONG and SHORT entries based on trend strength, momentum, volatility, and breakout patterns.
It evaluates 12+ indicators and assigns scores to determine directional bias. This includes:
✅ EMA Alignment (4/8/13/21/200)
✅ MACD Crossover
✅ Ichimoku Cloud (Span A/B, Tenkan/Kijun Cross)
✅ RSI & Stochastic Momentum
✅ Volume Spike
✅ Breakout Detection (20-bar High/Low)
✅ Bollinger Band Breakouts (3σ)
✅ Volatility Check via ATR
🎯 Signal Logic
LONG signal: Score ≥ 12, higher than SHORT score, plus price & volume confirmation
SHORT signal: Score ≥ 12, higher than LONG score, plus price & volume confirmation
EXIT: When score drops below 10 or trend reverses
Visual signals:
🔼 Green Triangle = Enter LONG
🔽 Red Triangle = Enter SHORT
❌ Red X = Exit Signal
🟢/🔴 Circles = Active trend phase
🔢 Score Labels shown on chart (if enabled)
Use Cases:
This indicator is ideal for swing traders and momentum traders looking for structured signals across multiple confluences. Best used on 15min–1D timeframes with manual trade confirmation.
Disclaimer:
Not financial advice. Always backtest and use risk management. Adjust thresholds based on your strategy and asset volatility.
London & NY Sessions - Full ViewGreen vertical line at London Open (08:00 London time)
Red vertical line at New York Open (13:30 London time)
🟩 Shaded background for:
London Session: 08:00 – 17:00
New York Session: 13:30 – 21:00
Simple Sessions & LevelsWhat this indicator does:
This script marks out two essential types of price levels for intraday and swing traders:
The high and low of a customizable 15-minute opening range after the market/session open.
The previous day’s high, midpoint (“halfback”), and low.
How it works:
The script lets you set the session start time (hour and minute) to match your market.
It then calculates the high and low of the first 15 minutes after the session opens and plots those as solid lines.
It also plots the prior day’s high, halfback (midpoint), and low on your chart for easy reference.
Each line and each label can be toggled on or off independently in the settings for maximum customization.
Colors for each level are also fully customizable.
How to use it:
Add the script to your chart.
Set the session start hour and minute to match the open of the market or instrument you trade.
Choose which levels and labels you want displayed by using the toggles in the settings.
The indicator will automatically draw the session range and prior day levels for you.
Use these lines as reference for key support, resistance, and potential trade entry/exit points.
What makes it unique and useful:
This tool combines a flexible session opening range with classic daily reference levels in one package. You have complete control over which levels and labels are shown, making it adaptable for any trading style. It’s especially useful for day traders who want to quickly identify volatility windows and the most important price levels from the previous session.
Simple Risk-to-Reward (R) Indicator (TP1–TP2)What this indicator does:
This tool helps traders clearly visualize their risk and reward on any trade by plotting their entry, stop loss, and take-profit (TP) levels directly on the chart. It’s designed to make manual trade planning more visual and systematic.
How it works:
You set your planned entry price, whether you want to plot a Long or Short setup, and your stop-loss distance (in ticks).
The indicator calculates your stop-loss level and automatically plots it on the chart.
It then draws take-profit levels at 1R and 2R (where “R” is your risk, the distance between entry and stop).
You can toggle the TP1 and TP2 lines on or off to suit your preference.
How to use it:
Open the settings and enter your intended entry price.
Select “Long Setup” for a buy trade, or turn it off for a sell/short trade.
Enter your desired stop loss in ticks.
Choose which take-profit levels to display by toggling TP1 and TP2.
The indicator will show entry, stop, and take-profit levels right on your chart so you can easily see your planned risk/reward.
What makes it unique and useful:
This indicator is designed for manual trade planning, giving you full control over your inputs and letting you instantly see your risk/reward on any instrument or timeframe. Unlike some built-in tools, it supports both long and short trades, lets you set all levels manually, and keeps your charts clean and easy to interpret.
Watermark Clarity V33🌟 Introducing Watermark Clarity V33 – Banner 🌟
Watermark Clarity V33 is a visual utility tool designed to enhance chart awareness, focus, and clean aesthetics without adding market noise. Unlike traditional indicators, this script does not generate buy/sell signals or perform technical analysis. Instead, it provides a customizable on-chart watermark banner that clearly communicates your current mindset, risk awareness, or trading bias directly on the chart — helping traders stay aligned with their pre-defined plans and reducing impulsive behavior.
Whether you’re a discretionary trader, scalper, or swing trader, Watermark Clarity V33 offers an adaptive display that blends clarity with minimalism, keeping your chart clean while remaining informative.
🛠 Customizable Parameters
• Dual Text Banners: Configure two independent headers to reflect trading goals, risk posture, or emotional cues.
• Smart Animation Toggle: Optionally animate between messages to help reinforce shifting market awareness or draw attention during high-alert periods.
• Size, Color & Positioning: Adjust the info box’s text size, banner dimensions, background color, transparency, and placement (top/middle/bottom – left/center/right).
• Transparent Mode: Switch to semi-transparent mode for cleaner overlays during live sessions or screen recording.
🚀 New Feature – Custom Alerts & Smart Animation Control
• Market-Aware Animation Logic:
When Enable Animation is turned on and both Heading 1 and Heading 2 are filled:
• 📈 During Market Hours → The banner alternates smoothly between both headings, helping maintain awareness and visual engagement.
• 💤 Outside Market Hours → The banner remains fixed on Heading 1. This acts as a subtle visual cue that markets are currently closed — giving you peace of mind and a cleaner screen.
✨ Visual Utility Use Cases
• Accountability Layer: Keep yourself accountable to your trading rules or session checklist.
• Mindset Anchor: Display motivational or tactical reminders that guide your trading behavior.
• Multi-Timeframe Syncing: Use different watermarks across charts to stay aligned across timeframes or instruments.
📘 How to Use
1. Add the Indicator: Apply “Watermark Clarity V33 – Banner” to your chart.
2. Configure Inputs: Adjust the banner texts, size, color scheme, and screen position to your liking.
4. Focus & Trade: Let the visual cue support your decision-making environment without interfering with price action.
❗ Important Notes
• This indicator does not analyze price data or generate signals. It is designed solely for visual clarity and trader discipline support.
• All display logic runs in real-time and responds to your settings only, no repainting or lookahead bias.
Relative Strength Index + Golden Cross + MACDThis script is a high-performance, cleanly visualized indicator designed for swing traders and intraday scalpers. It combines multiple classic and modern techniques to help identify momentum trends, crossover signals, and smart entry zones.
🔧 Key Features:
RSI (Relative Strength Index) with gradient bands (overbought/oversold zones)
Golden Cross & Death Cross (SMA 50/200) with green/red + markers
SMA 50 over 150 (bullish crossover) with a blue + marker
MACD Crossover Dots (green for bullish, red for bearish)
Supertrend Dots for direction confirmation (lime/fuchsia)
Smart Entry Dot when RSI > 50, MACD bullish, and SMA50 > SMA200 (teal triangle)
Background Highlight for strong trend momentum using custom ADX + RSI filter
🎯 Ideal For:
Scalping with momentum confirmation
Swing trading on multi-timeframe alignment
Combining traditional indicators with clean visuals
🧪 Suggested Use:
Use this indicator in combination with support/resistance or price action. Filter out low-probability trades by focusing on:
Smart Entry signals during momentum backgrounds
Cross-check with Supertrend direction and RSI slope