LBR Oscillator with Signals & AlertsLinda Bradford Raschke MacD indicator. Has alerts and can be used in the pine screener on different timeframes.
Su Pine
Gold Total Market Cap By Wave Trader Gold Total Market Cap (Updated 2025)
Overview
This indicator calculates and visualizes the total market capitalization of gold in real-time, based on the current XAUUSD spot price and the estimated above-ground gold supply. It transforms the raw gold price into a scaled "market cap" view (in trillions USD), helping traders contextualize gold's global value—often compared to stocks, crypto, or fiat reserves. As of October 2025, gold's cap hovers around $26–27T, underscoring its status as a premier safe-haven asset.
How It Works
Core Formula: Market Cap = Gold Price (USD/oz) × Total Supply (troy oz), scaled to trillions for chart readability.
Supply Data: Defaults to the World Gold Council (WGC) mid-2025 estimate of ~218,000 metric tonnes (~7.01B troy oz), but customizable for scenarios like historical or projected figures.
Plotted as a smooth yellow line below the price pane, mirroring gold's price movements but in cap terms.
Key Features
Dynamic Label: A real-time label on the yellow line displays the exact market cap (e.g., "26.8") for instant reference, styled like popular TradingView cap indicators.
Reference Line: Horizontal dashed line at 25T USD to highlight key thresholds (e.g., surpassing Bitcoin's cap).
Info Table: Top-right panel shows current gold price and full market cap (e.g., "26.8T USD") for quick stats.
Overlay-Free: Designed for a separate pane to avoid cluttering your main XAUUSD chart.
Data Sources & Customization
Relies on live XAUUSD close prices from TradingView.
Supply input: Switch between "WGC Mid-2025" (default) or custom values—ideal for sensitivity analysis (e.g., adding future mining output).
No external API calls; fully self-contained for fast performance.
Usage Tips
For Gold Traders: Spot divergences between price momentum and cap growth to gauge overbought/oversold conditions.
Portfolio Context: Compare to S&P 500 cap (~$50T) or BTC (~$2T) by adding multi-symbol alerts.
Timeframes: Best on daily/weekly for long-term trends; works on 1H+ for intraday macro views.
Alerts: Set notifications for cap milestones (e.g., "Gold Cap > 28T") via TradingView's alert system.
Track gold's "infinite market cap" evolution—because unlike stocks, gold's supply grows slowly, amplifying price impact. Updated for 2025 data; feedback welcome! 🚀
ICT Concepts(Liquidity, FVG & Liquidity Sweeps)📄 Description:
A Smart Money Concept (SMC)-based utility that blends ICT-style Liquidity Sweeps, Fair Value Gap (FVG) mapping, and Swing Structure proxies – designed for traders seeking clean precision in price imbalance analysis.
⸻
🔍 1. What This Script Does
T his indicator brings together three core Institutional Concepts:
• Liquidity Sweep Detection : Identifies buy/sell-side liquidity grabs (fakeouts) confirmed by volume spikes – a common precursor to institutional order flow shifts.
• Fair Value Gaps (FVGs) : Highlights inefficiencies between price legs using strict ICT-style 3-candle or gap-based rules. These are areas institutions often revisit.
• Swing Structure Proxy (OB Mapping) : Tracks dynamic swing highs/lows to act as proxy zones for potential order blocks and structural boundaries.
It also includes a cooldown-based signal filtering engine to prevent overfitting and noise, helping traders avoid false positives in choppy markets.
⚙️ 2. How It Works (Core Logic)
✅ A. Liquidity Sweep Engine
• Looks back N bars to find Equal Highs or Equal Lows.
• Triggers a signal only if price sweeps the level and closes on the other side with a volume spike.
• Customizable volume threshold (e.g., 1.5x average volume).
• Includes a signal cooldown period to reduce clutter and boost quality.
Bullish Sweep = Price dips below equal lows but closes higher
Bearish Sweep = Price spikes above equal highs but closes lower
Visuals: Signal arrows with alerts (BUY LQ / SELL LQ)
⸻
✅ B. Fair Value Gap (FVG) Zones
• Detects FVGs using:
• Sequential logic: Low > High (bullish), High < Low (bearish)
• Gap logic: Open gaps at bar open
• Dynamic box drawing:
• Automatically extends FVG zones until price fully closes through them.
• Different color coding for bullish (teal) and bearish (orange) gaps.
• Customizable:
• Opacity control
• Option to include/exclude gap-based FVGs
• Hide filled zones
• Limit total zones rendered (for performance)
⸻
✅ C. Swing High/Low Structure
• Uses a lookback period to find latest swing high/low levels.
• Acts as a proxy for Order Block zones or structural shift reference points.
• Plotted as red (high) and green (low) lines.
⸻
🚀 3. How to Use It
• Scalpers and Intraday Traders can use Liquidity Sweep + FVG Confluence to time reversals or catch early entries into trend continuation moves.
• Swing Traders can observe swing OB proxies and recent FVG zones to frame directional bias and target zones.
• Volume-Aware Traders benefit from the volume filter that confirms sweeps are meaningful – not just random stop hunts.
🔔 Set alerts on:
• Bullish Liquidity Sweeps
• Bearish Liquidity Sweeps
You can use this in combination with your own trend filters, or even confluence it with Order Blocks, VWAP, or EMA trend tools.
⸻
💡 What Makes It Original?
• The script doesn’t merely combine standard tools — it builds a cohesive ICT-style detection system using:
• A custom volume-confirmed liquidity sweep filter
• Dynamic FVG rendering with filled logic + performance optimization
• Visual hierarchy to avoid clutter: clean line plots, contextual boxes, and conditional signals
• Highly customizable yet lightweight, making it suitable for fast-paced decision making.
⸻
✅ Notes
• Invite-only script for serious traders interested in Smart Money and ICT concepts.
• Does not repaint signals.
• All visuals are dynamically managed for clarity and performance.
IDX Utility Set [zidaniee]Purpose
This indicator is not a technical analysis tool. It’s a companion overlay designed to guide your analysis of the uniquely structured Indonesia Stock Exchange (IDX).
Core Features
Centered Ticker Display – Clean, readable ticker shown at the center of the chart.
Company Name – Displays the listed company’s full name.
Active Timeframe – Shows the currently selected timeframe.
Additional Features
ATH & ATL Markers – Labels the All-Time High (ATH) and All-Time Low (ATL) and shows the percentage distance from the latest price to each level, so you can quickly gauge upside/downside room.
IDX Fraction (Tick) Levels – Visualizes Indonesia’s price-fraction (tick) brackets. This matters because tick size changes by price range—very useful for scalpers and fast traders.
ARA/ARB Levels (Realtime) – Plots Auto-Reject Upper (ARA) and Auto-Reject Lower (ARB) levels in real time. Levels refresh in line with IDX trading hours 09:00–16:00 WIB (UTC+7), so your view stays consistent both during and outside market hours. This feature already complies with the latest rules and adjustments set by the Indonesia Stock Exchange (IDX).
Suspension Status – Shows SUSPENDED if the stock is halted/suspended, helping you avoid unnecessary analysis. The suspension check compares today’s date with the last available candle date and accounts for weekends.
Note: WIB = Western Indonesia Time (UTC+7).
Current Price (Customizable) by DRtradeCurrent Price Line & Dynamic Label (Fully Customizable)
The ultimate tool for clear, real-time price visualization.
This powerful, lightweight indicator draws a clean horizontal line at the current market price, updating instantly with every price tick. Unlike other current price line scripts, this tool ensures you always see where the price is right now and provides full control over every visual element.
Key Features:
- Real-Time Tracking: The line moves dynamically with price ticks within the current candle, eliminating lag and providing true current market price awareness.
- Line Extension Control: Choose to extend: Left, Right, or Both. Helpful for scalpers and options traders
- Visual Customizations: Color, Style, Size, Width, etc.
- Label Positioning: Left of Candle, Above Candle, or Right of Candle
All customization options are available in the indicator's settings menu.
Ping me with feature reqeusts.
Impulse Range Compression & Expansion (IRCE)📌 Impulse Range Compression & Expansion (IRCE) – Visualizing Price Traps Before Breakouts
📖 Overview
The IRCE Indicator is a precision breakout detection tool designed to identify consolidation traps and price coil zones before expansion moves occur. Unlike traditional volatility indicators that rely solely on statistical thresholds (e.g., Bollinger Bands or ATR), IRCE focuses on behavioral price compression, detecting tight-range candle clusters and validating breakouts through body expansion and/or volume surges.
This makes it ideal for traders looking to:
• Catch breakouts from range traps
• Avoid choppy and premature signals
• Spot early-stage momentum moves based on clean price behavior
⸻
⚙️ How It Works
1. Impulse Range Compression Detection
• Measures the high-low range of each candle
• Compares it to a user-defined average range (default 7 bars)
• Flags candles where the range is significantly smaller (e.g., <60% of average)
• Groups these into tight clusters, indicating compression zones or potential “trap ranges”
2. Cluster Box Construction
• When a valid cluster (e.g., 3 or more tight candles) is detected, the indicator:
• Marks the high and low of the cluster
• Draws a shaded box over this “trap zone”
• This helps visually track where price has coiled before a breakout
3. Breakout Confirmation Logic
A breakout from the trap zone is only validated when:
• Price closes above the cluster high (bullish) or below the cluster low (bearish)
• One or both of the following confirm strength:
• Body Expansion: Current candle body is 120%+ of recent average
• Volume Expansion: Volume exceeds recent volume average
4. Optional Trend Filter
• An optional EMA filter (default: 50 EMA) ensures breakout signals align with trend direction
• Helps filter out countertrend noise in ranging markets
5. Signal Cooldown
• Prevents repeated signals by enforcing a cooldown period (e.g., 10 bars) between entries
⸻
🖥️ Visual Elements
• 📦 Yellow compression boxes represent tight price traps
• 🟢 Buy labels appear when price breaks above the trap with confirmation
• 🔴 Sell labels appear when price breaks below with confirmation
• All visuals are non-repainting and updated in real-time
🧠 How to Use
1. Wait for a yellow trap box to appear
2. Watch for a confirmed breakout from the trap zone
3. Take the trade in the direction of the breakout:
• Only if it satisfies body or volume confirmation
• And if trend alignment is enabled, it must match EMA direction
4. Place stops just outside the opposite end of the trap zone
5. Use risk/reward ratios or structure levels for exits
This logic works great on:
• Lower timeframes (scalping breakouts)
• Higher timeframes (detecting price coiling before major moves)
• Any market: Stocks, Crypto, FX, Commodities
⸻
🔒 Technical Notes
• ✅ No repainting
• ✅ No future-looking logic
• ✅ Suitable for both discretionary and systematic traders
• ✅ Built in Pine Script v6
NAKA SIAM ROMEO (SMC) V10📌 Description (ภาษาไทย)
อินดิเคเตอร์ Naka Siam Romeo พัฒนาขึ้นจากแนวคิด Smart Money Concepts (SMC) ผสมผสานกับ Bollinger Bands (BB) เพื่อช่วยจับโครงสร้างตลาด (BOS, CHoCH, Order Block) และยืนยันจังหวะเข้า–ออกออเดอร์ด้วยโซนแรงกดดันของราคา เหมาะสำหรับทั้งสาย Scalping และ Swing Trading โดยเฉพาะทองคำ (XAUUSD) และคู่เงินหลัก
📌 Description (English)
The Naka Siam Romeo indicator is designed based on Smart Money Concepts (SMC) combined with Bollinger Bands (BB).
It helps traders identify market structure (BOS, CHoCH, Order Blocks) and confirm entry–exit points with price pressure zones.
Suitable for both scalping and swing trading, especially on Gold (XAUUSD) and major Forex pairs.
Divergence Scalp v1.1 By DaoAn advanced divergence detection indicator based on RSI and price pivots, designed for scalpers and swing traders who want to catch high-probability reversal points.
🔑 Key Features
RSI Divergence Detection
Regular Bullish Divergence → Price makes lower low, RSI makes higher low (RSI < 50).
Hidden Bullish Divergence → Price makes higher low, RSI makes lower low (RSI < 50).
Regular Bearish Divergence → Price makes higher high, RSI makes lower high (RSI > 50).
Hidden Bearish Divergence → Price makes lower high, RSI makes higher high (RSI > 50).
Customizable Settings
Pivot lookback length & detection range.
Toggle On/Off for Bullish, Bearish, Hidden signals.
Adjustable colors for signals and labels.
RSI Visualization
Plots RSI line with overbought (70), oversold (30), and midline (50).
Background shading for quick visual reference.
Signal Labels
“Bull / H Bull” → Bullish Divergence.
“Bear / H Bear” → Bearish Divergence.
Built-in Alerts → Real-time alerts for all four divergence types.
📊 How It Helps
This tool makes it easier to spot early signs of momentum shifts, allowing traders to anticipate reversals at key levels and improve entry/exit timing.
👉 Perfect for traders who use RSI divergence + price action as a scalping or swing strategy.
Signature Five Lines by SidHemSignature Five Lines by SidHem
Overview:
Signature Five Lines by SidHem is a chart overlay tool that lets traders and analysts display a fully customizable multi-line signature or text annotation directly on TradingView charts. It allows up to five user-defined lines, optional logo or emoji on the first line, and automatic inclusion of the symbol and instrument description. The display can be shown either as a table or a label, with complete control over fonts, colors, spacing, and positioning.
If you’re tired of adding your details manually on every new chart, Signature Five Lines by SidHem helps you display your standard information automatically on any chart you open.
This script is useful for traders who want to keep key information visible, add personal notes, or include contextual text on charts without manually adding labels or text boxes.
Inputs and How to Use Them
1. Multi-Line Signature
Enable Line 1–5: Toggle visibility of each signature line. Show or hide this line on the chart.
Line 1–5 Text: Enter the custom text for each line. Line 1 can include a logo or emoji if enabled.
2. Logo / Emoji
Show Emoji / Text in Line 1: Enable an emoji or small text to appear before Line 1 of the signature for personalization.
Logo Text: Enter the emoji or symbol to display at the start of Line 1 when enabled.
3. Symbol / Instrument
Show Symbol Row: Display the chart’s symbol (e.g., NSE:INFY) above your custom lines.
Show Name / Description Row: Display the instrument’s name or description below the symbol.
Combine Symbol & Name in 1 Row: Merge the symbol and description into a single row for compact display.
4. Display Mode
Display Mode: Choose how the signature is displayed: Table (row-based) or Label (near price).
Theme Skin: Select a prebuilt color theme or choose Custom to define your own colors for text and background.
5. Table Style
Table Vertical Spacer Rows: Number of empty rows added above the signature lines to adjust vertical positioning.
Table Position: Set the location of the table on the chart (Top, Middle, Bottom; Left, Center, Right).
Table Font Size: Set the font size for the signature lines. Options: Tiny, Small, Normal, Large, Huge.
6. Table Custom Line Colors
Lines 1–5 Background & Text Colors: Customize the background and text color for each signature line individually.
Symbol Row (line6) Background & Text Colors: Customize background and text colors for the symbol row.
Name/Description Row (line7) Background & Text Colors: Customize background and text colors for the description row.
7. Label Style (for Label Mode)
Label Text Color: Color of text when using Label mode.
Label Background Color: Background color of the label; supports transparency.
Label Style: Position of the label pointer relative to the bar (Left, Right, Up, Down, Center).
Label X Offset: Horizontal shift of the label in bars relative to the current bar.
Label Y Offset: Vertical shift of the label in price points; allows precise positioning above or below the price.
How it Works:
The script dynamically builds a display array combining the chart symbol, instrument description, and your custom signature lines.
Long text is automatically wrapped to ensure readability without overlapping chart elements.
Users can choose Table mode (row-based display) or Label mode (floating near price), with customizable X/Y offsets for precise placement.
Predefined color themes make it easy to match the chart’s style, or you can select Custom to fully control background and text colors for each line.
An optional logo/emoji can appear at the start of Line 1 for personalization.
Advantages:
Keeps key chart information visible at all times.
Adds a professional annotation layer to charts for notes or commentary.
Multi-line support allows clear separation of different information (symbol, description, personal notes, optional emoji).
Dynamic wrapping ensures text remains readable on different timeframes or zoom levels.
Works with any TradingView chart or instrument.
Recommended Use:
Add Prefixed notes or annotations directly on charts - simply calling it a Signature
Display symbol and description alongside personal commentary.
Combine multiple lines of information in a clean and readable overlay.
Alert on Price Close Above/BelowOverview
This indicator sends alerts when a candle closes above or below a user-defined price level on a chosen timeframe. Unlike standard price alerts that can trigger mid-candle, this script confirms on bar close, making it more reliable for breakout/breakdown use cases.
How it works
- Select the evaluation timeframe (e.g., 15m, 1H, 4H).
- Set a Primary Level and choose the direction (Above or Below).
- Optionally enable a Secondary Level with its own direction.
- The alert triggers only when the chosen timeframe’s candle closes beyond your level(s).
- Dynamic alert messages include the timeframe and can optionally include the exact closing price.
Alert message style
1. Dynamic alerts (when you choose “Any alert() function call”) use this format:
{TF} {TICKER} Close Above {Price}
{TF} {TICKER} Close Below {Price}
2. With “Show exact close price” enabled, messages append the actual close:
{TF} {TICKER} Close Above {Price} (Close={ActualClose})
Setup steps
1. Add the indicator to your chart on the symbol/timeframe you want to monitor.
2. Open the settings:
- Set “Evaluate On Timeframe” (this is the timeframe used to confirm closes).
- Choose “Primary Direction” (Above/Below) and enter the “Primary Level.”
- Optional: enable and configure the Secondary Level (direction + price).
3. Create a TradingView alert:
- Click the Alert button in the top toolbar.
- In “Condition,” pick this indicator and select “Any alert() function call” to receive dynamic messages.
- In “Interval,” select the timeframe same as the indicator.
- Optional: rename the alert for clarity.
4. Save. You’ll receive alerts when conditions are met.
Examples
4H BTCUSDT Close Above 100000
1H ETHUSDT Close Below 4000 (Close=3900)
Trendlines Breakouts Pro V1.2 - 4TP [Wukong Algo]Trendlines Breakouts Pro
Trading method “High Tight Trendline Breakout”. This is a simple but effective and flexible method that can support many other methods such as: support and resistance, supply and demand, volume profile...
Automatically connect TradingView and MetaTrader 5 (MT5) for automatic trading and order management via PineConnector
The system includes a risk management grid including the levels: Stop Loss (SL), Break-even (BE), Trail Trigger, Trailing Stop, TP1 (1/4), TP2 (2/4), TP3 (3/4), TP4 (4/4). This grid helps you easily monitor and manage orders on TradingView in parallel with automatic order management on MT5.
Focus on tight capital and risk management, reduce emotion and stress when trading
Suitable for all markets: Forex, Gold, Crypto, Stocks, as long as you use MT5 and TradingView
If you do not need to trade automatically via MT5, the Trendlines Breakokuts Pro can also be used as an effective indicator in visual order management on TradingView charts, helps maintain discipline and good trading psychology (less Stress or FOMO)
Trendlines Breakouts Pro System User Guide
Step 1 - Draw trendline AB. Just click to select 2 points A, B on the chart
This is a straight line at the border of a chart pattern or support/resistance zone on the chart that you determine has high potential when it is broken, the price will have strong momentum and you will enter the order (Entry). The trendline AB can be a diagonal line or a horizontal line.
Step 2 - Entry Window: Set the time allowed for transactions
You can choose the earliest and latest time allowed for trading signals, called Entry Window. This means that the system will not allow trading outside the Entry Window. This option allows you to manage trading times as you wish, avoiding bad times for trading such as sideways, choppy, high volatility, news
Step 3 - Set up the input parameters for trading
You choose the direction you want to wait for trading: Wait Long (Buy), Wait Short (Sell), Turn Off, Hidden
You enter the ID of your PineConnector account if you want to trade automatically from TradingView to MT5
You enter the order parameters: Lotsize per order, Stop Loss (SL%), BE(%), Trail Trigger (%), TP1(%), TP2(%), TP3(%), TP4(%)
You enter the safe filter parameters for Entry: max distance from entry to swing high/low, max distance from entry to trendline's breakpoint C, max entries per trendlines
See more details in the screenshots
Step 4 - Set up automatic trading from TradingView via MT5
If you do not need automatic trading in MT5, skip this step. Entry signals and risk management grids will still be displayed on the TradingView chart for you to see, but there is no connection and automatic trading signal shooting and automatic order management from TradingView to MT5 via PineConnector.
We need to create an Alert in TradingView and attach it to this Indicator so that the Alert's trading signals are transmitted via MetaTrader 5 (MT5) via PineConnector.
When trading, you need to turn on 3 software at the same time to be able to connect to each other to operate: TradingView, MetaTrader 5 (MT5), PineConnector
See more details in the screenshots
Step 5 - Complete setup, and wait for trading signals
You have completed the setup steps for the Indicator, ready when there is a trading signal
You do not need to sit in front of the screen all day if you do not want. The system has been set up to execute and manage orders automatically.
Of course, sometimes you should still check your transaction status, in case of unexpected problems such as lost internet connection.
If you still have questions about this Indicator, please email tuanwukongvn@gmail.com for support.
WASDE DatesOverview
WASDE Dates — a small, focused event indicator that displays confirmed USDA WASDE release dates for 2025 on the chart and marks each release day. The indicator is designed to be a lightweight timing tool for traders who want clean visual reminders and optional alerts around USDA WASDE publications.
Features
• Shows official WASDE release dates for 2025 in a compact chart table.
• Draws on-chart markers and a dotted vertical line on WASDE release days.
• Two alert conditions you can enable in TradingView: "WASDE Day Alert" and "WASDE 24h Reminder".
• Simple table position control (Top/Bottom, Left/Right) in the indicator settings.
• Minimal, self-contained code — no external data feeds or permissions required.
How to use
1. Apply the indicator to any chart and timeframe.
2. Use the indicator settings to choose table position.
3. Enable Alerts (if desired) via TradingView Alerts → choose “WASDE Day Alert” or “WASDE 24h Reminder”.
4. This version contains 2025 confirmed dates only — verify dates for live trading and enable alerts as needed.
Design & rationale
This indicator is intentionally not a technical trading signal. It is an event scheduler focused on clarity and low overhead: combine it with your existing setup to avoid being surprised by WASDE publications and to quickly inspect price action around these event dates.
Limitations & disclaimer
• This script shows **confirmed 2025** WASDE dates only. It does not provide trading advice or entry/exit signals. Use at your own risk.
• Double-check official USDA publishing times before executing trades.
• No external links or contact information are included in this description to comply with TradingView publishing rules.
Feature outlook (V2)
Planned V2 (future release): enhanced countdown (days → hours/minutes), optional inclusion of estimated 2026 dates marked as (TBC), and an invite-only/protected advanced version with reaction overlays (T+1/T+3) and extended alert options. V2 will be announced on this script page when ready.
Changelog
v1 — public release: 2025 confirmed dates, release markers, alerts, table position control.
Smart TP Manager V.1.1 (SL trail par TP)🔹 Smart TP Manager V1.1 – Trade Management Advanced
A powerful TradingView tool designed to enhance trade management and protect profits.
Features:
Automatically detect Long/Short signals using EMA crossovers, RSI filter, higher-timeframe EMA trend, and ADX strength.
Calculate and display a dynamic Stop Loss based on ATR.
Automatically set TP1, TP2, TP3 with advanced Breakeven management:
SL moves to Entry after TP1 hit
SL moves to TP1 after TP2 hit, securing partial profits
Track your performance with a comprehensive statistics table (Win/Loss, BE, win rate, net profit in R).
Clear visual display of entries, SL, and TPs using colored lines and labels.
Receive automatic alerts for every signal and target reached.
Optional SL trailing feature to secure profits progressively as targets are hit.
📊 Smart TP Manager V1.1 is your assistant for risk control, trade optimization, and profit protection on TradingView.
PCCE + False Breakout DetectorPCCE + False Breakout Detector
Type: Invite-Only Indicator (closed source)
Purpose : Detect price compression and the first expansion after it, while flagging failed breakouts (bull/bear traps) for risk control.
1) What’s original here!
This tool integrates three behaviour-driven tests that work in a single decision flow:
A compression score built from:
(a) monotonic body shrink,
(b) wick-dominance, and
(c) relative range contraction versus history.
This is not a bands/oscillator port; it’s a structure-first filter that isolates coils.
A thrusted expansion requirement that combines real-body impulse and relative-volume participation (+ optional EMA alignment) to qualify a breakout beyond the coil envelope.
An immediate post-breakout failure test (trap logic) that checks whether the breakout re-enters the prior swing range within a short window.
Used together, these steps turn raw breaks into contextual, risk-aware events: setup → trigger → validation. That is the value of the combination.
⸻
2) Concepts behind the calculations:
Let body_t = |close_t − open_t|,
uw_t = high_t − max(open_t, close_t) (upper wick),
lw_t = min(open_t, close_t) − low_t (lower wick),
R_t(k) = highest(high, k)_t − lowest(low, k)_t (range over k bars),
MA_body(k) = SMA(body, k), MA_vol(k) = SMA(volume, k).
2.1 Compression (coil) detection
We evaluate within a window k = coilLength:
• Body shrink count: number of consecutive steps where body_(t−i) < body_(t−i−1).
• Wick dominance: AvgWickBody = avg( (uw + lw) / body ) over the window; require AvgWickBody > wickRatioMin.
• Relative range contraction: current R_t(k) must be less than α × avg( R_(t−j)(k) ) computed over a lookback of rangeWindow windows, with α < 1 (tight market).
When all three are true, we mark a coil zone; the coil bounds are High_coil = highest(high, k), Low_coil = lowest(low, k).
2.2 Expansion (“Burst”) confirmation
A breakout is only qualified when all hold on bar close:
• Direction: close > High_coil → up; close < Low_coil → down.
• Body thrust: body_t > MA_body(k) × bodyMult.
• Participation: volume_t > MA_vol(k) × volumeMultiplier.
• Trend alignment (optional): close_t > EMA(emaLen) for up / < EMA for down.
• Cooldown: t − lastSignal > cooldownBars.
If satisfied, print Burst↑ or Burst↓ on that bar.
2.3 Failed breakout (trap) detection
Let H_s and L_s be the prior swing high/low from a lookback rangeLookback (excluding the current bar). Define:
• Bull break attempt: a bar that closed above H_s.
Bull trap: within fakeoutBars bars after that attempt, any close returns below H_s. Mark ❌ red above that bar.
• Bear break attempt: a bar that closed below L_s.
Bear trap: within fakeoutBars bars after that attempt, any close returns above L_s. Mark ❌ green below that bar.
Alerts fire on bar close only.
⸻
3) What you’ll see on the chart
• Coil box: shaded envelope (tight-range bounds).
• Burst labels: Burst↑ / Burst↓ only when thrust + volume (and optional EMA) confirm the break.
• Trap markers: ❌ red (failed bullish breakout) / ❌ green (failed bearish breakout).
• Alerts: “Burst Up” and “Burst Down” (close-based).
⸻
4) How to use it
1. Preparation : When a coil box appears, mark the bounds; expect expansion risk to rise.
2. Trigger : Act only on Burst labels (they already encode body/volume thrust and optional trend).
3. Validation : If a ❌ trap prints shortly after a breakout, treat it as a warning/exit event; breakouts that re-enter the prior swing range are statistically fragile.
4. Context : Works well on 15m–4H where structure is visible. Combine with your own higher-timeframe bias, S/R, liquidity pools, and risk rules.
5. Tuning :
• Tighten/loosen coil sensitivity via coilLength, wickRatioMin, and the range contraction factor.
• Use larger bodyMult / volumeMultiplier to demand stronger breaks.
• cooldownBars controls clustering in fast sessions.
• rangeLookback and fakeoutBars control how strict the trap check is.
⸻
5) Repainting, scope, and limitations
• Burst and trap labels are evaluated on bar close; once printed, they do not repaint. Coil boxes can update while forming; they stabilize once conditions are met.
• Sudden news/illiquid periods can defeat filters; adjust multipliers and cooldown for your instrument.
• This is an indicator, not a strategy; it does not publish PnL, win-rate, or forward promises.
Fetti Fields Header (Presets)This is for individuals that like to customize their charts and add some style and motivation
Cost Basis of DCA Strategy (Enhanced)“Cost Basis of DCA Strategy (Enhanced): An Analytical Tool for Smarter DCA Investing”
The indicator designed here serves as a comprehensive analytical tool for evaluating a Dollar-Cost Averaging (DCA) strategy. Instead of merely recording scattered buy transactions, it integrates all purchases into a clear framework that reveals the real cost basis, portfolio performance, and capital allocation. Its primary function is to transform the concept of DCA from a mechanical process into a measurable and strategic decision-making system.
At the foundation of its operation, the user provides essential inputs such as the initial capital, the price and size of each buy transaction, and an optional sell price for hypothetical exit scenarios. With these inputs, the indicator calculates how many units were acquired in total, how much money was spent, and what the average cost per unit—the cost basis—truly is. This cost basis acts as the anchor for evaluating whether the market price has moved in favor or against the investor’s average entry point.
Beyond this, the indicator goes further by calculating both realized and unrealized dimensions of performance. It presents the current market value of holdings based on live price data and contrasts it with the total cost to derive unrealized profit or loss in both absolute terms and percentages. If the user sets a sell price, the tool simulates a full liquidation scenario, displaying the expected profit or loss should all holdings be sold at that level. This dual perspective enables the user to examine their strategy both from a present-value standpoint and a forward-looking one.
In addition, the indicator keeps track of remaining capital—the portion of initial funds not yet deployed into purchases—thus bridging the gap between portfolio construction and financial planning. It also reports the number of buy transactions, reinforcing awareness of execution discipline in DCA.
For visualization, the system is not confined to numbers alone. It marks each buy price directly on the price chart with distinct horizontal lines, labeled for clarity. This allows the trader to see not just statistics in a table but also the spatial relationship between historical entry points and ongoing market dynamics.
In essence, this indicator reframes the practice of DCA into a structured analytical exercise. It empowers investors to understand the true average entry cost, evaluate ongoing performance, and simulate future outcomes under different price scenarios. By doing so, it elevates DCA from a passive habit into an active, data-driven investment methodology, allowing users to make more informed, confident, and strategically grounded decisions.
Smart TP Manager V.1.0🔹 Smart TP Manager V1.0 is a complete trade management tool for TradingView.
It allows you to:
Automatically detect Long/Short signals using EMA crossovers, RSI filter, higher-timeframe EMA trend, and ADX.
Calculate and display a dynamic Stop Loss based on ATR.
Automatically set TP1, TP2, TP3 with Breakeven management (risk set to zero after TP1).
Track performance with a statistics table (Win/Loss, BE, win rate, net profit in R).
Get a clear visual display of entries, SL, and TP with colored lines and labels.
Receive automatic alerts for every signal or target reached.
📊 It’s a risk and trade exit management assistant designed to optimize your trades and secure your profits.
Nick2k Trend Tracker MT botNick2k Trend Tracker MT bot
Type: Indicator (signals + PineConnector alerts for EAs)
Markets: Designed for XAUUSD (gold), adaptable to other symbols
Timeframes: Optimized for M5/M15
---
What it does
Nick2k Trend Tracker MT bot identifies trend flips using a percentile-normalized SMA slope with hysteresis, then applies a multi-layer filter suite to avoid false signals in low-quality conditions.
It can optionally auto-manage trades via PineConnector:
Send open orders with SL/TP (ATR- or pip-based)
Breakeven activation
Dual trailing stops (pip-based or ATR-based)
Staged partial closes (up to 3 levels)
The indicator also:
Highlights chop zones in the background
Provides diagnostic labels showing which filters passed/failed
Lets you disable all alerts with one checkbox (visual testing mode)
---
Core logic (simplified)
Trend Engine: SMA slope normalized by a rolling percentile; flips with hysteresis at +0.1/–0.1.
Filters: optional checks for slope strength, ADX, narrow range ratio, ATR squeeze, higher-timeframe slope.
Sessions: entry/management can be gated to London, NY, Tokyo, Sydney sessions and weekdays.
Chop highlight: background shading when ranges/low-volatility are detected for consecutive bars.
---
Visuals
Colored SMA line (gradient by slope)
BUY/SELL labels at valid flip bars
Chop background (yellow overlay)
Filter score/diagnostic label (optional)
---
Alerts & PineConnector integration
Open orders: sent at valid BUY/SELL flips with embedded SL/TP + BE/trailing if enabled
Partial closes: 3 configurable milestones (ATR or pip based, % or fixed lots)
Master toggle: switch all alerts ON/OFF instantly
Alerts are formatted in PineConnector EA syntax for compatibility with MetaTrader auto-trading.
---
Inputs (organized by group)
SMA & Theme (length, colors)
Auto Trading (license, symbol, lots, master toggle)
SL/TP Target Type (prices vs pips)
ATR SL/TP (length, multipliers, rounding)
Breakeven (trigger/offset)
Pip Trailing (trigger/dist/step)
ATR Trailing (TF, period, multiplier, trigger)
Partial Closes (mode, lots or %)
Time Filters (sessions, weekdays)
Filters (Slope, ADX, NRR, ATR squeeze, HTF confirm)
Chop Zone Highlight (on/off, hold bars, color)
---
Why this script is unique (and closed-source)
This is not a simple moving-average crossover. It combines several custom-built methods that are rarely seen in public scripts:
Normalized SMA slope with hysteresis: avoids whipsaws, adapts to volatility regimes.
Multi-filter confirmation: ADX, NRR, ATR squeeze, HTF slope — stacked to improve quality.
Chop detection with persistence: custom counter/hold logic to highlight ranging markets.
Integrated trade management: PineConnector-ready messages with SL/TP, breakeven, dual trailing stops, staged partial closes.
EA-compatible syntax: formatted exactly for PineConnector EAs, including safety toggles.
This represents a full trading framework designed for semi-automated gold scalping, not just a “signal indicator.”
The source is protected to prevent clones and preserve development effort invested in unique logic and PineConnector integration.
---
Recommended starting settings (XAUUSD M5/M15)
Pip size: 0.10
Slope threshold: 0.20 (M5), 0.16–0.20 (M15)
ADX min: 18–22
NRR floor: 2.0–2.4
ATR ratio: 0.65–0.75
ATR SL/TP: SL = 1.5×ATR, TP = 2.5×ATR
Sessions: London & NY
---
Limitations & disclaimer
Not financial advice. Test on demo before live trading.
Performance depends on broker symbols, spread, and volatility regime.
Auto-trading requires PineConnector EA set up correctly.
---
Changelog
v1.0 – Initial release (trend engine, filters, sessions, chop highlight, PineConnector alerts, BE/trailing, partial closes, diagnostics)
PongExperience PONG! The classic arcade game, now on your charts!
With this indicator, you can finally achieve your lifelong dream of beating the Markets. . . at PONG!
Pong is jam-packed with features! Such as:
2 Paddles
A moving dot
Floating numbers
The idea of a net
This indicator is solely a visualization, it serves simply as an exercise to depict what is capable through PineScript. It can be used to re-skin other indicators or data, but on its own, is not intended as a market indicator.
With that out of the way...
> PONG
The Pong indicator is a recreation of the classic arcade game Pong developed to pit the markets against the cold hard logic of a CPU player.
Given the lack of interaction that is capable, the game is not played in the typical sense, by a player and computer or 2 players.
This version of Pong uses the chart price movements to control the "Market" Paddle, and it is contrasted by a (not AI) "CPU" Paddle, which is controlled by its own set of logic.
> Market Paddle
The Market Paddle is controlled by a data source which can be input by the user.
By default (Auto Mode), the Market Paddle is controlled through a fixed length Donchian channel range, pinning the range high to 100 and range low to 0. As seen below.
This can be altered to use data from different symbols or indicators, and can optionally be smoothed using multiple types of Moving Averages.
In the chart below, you can see how the RSI indicator is imported and smoothed to control the Market Paddle.
Note: The Market Paddle follows the moving average. If not desired, simply set the "Smoothing" input to "NONE".
> CPU Paddle
In simple terms, the CPU Paddle is a handicapped Aimbot.
Its logic is, more or less, "move directly towards the ball's vertical location".
If it were allowed to have full range of the screen, it would be impossible for it to lose a point. Due to this, we must slow it down to "play fair"... as fair as that may be.
The CPU Paddle is allowed to move at a rate specified by a certain Percent of its vertical width. By default, this is set to 2%.
Each update, the CPU Paddle can advance up or down 2% of its vertical width. The directional movement is determined based on the angle of the ball, and it's current position relative to the CPU Paddle's position. Given that it is not a direct follow, it may at times seem more... "human".
When a point is scored, the CPU paddle maintains its position, similar to the original Pong game, the paddles were controlled solely by the raw output of the controllers and did not reset.
> Ball
At the start of each point, the ball begins at the center of the screen and moves in a randomly determined angle at its base speed.
The direction is determined by the player who scored the last point. The loser of the last point "serves" the ball.
Given the circumstances, serving is a gigantic advantage. So the loser serving is just another place where the Market is given an advantage.
The ball's base speed is 1, it will move 1 (horizontal) bar on each update of the script. This speed can "technically" increase to infinity over time, if given the perfect rally. This is due to the hit logic as described below.
Note: The minimum ball speed is also 1.
> Bonk Math
When the ball hits a paddle, essentially 3 outcomes can occur, each resulting in the ball's direction being changed from positive to negative.
Action A: Its angle is doubled, and its speed is doubled.
Action B: Its angle is reversed, and its speed is decreased if it is going faster than base speed.
Action C: Its angle is preserved, and its speed is preserved. "Basic Bounce"
Each paddle is segmented into 3 zones, with the higher and lower tips (20%) of the paddles producing special actions.
The central 60% of each paddle produces a basic bounce. The special actions are determined by the trajectory of the ball and location on the paddle.
> Custom Mode
As stated above, the script loads in "Auto Mode" by default. While this works fine to simply watch the gameplay, the Custom Mode unlocks the ability to visualize countless possibilities of indicators and analyses playing Pong!
In the chart below, we have set up the game to use the NYSE TICK Index as our Market Player. The NYSE TICK Index shows the number of NYSE stocks trading on an uptick minus those on a downtick. Its values fluctuate throughout the day, typically ranging between +1000 and -1000.
Therefore, we have set up Pong to use Ticker USI:TICK and set the Upper Boundary to 1000 and Lower Boundary to -1000. With this method, the paddle is directly controlled by the overall (NYSE) market behaviors.
As seen in a chart earlier, you can also take advantage of the Custom Mode to overlay Pong onto traditional oscillators for use anywhere!
> Styles
This version of Pong comes stocked with 5 colorways to suit your chart vibes!
> Pro Tips & Additional Information
- This game has sound! For the full experience, set alerts for this indicator and a notification sound will play on each hit!*
*Due to server processing, the notification sounds are not precisely played at each hit. :(
- In auto mode, decreasing the length used will give an advantage to the market, as its actions become more sporadic over this window.
- The CPU logic system actually allows the market to have a "technical" edge, since the Market Paddle is not bound to any speed, and is solely controlled by the raw market movements/data input.
- This type of visualization only works on live charts, charts without updates will not see any movement.
- Indicator sources can only be imported from other indicators on the same chart.
- The base screen resolution is 159 bars wide, with the height determined by the boundaries.
- When using a symbol and an outside source, be mindful that the script is attempting to pull the source from the input symbol. Data can appear wonky when not considering the interactions of these inputs.
There are many small interesting details that can't be seen through the description. For example, the mid-line is made from a box. This is because a line object would not appear on top of the box used for the screen. For those keen eye'd coders, feel free to poke around in the source code to make the game truly custom.
Just remember:
The market may never be fair, but now at least it can play Pong!
Enjoy!
Sessions - Full HeightEN : Full-height background sessions using bgcolor(). Asia, London, and New York sessions with configurable time windows, colors, and timezone. Open-source for learning and reuse.
RU : Индикатор заливает фон сессий на всю высоту графика (Азия, Лондон, Нью-Йорк). Настраиваемые окна времени и цвета.
Alpha VolumeThis script is a comprehensive trading toolkit designed to integrate position sizing, risk management, and key data metrics directly onto your chart. It goes beyond a simple volume indicator by providing two interactive tables and a special volume signal to aid in trade planning and analysis.
What It Does
The "Alpha Volume" indicator is a multi-functional tool that helps traders make more informed decisions. Its core components are:
- A Position Size Calculator that dynamically determines how many shares to trade based on your account size, risk tolerance, and different stop-loss strategies.
- A Data Metrics Table that displays essential fundamental information like Market Cap, Industry, Sector, and Float shares.
- An Episodic Pivot (EP) signal that highlights bars with exceptionally high volume, pinpointing potentially significant market events.
Key Features
Dynamic Position Sizing: Automatically calculates the ideal trade size based on various stop-loss points:
- The low or high of the day.
- The midpoint of the current candle.
- Three customizable fixed percentage stop-losses (e.g., 0.75%, 1.00%, 1.25%).
Interactive Risk Management: After you enter a trade, you can input your actual entry price and quantity. The script will then calculate:
- The exact stop-loss price required to meet your predefined risk.
- The distance to your stop-loss in both percentage and currency.
- Up to 10 R-Multiple price targets to help with profit-taking.
On-Chart Fundamental Data: The Data Metrics table provides a quick snapshot of the company's financial health and classification, saving you from switching between screens.
- Episodic Pivot Signal: A simple triangle appears below a daily candle when its volume surpasses a user-defined threshold (e.g., 9 million shares), drawing your attention to stocks under significant accumulation or distribution.
How to Use
Pre-Trade Planning:
- In the indicator settings, enter your Capital and define your Risk per trade (either as a percentage like 0.5% or a fixed currency amount like $5000).
- The "Position Size Table" will instantly show you the quantity you can trade based on different potential stop-loss levels. For example, Q shows the quantity if your stop is the day's low, and SQ shows quantities for fixed percentage stops.
Trade Execution & Management:
- Once you're in a trade, enter your Position Opened (PO) price and Quantity Actual (QA) in the settings.
- The second table will update to show your calculated stop-loss (PC), the distance to it (DA), and your R-Multiple targets (RM), giving you a clear plan for managing the trade.
Market Analysis:
- Use the Episodic Pivot signal on the daily chart to identify stocks experiencing unusual volume, which often precedes significant price moves.
- Glance at the Data Metrics Table to quickly understand the company's size (Market Cap) and business (Industry/Sector).