Session based SMT [domatoth] Session-Based SMT Divergence Indicator
This indicator identifies Smart Money Technique (SMT)
divergences between the current instrument and up to two
comparison symbols across different trading sessions or daily
timeframes.
Key Features:
- Tracks high/low divergences between correlated instruments
- Session-based analysis: London (03:00-12:00), Asia
(20:00-03:00), NY AM (09:30-12:00), NY PM (12:00-16:00) EST
- Automatically switches to daily high/low comparison on
daily/weekly/monthly timeframes
- Support for two comparison symbols simultaneously
- Visual SMT lines with symbol labels
- Option to remove broken/invalidated SMT levels
How It Works:
The indicator compares session (or daily) highs and lows
between your chart and the selected comparison instruments.
When one instrument breaks its high/low but the other
doesn't, it creates an SMT divergence - potentially signaling
a reversal or liquidity grab.
Color Coding:
- Red/Orange: Current breaks high, comparison doesn't
- Blue/Purple: Comparison breaks high, current doesn't
- Green/Lime: Current breaks low, comparison doesn't
- Aqua/Fuchsia: Comparison breaks low, current doesn't
Recommended Use:
- Compare correlated pairs (ES/NQ, EUR/GBP, etc.)
- Look for divergences at key levels
- Use lower timeframes for session-based analysis
- Switch to daily timeframe for daily SMT levels
Settings:
- Choose comparison symbols
- Enable/disable second symbol
- Toggle broken SMT removal
- Customize session times
Perfect for ICT concepts and Smart Money analysis.
Multitimeframe
KDJ – Long Only v3.0 (TradingView Strategy)
Overview|概覽
EN
A research strategy that automates long-only entries using a KDJ-centric core with multi-layer confirmations and volatility-aware exits. Default preset targets ETH 5m; other symbols/timeframes can be tuned.
中文
研究用策略,透過 KDJ 核心與多層確認來自動化只做多進場,並以隨波動調整的出場邏輯運作。預設為 ETH 5 分鐘;其他商品/週期可自行調參。
Backtest (hypothetical) example: ETHUSDT.P, 5m, 2024-09-18→2025-09-18, fee 0.05%, slippage 1 tick.(僅示意,屬假設性回測)
What it does|做什麼
EN
Signals are organized into channels:
A KDJ trend core
B OB/FVG touch pullback
CP Double-bottom (buffered neckline)
SR Support/Resistance bounce with rejection/zone checks
D EMA pullback (long EMA length)
E VWAP reclaim (lower-band pierce & recapture)
F Prior-low sweep & reclaim
中文
訊號分成多通道:
A KDJ 順勢核心
B OB/FVG 回踩觸價
CP 雙底(頸線含緩衝)
SR 支撐/阻力觸價不破(含拒絕與區域檢查)
D EMA 回踩(長週期 EMA)
E VWAP 收復(下緣穿越後收回)
F 前低掃回
High-level logic|高層級原理
HTF/Mid-TF context:內建 5/15/1H 或 15/60/4H 組合;以簡化趨勢線/區域提供觸價參考
Trend & structure:本階 EMA(8/21/200) 結構;Structure Breakout(近期高低點 ±ATR 緩衝)/EMA8/21 回踩
Momentum/volume:MACD、KDJ 金叉與低區偵測、量能驗證
Regime:ADX 閘(趨勢/盤整門檻)、EMA 帶寬過濾震盪、Peak Guard 避免過度延伸
No look-ahead:入場不使用前視;樞紐/趨勢線僅作情境參考
Inputs & Features|參數與功能
Market Preset:Generic / ETH(ETH 預設收緊若干門檻,開箱即用)
Entry Mode:KDJ_Core / CandleOnly / KDJ_and_Candle
Session Filter:最多三段交易時窗
Lite Filters:過度延伸、實體大小、DI 差距
S/R 模組:拒絕條件、KDJ 覆核、區域要求、即時 R:R 檢核
OrderBlock/FVG:近棒位移掃描
Chart Pattern:雙底 W,ATR 容差與頸線緩衝
Plotting:EMA200、通道字母標記、可選 TP/SL 標籤
Automation via Alerts(generic)|快訊自動化(通用)
EN
On entries/exits the strategy emits JSON through alert_message. Create alerts with “Any alert() function call” and route them to your own webhook/bridge. Symbol mapping, sizing mode, and user info are configurable in inputs.
中文
進出場時透過 alert_message 輸出 JSON。建立快訊時選 “Any alert() function call”,再由你的 webhook/橋接服務轉單;輸入面板可設定商品代碼、下單型式與使用者資訊。
提示:調整參數後,請重建快訊,並將訊息欄設為 {{strategy.order.alert_message}}。
Position sizing|部位大小
base / quote / percent_local / percent(percent_local 以本地 USD 估值計算)
可選「按數量模式」以便與本地部位同步(position_size sync)
Risk & Exits|風險與出場
SL:ATR / Swing / ATR_or_Swing;TP Cap 以 ATR 或 % 限制上限
Breakeven & Trailing:達指定 R:R 啟動保本;之後以 最高價回看 − ATR×k 追蹤
Same-bar exits:可允許/禁止同根觸發 TP/SL
Pyramiding:pyramiding=2,最多兩筆多單可同時存在(淨倉交易所請留意整體倉位的平倉行為)
Suggested workflow|建議流程
回測目標市場/週期 → 設定時段/濾網與門檻 → 微調 TP/SL 與部位大小 → 建立快訊({{strategy.order.alert_message}})→ 監看執行日誌
Notes & Disclaimer|注意與免責
回測結果仰賴時間框解析與成交規則;棒內路徑與實盤可能不同
僅供研究/教育;非投資建議
本頁無廣告、無外部連結或聯絡資訊
Release Notes|版本說明
2025-09-19
新增:One-shot Force Flat(一鍵清倉僅一次)— 於下一根收盤執行,完成後自動失效
Webhook:進/出場皆輸出 JSON;提醒更新參數後重建快訊
行為澄清:pyramiding=2,允許同圖表最多兩筆多單並存;同棒出場可設定
2025-09-18
Netted venue 說明:在淨倉模式下,出場會影響同商品的整體淨多倉;請留意手動單與策略單的互動
2025-08-28
修正小數顯示;預設優化(ETH/5m);保留隨波動的 RR/SL 邏輯
💎 WarrIA Pro v1.0 - Multidimensional Crypto Trading System💎 WarrIA Pro v1.0 - Multidimensional Crypto Trading System
The Unfair Advantage You've Been Looking For.
Version 1.0 | © 2025 Warri Finance - All Rights Reserved
Precision AI Trading ProPrecision AI Trading Pro — TradingView Indicator
EN / 中文雙語說明(No promo, high-level logic, originality stated)
What it does |用途
EN
Trend-aligned entries on 5m/15m (and higher) using multi-layer confirmations. It emphasizes confirmation over prediction, then derives adaptive TP/SL from volatility and recent structure.
中文
在 5/15 分鐘(與更高時框)進行趨勢對齊進場,重確認、不猜轉折;並依波動與近期結構自適應計算 TP/SL。
Why it’s original & useful |原創性與價值
EN
This script implements a custom 11-filter confluence engine and a volatility-aware exit model. Filters are designed to complement each other: HTF context narrows bias, LTF structure checks timing, momentum/volume validate strength, and regime gates avoid chop. Exits use ATR- and swing-based distances with caps to keep results realistic.
中文
本腳本自研 11 重共振濾網 與 隨波動調整的出場模型:HTF 提供方向偏好,LTF 結構掌握時點;動能/量能驗證有效性;型態/趨勢強度門檻過濾震盪;出場以 ATR 與擺動區間計算距離並設上限,使績效更貼近實際。
How it works (high-level) |高層級運作
EN
HTF alignment: EMA(3/8/21) + RSI/MACD on a higher timeframe (confirmed bars only) sets directional bias.
LTF structure: Requires local EMA(3/8/21) alignment, Structure Breakout (recent swing ± ATR buffer), and optional Pullback to EMA8/21.
Regime checks: ADX gate and EMA band width filter out low-trend conditions; Volume confirms pressure.
Risk layer: Peak Guard (overheat/new-high/surge) blocks extended entries.
Trendline/EMA200: Optionally require EMA200 or TL breakout with ATR tolerance.
Exits: SL = max(ATR×k, swing buffer, % floor); TP = min(R×SL, ATR/% caps).
No look-ahead: HTF uses confirmed bars; pivots only annotate context, not used as entry triggers.
中文
HTF 共振:高階時框 EMA(3/8/21)+RSI/MACD(僅採用確認棒)決定方向偏好。
LTF 結構:要求本階 EMA(3/8/21) 一致、結構突破(近期高低點 ± ATR 緩衝),並可選 回踩 EMA8/21。
市況門檻:ADX 閘 與 EMA 帶寬 排除低趨勢環境;量能 驗證推進力。
風險層:Peak Guard(過熱/創高/急漲)避免追價。
趨勢線/EMA200:可選擇要求 EMA200 或趨勢線突破(含 ATR 容忍帶)。
出場:SL = max(ATR×k, 擺動緩衝, % 下限);TP = min(R×SL, ATR/% 上限)。
避免前視:HTF 僅用確認棒;樞紐點僅作標註,不作入場條件。
Filters (11) |濾網(11 項)
HTF Trend / Bright Zone (RSI) / LTF EMA(3/8/21) / MACD / Volume / ADX Gate / Structure Breakout / Pullback to EMA / EMA Band Width / Peak Guard / Trendline or EMA200 Confirmation
(高階趨勢/RSI 亮區/本階 EMA 結構/MACD/量能/ADX 閘/結構突破/回踩 EMA/EMA 窄帶/高位防護/趨勢線或 EMA200 確認)
User can define required passes (default 7).|可自訂需通過的濾網數(預設 7)。
Features |功能
Multi-market presets (Crypto / Gold / US Futures / Forex)|多市場預設
Adaptive TP/SL with labels (dynamic R:R)|自適應 TP/SL(含標註)
Risk-based star rating (0★–5★)|風險星級評分
Signal modes: Conservative / Balanced / Aggressive|訊號模式:保守/平衡/積極
Peak Guard toggle|高位防護可切換
How to use |使用方式
Pick market preset; start with 5m/15m.
Set required filters (default 7) and enable HTF confirmed bars.
Tune TP/SL and risk per symbol/timeframe; use star rating as visual guidance.
In choppy markets, raise ADX min and EMA-band threshold; in trend, relax them slightly.
選擇市場預設(建議 5/15 分鐘起)。
設定需通過的濾網數(預設 7),並啟用 HTF 確認棒。
依商品/時框微調 TP/SL 與風險;以星級作視覺參考。
震盪市提高 ADX 與帶寬門檻;趨勢市可適度放寬。
Notes |注意
Backtest behavior depends on bar resolution and fill rules; intrabar path may differ from live fills.
Educational use only; not financial advice.
No ads/links/contacts.
Changelog |版本紀錄(示例,請用「Update」維護)
2025-09-05: Reversal v2.1 scoring & 2-step confirmation; TL rejection/OB-touch trigger (optional); EMA8 recapture via close; Peak Guard integrated; BTC/ETH/SOL presets refined; alerts expanded; label params cleaned.
2025-08-28: Fixed decimal bug; tuned presets for four markets; kept auto RR/SL logic.
Global Session Zones (Asia / Europe / US) — KSTThis indicator highlights global market sessions (Asia, Europe, US) based on KST (Korea Standard Time).
Each session is displayed with a different background color for better visibility of price flows.
Asia Session: 09:00 – 16:00 KST
Europe Session: 16:00 – 23:00 KST
US Session: 23:00 – 09:00 KST
색상은 사용자 설정 가능하며, 각 시장 세션별 가격 흐름과 패턴을 가시적으로 분석할 수 있도록 도와줍니다.
Interval Price AlertsInterval Price Alerts
A versatile indicator that creates horizontal price levels with customizable alerts. Perfect for tracking multiple price levels simultaneously without having to create individual horizontal lines manually.
Features:
• Create evenly spaced price levels between a start and end price
• Customizable price interval spacing
• Optional price labels with flexible positioning
• Alert capabilities for both price crossovers and crossunders
• Highly customizable visual settings
Settings Groups:
1. Price Settings
• Start Price: The lower boundary for price levels
• End Price: The upper boundary for price levels
• Price Interval: The spacing between price levels
2. Line Style
• Line Color: Choose any color for the price level lines
• Line Style: Choose between Solid, Dashed, or Dotted lines
• Line Width: Adjustable from 2-4 pixels (optimized for opacity)
• Line Opacity: Control the transparency of lines (0-100%)
3. Label Style
• Show Price Labels: Toggle price labels on/off
• Label Color: Customize label text color
• Label Size: Choose from Tiny, Small, Normal, or Large
• Label Position: Place labels on Left or Right side
• Label Background: Set the background color
• Background Opacity: Control label background transparency
• Text Opacity: Adjust label text transparency
4. Alert Settings
• Alert on Crossover: Enable/disable upward price cross alerts
• Alert on Crossunder: Enable/disable downward price cross alerts
Usage Tips:
• Great for marking key price levels, support/resistance zones
• Useful for tracking multiple entry/exit points
• Perfect for scalping when you need to monitor multiple price levels
• Ideal for pre-market planning and level setting
Notes:
• Line width starts at 2 for optimal opacity rendering
• Labels can be fully customized or hidden completely
• Alert messages include the symbol and price level crossed
ICT NY Opens (Midnight, 7:30 & 8:30) True📌 ICT NY Opens Fixed (Midnight, 7:30 & 8:30) TRUE
This indicator is designed for traders following ICT (Inner Circle Trader) concepts and provides precise reference levels for the most relevant New York session opens. It automatically captures and plots the opening price for Midnight (00:00 NY), 7:30 AM, and 8:30 AM (configurable), letting you use them as liquidity anchors, manipulation zones, or institutional reference points.
🔑 Key Features
Fixed New York Opens (configurable)
Midnight (00:00 NY), 7:30 AM (NY), 8:30 AM (NY) — each open is captured from the first bar of the configured session.
Sessions are editable: the indicator exposes input.session fields for each open, so you can change the exact hour/minute (e.g., set 00:00 → 23:30 or 08:30 → 08:00). The lines and levels will follow the chosen session times.
Extension & Custom Hours (explicit)
Preset extensions: 1 Day or 2 Days (the horizontal line spans that period).
Directional extension: Right (extend to the right) or Both (left & right).
Custom Hours option: enable a custom-hours toggle and enter a specific number of hours (1–23). When enabled, horizontal lines extend for the exact number of hours you enter instead of the preset day lengths.
Labels are positioned relative to the extension setting (anchored at the open or after the extension depending on the selected mode).
Customizable visuals
Show/hide each open individually.
Independent color and line-style (solid / dotted / dashed) for each open.
Separate text color for labels.
Automatic Labels & Vertical Line
Each drawn level includes an automatic label with the open name and the exact opening price.
A dedicated vertical line option exists for the Midnight open (visual daily separator).
⚙️ How it behaves (precision & workflow)
The script detects the first bar inside the session you configure and records that bar's open as the session Open price.
If you change the session string/time in settings, the indicator will use the new time going forward and draw the corresponding level at that session's opening bar.
Extensions respect either the preset days or the custom hours you specify, so you can make lines last a precise number of hours (useful for intraday setups).
🧭 Use Cases
Pinpoint liquidity clusters and anticipate stop hunts near session opens.
Use as range anchors to measure intraday deviations.
Monitor reactions around economic releases and futures opens (7:30 / 8:30).
Integrate into ICT-based scalping or swing setups where precise session timing matters.
ICT First FVG - 9:30am & Custom (v4)ICT First FVG - 9:30am & Custom Time Ranges (v4)
📖 DESCRIPTION
This comprehensive Pine Script indicator identifies and displays Fair Value Gaps (FVGs), Volume Imbalances (VIs), and Liquidity Voids (LVs) based on Inner Circle Trading (ICT) concepts. The indicator offers dual functionality: traditional 9:30am New York session FVG detection and customizable time range analysis for maximum flexibility.
🚀 KEY FEATURES
Dual Detection System
9:30am NY Open FVG: Classic ICT first presentation detection after market open
Custom Time Range FVG: User-configurable time periods for specialized analysis
Independent Operations: Both systems work simultaneously without interference
Separate Controls: Each system has its own settings and previous days configuration
Advanced Gap Detection
Fair Value Gaps (FVG): Three-candle patterns showing price inefficiencies
Volume Imbalances (VI): Single candle volume-related gaps
Liquidity Voids (LV): Areas where price moved too fast, creating liquidity gaps
Consequent Encroachment (CE): Midpoint lines of detected inefficiencies
Precision Sizing System
Multi-Asset Support: Automatic point/pip calculation for Forex, Futures, and Indices
Forex Handling: Specialized pip calculation for major pairs and JPY crosses
Size Filtering: Minimum gap size filter to eliminate noise
Real-Time Display: Shows exact gap sizes in labels (e.g., "15.3 pips" or "12.7 pts")
Professional Visualization
Dual Display Modes: Choose between solid blocks or line representations
Color Coding: Different colors for current vs. previous day imbalances
Smart Labels: Configurable date, time, type, and size information
Extension Options: Extend gaps to session end or current bar
M1 Data Integration
High Accuracy: Uses 1-minute data regardless of chart timeframe
Better Detection: More precise gap identification on higher timeframes
Flexible Usage: Works on any timeframe ≤15 minutes
⚙️ CONFIGURATION GUIDE
General Settings
Visualization Type: Choose "Blocks" for filled areas or "Lines" for boundaries
Previous Days: Number of historical days to display (0 = today only)
Extend Imbalances: Project gaps to session end or current bar
Use M1 Data: Recommended ON for better accuracy
FVG Size Filter
Minimum FVG Size: Filter out gaps smaller than specified points
Enable Filter: Toggle size filtering on/off
🎯 RECOMMENDED MINIMUM SIZES:
USD/JPY: 0.01 points (1 pip)
Gold (XAUUSD): 1.6 points
NQ (Nasdaq-100): 0.2 points
Nasdaq CFD: 2.0 points
Other instruments: Experiment and discover optimal values
Custom FVG System
Enable Custom FVG: Activate secondary time range detection
Custom Time Range: Use session format (e.g., "1430-1600" for 2:30-4:00 PM)
Custom Previous Days: Independent historical period for custom ranges
Custom Label Color: Distinct color for custom time range gaps
Delete Default FVG 9:30: Use when running multiple instances with different timeframes
Imbalance Types
Fair Value Gaps: Main three-candle inefficiency patterns
Include Open/Close Gap: Additional gap calculation method
Volume Imbalances: Single-candle volume-based gaps
Liquidity Voids: Fast price movement gaps
C.E. (Consequent Encroachment): Midpoint reference lines
Label Customization
Show Labels: Toggle date/time information display
Include Time: Add timestamp to labels
Include Type: Display gap type (FVG, VI, LV)
Include Size: Show calculated gap size in points/pips
Position: Configure label placement (left/center/right, top/center/bottom)
Size & Color: Customize label appearance
Visual Styling
Colors: Separate colors for FVG, VI, LV types
Previous Day Colors: Distinct styling for historical gaps
Border Styles: Solid, dashed, or dotted borders
Line Widths: Configurable border thickness
📊 TECHNICAL SPECIFICATIONS
Supported Markets
Forex: All major and minor pairs with proper pip calculation
Futures: ES, NQ, YM, RTY, GC, SI, CL, etc.
Indices: SPX, NDX, DJI, and CFD versions
Stocks: Individual equities (adjust size filter accordingly)
Time Frame Compatibility
Recommended: 1m, 3m, 5m, 15m charts
Maximum: 15-minute timeframe
Optimal: 1m or 5m for best precision
Session Handling
Timezone: America/New_York (Eastern Time)
Default 9:30am: Standard NY market open detection
Custom Sessions: Any time range using HHMM-HHMM format
Weekend Filtering: Automatic exclusion of non-trading days
🔧 USAGE INSTRUCTIONS
Basic Setup
Add indicator to chart (≤15m timeframe recommended)
Enable "Use M1 Data" for accuracy
Set "Minimum FVG Size" based on instrument (see recommendations above)
Configure "Previous Days Imbalances" (5 is good default)
Custom Time Range Setup
Enable "Enable Custom FVG"
Set "Custom Time Range" (e.g., "1430-1600" for 2:30-4:00 PM ET)
Adjust "Custom Previous Days" as needed
Choose distinct "Custom Label Color" for easy identification
Multiple Instance Usage
Add indicator multiple times for different time ranges
Enable "Delete Default FVG 9:30" on additional instances
Use different custom time ranges for each instance
Assign unique colors to distinguish between instances
Label Optimization
Enable size display to see gap magnitude
Position labels to avoid chart clutter
Use appropriate label size for your screen resolution
Consider disabling time display on crowded charts
🎯 PRACTICAL APPLICATIONS
ICT Trading Concepts
First Presentation: Initial FVG after 9:30am NY open
Return to Gap: Price revisiting inefficiency areas
Mitigation Levels: Using FVG boundaries as support/resistance
Liquidity Hunting: Understanding where price seeks efficiency
Multi-Session Analysis
London Close: Set custom range for 1600-1601 London close gaps
Asian Session: Configure overnight inefficiencies
Power Hour: Analyze 1500-1600 ET gaps
Lunch Hour: Study 1200-1300 ET price behavior
Risk Management
Size-Based Filtering: Focus on significant gaps only
Historical Context: Compare current gaps to previous days
Confluence Trading: Combine with other ICT concepts
Session-Specific: Target gaps from specific market sessions
⚠️ IMPORTANT NOTES
Performance Considerations
Maximum Objects: Indicator creates multiple visual elements
Historical Limit: Adjust "Previous Days" to balance history vs. performance
Chart Refresh: Allow time for initial loading on historical data
Data Quality
Broker Dependency: Gap detection accuracy depends on data feed quality
Weekend Gaps: Sunday gaps may appear due to data provider differences
Fast Markets: Extremely volatile periods may create false gaps
Best Practices
Timeframe Consistency: Use same timeframe for analysis and execution
Size Calibration: Adjust minimum sizes based on instrument volatility
Session Awareness: Understand which sessions produce most relevant gaps
Confirmation: Use additional ICT concepts to confirm gap validity
LÜMI_INDICATOR_v1.279_Smart_Money_All_in_One_Tools!!!Русский перевод внизу!!!!
Before using it, go to the settings and uncheck all the boxes!!!
And only then after that deal with this indicator, what you need from there, then add.
In the future, I will release a COMPLETE guide to this indicator with screenshots, so throw it to your favorites, don't waste it.
This version is still raw, but WORKING. There will be improvements in the structure of the indicator so that you can intuitively understand what each of the 100+(!) indicator settings is responsible for.
What's inside:
1. Session indicator. 15 Fully customizable time boxes, for any needs, and sessions. Enter your time zone, the time of your session, and that's it. There are also a couple of unexpected bonuses in this part of the indicator))
2. A set of horizontal lines of lines that come out at the right time for you. It is convenient to designate NYM, NYSE OPEN RANge, and other events on the chart that occur strictly on time. It can be widely used if you know what to look for.
3. Like the 2nd item, only vertical.
4. Fractal indicator.
5. OHL levels for
5.1. Current day
5.2. Current week
5.3. Current month.
6. Vertical chart dividers by opening levels
6.1 Days
6.2. Weeks
6.3. Months.
This feature is ideal for those who trade forex price delivery profiles or indices.
!!! Перед использованием зайдите в настройки и поснимайте все галочки!!!
И только потом после этого разбирайтесь с этим индюком, что вам оттуда нужно, то и добавляйте.
В дальнейшем выпущу ПОЛНЕЙШИЙ гайд на этот индюк со скриншотами, так что кидайте в избранное, не теряйте
Версия пока сырая, но РАБОЧАЯ. Будут доработки в структуре индикатора, чтобы можно было интуитивно понять, за что отвечает каждая из 100+(!) настроек индикатора
Что внутри:
1. Индикатор сессий. 15полностью настраиваемых боксов по времени, под любые нужды, и сессии. Вводите свой часовой пояс, время вашей сессии и всё. В этой части индикатора также есть пара неожиданных бонусов))
2. Набор горизонтальных линий линий, выходят в нужное для вас время. Удобно обозначать NYM, NYSE OPEN RANge, и другие события на графике, которые происходят строго по времени. Применение можно найти широкое, если знать, что искать
3. Как 2 пункт, только вертикальные.
4. Индикатор фракталов.
5. Уровни OHL для
5.1. Текущего дня
5.2. Текущей недели
5.3. Текущего месяца.
6. Вертикальные разделители графика по уровням открытия
6.1 Дня
6.2. Недели
6.3. Месяца.
Эта функция идеальна для тех, кто торгует профили доставки цены форекс или индексов.
MTFA MACD Boss (DBE/SBE on H4) — Crossover + Table + AlertsThis Indicator Showing SBE/DBE Signal when and only if M+W+D+4h Aligning together for the Same Environment.
Grand Master's Candlestick Dominance (ATR Enhanced)### Grand Master's Candlestick Dominance (ATR Enhanced)
**Overview**
Unleash the ancient wisdom of Japanese candlestick charting with a modern twist! This comprehensive Pine Script v5 strategy and indicator scans for over 75 classic and advanced candlestick patterns (bullish, bearish, and neutral), assigning dynamic strength scores (1-10) to each for precise signal filtering. Enhanced with Average True Range (ATR) for volatility-aware body size validation, it dominates the markets by combining timeless pattern recognition with robust confirmation layers. Whether used as a backtestable strategy or visual indicator, it empowers traders to spot high-probability reversals, continuations, and indecision setups with surgical accuracy.
Inspired by Steve Nison's *Japanese Candlestick Charting Techniques*, this tool elevates pattern analysis beyond basics—think Hammers, Engulfing patterns, Morning Stars, and rare gems like Abandoned Baby or Concealing Baby Swallow—all consolidated into intelligent arrays for real-time averaging and prioritization.
**Key Features**
- **Extensive Pattern Library**:
- **Bullish (25+ patterns)**: Hammer (8.0), Bullish Engulfing (10.0), Morning Star (7.0), Three White Soldiers (9.0), Dragonfly Doji (8.0), and more (e.g., Rising Three, Unique Three River Bottom).
- **Bearish (25+ patterns)**: Hanging Man (8.0), Bearish Engulfing (10.0), Evening Star (7.0), Three Black Crows (9.0), Gravestone Doji (8.0), and exotics like Upside Gap Two Crows or Stalled Pattern.
- **Neutral/Indecision (34+ patterns)**: Doji variants (Long-Legged, Four Price), Spinning Tops, Harami Crosses, and multi-bar setups like Upside Tasuki Gap or Advancing Block.
Each pattern includes duration tracking (1-5 bars) and ATR-adjusted body/shadow criteria for relevance in volatile conditions.
- **Smart Confirmation Filters** (All Toggleable):
- **Trend Alignment**: 20-period SMA (customizable) ensures entries align with the prevailing trend; optional higher timeframe (e.g., Daily) MA crossover for multi-timeframe confluence.
- **Support/Resistance (S/R)**: Pivot-based levels with 0.01% tolerance to confirm bounces or breaks.
- **Volume Surge**: 20-period volume MA with 1.5x spike multiplier to validate momentum.
- **ATR Body Sizing**: Filters small bodies (<0.3x ATR) and long bodies (>0.8x ATR) for context-aware pattern reliability.
- **Follow-Through**: Ensures post-pattern confirmation via bullish/bearish closes or closes beyond prior bars.
Minimum average strength (default 7.0) and individual pattern thresholds (5.0) prevent weak signals.
- **Entry & Exit Logic**:
- **Long Entry**: Bullish average strength ≥7.0 (outweighing bearish), uptrend, volume spike, near support, follow-through, and HTF alignment.
- **Short Entry**: Mirror for bearish dominance in downtrends near resistance.
- **Exits**: Bearish/neutral shift, or fixed TP (5%) / SL (2%)—pyramiding disabled, 10% equity sizing.
- Backtest range: Jan 1, 2020 – Dec 31, 2025 (editable). Initial capital: $10,000.
- **Interactive Dashboard** (Top-Right Panel):
Real-time insights including:
- Market phase (e.g., "Bullish Phase (Avg Str: 8.2)"), active pattern (e.g., "BULLISH: Bullish Engulfing (Str: 10.0, Bars: 2)"), and trend status.
- Strength breakdowns (Bull/Bear/Neutral counts & averages).
- Filter status (e.g., "Volume: ✔ Spike", "ATR: Enabled (L:0.8, S:0.3)").
- Backtest stats: Total trades, win rate, streak, and last entry/exit details (price & timestamp).
Toggle mode: Strategy (live trades) or Indicator (signals only).
- **Advanced Alerts** (15+ Toggleable Types):
Set up via TradingView's "Any alert() function call" for bar-close triggers:
- Entry/Exit signals with strength & pattern details.
- Strong patterns (≥2 bullish/bearish), neutral indecision, volume spikes.
- S/R breakouts, HTF reversals, high-confidence singles (≥8.0 strength).
- Conflicting signals, MA crossovers, ATR volatility bursts, multi-bar completions.
Example: "STRONG BULLISH PATTERN detected! Strength: 9.5 | Top Pattern: Three White Soldiers | Trend: Up".
**Customization & Usage Tips**
- **Inputs Groups**: Strategy toggles, confirmations, exits, backtest dates, and 15+ alert switches—all intuitively grouped.
- **Optimization**: Tune min strengths for aggressive (lower) or conservative (higher) trading; enable/disable filters to suit your style (e.g., disable S/R for scalping).
- **Best For**: Forex, stocks, crypto on 1H–Daily charts. Test on historical data to refine TP/SL.
- **Limitations**: No external data installs; relies on built-in TA functions. Patterns are probabilistic—combine with your risk management.
Master the candles like a grandmaster. Deploy on TradingView, backtest relentlessly, and let dominance begin! Questions? Drop a comment.
*Version: 1.0 | Updated: September 2025 | Credits: Built on Pine Script v5 with nods to Nison's timeless techniques.*
EMA 50 & 200 (TF-specific)This script plots EMA 50 and EMA 200 only on the timeframes where they matter most:
EMA 50 (gray): visible on 1H, 4H, and 12H charts – often used by intraday traders.
EMA 200 (black): visible on Daily and Weekly charts – a classic long-term trend indicator.
🔹 Why use it?
Avoids clutter by showing each EMA only on the relevant timeframe.
Helps align intraday trading with higher timeframe trends.
Simple, clean, and effective for both swing and day trading.
MTF Stochastic Range FinderThis indicator compares Stochastic RSI from 2 timeframes to signal possible reversals. Default 5 minute and 2 minute. Both Stochastic RSIs are customizable.
Allows for 6 support/resistance lines and allows a tolerance to filter proximity to levels for entry.
Can filter price level by manual support/resistance levels and/or VWAP
cd_indiCATor_CxGeneral:
This indicator is the redesigned, simplified, and feature-enhanced version of the previously shared indicators:
cd_cisd_market_Cx, cd_HTF_Bias_Cx, cd_sweep&cisd_Cx, cd_SMT_Sweep_CISD_Cx, and cd_RSI_divergence_Cx.
Within the holistic setup, the indicator tracks:
• HTF bias
• Market structure (trend) in the current timeframe
• Divergence between selected pairs (SMT)
• Divergence between price and RSI values
• Whether the price is in an important area (FVG, iFVG, and Volume Imbalance)
• Whether the price is at a key level
• Whether the price is within a user-defined special timeframe
The main condition and trigger of the setup is an HTF sweep with CISD confirmation on the aligned timeframe.
When the main condition occurs, the indicator provides the user with a real-time market status summary, enriched with other data.
________________________________________
What’s new?
-In the SMT module:
• Triad SMT analysis (e.g.: NQ1!, ES1!, and YM1!)
• Dyad SMT analysis (e.g.: EURUSD, GBPUSD)
• Alternative pair definition and divergence analysis for non-correlated assets
o For crypto assets (xxxUSDT <--> xxxUSDT.P) (e.g.: SOLUSDT.P, SOLUSDT)
o For stocks, divergence analysis by comparing the asset with its value in another currency
(BIST:xxx <--> BIST:xxx / EURTRY), (BAT:xxx <--> BAT:xxx / EURUSD)
-Special timeframe definition
-Configurable multi-option alarm center
-Alternative summary presentation (check list / status table / stickers)
________________________________________
Details and usage:
The user needs to configure four main sections:
• Pair and correlated pairs
• Timeframes (Auto / Manual)
• Alarm center
• Visual arrangement and selections
Pair Selections:
The user should adjust trading pairs according to their trade preferences.
Examples:
• Triad: NQ1!-ES1!-YM1!, BTC-ETH-Total3
• Dyad: NAS100-US500, XAUUSD-XAGUSD, XRPUSDT-XLMUSDT
Single pairs:
-Crypto Assets:
If crypto assets are not in the triad or dyad list, they are automatically matched as:
Perpetual <--> Spot (e.g.: DOGEUSDT.P <--> DOGEUSDT)
If the asset is already defined in a dyad list (e.g., DOGE – SHIB), the dyad definition takes priority.
________________________________________
-Stocks:
If stocks are defined in the dyad list (e.g.: BIST:THYAO <--> BIST:PGSUS), the dyad definition takes priority.
If not defined, the stock is compared with its value in the selected currency.
For example, in the Turkish Stock Exchange:
BIST:FENER stock, if EUR is chosen from the menu, is compared as BIST:FENER / OANDA:EURTRY.
Here, “OANDA” and the stock market currency (TRY) are automatically applied for the exchange rate.
For NYSE:XOM, its pair will be NYSE:XOM / EURUSD.
________________________________________
Timeframes:
By default, the menu is set to “Auto.” In this mode, aligned timeframes are automatically selected.
Aligned timeframes (LTF-HTF):
1m-15m, 3m-30m, 5m-1h, 15m-4h, 1h-D, 4h-W, D-M
Example: if monitoring the chart on 5m:
• 1h sweep + 5m CISD confirmation
• D sweep + 1h CISD confirmation (bias)
• 5m market structure
• 1h SMT and 1h RSI divergence analysis
For manual selections, the user must define the timeframes for Sweep and HTF bias.
FVG, iFVG, and Volume Imbalance timeframes must be manually set in both modes.
________________________________________
Alarm Center:
The user can choose according to preferred criteria.
Each row has options.
“Yes” → included in alarm condition.
“No” → not included in alarm condition.
If special timeframe criteria are added to the alarm, the hour range must also be entered in the same row, and the “Special Zone” tab (default: -4) should be checked.
Key level timeframes and plot options must be set manually.
Example alarm setup:
Alongside the main Sweep + CISD condition, if we also want HTF bias + Trend alignment + key level (W, D) and special timeframe (09:00–11:00), we should set up the menu as follows:
________________________________________
Visual Arrangement and Selections:
Users can control visibility with checkboxes according to their preferences.
In the Table & Sticker tab, table options and labels can be controlled.
• Summary Table has two options: Check list and Status Table
• From the HTF bias section, real-time bias and HTF sweep zone (optional) are displayed
• The RSI divergence section only shows divergence analysis results
• The SMT 2 sub-section only functions when triad is selected
Labels are shown on the bar where the sweep + CISD condition occurs, displaying the current situation.
With the Check box option, all criteria’s real-time status is shown (True/False).
Status Table provides a real-time summary table.
Although the menu may look crowded, most settings only need to be adjusted once during initial use.
________________________________________
What’s next?
• Suggestions from users
• Standard deviation projection
• Mitigation/order blocks (cd special mtg)
• PSP /TPD
________________________________________
Final note:
Every additional criterion in the alarm settings will affect alarm frequency.
Multiple conditions occurring at the same time is not, by itself, sufficient to enter a trade—you should always apply your own judgment.
Looking forward to your feedback and suggestions.
Happy trading! 🎉
Alert: 10m FU at Top of HourWhen an FU happens on the hour, it will typically give a good indication of direction
Pair this with negation and HCS
HTF Big Candle ProjectionsWhat it does
This indicator overlays higher-timeframe (HTF) “big candles” at the right edge of any chart and keeps them perfectly parallel with price while you zoom or pan. In End-of-Chart (EOC) mode, all objects are anchored by bar index (not time) and clamped to TradingView’s ≤500 bars into the future rule, so they move 1:1 with the chart—no drift, no lag. A fallback mode preserves time-anchored labels if you prefer them.
Why it’s different / useful
Most MTF overlays drift when you scale or pan because they anchor by time or mix coordinate systems. This script anchors every end-of-chart object (bodies, wicks, OHLC guide lines, labels, range readout) in bar-index space, so the overlay scales identically to real bars. It also includes a safe-clamp to the 500-bar forward limit, automatic TF mapping for D/W/M charts, and optional projections from the previous HTF candle.
How it works (technical overview)
HTF data: The indicator fetches HTF OHLC using request.security() (no lookahead) and updates the current HTF candle live on each chart bar.
EOC placement (ON): Big candles are rendered with index-anchored boxes + wicks (box.new + line.new). X-positions are computed from bar_index + offset, then clamped to stay within the forward limit.
Fallback placement (OFF): Label coordinates switch to time-anchored for familiarity; candle bodies remain parallel via index logic.
OHLC helpers: Optional high/low/close guide lines extend right from the active HTF candle; OHLC labels and a range label can be placed to the side; a remaining-time widget shows how long until the HTF bar closes.
No lookahead / repaint caveat: The current HTF candle naturally evolves until it closes; that’s expected behavior for real-time HTF overlays.
Inputs & features
Place at end of chart (EOC mode toggle): index-anchored layout with ≤500-bar clamp.
Right Candle Timeframe: auto-map for D/W/M (D→W, W→M, M→3M) or set manually.
Offsets & width: right-edge offset (bars), left-candle offset, body width (bars), minimum gap between candles.
Wicks: show/hide (fallback mode draws wicks; index mode draws them via lines).
OHLC guide lines: toggle H/L/C, choose style/width/color, with right-side projection distance.
OHLC labels: side selection, text size, background/text colors, side offset.
Range label: toggle, side offset, size; option to show pip units (1/mintick).
Prev candle projections: optional HTF high/low lines from the left candle.
Remaining-time panel: live countdown to the HTF bar close.
Colors: bullish/bearish bodies and wicks.
How to use
Add to any chart (works best on intraday charts when viewing D/W/M candles).
Keep “Place at end of chart” ON for perfect parallel tracking while zooming/panning.
Choose Right Candle Timeframe (or use auto for D/W/M).
Adjust Body Width and Label/Line Offsets to taste. If you push offsets too far, the script auto-clamps objects to respect the 500-bar forward limit.
Optionally enable Prev Candle HL projections, OHLC labels, and the Range readout.
Publish with a clean chart so the overlay is easy to understand at a glance.
Notes & limitations
Forward plotting limit: TradingView only allows drawing ≤500 bars into the future. The script clamps all end-of-chart objects automatically; if you request more, it will shorten projections to remain compliant.
Sessions & symbols: Exotic sessions or illiquid symbols may produce uneven HTF boundaries. If needed, set the Right Candle Timeframe manually.
No signals, no promises: This is a visualization tool—it does not generate trade signals or promise performance. Use it alongside your own analysis and risk management.
Settings quick reference
EOC mode: ON (index-anchored) / OFF (time-anchored labels).
Right Candle TF: Auto D→W→M→3M or manual TF.
Offsets: Right edge, left candle, label/range/line projections.
Body Width: Candle thickness in bars.
Lines/Labels: OHLC guides, OHLC labels, Range label.
Prev HL: Previous HTF high/low projections.
Timer: Remaining time in the current HTF bar.
Colors: Bull/Bear bodies, wicks.
Disclaimer
For educational purposes only. Not financial advice. Past performance does not guarantee future results. Always test on your own and trade responsibly.
Author’s note on originality
This script focuses on bar-index anchored EOC rendering with comprehensive forward-clamping and dual label modes, aiming to solve the common drift/desync issues seen in MTF overlays during chart scaling.
Session AnchorsDescription
This indicator highlights the four main global trading sessions — London, New York AM, New York PM, and Asia — as color-coded boxes on the chart. Each session is defined by fixed start/end times (New York time) and dynamically updates with the evolving high and low during that interval. This provides a clear view of how volatility and structure shift as trading activity passes from one region to another.
How to use
• Works on any timeframe.
• Toggle sessions on/off based on your trading hours.
• Observe price behavior as one session closes and another opens.
• Use session boxes as context for liquidity, volatility, and structure analysis.
Originality
This script delivers a clean, customizable visualization of global market hours and session ranges, avoiding extra overlays so traders can isolate session-based behavior without distraction.
⚠️ Disclaimer
This indicator does not generate signals. It provides a structural mapping of global sessions for contextual analysis only.
Supertrend Ravi Shinde📌 Multi-Timeframe Supertrend (MFT Supertrend)
This indicator is a refined version of the classic Supertrend, designed with multi-timeframe flexibility for traders who rely on higher-timeframe confirmation while trading lower charts.
🔑 Key Features:
Multi-Timeframe Analysis: Apply Supertrend from any higher timeframe (e.g., use 15m, 1h, or 1d Supertrend on a 5m chart).
Clear Trend Identification:
🔴 Price below Supertrend → Bearish trend.
🟢 Price above Supertrend → Bullish trend.
Customizable Parameters: Input ATR length, ATR multiplier, and timeframe of your choice.
Visual Simplicity: Clean chart display with no clutter – just the essential Supertrend line.
Risk Calculator You can enter your account size and your stop-loss level, and the calculator will display the risk you are taking both as an actual monetary value and as a percentage of your account. If your account currency differs from the instrument’s currency, you can also input a conversion factor to see the risk in your account currency.
Copeland Dynamic Dominance Matrix System | GForgeCopeland Dynamic Dominance Matrix System | GForge - v1
---
📊 COMPREHENSIVE SYSTEM OVERVIEW
The GForge Dynamic BB% TrendSync System represents a revolutionary approach to algorithmic portfolio management, combining cutting-edge statistical analysis, momentum detection, and regime identification into a unified framework. This system processes up to 39 different cryptocurrency assets simultaneously, using advanced mathematical models to determine optimal capital allocation across dynamic market conditions.
Core Innovation: Multi-Dimensional Analysis
Unlike traditional single-asset indicators, this system operates on multiple analytical dimensions:
Momentum Analysis: Dual Bollinger Band Modified Deviation (DBBMD) calculations
Relative Strength: Comprehensive dominance matrix with head-to-head comparisons
Fundamental Screening: Alpha and Beta statistical filtering
Market Regime Detection: Five-component statistical testing framework
Portfolio Optimization: Dynamic weighting and allocation algorithms
Risk Management: Multi-layered protection and regime-based positioning
---
🔧 DETAILED COMPONENT BREAKDOWN
1. Dynamic Bollinger Band % Modified Deviation Engine (DBBMD)
The foundation of this system is an advanced oscillator that combines two independent Bollinger Band systems with asymmetric parameters to create unique momentum readings.
Technical Implementation:
[
// BB System 1: Fast-reacting with extended standard deviation
primary_bb1_ma_len = 40 // Shorter MA for responsiveness
primary_bb1_sd_len = 65 // Longer SD for stability
primary_bb1_mult = 1.0 // Standard deviation multiplier
// BB System 2: Complementary asymmetric design
primary_bb2_ma_len = 8 // Longer MA for trend following
primary_bb2_sd_len = 66 // Shorter SD for volatility sensitivity
primary_bb2_mult = 1.7 // Wider bands for reduced noise
Key Features:
Asymmetric Design: The intentional mismatch between MA and Standard Deviation periods creates unique oscillation characteristics that traditional Bollinger Bands cannot achieve
Percentage Scale: All readings are normalized to 0-100% scale for consistent interpretation across assets
Multiple Combination Modes:
BB1 Only: Fast/reactive system
BB2 Only: Smooth/stable system
Average: Balanced blend (recommended)
Both Required: Conservative (both must agree)
Either One: Aggressive (either can trigger)
Mean Deviation Filter: Additional volatility-based layer that measures the standard deviation of the DBBMD% itself, creating dynamic trigger bands
Signal Generation Logic:
// Primary thresholds
primary_long_threshold = 71 // DBBMD% level for bullish signals
primary_short_threshold = 33 // DBBMD% level for bearish signals
// Mean Deviation creates dynamic bands around these thresholds
upper_md_band = combined_bb + (md_mult * bb_std)
lower_md_band = combined_bb - (md_mult * bb_std)
// Signal triggers when DBBMD crosses these dynamic bands
long_signal = lower_md_band > long_threshold
short_signal = upper_md_band < short_threshold
For more information on this BB% indicator, find it here:
2. Revolutionary Dominance Matrix System
This is the system's most sophisticated innovation - a comprehensive framework that compares every asset against every other asset to determine relative strength hierarchies.
Mathematical Foundation:
The system constructs a mathematical matrix where each cell represents whether asset i dominates asset j:
// Core dominance matrix (39x39 for maximum assets)
var matrix dominance_matrix = matrix.new(39, 39, 0)
// For each qualifying asset pair (i,j):
for i = 0 to active_count - 1
for j = 0 to active_count - 1
if i != j
// Calculate price ratio BB% TrendSync for asset_i/asset_j
ratio_array = calculate_price_ratios(asset_i, asset_j)
ratio_dbbmd = calculate_dbbmd(ratio_array)
// Asset i dominates j if ratio is in uptrend
if ratio_dbbmd_state == 1
matrix.set(dominance_matrix, i, j, 1)
Copeland Scoring Algorithm:
Each asset receives a dominance score calculated as:
Dominance Score = Total Wins - Total Losses
// Calculate net dominance for each asset
for i = 0 to active_count - 1
wins = 0
losses = 0
for j = 0 to active_count - 1
if i != j
if matrix.get(dominance_matrix, i, j) == 1
wins += 1
else
losses += 1
copeland_score = wins - losses
array.set(dominance_scores, i, copeland_score)
Head-to-Head Analysis Process:
Ratio Construction: For each asset pair, calculate price_asset_A / price_asset_B
DBBMD Application: Apply the same DBBMD analysis to these ratios
Trend Determination: If ratio DBBMD shows uptrend, Asset A dominates Asset B
Matrix Population: Store dominance relationships in mathematical matrix
Score Calculation: Sum wins minus losses for final ranking
This creates a tournament-style ranking where each asset's strength is measured against all others, not just against a benchmark.
3. Advanced Alpha & Beta Filtering System
The system incorporates fundamental analysis through Capital Asset Pricing Model (CAPM) calculations to filter assets based on risk-adjusted performance.
Alpha Calculation (Excess Return Analysis):
// CAPM Alpha calculation
f_calc_alpha(asset_prices, benchmark_prices, alpha_length, beta_length, risk_free_rate) =>
// Calculate asset and benchmark returns
asset_returns = calculate_returns(asset_prices, alpha_length)
benchmark_returns = calculate_returns(benchmark_prices, alpha_length)
// Get beta for expected return calculation
beta = f_calc_beta(asset_prices, benchmark_prices, beta_length)
// Average returns over period
avg_asset_return = array_average(asset_returns) * 100
avg_benchmark_return = array_average(benchmark_returns) * 100
// Expected return using CAPM: E(R) = Beta * Market_Return + Risk_Free_Rate
expected_return = beta * avg_benchmark_return + risk_free_rate
// Alpha = Actual Return - Expected Return
alpha = avg_asset_return - expected_return
Beta Calculation (Volatility Relationship):
// Beta measures how much an asset moves relative to benchmark
f_calc_beta(asset_prices, benchmark_prices, length) =>
// Calculate return series for both assets
asset_returns =
benchmark_returns =
// Populate return arrays
for i = 0 to length - 1
asset_return = (current_price - previous_price) / previous_price
benchmark_return = (current_bench - previous_bench) / previous_bench
// Calculate covariance and variance
covariance = calculate_covariance(asset_returns, benchmark_returns)
benchmark_variance = calculate_variance(benchmark_returns)
// Beta = Covariance(Asset, Market) / Variance(Market)
beta = covariance / benchmark_variance
Filtering Applications:
Alpha Filter: Only includes assets with alpha above specified threshold (e.g., >0.5% monthly excess return)
Beta Filter: Screens for desired volatility characteristics (e.g., beta >1.0 for aggressive assets)
Combined Screening: Both filters must pass for asset qualification
Dynamic Thresholds: User-configurable parameters for different market conditions
4. Intelligent Tie-Breaking Resolution System
When multiple assets have identical dominance scores, the system employs sophisticated methods to determine final rankings.
Standard Tie-Breaking Hierarchy:
// Primary tie-breaking logic
if score_i == score_j // Tied dominance scores
// Level 1: Compare Beta values (higher beta wins)
beta_i = array.get(beta_values, i)
beta_j = array.get(beta_values, j)
if beta_j > beta_i
swap_positions(i, j)
else if beta_j == beta_i
// Level 2: Compare Alpha values (higher alpha wins)
alpha_i = array.get(alpha_values, i)
alpha_j = array.get(alpha_values, j)
if alpha_j > alpha_i
swap_positions(i, j)
Advanced Tie-Breaking (Head-to-Head Analysis):
For the top 3 performers, an enhanced tie-breaking mechanism analyzes direct head-to-head price ratio performance:
// Advanced tie-breaker for top performers
f_advanced_tiebreaker(asset1_idx, asset2_idx, lookback_period) =>
// Calculate price ratio over lookback period
ratio_history =
for k = 0 to lookback_period - 1
price_ratio = price_asset1 / price_asset2
array.push(ratio_history, price_ratio)
// Apply simplified trend analysis to ratio
current_ratio = array.get(ratio_history, 0)
average_ratio = calculate_average(ratio_history)
// Asset 1 wins if current ratio > average (trending up)
if current_ratio > average_ratio
return 1 // Asset 1 dominates
else
return -1 // Asset 2 dominates
5. Five-Component Aggregate Market Regime Filter
This sophisticated framework combines multiple statistical tests to determine whether market conditions favor trending strategies or require defensive positioning.
Component 1: Augmented Dickey-Fuller (ADF) Test
Tests for unit root presence to distinguish between trending and mean-reverting price series.
// Simplified ADF implementation
calculate_adf_statistic(price_series, lookback) =>
// Calculate first differences
differences =
for i = 0 to lookback - 2
diff = price_series - price_series
array.push(differences, diff)
// Statistical analysis of differences
mean_diff = calculate_mean(differences)
std_diff = calculate_standard_deviation(differences)
// ADF statistic approximation
adf_stat = mean_diff / std_diff
// Compare against threshold for trend determination
is_trending = adf_stat <= adf_threshold
Component 2: Directional Movement Index (DMI)
Classic Wilder indicator measuring trend strength through directional movement analysis.
// DMI calculation for trend strength
calculate_dmi_signal(high_data, low_data, close_data, period) =>
// Calculate directional movements
plus_dm_sum = 0.0
minus_dm_sum = 0.0
true_range_sum = 0.0
for i = 1 to period
// Directional movements
up_move = high_data - high_data
down_move = low_data - low_data
// Accumulate positive/negative movements
if up_move > down_move and up_move > 0
plus_dm_sum += up_move
if down_move > up_move and down_move > 0
minus_dm_sum += down_move
// True range calculation
true_range_sum += calculate_true_range(i)
// Calculate directional indicators
di_plus = 100 * plus_dm_sum / true_range_sum
di_minus = 100 * minus_dm_sum / true_range_sum
// ADX calculation
dx = 100 * math.abs(di_plus - di_minus) / (di_plus + di_minus)
adx = dx // Simplified for demonstration
// Trending if ADX above threshold
is_trending = adx > dmi_threshold
Component 3: KPSS Stationarity Test
Complementary test to ADF that examines stationarity around trend components.
// KPSS test implementation
calculate_kpss_statistic(price_series, lookback, significance_level) =>
// Calculate mean and variance
series_mean = calculate_mean(price_series, lookback)
series_variance = calculate_variance(price_series, lookback)
// Cumulative sum of deviations
cumulative_sum = 0.0
cumsum_squared_sum = 0.0
for i = 0 to lookback - 1
deviation = price_series - series_mean
cumulative_sum += deviation
cumsum_squared_sum += math.pow(cumulative_sum, 2)
// KPSS statistic
kpss_stat = cumsum_squared_sum / (lookback * lookback * series_variance)
// Compare against critical values
critical_value = significance_level == 0.01 ? 0.739 :
significance_level == 0.05 ? 0.463 : 0.347
is_trending = kpss_stat >= critical_value
Component 4: Choppiness Index
Measures market directionality using fractal dimension analysis of price movement.
// Choppiness Index calculation
calculate_choppiness(price_data, period) =>
// Find highest and lowest over period
highest = price_data
lowest = price_data
true_range_sum = 0.0
for i = 0 to period - 1
if price_data > highest
highest := price_data
if price_data < lowest
lowest := price_data
// Accumulate true range
if i > 0
true_range = calculate_true_range(price_data, i)
true_range_sum += true_range
// Choppiness calculation
range_high_low = highest - lowest
choppiness = 100 * math.log10(true_range_sum / range_high_low) / math.log10(period)
// Trending if choppiness below threshold (typically 61.8)
is_trending = choppiness < 61.8
Component 5: Hilbert Transform Analysis
Phase-based cycle detection and trend identification using mathematical signal processing.
// Hilbert Transform trend detection
calculate_hilbert_signal(price_data, smoothing_period, filter_period) =>
// Smooth the price data
smoothed_price = calculate_moving_average(price_data, smoothing_period)
// Calculate instantaneous phase components
// Simplified implementation for demonstration
instant_phase = smoothed_price
delayed_phase = calculate_moving_average(price_data, filter_period)
// Compare instantaneous vs delayed signals
phase_difference = instant_phase - delayed_phase
// Trending if instantaneous leads delayed
is_trending = phase_difference > 0
Aggregate Regime Determination:
// Combine all five components
regime_calculation() =>
trending_count = 0
total_components = 0
// Test each enabled component
if enable_adf and adf_signal == 1
trending_count += 1
if enable_adf
total_components += 1
// Repeat for all five components...
// Calculate trending proportion
trending_proportion = trending_count / total_components
// Market is trending if proportion above threshold
regime_allows_trading = trending_proportion >= regime_threshold
The system only allows asset positions when the specified percentage of components indicate trending conditions. During choppy or mean-reverting periods, the system automatically positions in USD to preserve capital.
6. Dynamic Portfolio Weighting Framework
Six sophisticated allocation methodologies provide flexibility for different market conditions and risk preferences.
Weighting Method Implementations:
1. Equal Weight Distribution:
// Simple equal allocation
if weighting_mode == "Equal Weight"
weight_per_asset = 1.0 / selection_count
for i = 0 to selection_count - 1
array.push(weights, weight_per_asset)
2. Linear Dominance Scaling:
// Linear scaling based on dominance scores
if weighting_mode == "Linear Dominance"
// Normalize scores to 0-1 range
min_score = array.min(dominance_scores)
max_score = array.max(dominance_scores)
score_range = max_score - min_score
total_weight = 0.0
for i = 0 to selection_count - 1
score = array.get(dominance_scores, i)
normalized = (score - min_score) / score_range
weight = 1.0 + normalized * concentration_factor
array.push(weights, weight)
total_weight += weight
// Normalize to sum to 1.0
for i = 0 to selection_count - 1
current_weight = array.get(weights, i)
array.set(weights, i, current_weight / total_weight)
3. Conviction Score (Exponential):
// Exponential scaling for high conviction
if weighting_mode == "Conviction Score"
// Combine dominance score with DBBMD strength
conviction_scores =
for i = 0 to selection_count - 1
dominance = array.get(dominance_scores, i)
dbbmd_strength = array.get(dbbmd_values, i)
conviction = dominance + (dbbmd_strength - 50) / 25
array.push(conviction_scores, conviction)
// Exponential weighting
total_weight = 0.0
for i = 0 to selection_count - 1
conviction = array.get(conviction_scores, i)
normalized = normalize_score(conviction)
weight = math.pow(1 + normalized, concentration_factor)
array.push(weights, weight)
total_weight += weight
// Final normalization
normalize_weights(weights, total_weight)
Advanced Features:
Minimum Position Constraint: Prevents dust allocations below specified threshold
Concentration Factor: Adjustable parameter controlling weight distribution aggressiveness
Dominance Boost: Extra weight for assets exceeding specified dominance thresholds
Dynamic Rebalancing: Automatic weight recalculation on portfolio changes
7. Intelligent USD Management System
The system treats USD as a competing asset with its own dominance score, enabling sophisticated cash management.
USD Scoring Methodologies:
Smart Competition Mode (Recommended):
f_calculate_smart_usd_dominance() =>
usd_wins = 0
// USD beats assets in downtrends or weak uptrends
for i = 0 to active_count - 1
asset_state = get_asset_state(i)
asset_dbbmd = get_asset_dbbmd(i)
// USD dominates shorts and weak longs
if asset_state == -1 or (asset_state == 1 and asset_dbbmd < long_threshold)
usd_wins += 1
// Calculate Copeland-style score
base_score = usd_wins - (active_count - usd_wins)
// Boost during weak market conditions
qualified_assets = count_qualified_long_assets()
if qualified_assets <= active_count * 0.2
base_score := math.round(base_score * usd_boost_factor)
base_score
Auto Short Count Mode:
// USD dominance based on number of bearish assets
usd_dominance = count_assets_in_short_state()
// Apply boost during low activity
if qualified_long_count <= active_count * 0.2
usd_dominance := usd_dominance * usd_boost_factor
Regime-Based USD Positioning:
When the five-component regime filter indicates unfavorable conditions, the system automatically overrides all asset signals and positions 100% in USD, protecting capital during choppy markets.
8. Multi-Asset Infrastructure & Data Management
The system maintains comprehensive data structures for up to 39 assets simultaneously.
Data Collection Framework:
// Full OHLC data matrices (200 bars depth for performance)
var matrix open_data = matrix.new(39, 200, na)
var matrix high_data = matrix.new(39, 200, na)
var matrix low_data = matrix.new(39, 200, na)
var matrix close_data = matrix.new(39, 200, na)
// Real-time data collection
if barstate.isconfirmed
for i = 0 to active_count - 1
ticker = array.get(assets, i)
= request.security(ticker, timeframe.period,
[open , high , low , close ],
lookahead=barmerge.lookahead_off)
// Store in matrices with proper shifting
matrix.set(open_data, i, 0, nz(o, 0))
matrix.set(high_data, i, 0, nz(h, 0))
matrix.set(low_data, i, 0, nz(l, 0))
matrix.set(close_data, i, 0, nz(c, 0))
Asset Configuration:
The system comes pre-configured with 39 major cryptocurrency pairs across multiple exchanges:
Major Pairs: BTC, ETH, XRP, SOL, DOGE, ADA, etc.
Exchange Coverage: Binance, KuCoin, MEXC for optimal liquidity
Configurable Count: Users can activate 2-39 assets based on preferences
Custom Tickers: All asset selections are user-modifiable
---
⚙️ COMPREHENSIVE CONFIGURATION GUIDE
Portfolio Management Settings
Maximum Portfolio Size (1-10):
Conservative (1-2): High concentration, captures strong trends
Balanced (3-5): Moderate diversification with trend focus
Diversified (6-10): Lower concentration, broader market exposure
Dominance Clarity Threshold (0.1-1.0):
Low (0.1-0.4): Prefers diversification, holds multiple assets frequently
Medium (0.5-0.7): Balanced approach, context-dependent allocation
High (0.8-1.0): Concentration-focused, single asset preference
Signal Generation Parameters
DBBMD Thresholds:
// Standard configuration
primary_long_threshold = 71 // Conservative: 75+, Aggressive: 65-70
primary_short_threshold = 33 // Conservative: 25-30, Aggressive: 35-40
// BB System parameters
bb1_ma_len = 40 // Fast system: 20-50
bb1_sd_len = 65 // Stability: 50-80
bb2_ma_len = 8 // Trend: 60-100
bb2_sd_len = 66 // Sensitivity: 10-20
Risk Management Configuration
Alpha/Beta Filters:
Alpha Threshold: 0.0-2.0% (higher = more selective)
Beta Threshold: 0.5-2.0 (1.0+ for aggressive assets)
Calculation Periods: 20-50 bars (longer = more stable)
Regime Filter Settings:
Trending Threshold: 0.3-0.8 (higher = stricter trend requirements)
Component Lookbacks: 30-100 bars (balance responsiveness vs stability)
Enable/Disable: Individual component control for customization
---
📊 PERFORMANCE TRACKING & VISUALIZATION
Real-Time Dashboard Features
The compact dashboard provides essential information:
Current Holdings: Asset names and allocation percentages
Dominance Score: Current position's relative strength ranking
Active Assets: Qualified long signals vs total asset count
Returns: Total portfolio performance percentage
Maximum Drawdown: Peak-to-trough decline measurement
Trade Count: Total portfolio transitions executed
Regime Status: Current market condition assessment
Comprehensive Ranking Table
The left-side table displays detailed asset analysis:
Ranking Position: Numerical order by dominance score
Asset Symbol: Clean ticker identification with color coding
Dominance Score: Net wins minus losses in head-to-head comparisons
Win-Loss Record: Detailed breakdown of dominance relationships
DBBMD Reading: Current momentum percentage with threshold highlighting
Alpha/Beta Values: Fundamental analysis metrics when filters enabled
Portfolio Weight: Current allocation percentage in signal portfolio
Execution Status: Visual indicator of actual holdings vs signals
Visual Enhancement Features
Color-Coded Assets: 39 distinct colors for easy identification
Regime Background: Red tinting during unfavorable market conditions
Dynamic Equity Curve: Portfolio value plotted with position-based coloring
Status Indicators: Symbols showing execution vs signal states
---
🔍 ADVANCED TECHNICAL FEATURES
State Persistence System
The system maintains asset states across bars to prevent excessive switching:
// State tracking for each asset and ratio combination
var array asset_states = array.new(1560, 0) // 39 * 40 ratios
// State changes only occur on confirmed threshold breaks
if long_crossover and current_state != 1
current_state := 1
array.set(asset_states, asset_index, 1)
else if short_crossover and current_state != -1
current_state := -1
array.set(asset_states, asset_index, -1)
Transaction Cost Integration
Realistic modeling of trading expenses:
// Transaction cost calculation
transaction_fee = 0.4 // Default 0.4% (fees + slippage)
// Applied on portfolio transitions
if should_execute_transition
was_holding_assets = check_current_holdings()
will_hold_assets = check_new_signals()
// Charge fees for meaningful transitions
if transaction_fee > 0 and (was_holding_assets or will_hold_assets)
fee_amount = equity * (transaction_fee / 100)
equity -= fee_amount
total_fees += fee_amount
Dynamic Memory Management
Optimized data structures for performance:
200-Bar History: Sufficient for calculations while maintaining speed
Matrix Operations: Efficient storage and retrieval of multi-asset data
Array Recycling: Memory-conscious data handling for long-running backtests
Conditional Calculations: Skip unnecessary computations during initialization
12H 30 assets portfolio
---
🚨 SYSTEM LIMITATIONS & TESTING STATUS
CURRENT DEVELOPMENT PHASE: ACTIVE TESTING & OPTIMIZATION
This system represents cutting-edge algorithmic trading technology but remains in continuous development. Key considerations:
Known Limitations:
Requires significant computational resources for 39-asset analysis
Performance varies significantly across different market conditions
Complex parameter interactions may require extensive optimization
Slippage and liquidity constraints not fully modeled for all assets
No consideration for market impact in large position sizes
Areas Under Active Development:
Enhanced regime detection algorithms
Improved transaction cost modeling
Additional portfolio weighting methodologies
Machine learning integration for parameter optimization
Cross-timeframe analysis capabilities
---
🔒 ANTI-REPAINTING ARCHITECTURE & LIVE TRADING READINESS
One of the most critical aspects of any trading system is ensuring that signals and calculations are based on confirmed, historical data rather than current bar information that can change throughout the trading session. This system implements comprehensive anti-repainting measures to ensure 100% reliability for live trading .
The Repainting Problem in Trading Systems
Repainting occurs when an indicator uses current, unconfirmed bar data in its calculations, causing:
False Historical Signals: Backtests appear better than reality because calculations change as bars develop
Live Trading Failures: Signals that looked profitable in testing fail when deployed in real markets
Inconsistent Results: Different results when running the same indicator at different times during a trading session
Misleading Performance: Inflated win rates and returns that cannot be replicated in practice
GForge Anti-Repainting Implementation
This system eliminates repainting through multiple technical safeguards:
1. Historical Data Usage for All Calculations
// CRITICAL: All calculations use PREVIOUS bar data (note the offset)
= request.security(ticker, timeframe.period,
[open , high , low , close , close],
lookahead=barmerge.lookahead_off)
// Store confirmed previous bar OHLC for calculations
matrix.set(open_data, i, 0, nz(o1, 0)) // Previous bar open
matrix.set(high_data, i, 0, nz(h1, 0)) // Previous bar high
matrix.set(low_data, i, 0, nz(l1, 0)) // Previous bar low
matrix.set(close_data, i, 0, nz(c1, 0)) // Previous bar close
// Current bar close only for visualization
matrix.set(current_prices, i, 0, nz(c0, 0)) // Live price display
2. Confirmed Bar State Processing
// Only process data when bars are confirmed and closed
if barstate.isconfirmed
// All signal generation and portfolio decisions occur here
// using only historical, unchanging data
// Shift historical data arrays
for i = 0 to active_count - 1
for bar = math.min(data_bars, 199) to 1
// Move confirmed data through historical matrices
old_data = matrix.get(close_data, i, bar - 1)
matrix.set(close_data, i, bar, old_data)
// Process new confirmed bar data
calculate_all_signals_and_dominance()
3. Lookahead Prevention
// Explicit lookahead prevention in all security calls
request.security(ticker, timeframe.period, expression,
lookahead=barmerge.lookahead_off)
// This ensures no future data can influence current calculations
// Essential for maintaining signal integrity across all timeframes
4. State Persistence with Historical Validation
// Asset states only change based on confirmed threshold breaks
// using historical data that cannot change
var array asset_states = array.new(1560, 0)
// State changes use only confirmed, previous bar calculations
if barstate.isconfirmed
=
f_calculate_enhanced_dbbmd(confirmed_price_array, ...)
// Only update states after bar confirmation
if long_crossover_confirmed and current_state != 1
current_state := 1
array.set(asset_states, asset_index, 1)
Live Trading vs. Backtesting Consistency
The system's architecture ensures identical behavior in both environments:
Backtesting Mode:
Uses historical offset data for all calculations
Processes confirmed bars with `barstate.isconfirmed`
Maintains identical signal generation logic
No access to future information
Live Trading Mode:
Uses same historical offset data structure
Waits for bar confirmation before signal updates
Identical mathematical calculations and thresholds
Real-time price display without affecting signals
Technical Implementation Details
Data Collection Timing
// Example of proper data collection timing
if barstate.isconfirmed // Wait for bar to close
// Collect PREVIOUS bar's confirmed OHLC data
for i = 0 to active_count - 1
ticker = array.get(assets, i)
// Get confirmed previous bar data (note offset)
=
request.security(ticker, timeframe.period,
[open , high , low , close , close],
lookahead=barmerge.lookahead_off)
// ALL calculations use prev_* values
// current_close only for real-time display
portfolio_calculations_use_previous_bar_data()
Signal Generation Process
// Signal generation workflow (simplified)
if barstate.isconfirmed and data_bars >= minimum_required_bars
// Step 1: Calculate DBBMD using historical price arrays
for i = 0 to active_count - 1
historical_prices = get_confirmed_price_history(i) // Uses offset data
= calculate_dbbmd(historical_prices)
update_asset_state(i, state)
// Step 2: Build dominance matrix using confirmed data
calculate_dominance_relationships() // All historical data
// Step 3: Generate portfolio signals
new_portfolio = generate_target_portfolio() // Based on confirmed calculations
// Step 4: Compare with previous signals for changes
if portfolio_signals_changed()
execute_portfolio_transition()
Verification Methods for Users
Users can verify the anti-repainting behavior through several methods:
1. Historical Replay Test
Run the indicator on historical data
Note signal timing and portfolio changes
Replay the same period - signals should be identical
No retroactive changes in historical signals
2. Intraday Consistency Check
Load indicator during active trading session
Observe that previous day's signals remain unchanged
Only current day's final bar should show potential signal changes
Refresh indicator - historical signals should be identical
Live Trading Deployment Considerations
Data Quality Assurance
Exchange Connectivity: Ensure reliable data feeds for all 39 assets
Missing Data Handling: System includes safeguards for data gaps
Price Validation: Automatic filtering of obvious price errors
Timeframe Synchronization: All assets synchronized to same bar timing
Performance Impact of Anti-Repainting Measures
The robust anti-repainting implementation requires additional computational resources:
Memory Usage: 200-bar historical data storage for 39 assets
Processing Delay: Signals update only after bar confirmation
Calculation Overhead: Multiple historical data validations
Alert Timing: Slight delay compared to current-bar indicators
However, these trade-offs are essential for reliable live trading performance and accurate backtesting results.
Critical: Equity Curve Anti-Repainting Architecture
The most sophisticated aspect of this system's anti-repainting design is the temporal separation between signal generation and performance calculation . This creates a realistic trading simulation that perfectly matches live trading execution.
The Timing Sequence
// STEP 1: Store what we HELD during the current bar (for performance calc)
if barstate.isconfirmed
// Record positions that were active during this bar
array.clear(held_portfolio)
array.clear(held_weights)
for i = 0 to array.size(execution_portfolio) - 1
array.push(held_portfolio, array.get(execution_portfolio, i))
array.push(held_weights, array.get(execution_weights, i))
// STEP 2: Calculate performance based on what we HELD
portfolio_return = 0.0
for i = 0 to array.size(held_portfolio) - 1
held_asset = array.get(held_portfolio, i)
held_weight = array.get(held_weights, i)
// Performance from current_price vs reference_price
// This is what we ACTUALLY earned during this bar
if held_asset != "USD"
current_price = get_current_price(held_asset) // End of bar
reference_price = get_reference_price(held_asset) // Start of bar
asset_return = (current_price - reference_price) / reference_price
portfolio_return += asset_return * held_weight
// STEP 3: Apply return to equity (realistic timing)
equity := equity * (1 + portfolio_return)
// STEP 4: Generate NEW signals for NEXT period (using confirmed data)
= f_generate_target_portfolio()
// STEP 5: Execute transitions if signals changed
if signal_changed
// Update execution_portfolio for NEXT bar
array.clear(execution_portfolio)
array.clear(execution_weights)
for i = 0 to array.size(new_signal_portfolio) - 1
array.push(execution_portfolio, array.get(new_signal_portfolio, i))
array.push(execution_weights, array.get(new_signal_weights, i))
Why This Prevents Equity Curve Repainting
Performance Attribution: Returns are calculated based on positions that were **actually held** during each bar, not future signals
Signal Timing: New signals are generated **after** performance calculation, affecting only **future** bars
Realistic Execution: Mimics real trading where you earn returns on current positions while planning future moves
No Retroactive Changes: Once a bar closes, its performance contribution to equity is permanent and unchangeable
The One-Bar Offset Mechanism
This system implements a critical one-bar timing offset:
// Bar N: Performance Calculation
// ================================
// 1. Calculate returns on positions held during Bar N
// 2. Update equity based on actual holdings during Bar N
// 3. Plot equity point for Bar N (based on what we HELD)
// Bar N: Signal Generation
// ========================
// 4. Generate signals for Bar N+1 (using confirmed Bar N data)
// 5. Send alerts for what will be held during Bar N+1
// 6. Update execution_portfolio for Bar N+1
// Bar N+1: The Cycle Continues
// =============================
// 1. Performance calculated on positions from Bar N signals
// 2. New signals generated for Bar N+2
Alert System Timing
The alert system reflects this sophisticated timing:
Transaction Cost Realism
Even transaction costs follow realistic timing:
// Fees applied when transitioning between different portfolios
if should_execute_transition
// Charge fees BEFORE taking new positions (realistic timing)
if transaction_fee > 0
fee_amount = equity * (transaction_fee / 100)
equity -= fee_amount // Immediate cost impact
total_fees += fee_amount
// THEN update to new portfolio
update_execution_portfolio(new_signals)
transitions += 1
// Fees reduce equity immediately, affecting all future calculations
// This matches real trading where fees are deducted upon execution
LIVE TRADING CERTIFICATION:
This system has been specifically designed and tested for live trading deployment. The comprehensive anti-repainting measures ensure that:
Backtesting results accurately represent real trading potential
Signals are generated using only confirmed, historical data
No retroactive changes can occur to previously generated signals
Portfolio transitions are based on reliable, unchanging calculations
Performance metrics reflect realistic trading outcomes including proper timing
Users can deploy this system with confidence that live trading results will closely match backtesting performance, subject to normal market execution factors such as slippage and liquidity.
---
⚡ ALERT SYSTEM & AUTOMATION
The system provides comprehensive alerting for automation and monitoring:
Available Alert Conditions
Portfolio Signal Change: Triggered when new portfolio composition is generated
Regime Override Active: Alerts when market regime forces USD positioning
Individual Asset Signals: Can be configured for specific asset transitions
Performance Thresholds: Drawdown or return-based notifications
---
📈 BACKTESTING & PERFORMANCE ANALYSIS
8 Comprehensive Metrics Tracking
The system maintains detailed performance statistics:
Equity Curve: Real-time portfolio value progression
Returns Calculation: Total and annualized performance metrics
Drawdown Analysis: Peak-to-trough decline measurements
Transaction Counting: Portfolio transition frequency
Fee Tracking: Cumulative transaction cost impact
Win Rate Analysis: Success rate of position changes
Backtesting Configuration
// Backtesting parameters
initial_capital = 10000.0 // Starting capital
use_custom_start = true // Enable specific start date
custom_start = timestamp("2023-09-01") // Backtest beginning
transaction_fee = 0.4 // Combined fees and slippage %
// Performance calculation
total_return = (equity - initial_capital) / initial_capital * 100
current_drawdown = (peak_equity - equity) / peak_equity * 100
---
🔧 TROUBLESHOOTING & OPTIMIZATION
Common Configuration Issues
Insufficient Data: Ensure 100+ bars available before start date
[*} Not Compiling: Go on an asset's price chart with 2 or 3 years of data to
make the system compile or just simply reapply the indicator again
Too Many Assets: Reduce active count if experiencing timeouts
Regime Filter Too Strict: Lower trending threshold if always in USD
Excessive Switching: Increase MD multiplier or adjust thresholds
---
💡 USER FEEDBACK & ENHANCEMENT REQUESTS
The continuous evolution of this system depends heavily on user experience and community feedback. Your insights will help motivate me for new improvements and new feature developments.
---
⚖️ FINAL COMPREHENSIVE RISK DISCLAIMER
TRADING INVOLVES SUBSTANTIAL RISK OF LOSS
This indicator is a sophisticated analytical tool designed for educational and research purposes. Important warnings and considerations:
System Limitations:
No algorithmic system can guarantee profitable outcomes
Complex systems may fail in unexpected ways during extreme market events
Historical backtesting does not account for all real-world trading challenges
Slippage, liquidity constraints, and market impact can significantly affect results
System parameters require careful optimization and ongoing monitoring
The creator and distributor of this indicator assume no liability for any financial losses, system failures, or adverse outcomes resulting from its use. This tool is provided "as is" without any warranties, express or implied.
By using this indicator, you acknowledge that you have read, understood, and agreed to assume all risks associated with algorithmic trading and cryptocurrency investments.
ElectronixTrader - Multi-Timeframe S/RThis script is a powerful multi-timeframe tool designed to help traders identify key support and resistance levels for both intraday and swing trading. It's a custom-built indicator that projects Bollinger Band levels from a higher timeframe onto your current chart, providing a unique perspective to filter out market noise and focus on high-probability trading zones.
The core principle is that significant price levels established on a daily or weekly chart can act as powerful support and resistance points on a lower, intraday timeframe. This helps traders align their entries and exits with the broader market context.
Key Features:
Dynamic Levels: The support and resistance lines are not static. They are automatically calculated and updated at the start of each new higher-timeframe candle, providing fresh and relevant levels.
Multi-Timeframe Capability: Easily switch the input timeframe (e.g., Daily to Weekly) to adapt the indicator for your trading style, from intraday to swing trading.
Disclaimer:
Trading involves significant risk, and past performance is not a guarantee of future results. This tool is for informational and educational purposes only and should be used in conjunction with your own risk management and trading plan.
A Note on Originality:
This indicator uses a unique application of built-in functions to project dynamic, higher-timeframe levels. While it is based on classic concepts, the specific methodology of projecting and consistently plotting these zones across different timeframes provides a unique and actionable tool for traders.
Simple Technicals Table📊 Simple Technicals Table
🎯 A comprehensive technical analysis dashboard displaying key pivot points and moving averages across multiple timeframes
📋 OVERVIEW
The Simple Technicals Table is a powerful indicator that organizes essential trading data into a clean, customizable table format. It combines Fibonacci-based pivot points with critical moving averages for both daily and weekly timeframes, giving traders instant access to key support/resistance levels and trend information.
Perfect for:
Technical analysts studying multi-timeframe data
Chart readers needing quick reference levels
Market researchers analyzing price patterns
Educational purposes and data visualization
🚀 KEY FEATURES
📊 Dual Timeframe Analysis
Daily (D1) and Weekly (W1) data side-by-side
Real-time updates as market conditions change
Seamless comparison between timeframes
🎯 Fibonacci Pivot Points
R3, R2, R1 : Resistance levels using Fibonacci ratios (38.2%, 61.8%, 100%)
PP : Central pivot point from previous period's data
S1, S2, S3 : Support levels with same methodology
📈 Complete EMA Suite
EMA 10 : Short-term trend identification
EMA 20 : Popular swing trading reference
EMA 50 : Medium-term trend confirmation
EMA 100 : Institutional support/resistance
EMA 200 : Long-term trend determination
📊 Essential Indicators
RSI 14 : Momentum for overbought/oversold conditions
ATR 14 : Volatility measurement for risk management
🎨 Full Customization
9 table positions : Place anywhere on your chart
5 text sizes : Tiny to huge for optimal visibility
Custom colors : Background, headers, and text
Optional pivot lines : Visual weekly levels on chart
⚙️ HOW IT WORKS
Fibonacci Pivot Calculation:
Pivot Point (PP) = (High + Low + Close) / 3
Range = High - Low
Resistance Levels:
R1 = PP + (Range × 0.382)
R2 = PP + (Range × 0.618)
R3 = PP + (Range × 1.000)
Support Levels:
S1 = PP - (Range × 0.382)
S2 = PP - (Range × 0.618)
S3 = PP - (Range × 1.000)
Smart Price Formatting:
< $1: 5 decimal places (crypto-friendly)
$1-$10: 4 decimal places
$10-$100: 3 decimal places
> $100: 2 decimal places
📊 TECHNICAL ANALYSIS APPLICATIONS
⚠️ EDUCATIONAL PURPOSE ONLY
This indicator is designed solely for technical analysis and educational purposes . It provides data visualization to help understand market structure and price relationships.
📈 Data Analysis Uses
Support & Resistance Identification : Visualize Fibonacci-based pivot levels
Trend Analysis : Study EMA relationships and price positioning
Multi-Timeframe Study : Compare daily and weekly technical data
Market Structure : Understand key technical levels and indicators
📚 Educational Benefits
Learn about Fibonacci pivot point calculations
Understand moving average relationships
Study RSI and ATR indicator values
Practice multi-timeframe technical analysis
🔍 Data Visualization Features
Organized table format for easy data reading
Color-coded levels for quick identification
Real-time technical indicator values
Historical data integrity maintained
🛠️ SETUP GUIDE
1. Installation
Search "Simple Technicals Table" in indicators
Add to chart (appears in middle-left by default)
Table displays automatically on any timeframe
2. Customization
Table Position : Choose from 9 locations
Text Size : Adjust for screen resolution
Colors : Match your chart theme
Pivot Lines : Toggle weekly level visualization
3. Optimization Tips
Use larger text on mobile devices
Dark backgrounds work well with light text
Enable pivot lines for visual reference
✅ BEST PRACTICES
Recommended Usage:
Use for technical analysis and educational study only
Combine with other analytical methods for comprehensive analysis
Study multi-timeframe data relationships
Practice understanding technical indicator values
Important Notes:
Levels based on previous period's data
Most effective in trending markets
No repainting - uses confirmed data only
Works on all instruments and timeframes
🔧 TECHNICAL SPECS
Performance:
Pine Script v5 optimized code
Minimal CPU/memory usage
Real-time data updates
No lookahead bias
Compatibility:
All chart types (Candlestick, Bar, Line)
Any instrument (Stocks, Forex, Crypto, etc.)
All timeframes supported
Mobile and desktop friendly
Data Accuracy:
Precise floating-point calculations
Historical data integrity maintained
No future data leakage
📱 DEVICE SUPPORT
✅ Desktop browsers (Chrome, Firefox, Safari, Edge)
✅ TradingView mobile app (iOS/Android)
✅ TradingView desktop application
✅ Light and dark themes
✅ All screen resolutions
📋 VERSION INFO
Version 1.0 - Initial Release
Fibonacci-based pivot calculations
Dual timeframe support (Daily/Weekly)
Complete EMA suite (10, 20, 50, 100, 200)
RSI and ATR indicators
Fully customizable interface
Optional pivot line visualization
Smart price formatting
Mobile-optimized display
⚠️ DISCLAIMER
This indicator is designed for technical analysis, educational and informational purposes ONLY . It provides data visualization and technical calculations to help users understand market structure and price relationships.
⚠️ NOT FOR TRADING DECISIONS
This tool does NOT provide trading signals or investment advice
All data is for analytical and educational purposes only
Users should not base trading decisions solely on this indicator
Always conduct thorough research and analysis before making any financial decisions
📚 Educational Use Only
Use for learning technical analysis concepts
Study market data and indicator relationships
Practice chart reading and data interpretation
Understand mathematical calculations behind technical indicators
The Simple Technicals Table provides technical data visualization to assist in market analysis education. It does not constitute financial advice, trading recommendations, or investment guidance. Users are solely responsible for their own research and decisions.
Author: ToTrieu
Version: 1.0
Category: Technical Analysis / Support & Resistance
License: Open source for educational use
💬 Questions? Comments? Feel free to reach out!
ADRIXAUUSD - BUY/SELL (MultiTF Strategy + Labels + Alerts)This strategy is designed for XAU/USD (Gold) and can be tested on multiple timeframes (15m, 1H, 4H).
It combines several confluences for high-probability trades:
🔹 EMA Cross (Fast/Slow) to capture trend direction
🔹 Fibonacci Golden Zone retracements
🔹 Fair Value Gaps (FVG) for imbalance confirmation
🔹 ATR-based Stop Loss and Take Profit for adaptive risk management
The script works as both a backtesting strategy and a live indicator:
✅ Strategy Tester shows profit factor, win rate, and performance
✅ On-chart labels with "BUY" and "SELL"
✅ Built-in alerts for real-time notifications
Presets included:
- 15m Scalping (short-term, more trades)
- 1H Intraday (balanced)
- 4H Swing (longer-term, fewer but stronger setups)