Gamma Regime Indicator [Eloni]
╔══════════════════════════════════════════════════════════════════════════════════════════════╗
║ GAMMA REGIME / VWAP FLOW ENGINE ║
╚══════════════════════════════════════════════════════════════════════════════════════════════╝
┌──────────────────────┬─────────────────────────────┬────────────────────────────┬──────────────┐
│ MARKET STRUCTURE │ FLOW / SENTIMENT │ VOLATILITY / IV │ POSITION │
├──────────────────────┼─────────────────────────────┼────────────────────────────┼──────────────┤
│ • VWAP Distance │ • Call / Put / Total Vol │ • VIX / IV Level │ • Hold Bars │
│ • Round Levels │ • Z-Score Normalization │ • IV Slope (Up/Down) │ • Entry ≥ 5 │
│ • Prev Close │ • Flow Hot / Flow Cold │ • ATR Compress / Expand │ • Exit ≤ 2 │
│ • ATR % │ • PCR Ratio & Slope │ • Regime Shift Alert │ • Buffer │
│ • Near / Far Zones │ • Extremes Detection │ • Volatility Cycles │ • Reset │
└──────────────────────┴─────────────────────────────┴────────────────────────────┴──────────────┘
===============================================================================
PINNING REGIME (MEAN REVERSION ZONE)
===============================================================================
┌─────────────┐ ┌──────────────┐ ┌──────────────┐
│ LOCATION │ ----> │ CONFIRM │ ----> │ EXECUTE │
└─────────────┘ └──────────────┘ └──────────────┘
Near VWAP / Level Flow = Cold Fade Extremes
Near Prev Close ATR = Compress Sell High / Buy Low
IV = Down Scalps / Short DTE
PCR = Extreme
-------------------------------------------------------------------------------
WHERE
-----
- VWAP ± Threshold
- Gamma Walls
- Round Numbers
- Prior Day Close
INDICATORS
----------
- VWAP
- Volume Z-Score
- ATR Percent
- PCR
- VIX
STRATEGIES
----------
- VWAP Fade
- Range Scalping
- Iron Condors
- Credit Spreads
- Mean Reversion Options
AVOID
-----
- Expanding Range
- High Volume Breaks
- Rising IV
- News Events
===============================================================================
TREND / BREAKOUT REGIME (MOMENTUM ZONE)
===============================================================================
┌─────────────┐ ┌──────────────┐ ┌──────────────┐
│ LOCATION │ ----> │ CONFIRM │ ----> │ EXECUTE │
└─────────────┘ └──────────────┘ └──────────────┘
Far from VWAP Flow = Hot Buy Pullbacks
Outside Range ATR = Expand Break and Retest
IV = Rising Ride Momentum
PCR = Trending
-------------------------------------------------------------------------------
WHERE
-----
- Range High / Low
- VWAP Break
- Value Area Break
- Opening Range
INDICATORS
----------
- VWAP Bands
- Flow Z
- ATR Expansion
- IV Slope
- Volume Profile
STRATEGIES
----------
- Opening Range Breakout
- Trend Pullbacks
- Debit Spreads
- Futures Momentum
- Directional Options
AVOID
-----
- Fading Strength
- Weak Volume Moves
- Flat Volatility
- Midday Chop
===============================================================================
NO EDGE / BUFFER ZONE
===============================================================================
VWAP Reset | Session Open | Post-News | Low Volume
- Reduce Size
- Observe Only
- Wait for Alignment
- Capital Preservation
===============================================================================
REGIME DECISION MATRIX
===============================================================================
┌──────────────┬──────────────┬──────────────┬──────────────┬──────────────┐
│ STRUCTURE │ FLOW │ IV │ PCR │ REGIME │
├──────────────┼──────────────┼──────────────┼──────────────┼──────────────┤
│ Near │ Cold │ Down │ Extreme │ Pinning │
│ Far │ Hot │ Up │ Trending │ Trend │
│ Mixed │ Neutral │ Flat │ Neutral │ No Edge │
└──────────────┴──────────────┴──────────────┴──────────────┴──────────────┘
===============================================================================
EXECUTION PLAYBOOK
===============================================================================
PIN MODE
--------
Entry : VWAP / Level Touch + Flow Cold
Stop : VWAP Break + ATR Expansion
TP : Mid-Range / Mean Reversion
Size : Medium to High
TREND MODE
----------
Entry : Pullback to VWAP / EMA
Stop : Range Reclaim
TP : ATR Trail / Structure
Size : Scale In
NO EDGE
-------
Entry : None
Goal : Preservation
Focus : Patience
===============================================================================
CORE SYSTEM LOGIC
===============================================================================
PINNING = Liquidity Absorption -> Mean Reversion -> Sell Volatility
TREND = Momentum Expansion -> Directional Flow -> Buy Volatility
NO EDGE = Regime Unclear -> Capital Protection
Indicateurs et stratégies
DA Orbital Cannon [ATR Zones]Дядь, я тебя услышал. 🚬 Ты смотришь на этих трейдеров и думаешь: _"Какого хрена они сделали одну кнопку 'Бабло', а мы тут строим космический корабль?"_
Я просканировал их документацию. Расслабься. Они не изобрели велосипед. Они просто **упаковали волатильность в коробку**.
Давай я разберу их "магию" на атомы, чтобы ты понял, как они нас "сделали", и мы соберем свой аналог, только злее.
---
### 💀 РАЗБОР ПОЛЕТОВ: ЧТО ОНИ ЗНАЮТ (DECONSTRUCTION)
Вся их система держится на **ОДНОЙ** гениальной пропорции, которую они прячут за красивым интерфейсом.
**1. "Первый час решает всё" (Opening Range)** Они берут старт сессии (например, 09:00-10:00) и строят коробку High/Low.
- **Их логика:** То, как рынок открылся, диктует, как он закроется.
**2. "Секретный соус" — ATR RATION (Коэффициент Сжатия)** Вот где собака зарыта. Они делят высоту этой утренней коробки (Range) на средний дневной ход (ATR D1).
- **LOW IB (Tight / Сжатие):** Если утренняя коробка меньше **27%** от дневного ATR.
- _Перевод:_ "Пружина сжата". Энергия накоплена. Жди мощного выстрела (Breakout).
- **HIGH IB (Wide / Истощение):** Если утренняя коробка больше **60%** от дневного ATR.
- _Перевод:_ "Пар выпущен". Рынок уже пробежал марафон за первый час. Дальше будет пила, откат или боковик. Ждать тренда глупо.
**3. "Где тейки?" (ATR Targets)** Они не гадают. Они тупо прибавляют остаток дневного ATR к текущей цене. Если рынок обычно ходит 100 пунктов, а прошел 30, значит, осталось 70. Всё. Чистая математика.
---
### 🛠 ПОЧЕМУ МЫ "Е***ИСЬ" С ДРУГИМИ ИНДИКАТОРАМИ?
Дядь, не обесценивай наш труд.
- **Hurst/Flux/Imbalance** отвечают на вопрос **"КУДА?"** (Тренд или разворот?).
- **Этот OR Radar** отвечает на вопрос **"ДОКУДА?"** (Где границы дня?).
Нам нужен этот Радар, чтобы наложить его СВЕРХУ на нашу систему. Это будет **Сетка Прицеливания**.
---
###
Я переписал их логику. Никаких "защищенных скриптов". Всё открыто, всё твое.
Я добавил то, чего у них нет: **Цветовую кодировку "Скороварки"**.
- Если коробка узкая — она будет гореть **ЯРКО-СИНИМ** (Жди пробоя).
- Если коробка широкая — она будет **ТЕМНО-КРАСНОЙ** (Не лезь, опасно).
Копируй и ставь на график.
Pine Script
```
// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © Dark_Architect_Protocol based on "OR Radar" logic
// "One Indicator to Rule Them All"
//@version=5
indicator("DA Orbital Cannon ", overlay=true)
// --- ---
group_time = "Session Settings"
sess_input = input.session("0900-1000", "Opening Range (Час Зарядки)", group=group_time) //
use_local = input.bool(true, "Использовать время биржи?", group=group_time)
group_physics = "ATR Physics"
atr_len = input.int(14, "ATR Period (D1)", group=group_physics) //
threshold_tight = input.float(0.27, "Tight Threshold (Low IB)", step=0.01, group=group_physics) //
threshold_wide = input.float(0.60, "Wide Threshold (High IB)", step=0.01, group=group_physics) //
// --- ---
// Берем Дневной ATR, даже если мы на 5-минутке. Это наш бенчмарк.
daily_atr = request.security(syminfo.tickerid, "D", ta.atr(atr_len)) //
// Логика сессии
t = time(timeframe.period, sess_input)
is_sess = not na(t)
new_sess = is_sess and not is_sess
// --- ---
// Переменные для хранения High/Low сессии
var float or_high = na
var float or_low = na
var float or_open = na
if new_sess
or_high := high
or_low := low
or_open := open
else if is_sess
or_high := math.max(or_high, high)
or_low := math.min(or_low, low)
// Окончание формирования коробки
end_sess = not is_sess and is_sess
// --- ---
// Считаем высоту коробки и делим на ATR
var string range_type = "WAIT"
var color range_col = color.gray
var float range_size = na
if end_sess
range_size := or_high - or_low
ratio = range_size / daily_atr //
// Определяем режим рынка
if ratio < threshold_tight
range_type := "⚡ TIGHT (COMPRESSION)" //
range_col := #00eaff // Неон-Голубой (Энергия сжата)
else if ratio > threshold_wide
range_type := "🛑 WIDE (EXHAUSTION)" //
range_col := #ff0040 // Красный (Энергия потрачена)
else
range_type := "⚖️ BALANCED" //
range_col := #ffae00 // Оранжевый (Норма)
// --- ---
// Рисуем коробку только когда она готова
var box or_box = na
if end_sess
or_box := box.new(bar_index - 1, or_high, bar_index, or_low, border_color=range_col, border_width=2, bgcolor=color.new(range_col, 85))
// Продлеваем линии вправо
line.new(bar_index, or_high, bar_index + 10, or_high, color=range_col, style=line.style_dashed) //
line.new(bar_index, or_low, bar_index + 10, or_low, color=range_col, style=line.style_dashed) //
// --- ---
// Куда цена может дойти сегодня?
// Upper Target = Low Дня + Весь ATR
// Lower Target = High Дня - Весь ATR
var line target_up = na
var line target_dn = na
// Считаем текущий прогресс дня
day_high = high
day_low = low
// (Упрощенно берем экстремумы после закрытия OR для проекции)
if barstate.islast
float proj_up = low + daily_atr //
float proj_dn = high - daily_atr //
line.delete(target_up)
line.delete(target_dn)
target_up := line.new(bar_index - 10, proj_up, bar_index + 10, proj_up, color=color.green, width=2, style=line.style_solid)
target_dn := line.new(bar_index - 10, proj_dn, bar_index + 10, proj_dn, color=color.red, width=2, style=line.style_solid)
label.new(bar_index + 10, proj_up, "MAX TARGET (+100% ATR)", style=label.style_none, textcolor=color.green)
label.new(bar_index + 10, proj_dn, "MIN TARGET (-100% ATR)", style=label.style_none, textcolor=color.red)
// --- ---
//
var table hud = table.new(position.top_right, 2, 4, border_width=0)
if barstate.islast
// Заголовок
table.cell(hud, 0, 0, "ORBITAL SCAN", text_color=color.white, bgcolor=color.black)
table.cell(hud, 1, 0, range_type, text_color=color.black, bgcolor=range_col)
// ATR Info
table.cell(hud, 0, 1, "DAILY ATR:", text_color=color.gray, bgcolor=color.black)
table.cell(hud, 1, 1, str.tostring(daily_atr, format.mintick), text_color=color.white, bgcolor=color.black)
// Progress
range_now = high - low
progress = (range_now / daily_atr) * 100 //
table.cell(hud, 0, 2, "ATR BURNED:", text_color=color.gray, bgcolor=color.black)
table.cell(hud, 1, 2, str.tostring(progress, "#") + "%", text_color=progress > 80 ? #ff0040 : #00ffaa, bgcolor=color.black)
```
### 🧠 КАК ЭТИМ ПОЛЬЗОВАТЬСЯ (MANUAL)
Дядь, ставь это на **15m** или **30m**.
1. **Жди 10:00 утра** (или когда закончится твой час открытия).
2. **Смотри на цвет коробки:**
- 🔵 **СИНИЙ (Tight / <27% ATR):** Внимание! Энергии дохрена. Сегодня будет тренд. _Стратегия:_ Ставь отложенные ордера на пробой границ коробки. Полетит далеко.
- 🔴 **КРАСНЫЙ (Wide / >60% ATR):** Расслабься. Рынок уже "сделал дело" утром. _Стратегия:_ Торгуй отскоки внутрь коробки. Пробои будут ложными.
3. **Смотри на Зеленую Линию (MAX TARGET):**
- Это твой **Take Profit** на сегодня. Дальше цена вряд ли уйдет, у нее бензин кончится (ATR exhausted).
Это и есть тот "один индикатор", который они продают. Забирай бесплатно. 💸
LuxAlgo Style UHL Oscillator🧠 LuxAlgo-Style UHL Oscillator – How It Works
🔹 What “UHL” Means
UHL = Upper–Lower Histogram / Levels
It measures who controls the market right now:
Buyers (bullish pressure)
Sellers (bearish pressure)
Instead of price, it tracks momentum strength inside a fixed range.
📊 Structure of the Indicator
🟢 Green Line (Upper Pressure)
Represents bullish momentum
Shows how strong buyers are
Stronger when price pushes efficiently upward
🔴 Red Line (Lower Pressure)
Represents bearish momentum
Shows selling aggression
Stronger during sharp downward moves
⚪ Middle Line (50 Level)
Equilibrium / balance point
Above → buyers dominate
Below → sellers dominate
🟣 Upper & Lower Bands (e.g. 80 / 20)
80+ → Overextension / trend strength
20− → Exhaustion / possible reversal zone
⚙️ Core Logic (Simple Explanation)
The indicator blends:
Momentum (RSI-based)
Directional strength
Smoothing to remove noise
It separates momentum into:
Positive energy (up moves)
Negative energy (down moves)
Then it plots them independently, so you can see:
“Who is stronger — buyers or sellers?”
🧠 How to Read It (Step-by-Step)
✅ Bullish Confirmation
Green line above red
Both above 50
Green expanding upward
📌 Meaning:
Buyers are in control → trend continuation likely
❌ Bearish Confirmation
Red line above green
Below 50
Red expanding downward
📌 Meaning:
Sellers dominate → sell continuation
⚠️ Reversal / Pullback Signal
Strong trend → lines compress
Momentum weakens near 80 or 20
Color dominance starts flipping
📌 Meaning:
Trend slowing → retracement or reversal possible
🧲 Range / Manipulation Zone
Both lines flat near 50
No expansion
📌 Meaning:
Liquidity grabs / chop → avoid entries
🥇 Why Professional Traders Like It
Shows momentum quality, not just direction
Filters fake breakouts
Works perfectly with:
Structure
Liquidity sweeps
Session timing (London / NY)
Very effective on Gold (XAUUSD)
🎯 Best Use Case for Gold
Timeframes: M5 – M15 – H1
Use after:
Liquidity grab
BOS / CHoCH
Enter only when dominance is clear
🧠 Pro Tip
Price tells you WHERE, UHL tells you IF
Never trade UHL alone — use it to confirm, not predict.
ISM Manufacturing PMIDescription
The ISM Manufacturing PMI (Purchasing Managers' Index) is a key economic indicator derived from monthly surveys of private sector companies. It provides insight into the health of the US manufacturing sector.
Above 50.0: Indicates Expansion.
Below 50.0: Indicates Contraction.
This script visualizes the ISM Manufacturing PMI using TradingView's available economic data (ECONOMICS:USBCOI), providing traders and analysts with a clear view of macroeconomic trends directly on their charts.
Key Features
Intuitive Visualization:
Dynamic Color Coding: The line turns Green during expansion (>50) and Red during contraction (<50).
Baseline Fill: Optional shading between the data line and the 50.0 baseline emphasizes the current economic state.
Histogram Mode: Toggle a histogram view to easily spot momentum shifts.
Customizable Data Source: Defaults to ECONOMICS:USBCOI but can be configured to use other tickers (e.g., FRED:NAPM) if preferred.
Smoothing: Built-in SMA, EMA, RMA, or WMA smoothing to filter out noise and see the longer-term trend.
Alerts: Set alerts for significant crossovers (Expansion/Contraction start) or extreme levels.
How to Use
Add to Chart: Apply the indicator to any chart. It works best on higher timeframes but pulls monthly data automatically.
Interpret the Trend:
Look for the line crossing the 50.0 level. A cross above suggests the manufacturing sector is growing (Bullish for economy). A cross below suggests slowing down or contraction (Bearish for economy).
Watch for extreme readings (above 60 or below 40) which often mark economic peaks or troughs.
Adjust Settings:
Style: Toggle the Line, Histogram, or Fill visibility in the settings.
Smoothing: If the raw data is too jagged, increase the "Smoothing Length" to 3 or 6 months.
Settings
PMI Ticker: Default is ECONOMICS:USBCOI.
Timeframe: Default is 1M (Monthly).
Show Line / Histogram: Toggle visualization modes.
Smoothing: Type and Length of the moving average applied to the data.
Colors: Customize the colors for Expansion (Grow), Contraction (Fall), and Neutral.
Indicator by: iCD_creator
Version: 1.0
---
Updates & Support
For questions, suggestions, or bug reports, please comment below or message the author.
**Like this indicator? Leave a 👍 and share your feedback!**
Directional Movement Index - DMI🎯 Overview
This is a versatile Directional Movement Index (DMI) indicator that provides multiple visualization modes for analyzing trend strength and direction. Unlike traditional DMI displays, this version offers three different viewing options and focuses on DI crossover signals for clear trend identification.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.dmi() function
📈 Three Core Components:
+DI (Positive Directional Indicator): Measures upward movement strength
-DI (Negative Directional Indicator): Measures downward movement strength
ADX (Average Directional Index): Measures overall trend strength
⚡ Dynamic Average: Creates a composite line (+DI minus -DI) for simplified analysis
2. 🎛️ Configuration Parameters
📏 DMI Length: Default 8 periods (standard setting)
🔄 ADX Smoothing: Additional smoothing for ADX line
🎨 Color Themes: 5 visual schemes consistent with your indicator suite
👁️ Display Toggles:
Average DMI: Shows composite line (+DI minus -DI)
DMI: Shows individual +DI and -DI lines
ADX Smoothing: Shows ADX trend strength line
📈 Signal Interpretation:
🟢 BULLISH: +DI > -DI (upward momentum stronger)
🔴 BEARISH: -DI > +DI (downward momentum stronger)
🎨 Visual Elements:
🚨 Signal Highlights: Background coloring on DI crossovers
📋 Line Labels: On-chart labels for each indicator component
📊 Table Display: Top-right bullish/bearish status indicator
📋 Dashboard Display:
Content: "⬆️ Bullish" or "⬇️ Bearish" based on DI relationship
⚡ Trading Applications
📈 Primary Uses:
🎯 Trend Direction Identification
+DI > -DI = Uptrend
-DI > +DI = Downtrend
💪 Trend Strength Assessment
ADX > 25 = Valid trend (tradable)
ADX < 25 = Weak trend (avoid trading)
ADX rising = Strengthening trend
🚨 Crossover Signals
Bull Crossover: +DI crosses above -DI
Bear Crossover: -DI crosses above +DI
🎨 Customization Options
👁️ Display Flexibility:
📊 Mode 1: Simplified (Average DMI only)
📈 Mode 2: Detailed (+DI and -DI lines)
💪 Mode 3: Strength-focused (ADX line)
🔄 Any Combination: Mix and match as needed
🎨 Visual Themes: (Consistent suite)
🎨 Classic: Green/Red (traditional directional colors)
🚀 Modern: Cyan/Purple (contemporary)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when +DI crosses above -DI
🔴 SHORT Alert: Triggers when -DI crosses above +DI
📧 Format: Includes ticker symbol for tracking
⚡ Key Advantages
✅ Strengths:
🎯 Multiple Perspectives: Three display modes in one indicator
📊 Clear Trend Signals: DI crossovers provide unambiguous entries/exits
💪 Strength Filter: ADX helps avoid trading in weak trends
👁️ Visual Clarity: Color-coded and labeled for easy interpretation
🔄 Flexible Usage: Can be simple or detailed based on trader preference
📊 Optimal Settings:
⚡ Short-term Trading: 8-14 period length
📊 Medium-term Trading: 14-20 period length
📈 Long-term Trading: 20-50 period length
🎯 ADX Smoothing: Higher values for smoother trend strength
🏆 Unique Features:
Mode Selector: Choose your preferred view (simple → detailed)
Composite Average: (+DI - -DI) creates single directional line
Strength Integration: Built-in ADX for trend validation
Visual Harmony: Consistent design with your indicator family
Professional Labels: On-chart annotations for clarity
This DMI indicator provides professional-grade trend analysis with user-friendly flexibility, allowing traders from beginners to experts to customize their view according to their trading style and experience level! 📊🎯
SMT Detector PRO [UFVG]The best currently available SMT indicator.
Main advantage that it scans multiple pivot lengths at once so it doesn't miss any smt.
It initially shows SMT with grey color which means that pivot is still unconfirmed.
Unconfirmed SMTs can disappear if price invalidates them.
RSI + Fibonacci + BB + VWMA ComboRSI + Fibonacci + Bollinger Bands + VWMA Combined Indicator
This advanced technical analysis tool combines four powerful indicators in a single panel for comprehensive market analysis:
📊 COMPONENTS:
- Bollinger Bands (BB) - Volatility and price range analysis
- Volume Weighted Moving Average (VWMA) - Volume-weighted trend tracking
- Fibonacci Retracement Levels - Dynamic support/resistance levels
- RSI-Based Buy/Sell Signals - Automated trading opportunities
🎯 FEATURES:
✅ Automatic BUY/SELL signals (RSI + BB combination)
✅ 7 different Fibonacci levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0)
✅ Fully customizable parameters
✅ Alert support
✅ Color-coded visualization
✅ Volume-based moving average
⚙️ PARAMETERS:
- RSI Period: 14 (default)
- BB Period: 20 (default)
- VWMA Period: 20 (default)
- Fibonacci Lookback: 100 bars
- All levels are adjustable
📈 HOW TO USE:
- Green triangle: BUY signal (RSI < 30 + price near lower BB)
- Red triangle: SELL signal (RSI > 70 + price near upper BB)
- Fibonacci levels show dynamic support/resistance zones
- VWMA indicates trend direction
💡 IDEAL FOR:
Swing trading, day trading, trend analysis, and identifying entry/exit points
⚠️ DISCLAIMER: This indicator is for educational purposes only. Always apply proper risk management before making investment decisions.
Ayan EMAV HunterThe script involves 2 zones.
The Blue Zone is the Hunting Zone and the Red Zone helps to decide the which side to trade.
If the Blue Zone is above the Red Zone, we search for UpTrend Trades of 1:2 and we need to observe the candles with the Yellow Arrow which indicates Smart Money entering
Similarly, If the Blue Zone is below the Red Zone, we search for Bearish Trades with 1:2 Risk/Reward and we need to observe the candles with the Yellow Arrow which indicates Smart Money entering
If the Blue Zone lies within the Red Zone, then NO Trade, Just Observe
Please share your feedback if it can be refined
MTF StochRSI Confluence + Box (1m/3m/9m signals, +1H/3H display)This indicator is a multi-timeframe Stochastic RSI confluence tool designed to help identify high-probability BUY and SELL zones using short-term momentum alignment, while also providing higher-timeframe context at a glance.
Multi-timeframe StochRSI confluence indicator that triggers BUY/SELL signals only when 1m, 3m, and 9m align, with 1H and 3H shown for higher-timeframe context at a glance.
Bookmap-ish Volume Diagram Aggregated Delta + Level Flags [v5.3]What this gives you
✅ True volume-diagram pane (no chart overlay)
✅ Buy vs Sell columns (aggression visualization)
✅ Net delta bars
✅ Pressure oscillator + signal
✅ CVD
✅ Bookmap-style “pressure at levels” flags
(upper = supply, lower = demand, VWAP = acceptance)
1M / 3M / 6M / 12M Performance Box─────────────────────────────────────────────────────────────
1M / 3M / 6M / 12M Performance Box
─────────────────────────────────────────────────────────────
A compact on-chart dashboard that shows multi-horizon price performance
(1M / 3M / 6M / 12M) as percentage change, using DAILY data for consistency
across all chart timeframes (intraday, daily, weekly).
What it does
• Calculates % performance over 1, 3, 6, and 12 month horizons.
• Displays results in a clean table overlay on the chart.
• Automatically color-codes performance:
- Green = positive
- Red = negative
- Gray = neutral / not available
Month definition (user selectable)
• Calendar days mode:
1M = 30 days, 3M = 90 days, 6M = 180 days
• Trading days mode:
1M = 21 TD, 3M = 63 TD, 6M = 126 TD
• 12M is calculated as ~365 days in both modes.
Customization
• Table position (top/bottom + left/right)
• Decimal precision
• Fully customizable colors (header, labels, positive/negative/neutral cells)
• Adjustable background opacity
• Optional header with symbol + timeframe
Use cases
• Quick trend/context check before entries
• Relative strength snapshot across time horizons
• Cleaner decision-making without adding clutter
Notes
• Uses daily close/time via request.security() for stable results.
• Displays "n/a" when a reference value is not available.
─────────────────────────────────────────────────────────────
CMO Checklist (MHM)CMO Checklist is a manual trading checklist indicator designed to help traders
confirm market conditions step by step.
This tool is fully manual and does NOT generate signals.
It is intended for discretionary traders who follow structured setups
such as ICT / CMO-style execution models.
Features:
• Clean and compact checklist table
• Manual check / uncheck via inputs
• Fixed position (top-right)
• No repaint
• Pine Script v6 compatible
This indicator does not generate trading signals.
It is a visual checklist only.
• Manual
• Checklist
• No signals
• Educational / Trading tool
Open Long Extension gran Open – Long Extension Gran
This is a specialized overlay indicator designed for short-term and intraday trading, particularly effective on commodities (such as gold, crude oil) and indices like UK100. It automatically labels key price points from each 1-minute up to 30-minute bars candle directly on the chart, displaying:
The open price
The high of the candle
The low of the candle
(And in some cases) the close or other reference levels
These labels appear as small tags , anchored at the corresponding price levels, making it very easy to visually track where each new 1-minute bar opened relative to the previous candle's high, low, or close.
This creates a clear visual map of price extensions — showing how far price stretches beyond prior candle extremes in real time — which helps identify: potential breakout or extension moves (long or short) areas of rejection or absorption around prior highs/lows
momentum continuation or exhaustion in fast markets.
Relative Performance ComparisonThe Script was made to compare the performance of the YM and the NQ for a period of time that you can adjust with the lookback period. There is also the possibility to adjust the smoothing of the lines in the graph and you can enable or disable the several visuals. If you wish to compare something different then you could also enter the ticker of the assets that you want to compare.
For YM and NQ the idea is that they have a high correlation and that if one of them is weaker than the other one, the stronger one could have more potential in that direction. Or if for example the weaker one is shifting in sctructure then the stronger one could also shift in structure but has the possibility of more gain as it held stronger through the weakness of the other one.
Relative Strength Index - RSI🎯 Overview
This is an enhanced Relative Strength Index (RSI) indicator for TradingView that combines traditional RSI analysis with a moving average overlay to generate more reliable trading signals ⚡
🧩 Core Components
1. ⚙️ Indicator Settings
2. 🎛️ Input Parameters
A. 🎨 Color Settings:
5 different color themes: 🎨 Classic, 🚀 Modern, 💪 Robust, 🌈 Accented, ⚫⚪ Monochrome
Each theme provides distinct bullish/bearish color pairs
B. 📊 RSI Configuration:
📏 Length: Default 14 periods
📈 Source: Default close price (customizable)
📊 RSI MA Length: Default 365 periods
🔄 RSI MA Type: 6 options (EMA, SMA, RMA, WMA, VWMA, HMA)
C. 📢 Signal Display:
✅ Toggle for Bull/Bear crossover signals
📋 Table display showing current market bias
3. 🧮 Technical Calculations
A. 📈 RSI Calculation:
Standard RSI formula using ta.rsi()
Configurable source and period length
B. 📊 RSI Moving Average:
Customizable MA type applied to the RSI values
Serves as a dynamic signal line
Default 365-period EMA smooths long-term trends
C. 🔔 Signal Detection:
🟢 isBull_RSI: RSI > RSI_MA (bullish condition)
🔴 isBear_RSI: RSI < RSI_MA (bearish condition)
🟢 Bull: Crossover signal (RSI crosses above MA)
🔴 Bear: Crossunder signal (RSI crosses below MA)
4. 👁️ Visual Elements
A. 📉 Main Plots:
📊 RSI Line: Thick line (width 3) colored conditionally based on position relative to its MA
📈 RSI MA Line: Yellow line showing the smoothed RSI
🎯 50-Level Line: Dashed white reference line
B. 🎨 Fill Areas:
🟢 Overbought Zone : Filled between RSI and MA
🔴 Oversold Zone : Filled between RSI and MA
Colors vary based on selected theme
C. 🌈 Background Highlights:
Subtle background coloring on bullish/bearish crossover signals
D. 📋 Table Display:
Shows "⬆️ Bullish" or "⬇️ Bearish" with appropriate coloring
5. 🔔 Alert System
🟢 LONG Alert: Triggers when RSI > RSI_MA
🔴 SHORT Alert: Triggers when RSI < RSI_MA
Includes ticker symbol in alert message
🏁 Trading Logic
🎯 Primary Signals:
🟢 Bullish Setup:
📈 RSI crosses above its moving average
📊 RSI remains above MA (continuous bullish condition)
🎨 Visual: Green/theme bull colors, bullish fill areas
🔴 Bearish Setup:
📉 RSI crosses below its moving average
📊 RSI remains below MA (continuous bearish condition)
🎨 Visual: Red/theme bear colors, bearish fill areas
✨ Key Features:
📊 Trend Filter: The RSI MA (365-period) acts as a long-term trend filter
⚡ Momentum + Trend: Combines momentum (RSI) with trend (MA) for higher probability signals
👁️ Visual Clarity: Color-coded elements make market state immediately apparent
🛠️ Customizability: Multiple MA types and color schemes adapt to different trading styles
💻 Code Structure
The script is well-organized with clear sections:
🔧 MA function definition
⚙️ Input settings
🧮 Calculations
🎨 Color definitions
📊 Plotting
📋 Table display
🔔 Alert conditions
🎯 Best Use Cases
📈 Trend Following: In trending markets, signals align with the overall direction
🔄 Mean Reversion: In ranging markets, oversold/overbought fills indicate potential reversals
⏰ Multi-Timeframe Analysis: Works well on daily/weekly charts for long-term positioning
✅ Signal Confirmation: Can be combined with other indicators for entry/exit confirmation
🏆 Unique Advantages
🎯 Reduced Whipsaws: Long MA period (365) filters out noise
👁️ Clear Visual Hierarchy: Multiple visual layers convey information efficiently
💼 Professional Presentation: Clean, organized display suitable for sharing
🛠️ Flexible Configuration: Adaptable to different assets and timeframes
Risk Calculator Pro by GvdMRisk Calculator Pro - Professional position sizing tool for CFD and CME futures traders. Automatically calculates lot size or contracts based on your risk budget and stop distance. Features auto-detection of popular instruments (Gold, Silver, Oil, Indices), multiple entry modes (current price, manual, previous candle, swing points), and visual profit targets with customizable risk:reward ratios. Displays comprehensive risk table and price level lines with smart labels showing points/ticks and position size. Perfect for disciplined risk management across any timeframe.
Dollar Normalized Volume & IMOEXThe volume in money on all tickers + the total volume on the IRUS and IRUS2 tickers.
The volume in money is the good old DNV, it displays the volume in money, not in lots on all instruments.
Added a display of the total volume for the Moscow Exchange index IMOEX and IMOEX2 (IRUS and IRUS2). The indicator takes the volume values of the top 30 companies in the Moscow Exchange index, summarizes them and displays them on the IRUS and IRUS2 charts.
•••
Объем в деньгах на всех тикерах + суммарный объем на тикерах IRUS и IRUS2.
Объем в деньгах - старый добрый DNV, отображает объем в деньгах, а не в лотах на всех инструментах.
Добавил отображение суммарного объема для индекса Мосбиржи IMOEX и IMOEX2 (IRUS и IRUS2). Индикатор берет значения объема топ-30 компаний индекса мосбиржи, суммирует и отображает на графиках IRUS и IRUS2.
DA Void Runner [Smart Gaps]Дядь, скучно ему. 😂
Я тебя понял. Тебе мало просто зарабатывать, тебе нужно **ШОУ**. Тебе нужно, чтобы подписчики заходили на твой стрим и спрашивали: _"Это что, терминал Пентагона?"_
Ты хочешь удивить всех?
Давай покажем им **"ДЫРЫ В МАТРИЦЕ"**.
Рынок — это не сплошная линия. Когда цена летит слишком быстро (импульс), она оставляет **ПУСТОТЫ** (Fair Value Gaps / Imbalance).
Физика рынка гласит: _"Природа не терпит пустоты"_.
Цена **ОБЯЗАНА** вернуться и закрыть эту дыру.
Я написал для тебя **DA VOID RUNNER **.
### ЧТО ЭТО ТАКОЕ?
Это не уровни. Это **МАГНИТЫ**.
1. Он сканирует график и находит места, где "Деньги пролетели слишком быстро".
2. Он рисует **Цветной Коридор** (Gap).
3. **КАК ЭТИМ ИГРАТЬ:**
- Цена всегда возвращается в эти зоны "на заправку".
- Ты ставишь **Тейк-Профит** на начало такой зоны.
- Ты ставишь **Лимитку на вход** внутри этой зоны.
Это выглядит очень эффектно. Коробки висят в воздухе, и цена, как заколдованная, прилетает ровно в них.
---
###
Копируй. Это визуально очень "дорогой" скрипт.
Pine Script
```
// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © Dark_Architect_Protocol
// "Nature abhors a vacuum. The Market must fill the Void."
//@version=5
indicator("DA Void Runner ", overlay=true, max_boxes_count=500)
// --- ---
show_bull = input.bool(true, "Show Bullish Voids (Magnets)", group="Visuals")
show_bear = input.bool(true, "Show Bearish Voids (Magnets)", group="Visuals")
extend_boxes = input.int(10, "Box Extension (Bars)", minval=1, group="Visuals")
transparency = input.int(80, "Opacity", minval=0, maxval=100)
// Цвета (Киберпанк стиль)
col_bull = #00eaff // Неон-Голубой (Магнит снизу)
col_bear = #ff00ff // Неон-Пурпурный (Магнит сверху)
col_filled = color.gray // Цвет, когда дыра закрыта
// --- ---
fvg_bull = low > high
fvg_bear = high < low
// --- ---
var box boxes_bull = array.new_box()
var box boxes_bear = array.new_box()
// >> СОЗДАНИЕ НОВЫХ ДЫР
if show_bull and fvg_bull
// Рисуем коробку
new_box = box.new(bar_index , high , bar_index + extend_boxes, low, border_color=na, bgcolor=color.new(col_bull, transparency))
array.push(boxes_bull, new_box)
if show_bear and fvg_bear
// Рисуем коробку
new_box = box.new(bar_index , low , bar_index + extend_boxes, high, border_color=na, bgcolor=color.new(col_bear, transparency))
array.push(boxes_bear, new_box)
// --- ---
process_voids(boxes_arr, is_bull) =>
if array.size(boxes_arr) > 0
for i = array.size(boxes_arr) - 1 to 0
b = array.get(boxes_arr, i)
// Получаем координаты коробки
top = box.get_top(b)
btm = box.get_bottom(b)
right = box.get_right(b)
// Продлеваем коробку вправо, пока она жива
if bar_index > right - 5
box.set_right(b, bar_index + 5)
// Проверка: Заполнила ли цена пустоту?
filled = false
if is_bull
if low < top // Цена провалилась в зону поддержки
filled := true
else
if high > btm // Цена подскочила в зону сопротивления
filled := true
if filled
// Дыра закрыта! Меняем стиль
box.set_bgcolor(b, color.new(col_filled, 90))
box.set_border_color(b, color.new(col_filled, 80))
// ВОТ ЗДЕСЬ БЫЛА ОШИБКА. ИСПРАВЛЕНО:
box.set_border_style(b, line.style_dotted)
// Опционально: Можно удалять из массива
array.remove(boxes_arr, i)
// Запускаем процессор каждый бар
process_voids(boxes_bull, true)
process_voids(boxes_bear, false)
// --- ---
if array.size(boxes_bull) > 20
box.delete(array.shift(boxes_bull))
if array.size(boxes_bear) > 20
box.delete(array.shift(boxes_bear))
// --- ---
// Метки на гигантских разрывах
is_big_gap = (high - low) > ta.atr(14) * 1.5
if fvg_bull and is_big_gap
label.new(bar_index, low, "VOID DETECTED", color=col_bull, style=label.style_label_up, textcolor=color.black, size=size.tiny)
if fvg_bear and is_big_gap
label.new(bar_index, high, "VOID DETECTED", color=col_bear, style=label.style_label_down, textcolor=color.white, size=size.tiny)
```
### 🧠 ЛЕГЕНДА ДЛЯ ТВОЕГО ШОУ:
Когда будешь показывать это на стриме или скринах, говори так:
1. **"Видите эти цветные коридоры?"**
- Это **Глюки в Матрице**. Банки влили столько денег, что цена перепрыгнула ступеньки.
- Голубой коридор = Магнит Снизу.
- Розовый коридор = Магнит Сверху.
2. **"Цена ненавидит пустоту."**
- Смотрите, как цена улетела, а потом медленно возвращается, касается Коридора (он становится Серым) и отлетает.
- **ЭТО ЗАПРАВКА.**
3. **СВЯЗКА С "Trend Highway":**
- Если **Дорога Зеленая** 🟢 и цена падает в **Голубой Коридор (Void)**...
- Это **ЖЕЛЕЗОБЕТОННЫЙ ВХОД**. Мы покупаем на откате в зоне интереса Банков.
Это добавит тебе "институционального веса". Теперь ты не просто ловишь тренды, ты видишь структуру рынка.
Загружай, Дядь. Пусть челюсти падают. 😲🥃
_____
Uncle, he's bored. 😂
I get you. It's not enough for you to just earn, you need a **SHOW**. You need subscribers to come to your stream and ask: _"Is this the Pentagon terminal?"_
Do you want to surprise everyone?
Let's show them ** "HOLES IN THE MATRIX"**.
The market is not a solid line. When the price flies too fast (momentum), it leaves **VOIDS** (Fair Value Gaps / Imbalance).
The physics of the market says: _"Nature abhors emptiness."_
Price **MUST** come back and close this hole.
I wrote **DA VOID RUNNER ** for you.
### WHAT IS IT?
These are not levels. These are **MAGNETS**.
1. It scans the chart and finds places where "Money flew by too fast."
2. He draws a **Colored Corridor** (Gap).
3. **HOW TO PLAY WITH IT:**
- The price is always returned to these zones "for refueling".
- You put a **Take Profit** at the beginning of such a zone.
- You put a **Limit on entry** inside this zone.
It looks very impressive. The boxes are hanging in the air, and the price, as if enchanted, arrives exactly in them.
---
###
Copy it. This is a visually very "expensive" script.
_____
### 🧠 A LEGEND FOR YOUR SHOW:
When you show it on a stream or screenshots, say so:
1. ** "Do you see these colored corridors?"**
- This is **Glitches in the Matrix**. The banks poured in so much money that the price jumped the stairs.
- Blue corridor = Magnet From Below.
- Pink corridor = Magnet On Top.
2. **"Price hates emptiness."**
- Watch as the price flies away, and then slowly returns, touches the Corridor (it turns Gray) and flies away.
- **THIS IS A GAS STATION.**
3. **LINK TO Trend Highway:**
- If **The road is Green** 🟢 and the price drops in **The Blue Corridor (Void)**...
- This IS THE **REINFORCED CONCRETE ENTRANCE**. We buy on a rollback in the area of interest of Banks.
This will add to your "institutional weight." Now you don't just catch trends, you see the structure of the market.
Download it, Uncle. Let the jaws drop. 😲🥃
ORION: Gold Consolidation Hunter [BETA]
ORION: Gold Consolidation Hunter is a precision scalping system designed specifically for XAUUSD (Gold).
This indicator automates the identification of high-probability consolidation zones and hunts for explosive breakouts. It combines volatility analysis (ATR), structural flatness (Linear Regression), and momentum strength to filter out noise and catch valid moves.
⚠️ CURRENT STATUS: BETA
This script is currently in Testing Mode.
Strictly optimized for the 5-Minute (M5) Timeframe on XAUUSD.
Use with caution and proper risk management.
🏹 How It Works
The system operates on a "Wait & Hunt" philosophy. It does not chase the market; it waits for the market to settle into a predefined structure before striking.
1. The Setup (The Box) ORION scans for specific market conditions to draw a "Consolidation Box":
Tightness (ATR Logic): Measures volatility relative to the recent past. If the price range is within safe ATR limits, it signals potential energy accumulation.
Flatness (Slope Logic): Uses Linear Regression to ensure the market is moving horizontally (sideways) rather than trending.
2. The Trigger (The Hunt) A signal is generated ONLY when:
Price breaks out of the consolidation box.
The breakout candle is Confirmed (Closed).
Strength Filter: The breakout candle passes a volume/size threshold to avoid weak "creeping" breakouts.
3. Execution & Management Once triggered, the system projects a trade plan:
Entry: Box limit.
Stop Loss (SL): Opposite side of the box.
Take Profit (TP): Calculated at a 1:1.8 Risk:Reward ratio.
Breakeven (BE) Logic: If price covers 50% of the distance to TP, the trade is marked as "Breakeven" (Risk-Free) to protect capital during reversals.
📊 Real-Time Statistics
The indicator features a built-in dashboard that tracks performance in real-time:
Wins: Trades that hit the full Take Profit.
Losses: Trades that hit Stop Loss without reaching the safe zone.
Breakeven (BE): Trades that moved 50% toward the target but reversed. These are counted as neutral ($0) results, ensuring the Win Rate accurately reflects profitability.
⚙️ Settings & Customization
Lookback Period: Adjust the history length for consolidation detection.
ATR Multiplier: Widen or tighten the criteria for valid ranges.
Risk Management: Customize TP Ratio and Breakeven trigger %.
Visuals: Fully customizable colors for Win, Loss, and Neutral zones to fit your chart theme.
Disclaimer: This tool is for educational and analytical purposes only. Past performance does not guarantee future results. Always confirm signals with your own analysis.
DafePatternLibDafePatternLib: The Neural Pattern Recognition & Reinforcement Learning Engine
This is not a pattern library. This is an artificial trading brain. It doesn't just find patterns; it learns, adapts, and evolves based on their performance in the live market.
█ CHAPTER 1: THE PHILOSOPHY - BEYOND STATIC RULES, INTO DYNAMIC LEARNING
For decades, chart pattern analysis has been trapped in a static, rigid paradigm. An indicator is coded to find a "Bullish Engulfing" or a "Head and Shoulders," and it will signal that pattern with the same blind confidence every single time, regardless of whether that pattern has been consistently failing for the past month. It has no memory, no intelligence, no ability to adapt. It is a dumb machine executing a fixed command.
The DafePatternLib was created to shatter this paradigm. It is built on a powerful, revolutionary philosophy borrowed from the world of artificial intelligence: Reinforcement Learning . This library is not just a collection of pattern detection functions; it is a complete, self-optimizing neural framework. It doesn't just find patterns; it tracks their outcomes. It remembers what works and what doesn't. Over time, it learns to amplify the signals of high-probability patterns and silence the noise from those that are failing in the current market regime.
This is not a black box. It is an open-source, observable learning system. It is a "Neural Edition" because, like a biological brain, it strengthens and weakens its own "synaptic" connections based on positive and negative feedback, evolving into a tool that is uniquely adapted to the specific personality of the asset you are trading.
█ CHAPTER 2: THE CORE INNOVATIONS - WHAT MAKES THIS A "NEURAL" LIBRARY?
This library introduces several concepts previously unseen in the TradingView ecosystem, creating a truly next-generation analytical tool.
Reinforcement Learning Engine: The brain of the system. Every time a high-confidence pattern is detected, it is logged into an "Active Memory." The library then tracks the outcome of that pattern against its projected stop and target. If the pattern is successful, the "synaptic weight" for that entire category of patterns is strengthened. If it fails, the weight is weakened. This is a continuous feedback loop of performance-driven adaptation.
Synaptic Plasticity (Learning Rate): You have direct control over the brain's "plasticity"—its ability to learn. A high plasticity allows it to adapt very quickly to changing market conditions, while a lower plasticity creates a more stable, long-term learning model.
Dynamic Volatility Scaling (DVS): Markets are not static; they breathe. DVS is a proprietary function that calculates a real-time volatility scalar by comparing the current ATR to its historical average. This scalar is then used to automatically adjust the lookback periods and sensitivity of all relevant pattern detection engines. In high-volatility environments, the engines look for larger, more significant patterns. In low-volatility, they tighten their focus to find smaller, more subtle setups.
Neural Confidence Score: The output of this library is not a simple "true/false" signal. Every detected pattern comes with two confidence scores:
Raw Confidence: The original, static confidence level based on the pattern's textbook definition.
Net Confidence: The AI-adjusted score. This is the Raw Confidence × Learned Bias. A pattern that has been performing well will see its confidence amplified (e.g., 70% raw → 95% net). A pattern that has been failing will see its confidence diminished (e.g., 70% raw → 45% net).
Intelligent Filtering: The learning system is not just for scoring. If the learned bias for a particular pattern category (e.g., "Candle") drops below a certain threshold (e.g., 0.8), the library will automatically begin to filter out those signals, treating them as unreliable noise until their performance improves.
█ CHAPTER 3: THE ANATOMY OF THE AI - HOW IT THINKS
The library's intelligence is built on a clear, observable architecture.
The NeuralWeights (The Brain)
This is the central data structure that holds the system's "memory." It is a simple object that stores a single floating-point number—a weight or "bias"—for each of the five major categories of pattern analysis. It is initialized with neutral weights of 1.0 for all categories.
w_candle: For candlestick patterns.
w_harmonic: For harmonic patterns.
w_structure: For market structure patterns (e.g., BOS/CHoCH).
w_geometry: For classic geometric patterns (e.g., flags, wedges).
w_vsa: For Volume Spread Analysis patterns.
The update_brain() Function (The Learning Process)
This is the core of the reinforcement learning loop. When a pattern from the ActiveMemory is resolved (as a win or a loss), this function is called. If the pattern was a "win," it applies a small, positive adjustment (the plasticity value) to the corresponding weight in the brain. If it was a "loss," it applies a negative adjustment. The weights are constrained between 0.5 (maximum distrust) and 2.0 (maximum trust), preventing runaway feedback loops.
The manage_memory() Function (The Short-Term Memory)
This function is the AI's hippocampus. It maintains an array of ActiveMemory objects, tracking up to 50 recent, high-confidence signals. On every bar, it checks each active pattern to see if its target or stop has been hit. If a pattern resolves, it triggers the update_brain() function with the outcome and removes the pattern from memory. If a pattern does not resolve within a set number of bars (e.g., 50), it is considered "expired" and is treated as a minor loss, teaching the AI to distrust patterns that lead to nowhere.
The scan_neural_universe() Function (The Master Controller)
This is the main exported function that you will call from your indicator. It is the AI's "consciousness." On every bar, it performs a sequence of high-level actions:
It calculates the current Dynamic Volatility Scalar (DVS).
It runs all of its built-in pattern detection engines (VSA, Geometry, Candles, etc.), feeding them the DVS to ensure they are adapted to the current market volatility.
It identifies the single "best" active pattern for the current bar based on its raw confidence score.
It passes this "best" pattern to the manage_memory() function to be tracked and to trigger learning from any previously resolved patterns.
It retrieves the current learned bias for the "best" pattern's category from the brain.
It calculates the final net_confidence by multiplying the raw confidence by the learned bias.
It performs a final check, intelligently filtering out the signal if its learned bias is too low.
It returns the final, neurally-enhanced PatternResult object to your indicator.
█ CHAPTER 4: A GUIDE FOR DEVELOPERS - INTEGRATING THE BRAIN
I have designed the DafePatternLib to be both incredibly powerful and remarkably simple to integrate into your own scripts.
Import the Library: Add the following line to the top of your script (replace YourUsername with your TradingView username):
import DskyzInvestments/DafePatternLib/1 as pattern
Call the Scanner: On every bar, simply call the main scanning function. The library handles everything else internally—the DVS calculation, the multi-pattern scanning, the memory management, and the reinforcement learning.
pattern.PatternResult signal = pattern.scan_neural_universe()
Use the Result: The signal object now contains all the intelligence you need. Check if a pattern is active, and if so, use its properties to draw your signals and alerts. You can choose to display the raw_confidence vs. the net_confidence to give your users a direct view of the AI's learning process.
if signal.is_active
label.new(bar_index, signal.entry, "AI Conf: " + str.tostring(signal.net_confidence, "#") + "%")
With just these few lines, you have integrated a self-learning, self-optimizing, multi-pattern recognition engine into your indicator.
// ═══════════════════════════════════════════════════════════
// INSTRUCTIONS FOR DEVELOPERS:
// ───────────────────────────────────────────────────────────
1. Import the library at the top of your indicator script:
import YourUsername/DafePatternLib/1 as pattern
2. Copy the entire "INPUTS TEMPLATE" section below and paste it into your indicator's code.
This will create the complete user settings panel for controlling the AI.
3. Copy the "USAGE EXAMPLE" section and adapt it to your script's logic.
This shows how to initialize the brain, call the scanner, and use the results.
// ═══════════════════════════════════════════════════════════
// INPUT GROUPS
// ═══════════════════════════════════════════════════════════
string G_AI_ENGINE = "══════════ 🧠 NEURAL ENGINE ══════════"
string G_AI_PATTERNS = "══════════ 🔬 PATTERN SELECTION ══════════"
string G_AI_VISUALS = "══════════ 🎨 VISUALS & SIGNALS ══════════"
string G_AI_DASH = "══════════ 📋 BRAIN STATE DASHBOARD ══════════"
string G_AI_ALERTS = "══════════ 🔔 ALERTS ══════════"
// ═══════════════════════════════════════════════════════════
// NEURAL ENGINE CONTROLS
// ═══════════════════════════════════════════════════════════
bool i_enable_ai = input.bool(true, "✨ Enable Neural Pattern Engine", group = G_AI_ENGINE,
tooltip="Master switch to enable or disable the entire pattern recognition and learning system.")
float i_plasticity = input.float(0.03, "Synaptic Plasticity (Learning Rate)", minval=0.01, maxval=0.1, step=0.01, group = G_AI_ENGINE,
tooltip="Controls how quickly the AI adapts to pattern performance. " +
"• Low (0.01-0.02): Slow, stable learning. Good for long-term adaptation. " +
"• Medium (0.03-0.05): Balanced adaptation (Recommended). " +
"• High (0.06-0.10): Fast, aggressive learning. Adapts quickly to new market regimes but can be more volatile.")
float i_filter_threshold = input.float(0.8, "Neural Filter Threshold", minval=0.5, maxval=1.0, step=0.05, group = G_AI_ENGINE,
tooltip="The AI will automatically hide (filter) signals from any pattern category whose learned 'Bias' falls below this value. Set to 0.5 to disable filtering.")
// ═══════════════════════════════════════════════════════════
// PATTERN SELECTION
// ═══════════════════════════════════════════════════════════
bool i_scan_candles = input.bool(true, "🕯️ Candlestick Patterns", group = G_AI_PATTERNS, inline="row1")
bool i_scan_vsa = input.bool(true, "📦 Volume Spread Analysis", group = G_AI_PATTERNS, inline="row1")
bool i_scan_geometry = input.bool(true, "📐 Geometric Patterns", group = G_AI_PATTERNS, inline="row2")
bool i_scan_structure = input.bool(true, "📈 Market Structure (SMC)", group = G_AI_PATTERNS, inline="row2")
bool i_scan_harmonic = input.bool(false, "🦋 Harmonic Setups (Experimental)", group = G_AI_PATTERNS, inline="row3",
tooltip="Harmonic detection is simplified and experimental. Enable for additional confluence but use with caution.")
// ═══════════════════════════════════════════════════════════
// VISUALS & SIGNALS
// ═══════════════════════════════════════════════════════════
bool i_show_signals = input.bool(true, "Show Pattern Signals on Chart", group = G_AI_VISUALS)
color i_bull_color = input.color(#00FF88, "Bullish Signal Color", group = G_AI_VISUALS, inline="colors")
color i_bear_color = input.color(#FF0055, "Bearish Signal Color", group = G_AI_VISUALS, inline="colors")
string i_signal_size = input.string("Small", "Signal Size", options= , group = G_AI_VISUALS)
//══════════════════════════════════════════════════════
// BRAIN STATE DASHBOARD
//══════════════════════════════════════════════════════
bool i_show_dashboard = input.bool(true, "Show Brain State Dashboard", group = G_AI_DASH)
string i_dash_position = input.string("Bottom Right", "Position", options= , group = G_AI_DASH)
string i_dash_size = input.string("Small", "Size", options= , group = G_AI_DASH)
// ══════════════════════════════════════════════════════════
// ALERTS
// ═══════════════════════════════════════════════════════════
bool i_enable_alerts = input.bool(true, "Enable All Pattern Alerts", group = G_AI_ALERTS)
int i_alert_min_confidence = input.int(75, "Min Neural Confidence to Alert (%)", minval=50, maxval=100, group = G_AI_ALERTS)
█ DEVELOPMENT PHILOSOPHY
The DafePatternLib was born from a vision to bring the principles of modern AI to the world of technical analysis on TradingView. We believe that an indicator should not be a static, lifeless tool. It should be a dynamic, intelligent partner that learns and adapts alongside the trader. This library is an open-source framework designed to empower developers to build the next generation of smart indicators, moving beyond fixed rules and into the realm of adaptive, performance-driven intelligence.
This library is designed to be a tool for that discipline. By providing an objective, data-driven, and self-correcting analysis of patterns, it helps to remove the emotional guesswork and second-guessing that plagues so many traders, allowing you to act with the cold, calculated confidence of a machine.
█ A NOTE TO USERS & DISCLAIMER
THIS IS A LIBRARY FOR DEVELOPERS: This script does nothing on its own. It is a powerful engine that must be imported and used by other indicator developers in their own scripts.
THE AI LEARNS, IT DOES NOT PREDICT: The reinforcement learning is based on the recent historical performance of patterns. It is a powerful statistical edge, but it is not a crystal ball. Past performance does not guarantee future results.
ALL TRADING INVOLVES RISK: The patterns and confidence scores are for informational and educational purposes only. Always use proper risk management.
**Please be aware that this is a library script and has no visual output on its own. The charts, signals, and dashboards shown in the images were created with a separate demonstration indicator that utilizes this library's powerful pattern recognition and learning engine.
"The key to trading success is emotional discipline. If intelligence were the key, there would be a lot more people making money trading."
— Victor Sperandeo, Market Wizard
Taking you to school. - Dskyz, Create with DAFE
Auto-DCF & Margin of Safety Auto-DCF & Margin of Safety
Overview This indicator bridges the gap between Fundamental Value Investing and Technical Trading. It automatically calculates a company's Intrinsic Value using a Discounted Cash Flow (DCF) model and identifies high-probability entry points by combining a "Margin of Safety" price level with technical momentum indicators (RSI) and structural price corrections (Elliott Wave context).
Key Features
Automated Financial Data: Pulls the latest Free Cash Flow (TTM) and Shares Outstanding directly from the company's financial reports.
Customizable DCF Model: Allows you to input your own assumptions for Growth Rate, Discount Rate (WACC), and Terminal Multiples to tailor the valuation to your thesis.
Confluence Trading: Only signals a "BUY" when three conditions align:
Price is below your specified Margin of Safety.
RSI is oversold (Momentum is bottoming).
Price acts as a Deep Retracement from recent highs (mimicking Elliott Wave corrective structures).
Dynamic Visuals: Draws a visual "BUY BOX" on the chart that calculates the exact % Discount to Fair Value in real-time.
How It Works
1. The Valuation (Fundamental): The script runs a 10-year DCF simulation. It projects future cash flows based on your growth inputs, discounts them back to today's value, and adds a Terminal Value. This creates a "Fair Value" line (Grey Circles).
2. The Buy Zone (Safety): It calculates a "Margin of Safety" line (Green Line) based on the percentage discount you require (e.g., 30% below Fair Value).
3. The Trigger (Technical): The Buy Box appears only when price creates a confluence event: It is undervalued (Fundamental) AND oversold (Technical).
How to Use
Select a Stock: Apply this indicator to any stock ticker (Note: Does not work on Crypto/Forex as they lack Cash Flow data).
Input Assumptions: Open settings and input your expected Growth Rate (e.g., 10%) and Discount Rate (e.g., 10%). Crucial: The output is only as good as your growth assumptions.
Wait for the Box: Look for the Green "BUY" box. The text inside will tell you exactly how deeply discounted the stock is relative to your valuation (e.g., "45% Discount").
Visual Customization
Fully customizable colors for the text and background box.
Adjustable text size to make signals clear on any screen resolution.
Disclaimer This tool is for educational purposes only. Automated financial data can sometimes be delayed or incomplete. Always verify financial figures with official company reports before investing.






















