Bridge Boxes Bridge Boxes: detect compression when N consecutive B-bars occur (|close−open| ≤ ε%). Draw box and store latest top/bottom.
% Range Breakout (RB): compute mid = (top+bottom)/2 from last TOOLBAR box, freeze refClose = close , build up/down levels by TF-specific % (H1/H4/D1/W1). Trigger on cross; draw RB line/label; auto-clear next confirmed bar if no new break.
Patrones de gráficos
ICT London & NY Kill ZonesICT london and NYC kiill zones marked on the chart automatically - use with NY time zone
DAMMU AUTOMATICAL AI ENRTY AND TARGET AND EXITMain Components
Supertrend System –
Detects market trend direction (Buy/Sell zones).
→ Green = Uptrend (Buy)
→ Red = Downtrend (Sell)
SMA Filter –
Uses 50 & 200 moving averages to confirm overall trend.
→ Price above both → Bullish
→ Price below both → Bearish
Buy/Sell Signals –
Generated when Supertrend flips direction and SMA confirms.
→ Triangle up = Buy
→ Triangle down = Sell
Take Profit / Stop Loss Levels –
Automatically calculated after Buy/Sell entry.
→ TP1, TP2, SL shown on chart
ADX (Sideways Zone Filter) –
If ADX < 25 → Market sideways → Avoid trades
Shows “No Trade Zone” area
Smart Money Concepts (SMC) Tools –
🔹 Market structure (HH, HL, LH, LL)
🔹 Order blocks (OB)
🔹 Equal highs/lows
🔹 Fair Value Gaps (FVG)
🔹 Premium & Discount zones
Helps find institutional entry points
Visual Display –
Color-coded background (trend zones)
Labels for buy/sell/structure
Optional FVG and order block boxes
Risk Management –
Input-based position sizing, SL & TP management
(to calculate profit levels and minimize loss)
SPX / Silver (XAGUSD) RatioThis script visualizes the S&P 500 Index to Silver ratio (SPX/Silver) — a powerful tool for monitoring the relative strength of equities vs. precious metals over time.
📊 Use Case:
Helps traders assess macro sentiment shifts between risk-on (equities) and risk-off (commodities).
A rising ratio indicates equity outperformance vs Silver, often in growth-driven bull markets.
A falling ratio suggests Silver is outperforming — potentially due to inflation, geopolitical risk, or weakening equities.
⚙️ Data & Calculation:
SPX: SP:SPX (S&P 500 Index)
Silver: TVC:SILVER
Formula:
SPX / Silver
(Both are spot/index prices, updated on daily timeframe)
📈 Interpretation:
📈 Ratio Rising → SPX outperforming Silver → Risk-on sentiment
📉 Ratio Falling → Silver outperforming SPX → Possible flight to safety or inflation hedge
🧠 Ideal For:
Macro trend analysis
Intermarket strategy development
Asset rotation decision-making
Spotting Silver bottoms during SPX/Silver peak zones
ORB Opening Range Breakout LinesDraws two horizontal lines for the high and low prices of a user-defined session (default 9:30 AM to 9:45 AM, adjustable via input hours and minutes).
Trend Reversal Signal The issue was that alertcondition requires a constant string for the message parameter - it cannot accept a variable. I've replaced the dynamic message construction with static strings. The alerts will now work properly!
The error should now be resolved. Copy the updated code and it should compile without issues.
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.
Stop point MMAAn indicator that determines an important stopping area by overcoming the blue candle. The overriding party is determined by buyers or sellers, as it must be confirmed by two candles closing below
Pullback Finder AutoPullback Finder Auto — Intraday Momentum Cooling Detector
Pullback Finder Auto is designed to find stocks that have made a strong intraday run from the open and are now cooling off while still positive — the classic pullback zone where continuation entries often form.
It automatically measures the percentage change from today’s open and highlights bars where:
the stock has already run at least a chosen amount (for example +10 % above its open), and
the current price is still up but within a defined pullback range (for example between +3 % and +8 % above the open).
When those two conditions are met, you’ll see green graphics on your chart:
Green triangle markers under the candle.
Optionally, small green PB labels such as “PB 5.2 %” showing the exact percentage from open when the setup occurs.
A green highlight in the sub‑window or line plot if you left the “Change from Open %” plot active.
These are your visual cues that a pullback has formed — a stock that previously ran and is now pulling back while holding strength.
How it works
The script continuously monitors:
• High % from Open = (high − open) / open × 100
• Current % from Open = (close − open) / open × 100
A “Pullback” condition triggers only if:
the high % is greater than or equal to your minimum run threshold, and
the current % sits between your minimum and maximum pullback percentages.
When both are true, the indicator plots the green triangle and optional label.
Default parameters
Min Run % = 10
Min Current % = 3
Max Current % = 8
Session Start = 09:30 – 16:00 US Eastern
All can be changed to fit different volatility levels.
Lower values catch smaller moves; higher values restrict signals to explosive runners.
Using it in real time
During live trading, Pullback Finder Auto updates with each candle.
When a bar first enters the target zone, a green triangle and PB label will appear immediately under that candle.
These are dynamic: if price moves out of the valid zone on the same bar, the marker may disappear.
You can create an alert on “Pullback Finder Auto – Pullback Candidate” to be notified whenever new triangles appear across your active symbols.
This works on any timeframe:
use shorter timeframes such as 1‑minute or 5‑minute charts for fast, intraday detection,
use longer timeframes for a broader view of the day’s market structure.
Using it on past data (scanning backwards)
When you scroll back through history, past green triangles remain visible at every bar where the condition was true at that time.
The PB labels next to those candles show exactly how far above the open the stock was trading during the historical setup.
Use this for visual back‑testing: study how price reacted after these pullback points, adjust the thresholds, and refine your criteria for different markets.
The grey or teal line under the chart (if enabled) shows the percent‑from‑open curve so you can see the full run‑and‑cool pattern leading into each triangle signal.
If you convert the indicator into a strategy, the same condition becomes historical entry points you can test with the Strategy Tester.
Summary
1. Pullback Finder Auto paints green triangles and PB labels whenever an intraday pullback fits your criteria.
2. It runs dynamically in real‑time and also preserves markers for historical review.
3. Adjust the thresholds to match volatility or timeframe.
4. Ideal for visual scanning, watchlist alerts, or integration into a lightweight screening strategy.
Kelly Wave Position Matrix 20251024 V1 ZENYOUNGA simple table is designed for use when opening a position. It applies the Kelly formula to calculate a more scientific position size based on win rate and risk–reward ratio. At the same time, it displays 1.65× ATR stop-loss levels for both long and short positions to serve as a reference for comparing with existing stop-loss placements.
Additionally, the table back-calculates the corresponding position size based on a 2% total capital loss limit, using the actual loss ratio. It also shows the current wave trend status as a pre-filtering condition.
Overall, this table integrates the core elements of trading — trend (wave confirmation), win rate, risk–reward ratio, and position sizing — making it an effective checklist before entering a trade. Its purpose is to help achieve a probabilistic edge and ensure positive expected value in trading decisions.
Avivso 150 + ATHThis Pine Script displays a dynamic on-chart watermark and key stock data.
It shows company info, symbol, industry, market cap, ATR(14) with color status, earnings countdown, and distances from the current price to SMA150 and the all-time high.
It also plots SMA 20 and SMA 150 moving-average lines on the chart and supports configurable position, size, and padding for the watermark.
The Ultimate TPE by ATKDaily Energy Trigger Levels – AI-Enhanced Precision
This indicator captures the daily energy of price movement by extending the day’s high/low trigger levels across the chart. It translates daily institutional flow into clean visual levels, dynamic alerts, and actionable signals.
Key Highlights
🔹 Automatic Daily Energy Mapping – anchors to each day’s high and low in your selected timezone.
🔹 Full Chart Extension – upper and lower lines stretch across all timeframes for constant context.
🔹 Custom Color Control – personalize your green/red levels for clarity.
🔹 1-Minute Arrow Signals – see precise entries when price crosses daily energy zones.
🔹 Proximity & Touch Alerts – get notified when price touches or approaches your levels within a tick range.
🔹 Dynamic Alert Text – each alert displays the exact level name, price, and Long/Short direction.
Why It Matters
Every day creates a unique energy signature in price action. By tracking how the market respects or rejects those levels, traders can see where liquidity and momentum build up. TPE visualizes that energy in real time, helping you react faster and with greater precision.
Best Use Case
Use on the 1-minute chart for scalping or fine entry timing.
20 EMA Undercut Bounce - M4v3r1ck💎 The "EMA Undercut Bounce" Bullish Scanner
This indicator is designed to identify high-conviction continuation patterns where price makes a temporary dip for liquidity before resuming a powerful, established uptrend. It specifically looks for a bullish rejection off the 20-period Exponential Moving Average (EMA).
🎯 Strategy Logic
The signal is generated only on the Daily (1D) timeframe when the following five precise conditions are met on the most recent completed bar:
1. Price Action (The Undercut Bounce)
• Undercut: The bar's low price must have touched or temporarily traded below the 20-Day EMA.
• Rejection: The bar's close price must have fully recovered and closed above the 20-Day EMA. This is the classic sign of strong buying pressure defending a key support level.
2. Strong Trend Hierarchy (The Bullish Stack)
The moving averages must be perfectly stacked, confirming a robust multi-timeframe uptrend structure:
• 10-Day EMA > 20-Day EMA
• 20-Day EMA > 50-Day SMA
• 50-Day SMA > 200-Day SMA
3. Momentum Confirmation (The Upward Slope)
Both the 10-Day EMA and the 20-Day EMA must be rising from the previous day. This ensures that the short-term trend momentum is positive, ruling out signals during flat or turning markets.
💡 How to Use This Indicator
1. Timeframe: Ensure your chart is set to the Daily (1D) timeframe for accurate results.
2. Signal: A Green Background highlight and an Up-Arrow below the bar mark a confirmed signal.
3. Alerts: Use the built-in alert condition to set up notifications for stocks on your watchlist, allowing you to catch these high-quality setups without constantly monitoring charts.
This script is ideal for trend-following traders looking to enter a position after a healthy shakeout and confirmation of continued bullish commitment.
Unicorn Trade Indicator - Enhanced V1This code also contains pinescripts from iFVG (BPR) by Algorize and Visualizing displacement by tradeforopp who have kindly provided them as open source.
An ICT Unicorn is where a breaker block is traded through which incorporates a fair value gap. I decided to code this indicator as I couldn't find an existing free indicator on Trading View that performed adequately.
This indicator will highlight breaker blocks and when broken will post an Unicorn emoji and send an alert if requested. The last 3 breaker blocks are displayed, the prior boxes are labled PBB and are shown as red for bearish and green for bullish. After the main Unicorn is posted, the code continues to mark market structure shifts.
As all trading strategies work better with confluence I have added several other features which is very useful for people who are restricted on the number of indicators that can place on a single chart.
I have added iFVG (BPR) by Algoryze and Visualizing displacement by tradeforopp which have kindly been made open source by the authors. My thanks to them for their hard work.
Unicorn alerts will only be sent when a yellow displacement candle ( from the Visualizing displacement code) is present along with the Unicorn as this is the best type of Unicorn to trade.
The number of fvg's and bpr's from the code by Algoryze can be adjusted in the settings.
Also to add confluence I have used my own code to display liquidity depth boxes made popular by toodegrees.
I hope you find this indicator useful.
Julius Single TrailJulius Single Trail — How it works
This indicator combines a Kalman-like smoothed Donchian midline with an ATR-style volatility buffer to create a single adaptive trailing line that flips with trend. It also recolors candles to reflect regime and visually marks ranging conditions using Bollinger Band width. Optionally, it adds a dotted price line and can hide default candles for a clean, unified look.
Core logic
Donchian midpoint: Calculates the middle of the highest high and lowest low over Donchian Length. This is the directional anchor.
Kalman-like smoothing: Applies a lightweight exponential update to the Donchian midpoint using Alpha, reducing noise while staying responsive.
Volatility buffer: Uses RMA of True Range over Volatility Length multiplied by Volatility Multiplier to form an adaptive offset around the smoothed midline.
Dynamic trail:
Up-trend regime (regime = 1): The trail is kMid - offset and only ratchets upward (math.max), acting like a long stop.
Down-trend regime (regime = -1): The trail is kMid + offset and only ratchets downward (math.min), acting like a short stop.
Flip conditions: Regime flips only when price is on the far side of both the smoothed midpoint and the current trail:
Flip to down when close < kMid and close < dynTrail
Flip to up when close > kMid and close > dynTrail
Candle styling:
Wick color shows immediate price direction (green for bullish, red for bearish).
Body color follows the trail’s regime (Uptrend Color or Downtrend Color).
In ranging conditions, all candle elements turn gray.
Ranging detection:
Computes Bollinger Bands on close with BB Length and BB Multiplier.
Calculates width as a percentage of the basis. If width% (optionally smoothed) is below Range Threshold %, candles are gray to signal consolidation.
What it plots
Dynamic Trail: A single, thick line that changes color by regime:
Uptrend: Uptrend Color (default lime)
Downtrend: Downtrend Color (default red)
Optional Trail Fill to Close: A translucent band between the trail and the close (disabled by default).
Optional Dotted Price Line: A dotted horizontal line at the current price (toggle via Show Dotted Price Line).
Candle treatment:
You can hide default candles (Hide Default Candles), then use a separate custom-candle script for wick/body/border mapping. In this script, default candles can be made fully transparent to let the trail and colors dominate.
Inputs
Donchian Length: Window for the highest/lowest used to form the midline.
Kalman Alpha 0–1: Smoothing factor for the midline. Higher = more responsive, lower = smoother.
Volatility Length: RMA length of True Range for the volatility buffer.
Volatility Multiplier: Scales the buffer around the midline. Higher widens the trail, reducing flips.
Uptrend Color / Downtrend Color: Trail and body color by regime.
Show Cloud To Close: Fills between price and trail using the trail’s color.
Hide Default Candles: Makes the native candles fully transparent.
Show Dotted Price Line / Price Line Color: Toggles and colors the dotted price line.
Ranging parameters:
BB Length (Ranging) and BB Multiplier (Ranging): Bollinger Band settings.
Range Threshold %: If BB width% < threshold, candles turn gray to indicate range.
Use Smoothed Width / Width Smoothing Length: Smooths BB width% before comparison.
Signals and interpretation
Regime shifts:
Bullish flip: When price closes above both the smoothed midpoint and the current trail. Trail switches to the lower band (kMid - offset) and ratchets up.
Bearish flip: When price closes below both the smoothed midpoint and the current trail. Trail switches to the upper band (kMid + offset) and ratchets down.
Trend bias:
Green trail/body: Favor long bias; trail can serve as a dynamic stop.
Red trail/body: Favor short bias; trail can serve as a dynamic stop.
Ranging filter:
Gray candles: Lower-probability trend continuation; consider reducing position sizing, waiting for a breakout, or using mean-reversion tactics.
How to use it
Trend following:
Enter in the direction of the regime when flips occur or on pullbacks that respect the trail.
Use the trail as a stop-loss guide: exit when price closes beyond the trail and the regime flips.
Range awareness:
When candles turn gray, avoid trend entries or switch to range tactics. Wait for color to return and a clean flip.
Tuning suggestions:
Faster, more responsive: Lower Donchian Length, increase Alpha, lower Volatility Length and/or Volatility Multiplier.
Smoother, fewer flips: Increase Donchian Length, decrease Alpha, increase Volatility Length and/or Volatility Multiplier.
Ranging strictness: Increase Range Threshold % to mark ranges more often; smooth the width to avoid choppiness.
Example settings
Swing trading:
Donchian Length: 50
Alpha: 0.25
Vol Length: 14
Vol Mult: 1.6
BB Length: 20, BB Mult: 2.0, Range Threshold %: 2.0, Smoothed width ON (20)
Intraday (more responsive):
Donchian Length: 20–30
Alpha: 0.4–0.6
Vol Length: 10–14
Vol Mult: 1.2–1.6
Range Threshold %: 1.5–2.5 depending on instrument
Alerts (suggested)
Regime flips:
Condition: close > dynTrail and close > kMid -> Alert: Bullish regime
Condition: close < dynTrail and close < kMid -> Alert: Bearish regime
Range state:
Condition: BB width% < threshold -> Alert: Ranging
You can wire these using alertcondition() on the flip conditions and isRange variable inside the script.
Notes and limitations
This is a single-side ratcheting trail per regime, designed to reduce whipsaw by requiring price to clear both the midpoint and the trail before flipping.
Like all trend tools, it can lag tops/bottoms and may chop in low-volatility, sideways markets.
For assets with highly irregular volatility, retune Volatility Multiplier and Range Threshold %.
Short description (for header):
Adaptive, single-line trailing stop based on Kalman-smoothed Donchian mid + ATR-style buffer. Colors candles by regime, grays out ranges via BB width. Optional price line and cloud.
If you want, I can add alertcondition() for the flip and range events and a light custom-candle overlay so you can publish with built-in alert templates and consistent candle styling.
golden owl 1HR- 1MIN setupmarks 1 hour interval or change in setting to fixed and 1 hr htf.... once cisd signal forms in the first 10 candles after 1 hour close go for it. 1:3 strict.. after price reaches 1:1 strictly move sl to entry. enjoy!
golden smart entrySmart Money Concepts (SMC) is a trading methodology that focuses on understanding and following the behavior of institutional investors—often referred to as "smart money." The goal is to identify high-probability trade setups by analyzing how these large players move the market.
Bridge Boxes Bridge Boxes: detect compression when N consecutive B-bars occur (|close−open| ≤ ε%). Draw box and store latest top/bottom.
% Range Breakout (RB): compute mid = (top+bottom)/2 from last TOOLBAR box, freeze refClose = close , build up/down levels by TF-specific % (H1/H4/D1/W1). Trigger on cross; draw RB line/label; auto-clear next confirmed bar if no new break.
First X Days Of A YearFirst X-Day Indicator
Overview
The "First X-Day Indicator" is a powerful tool to visualize and analyze market sentiment during the crucial first trading days of each new year. It provides immediate visual feedback on whether the year is starting with positive or negative momentum compared to the previous year's close, a concept often related to market theories like the "January Effect" or the "First Five Days Rule."
The indicator is designed to be clean, intuitive, and fully customizable to fit your charting style.
Key Features
Yearly Baseline: Automatically draws a horizontal line at the previous year's closing price. This line serves as a clear 0% reference for the current year's performance.
Dynamic Background Coloring: For a user-defined number of days at the start of the year, the chart background is colored daily. Green indicates the close is above the previous year's close, while red indicates it's below.
Final Performance Symbol: At the end of the analysis period (e.g., on the 5th day), a single summary symbol (like 👍 or 👎) appears. This symbol represents the final performance outcome of the initial trading period.
Settings & Customization
You have full control over all visual elements:
Analysis Period: Define exactly how many days at the start of the year you want to analyze (e.g., 3, 5, or 10 days).
Line Customization: Fully control the yearly baseline's appearance. You can change its color, width, and style (Solid, Dashed, or Dotted) or hide it completely.
Symbol Customization: Choose any character or emoji for the positive and negative performance symbols. You can also adjust their size (Small, Normal, Large) or hide them.
Background Control: Enable or disable the daily background coloring and select your preferred custom colors for positive and negative days.
Multi-Module Full-Featured Trading Strategy System v1🧠 Key Features Summary:
🧩 Full Modular Structure: Entry / Position Adding / Take Profit & Stop Loss / Delay / Capital Management.
⏱️ Delay & Reverse System: Prevents frequent long-short switching with minute-based delay intervals.
💰 Capital Management System:
• Controls opening/adding positions based on account equity percentage;
• Limits maximum position ratio;
• Supports leverage multiplier.
⚙️ Each module is independently configurable and can be disabled;
📈 Unified variable naming for easy expansion with more indicators.
Previous session High/Low – Asia London USA Overview
This indicator automatically plots the Previous Day’s (PD) session Highs and Lows for the Asia (Tokyo), London, and USA (New York) trading sessions.
Each session is color-coded for clarity:
🟩 Asia (Green)
🟥 London (Red)
🟦 USA (Blue)
At the close of each session, the indicator records that session’s high and low, draws horizontal lines across the chart, and labels them neatly in the center of each range — above the high and below the low for perfect visual balance.
⚙️ How It Works
The script continuously tracks the current high and low within each session.
When a session closes, those values are locked in as the PD High and PD Low.
Clean lines and centered labels are drawn immediately.
The labels automatically offset slightly above or below the line to avoid overlap, with user-controlled spacing.
This helps traders quickly identify where price interacts with the previous session’s structure, a core concept for many session-based and liquidity-based strategies.
🧭 Sessions and Timezones
Each market session runs in its native timezone, so you can align them perfectly to your chart or your preferred trading hours:
Asia Session: Default 08:30 – 11:00 (Australia/Adelaide time)
London Session: Default 08:00 – 10:00 (Europe/London)
USA Session: Default 09:30 – 16:00 (America/New_York)
You can change each session’s hours and timezone from the Inputs panel.
🎨 Customization
In the Inputs menu you can:
Toggle each session on or off
Choose line color and thickness
Enable or disable labels
Adjust vertical offset (ticks) for label spacing
“High label offset” – moves label further above the high line
“Low label offset” – moves label further below the low line
These adjustments make it easy to keep charts clean and readable on any instrument or timeframe.
📈 Practical Use
This indicator is ideal for:
Session traders who mark PD Highs/Lows as liquidity zones
London or NY session scalpers who watch for breakouts, fakeouts, or reversals
ICT / Smart Money Concepts users wanting automatic session reference levels
Anyone wanting a quick visual map of inter-session structure
Overnight Gap Detector - 4H Body to BodyThis TradingView indicator automatically detects and tracks overnight price gaps based on 4-hour candle bodies, displaying them as colored rectangles on your chart.
Key Features:
Gap Detection:
Identifies true wick-to-wick gaps that occur at the start of each new trading day
Gap Up: Detected when previous candle's high is below current candle's low
Gap Down: Detected when previous candle's low is above current candle's high
Rectangles are drawn from candle body to body (not wicks), providing clean gap zones
Gap Tracking:
Gaps are marked as "GAP HOLE" when first detected
Automatically tracks when gaps get filled
Changes to "FILLED" label and color when price closes through the gap zone
Gaps extend horizontally until filled or chart end
Customizable Display:
Label Position: Choose between "Inside" (centered in box) or "Outside" the gap rectangle
Label Offset: Adjust how far from the right edge labels appear (0-50 bars)
Minimum Gap Size: Filter out small gaps by setting minimum percentage threshold (default 0.05%)
Max Stored Gaps: Control how many gaps are kept on chart (default 200)
Visual Options:
Optional midline showing the 50% fill level of each gap
Fully customizable colors for Gap Up, Gap Down, and Filled gaps
Separate transparency controls for box backgrounds and label backgrounds
Adjustable border and midline widths
Toggle labels and midlines on/off
Color Coding:
Green: Gap Up (default)
Red: Gap Down (default)
Yellow: Filled gaps (default)
Perfect for traders who use gap-fill strategies or want to track key price levels where gaps occurred






















