GS Pro FiboAutomatically draws dynamic Fibonacci retracement levels based on latest zigzag swings with auto zones (TP/Entry/SL). Designed for Gold Station – GS Pro community.
Графические паттерны
RRE LineStep 1: Initialize Parameters
length: Period of the indicator (default: 99)
src: Source input, typically the close price
ama: Initialize at 0.0 (Adaptive Moving Average value)
Step 2: Calculate Highest High Signal (hh)
hh
=
max
(
sign
(
Δ
highest
(
n
)
)
,
0
)
hh=max(sign(Δhighest(n)),0)
Breakdown:
highest(n) finds the highest price over the last n periods
Δ calculates the change from the previous bar
sign() returns +1 if positive, -1 if negative, 0 if zero
max(..., 0) ensures result is either 1 or 0
Result: hh = 1 when a new highest high is made, otherwise 0
Step 3: Calculate Lowest Low Signal (ll)
ll
=
max
(
sign
(
Δ
lowest
(
n
)
×
−
1
)
,
0
)
ll=max(sign(Δlowest(n)×−1),0)
Breakdown:
lowest(n) finds the lowest price over the last n periods
Δ calculates the change from the previous bar
Multiply by -1 to invert the sign
sign() processes the inverted value
max(..., 0) ensures result is either 1 or 0
Result: ll = 1 when a new lowest low is made, otherwise 0
Step 4: Calculate Trend Coefficient (tc)
t
c
(
t
)
=
2
tc(t)=
2
Breakdown:
RegularitySignal = 1 if (hh = 1 OR ll = 1), else 0
Calculate simple moving average of the signal over n periods
Square the result to amplify adaptive behavior
Result: tc represents the squared average frequency of new highs/lows
Support and Resistance ProSupport and Resistance Pro
A method that specializes in trading at support and resistance zones, supply and demand, or POC zones of Volume Profile. This is a versatile indicator and foundation for you.
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), 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.
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 Support and Resistance 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)
Support and Resistance Pro system quick guide:
Step 1: Click a point in the support and resistance zone (supply and demand) to draw a horizontal line
When a new resistance/supply or support/demand zone appears (fresh), we draw a reaction band, including the order execution price (yellow and blue lines), and the stop loss price (red line). You can completely adjust the width of the blue and red bands with the input parameters.
Select the direction you want to trade, for example in the picture we are choosing the Sell (Short) order
Step 2: Enter the input parameters for the system including:
Direction of Long (Buy), Short (Sell), Turn Off (No trade) orders
Width of Entry price (trigger), and width of Stoploss (SL) range
Order volume, TP1, TP2, TP3, TP4 levels
Maximum number of transactions on a support and resistance zone (supply and demand)
Step 3: Set up automatic trading from TradingView via PineConnector EA and 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 4 - 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.
Trader Jumblo Indicator Zone V6Trader Jumblo Zone (v6) displays automatically detected price zones based on recent candle structures and optional fair value gaps (FVGs).
It visually marks potential supply and demand regions and updates their state as price evolves.
Zones extend forward on the chart for context, with optional labels and transparency adjustments once they are interacted with.
The indicator highlights when price comes near or moves significantly away from a fresh zone.
It can generate alerts for both proximity (“approaching”) and momentum (“running”) conditions, measured relative to ATR.
This version is written in Pine Script v6 and includes safety and stability improvements for array handling, box/label management, and pruning logic.
It maintains visual clarity even with many active zones and prevents runtime errors that may occur in earlier versions.
🧩 Main features
Detects structural candle-based zones and optional FVG zones.
Distinguishes between fresh and touched zones.
Extends zones forward with adjustable length and transparency.
Optional labels with high/low information.
Visual markers for “Standby” and “Running” conditions.
Alert conditions for proximity and strong movement.
Watermark option for visual identification.
Safe and optimized handling of arrays, boxes, and labels.
⚙️ Inputs overview
Zone lookback and maximum zone count.
Minimum zone height (in ticks).
Zone extension length.
Colors for fresh supply/demand zones and transparency for touched ones.
ATR parameters for proximity and movement detection.
Toggle for Fair Value Gap zones and labels.
Watermark customization.
🛠️ Version notes
Improved internal safety: prevents errors when deleting or modifying boxes/labels.
Pruning logic refined to consistently maintain the set zone limit.
Simplified and cleaner running-distance calculations.
No changes to the detection logic or visual structure.
📢 Alerts
Approaching Fresh Zone – triggered when price nears a fresh zone.
Price Running – triggered when price moves strongly away from a zone.
Nancy's All-In-One [Private] [Institutional]A Private Institutional Tool by Design
PRIVATE ACCESS ONLY
This script is not for public usage or those casually scrolling through the indicator library. This is a private tool, built for precision, and extremely powerful in the wrong hands. Used properly, it can unlock financial freedom yes, it’s that potent.
“This is the closest you’ll get to peeking behind the curtain of institutional strategy without having a Bloomberg terminal or a Wall Street badge.”
– KC Research
What It Does
The Nancy All-In-One is the culmination of thousands of hours of backtesting, real-world application, and tactical insights drawn from elite strategies used at places like Renaissance Technologies, proprietary desks, and private equity firms.
This version fuses:
DTT Root Candles & Time-Zone Price Levels (including NY Judas, Kyoto, Osaka, etc.)
Intraday Sessions & Micro Box Models (Turncoat, Bishop, Knight, Big Ben, etc.)
Quarterly Micro Cycles — breaks down time into high-probability 90-minute blocks
Fib-Based Inner Intervals — ideal for sniper-level scalps or early entries
SMT Divergences, PD High/Low, NWOG/NDOG/EHPDA setups
Multi-Timeframe Visualization (with user control over display resolution)
Every line, label, and box drawn has a purpose, engineered to expose fractal imbalances, liquidity traps, and premium/discount zones with surgical accuracy.
How to Use It
Use the 1M or 5M chart — This script was optimized with lower-timeframe precision in mind. It works higher up, but that’s not its primary edge.
Turn on sessions you want under Turn Modules On group. Each session represents a model with its own behavior (e.g. Osaka Model = Asia liquidity expansion).
Price Lines — The "DTT Root Candles" levels are critical. These are not random timestamps—they represent algorithmic triggers derived from real volume and timing analysis.
Quarterly Cycles — Use these to trade from zone-to-zone with context. Each 90-minute block often contains a reversal, breakout, or liquidity sweep.
SMT, PDHL, NWOG, NDOG — These are best used with confluence. The more boxes and lines that agree, the higher your confidence.
Built for Traders Who Know the Game
This is not a magic button. It’s a complex system that assumes you're willing to study it, adapt it, and integrate it into your own strategy. It’s a tool—not a signal generator. It won't tell you when to buy or sell, but it will show you exactly where institutions are hunting.
Settings & Customization
You can toggle each element on/off to declutter your chart.
Change label sizes, opacity, and styles to suit your preferences.
Adjust session times if you're not in EST (UTC-5 default).
Works Best With:
1M to 15M charts (although elements scale up)
Liquid FX pairs, indices (SPX, NAS100), BTC, and ETH
Time-sensitive entries (news, killzones, session opens)
Final Note
This was developed internally by Nancy and private anon entities, and is still being actively expanded. Portions of the code are open-source, but most logic is proprietary and reverse-engineering resistant.
If you don’t know what NWOG, EQH/PDH, or SMT are—this isn’t for you. If you do... welcome to the other side.
Aude - Minimal Session IndicatorMinimal Session Indicator
- The indicator allows users to highlight specific sessions (time range) on the chart.
- There are options to change the visual settings of the session box (BG color, Border color, Border style).
- Max 500 sessions drawn
🔥 ANDINO Risk Ultimate 🔥Indicator for profitable trading, allowing buy, sell, stop-loss, and 3 take-profit entries, providing profitability and simplifying your trading.
Asia Market OpenAsia Market Open at 5pm CST - marked with a narrow (1) yellow vertical line.
It's simply a yellow vertical line to mark the CST of 5pm (17:00) when the Asian market opens.
Several Asian market open times exist; I use this one.
EDGAR Weekly Overview (EWO)EDGAR Weekly Overview (EWO) helps you trade with confidence — no more guessing where price will go next.
This indicator clearly shows where the market is likely to reach, reject, or bounce, using dynamic weekly base, support, and resistance levels.
You’ll instantly see key zones for your take profit (TP) and stop loss (SL), helping you plan trades with precision instead of emotion.
🔒 Invite-Only Script – access available only to authorized users.
PSP Table [Pogiest]General
Precision Swing Point (PSP) is a concept derived from Quarterly Theory concepts originating from ICT methodologies. The concept typically uses a 3-candle swing formation in which candle 2 has a divergence in the closing price with one asset compared to the other two assets in a correlated asset triad (i.e. one closes bullish and two closes bearish, vice-versa). The indicator is designed to track PSPs in real time as they are forming.
Note: Credit of concepts/ideas goes to TraderDaye.
In the image above, the higher timeframe candle overlay is displayed on the chart to be shown as an example with the indicator (table). Higher timeframe candles are not included as part of the indicator. This indicator is only comprised of the table shown.
Timeframe Column:
1. Displays up to four different timeframes to monitor.
Asset Columns:
1. Cells display “Bull” or “Bear” showing the current state of each candle and updates in real-time tick by tick.
C2 PSP Column:
1. “Inactive” indicates no divergence in all assets (i.e. all three assets in a triad are all printing bullish or bearish candles)
2. “Pending” indicates a potential divergence in candle 2’s closing price (i.e. one asset’s current state in candle 2 is bearish while the others are bullish, vice versa). This updates in real-time tick by tick and continues to monitor each candle as they form for a candle 2 divergence.
3. “Active” indicates a confirmed candle 2 divergence.
Note: Any historical PSPs will not be displayed in the table as this indicator only tracks PSPs in real time and continuously monitors for potential PSPs and confirmed PSPs.
Settings
1. Choose up to three different assets to monitor.
Note: If only two are selected, the indicator will only display the two selected and compare the two assets for divergences. If one is selected, a warning sign will be displayed to select at least two assets.
2. Choose up to four different timeframes. Option to deselect timeframes.
3. Toggle option to show/hide the table.
4. Adjust the table positioning to be displayed on the chart.
6. Option to change text size in the table cells. This will also increase/decrease the size of the table.
7. Table Color Customization gives you options to change the background colors of the cells including text color.
What makes this indicator unique:
1. Track current PSP status in real-time tick by tick as candles form in multiple timeframes.
2. Instead of switching through timeframes to check for PSPs, they are consolidated in one table.
Risk Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial advice. All trading and investment decisions remain solely the responsibility of the user.
Trading involves a high degree of risk, and past performance is not indicative of future results.
Always conduct your own research and consult with a qualified financial professional before making any trading decisions.
By using this indicator, users acknowledge they understand these risks and accept full responsibility for their trading decisions and outcomes.
SuperTrend趋势K线渲染多空提示指标简介 / Indicator Introduction
指标名称:趋势K线渲染多空提示
Indicator Name: Trend K-line Rendering with Long/Short Signals
核心功能 / Core Function:
本指标是一款直观的主图趋势跟踪工具。它通过智能渲染K线颜色,并直接在图表上标记“多”、“空”文字,为交易者提供一目了然的趋势方向和潜在买卖点提示。
This indicator is an intuitive overlay trend-following tool. It intelligently colors the K-lines and directly marks "Long" (多) and "Short" (空) signals on the chart, providing traders with a clear visual representation of the trend direction and potential trading points.
主要特点 / Main Features:
可视化趋势识别 / Visual Trend Identification:
指标通过独特的色彩系统为K线着色,将复杂的趋势判断转化为直观的视觉信号,让您瞬间把握当前市场多空主导力量。
The indicator colors the K-lines using a unique color system, transforming complex trend judgments into intuitive visual signals, allowing you to instantly grasp the dominant bullish or bearish force in the market.
精准多空信号 / Precise Long/Short Signals:
在趋势发生关键转换时,指标会在K线的关键位置(如高点或低点附近)清晰标注“多”或“空”文字,直接提示潜在的入场时机。
At key trend transitions, the indicator clearly marks "Long" (多) or "Short" (空) near critical price points (e.g., around highs or lows), directly suggesting potential entry opportunities.
主图叠加,无需切换 / Overlay on Main Chart, No Switching Needed:
所有信号都直接呈现在主图K线上,无需在副图之间切换视线,确保您专注于价格行为本身,决策更高效。
All signals are displayed directly on the main chart's K-lines, eliminating the need to shift your focus between sub-windows and ensuring you concentrate on price action for more efficient decision-making.
适用场景 / Applicable Scenarios:
适用于所有希望通过图表颜色快速判断趋势的交易者。
Suitable for all traders who wish to quickly determine the trend through chart colors.
适用于需要清晰、直接买卖点提示的投资者。
Suitable for investors who need clear and direct buy/sell point alerts.
可作为日内交易或波段交易的趋势过滤工具。
Can be used as a trend-filtering tool for day trading or swing trading.
温馨提示 / Friendly Reminder:
建议将此工具与其他技术分析方法结合使用,以相互验证。请注意,没有任何指标能保证100%准确,请务必管理好风险。
It is recommended to use this tool in conjunction with other technical analysis methods for mutual confirmation. Please note that no indicator can guarantee 100% accuracy, so always manage your risk effectively.
SuperTrend副图趋势精准买卖点Indicator Name / 指标名称:
副图趋势精准买卖点
Sub-chart Trend Precision Buy-Sell Points
Core Function / 核心功能:
本指标是一款强大的趋势跟踪与交易信号工具,旨在通过独特的算法模型,为投资者精准捕捉市场中的关键买卖时机。它通过多空动能的可视化对比,清晰揭示当前趋势的强弱转换,并辅以明确的信号提示,帮助您在复杂的行情中做出更理性的决策。
This indicator is a powerful trend-following and trading signal tool designed to use a unique algorithmic model to help investors precisely capture key buying and selling opportunities in the market. Through the visual comparison of bullish and bearish momentum, it clearly reveals the strength transitions of the current trend and provides clear signal alerts, assisting you in making more rational decisions within complex market conditions.
Main Features / 主要特点:
Visualized Bullish-Bearish Momentum / 多空动能可视化:
通过鲜明的红绿双色柱状图,直观展示市场多空力量的实时博弈情况,让趋势方向一目了然。
Uses distinct red and green histogram bars to intuitively display the real-time battle between bullish and bearish forces in the market, making the trend direction clear at a glance.
Precise Buy-Sell Signals / 精准买卖信号:
在趋势发生关键转折点时,指标会发出独特的信号提示(如青色和黄色标记),为您提供潜在的入场和出场参考。
When key turning points occur in the trend, the indicator triggers unique signal prompts (such as cyan and yellow markers), providing you with potential entry and exit references.
Dynamic Support and Resistance Lines / 动态支撑压力线:
内嵌动态的支撑线与压力线,能够随市场波动自适应调整,帮助您识别关键的阻力位和支撑位,为判断行情空间提供重要依据。
Incorporates dynamic support and resistance lines that adaptively adjust with market fluctuations, helping you identify key resistance and support levels, which provides an important basis for judging market movement potential.
Simple, Intuitive, and Easy to Use / 简洁直观,易于使用:
所有信号均以图形化方式呈现于副图,界面清晰简洁,无需复杂解读,新手也能快速上手。
All signals are presented graphically on the sub-chart. The interface is clear and concise, requiring no complex interpretation, allowing even beginners to get started quickly.
Applicable Scenarios / 适用场景:
适用于寻找趋势启动点及转折点的投资者。
Suitable for investors looking for trend initiation points and turning points.
适用于需要辅助判断市场多空动能强弱的交易者。
Suitable for traders who need assistance in judging the strength of market bullish/bearish momentum.
可作为您现有交易系统中的一个有效确认工具。
Can serve as an effective confirmation tool within your existing trading system.
Friendly Reminder / 温馨提示:
任何技术指标均为分析辅助工具,建议结合其他分析方法或自身交易经验综合判断,市场有风险,投资需谨慎。
Any technical indicator is an auxiliary analysis tool. It is recommended to use it in combination with other analysis methods or your own trading experience for comprehensive judgment. The market carries risks, so investment requires caution.
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.
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.
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.






















