Majors FX-REER/NEER Suite [BIG]═══════════════════════════════════════════════════════════════════════════════
BIG MAJORS FX-REER/NEER SUITE
═══════════════════════════════════════════════════════════════════════════════
OVERVIEW
The BIG Majors FX-REER/NEER Suite is a multi-currency valuation framework designed for institutional FX traders, macro strategists, and systematic currency allocators. This indicator calculates Real Effective Exchange Rates (REER) and Nominal Effective Exchange Rates (NEER) for the seven major currency pairs (G7 FX), integrating macroeconomic fundamentals (CPI inflation differentials) with technical trend analysis to identify structural currency misvaluations and mean-reversion opportunities.
Unlike standard FX indicators that only analyze bilateral price action, this suite constructs trade-weighted basket indices that measure each currency's strength against a portfolio of its major trading partners, adjusted for inflation differentials. This approach mirrors central bank and sovereign wealth fund methodologies for assessing equilibrium exchange rate levels.
The framework combines:
- Fundamental valuation metrics – REER/NEER indices with Z-score normalization
- Technical trend filters – Ichimoku Cloud and Aroon oscillator confluence
- Signal classification system – Long/Short/Watch/Conflict regime identification
- Quantitative confidence scoring – 0-100% signal reliability weighting
═══════════════════════════════════════════════════════════════════════════════
CORE METHODOLOGY
═══════════════════════════════════════════════════════════════════════════════
• NEER Calculation (Nominal Effective Exchange Rate)
The NEER measures a currency's value against a trade-weighted basket of its seven major trading partners, geometrically averaged in log-space to ensure symmetry:
1. All seven G7 FX pairs are normalized to USD-pivot (A/USD format)
2. Each currency's log-normalized rate is compared to the arithmetic mean of the other six
3. Formula: NEER_i = (8/7) × log(CCY_i/USD) - mean(log(CCY_others/USD))
This construction ensures that:
- A rising NEER indicates currency appreciation against the basket
- The methodology is symmetric and avoids base-currency bias
- Changes reflect multilateral competitive dynamics, not just bilateral moves
• REER Calculation (Real Effective Exchange Rate)
The REER adjusts the NEER for inflation differentials using Consumer Price Index (CPI) data:
Formula: REER_i = NEER_i + log(CPI_i) - mean(log(CPI_others))
By incorporating CPI differentials, the REER provides a purchasing-power-parity-adjusted valuation metric that accounts for relative inflation rates. This is the institutional standard for assessing fundamental currency equilibrium levels.
Data Sources :
- FX rates: TradingView composite feed (FX:), OANDA, FXCM, FOREXCOM
- CPI data: ECONOMICS namespace (monthly frequency, official statistical releases)
- Supported currencies: USD, EUR, JPY, GBP, CHF, AUD, CAD, NZD
• Valuation Bias Detection
Each currency pair is classified as overvalued (bias = -1, "Short") or undervalued (bias = +1, "Long") based on two independent criteria:
1. Percentage Band Deviation – Relative Index distance from 100 baseline
• Overvalued: Index > 100 × (1 + deviation%), default +5%
• Undervalued: Index < 100 × (1 - deviation%), default -5%
2. Z-Score Threshold – Statistical extremes in rolling lookback window
• Overvalued: Z-Score > +1.5 (default)
• Undervalued: Z-Score < -1.5 (default)
Either condition triggers a bias classification. This dual-filter approach captures both absolute deviations and relative extremes within recent historical context.
• Trend Confirmation (Ichimoku + Aroon)
To avoid counter-trend entries in strong momentum regimes, the suite integrates two independent trend filters:
Ichimoku Cloud
- Bull: Price > Cloud AND Conversion > Base Line
- Bear: Price < Cloud AND Conversion < Base Line
- Parameters: Conv(9), Base(26), Span B(52), Displacement(26)
Aroon Oscillator
- Bull: Aroon Up > 70 AND Aroon Down < 30
- Bear: Aroon Down > 70 AND Aroon Up < 30
- Default lookback: 25 periods
Trend is confirmed only when both indicators agree (Ichimoku + Aroon ≥ +1 for bull, ≤ -1 for bear).
• Setup Classification Logic
The framework combines Bias (fundamental valuation) with Trend (technical momentum) to generate four distinct setup types:
- Long↗︎ (Setup = 1) – Undervalued + Bullish Trend
Context : Mean reversion opportunity with momentum confirmation. Currency trading at fundamental discount while technical trend supports upside.
- Short↘︎ (Setup = -1) – Overvalued + Bearish Trend
Context : Mean reversion opportunity with momentum confirmation. Currency trading at fundamental premium while technical trend supports downside.
- Watch (Setup = 2) – Valuation bias present, but no clear trend
Context : Fundamental mispricing without directional conviction. Monitor for trend emergence before entering.
- Conflict (Setup = 3) – Bias and trend pointing opposite directions
Context : Overvalued currency in uptrend OR undervalued currency in downtrend. Avoid—either trend continuation or valuation mean reversion, but unclear which dominates.
• Confidence Score (0-100%)
Each setup receives a quantitative confidence weighting based on three factors:
1. Band Distance (40%) – How far the Relative Index deviates from 100 baseline
2. Z-Score Magnitude (40%) – Statistical extremeness within lookback window
3. Trend Confluence (20%) – Agreement between Ichimoku and Aroon signals
Score interpretation:
- 70-100% = High confidence (both valuation and trend extremes aligned)
- 40-69% = Moderate confidence (one factor strong, others weak)
- 0-39% = Low confidence (marginal signals, questionable reliability)
═══════════════════════════════════════════════════════════════════════════════
VISUAL COMPONENTS
═══════════════════════════════════════════════════════════════════════════════
• Dashboard Table (Top-Right)
Displays real-time valuation metrics for all seven major pairs:
Column 1: Pair – Currency pair identifier
Column 2: RelIdx – Relative Index (100 = baseline at first valid bar)
Column 3: Z – Z-Score vs. rolling lookback window
Column 4: Bias – Long/Short/Neutral valuation classification
Column 5: Trend – ↑/↓/– trend direction (Ichimoku + Aroon)
Column 6: Setup – Long↗︎/Short↘︎/Watch/Conflict (color-coded)
Column 7: Conf – Confidence score 0-100% (color-coded)
Column 8: Quelle – REER (inflation-adjusted) or NEER (nominal only)
Color coding :
- Green = Long↗︎ setup
- Red = Short↘︎ setup
- Orange = Watch (no trend)
- Purple = Conflict (bias/trend divergence)
• Optional Chart Plot
Select any of the seven pairs to plot its Relative Index on the chart with:
- Baseline at 100 (horizontal gray line)
- +Band at 100 × (1 + deviation%), dashed red
- -Band at 100 × (1 - deviation%), dashed green
- Aqua line tracking the selected pair's Relative Index evolution
• Signal Labels
When a pair transitions into Long↗︎ or Short↘︎ setup:
- Green label below bar = Long↗︎ entry signal
- Red label above bar = Short↘︎ entry signal
- Positioned using ATR offset for visibility
═══════════════════════════════════════════════════════════════════════════════
KEY FEATURES
═══════════════════════════════════════════════════════════════════════════════
- Institutional valuation methodology – REER/NEER framework used by central banks and sovereign wealth funds
- Macro-fundamental integration – CPI inflation differentials adjust for purchasing power parity
- Multi-timeframe flexibility – Daily (D), Weekly (W), Monthly (M) resolution options
- Seven simultaneous pairs – Monitors all G7 FX majors in single unified dashboard
- No repainting – All signals confirm on bar close
- Automated alerts – TradingView notifications when setups transition (Long/Short triggers)
- Confidence weighting – Quantitative scoring allows position sizing calibration
- Fallback logic – Automatically switches to NEER if CPI data incomplete
═══════════════════════════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════════════════════════
1. Apply to any chart – The indicator pulls multi-security data; chart symbol does not matter (commonly applied to SPY or DXY for reference)
2. Select data feed – Default FX: (TradingView composite) is recommended; alternatives: OANDA, FXCM, FOREXCOM
3. Choose timeframe :
• Daily (D) = Swing trading, medium-term mean reversion (2-8 week horizons)
• Weekly (W) = Position trading, macro regime shifts (1-6 month horizons)
• Monthly (M) = Strategic allocation, long-term equilibrium analysis (6-24 month horizons)
4. Configure parameters :
• Z-Score Lookback : Default 252 (one trading year on Daily); adjust for timeframe (52 for Weekly, 36 for Monthly)
• Deviation Band : Default ±5%; tighten to ±3% for more signals, widen to ±7% for higher conviction
• Z-Threshold : Default ±1.5; increase to ±2.0 for extreme-only signals
5. Monitor dashboard table :
• Focus on pairs showing Long↗︎ or Short↘︎ setups with Conf ≥ 70%
• Watch for Watch setups transitioning to directional signals
• Avoid Conflict setups unless you have strong macro conviction
6. Execute mean-reversion trades :
• Long↗︎ = Buy undervalued currency (e.g., EURUSD Long if EUR undervalued)
• Short↘︎ = Sell overvalued currency (e.g., USDJPY Short if JPY overvalued)
• Target: Mean reversion toward 100 baseline or opposite band
7. Position sizing by confidence :
• High confidence (70-100%) → Standard position size
• Moderate confidence (40-69%) → Reduce size by 50%
• Low confidence (<40%) → Avoid or use minimal pilot size
8. Risk management :
• Stop loss: Place beyond recent swing high/low or 1.5× ATR
• Take profit: Opposite valuation band or 100 baseline
• Time stop: Exit if setup reverses (Long→Neutral→Short or vice versa)
═══════════════════════════════════════════════════════════════════════════════
LIMITATIONS
═══════════════════════════════════════════════════════════════════════════════
- CPI data lag – Consumer Price Index releases are monthly and report with 2-4 week delay. REER calculations may lag real-time inflation dynamics.
- Structural shifts ignored – The baseline (100) is set at first valid bar. Long-term structural appreciation/depreciation (e.g., 20-year USD bull market) is not accounted for. Suitable for cyclical mean reversion, not secular trend analysis.
- Equal-weighting assumption – All seven currencies are equally weighted in basket construction. Actual trade-weighted indices use GDP or trade volume weights, which this framework simplifies.
- No emerging market currencies – Limited to G7 majors (USD, EUR, JPY, GBP, CHF, AUD, CAD, NZD). Does not cover EM FX (e.g., CNY, BRL, MXN).
- Technical filter limitations – Ichimoku and Aroon are lagging indicators. In fast-moving markets (e.g., central bank interventions, geopolitical shocks), trend signals may arrive late.
- Mean reversion assumption – The framework assumes currencies revert to equilibrium. During regime changes (e.g., monetary policy divergence, crisis flows), deviations can persist or expand before eventual reversal.
═══════════════════════════════════════════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════════════════════════════════════════
- Pine Script v6
- Non-repainting (signals confirmed on bar close)
- Multi-security data feeds (7 FX pairs + 8 CPI series)
- Automated alert system (transitions to Long↗︎/Short↘︎)
- Real-time dashboard table (8 columns × 8 rows)
- Maximum 500 labels supported (100 per pair direction)
- Fallback logic: NEER used if CPI data unavailable
═══════════════════════════════════════════════════════════════════════════════
NOTES
═══════════════════════════════════════════════════════════════════════════════
This indicator is designed for experienced FX traders, macro strategists, and portfolio managers familiar with:
- Real and nominal effective exchange rate concepts
- Purchasing power parity theory and inflation differentials
- Multi-currency portfolio construction and basket hedging
- Carry trade and convergence strategies
- Central bank policy impacts on FX equilibrium levels
The framework provides objective valuation signals but does not account for:
- Interest rate differentials (carry)
- Capital flow dynamics (risk-on/risk-off)
- Central bank intervention zones
- Geopolitical risk premiums
Always combine REER/NEER valuation analysis with macro event calendars, positioning data (CFTC COT reports), and fundamental policy divergence assessments.
═══════════════════════════════════════════════════════════════════════════════
Developed for institutional FX valuation analysis based on central bank REER/NEER methodologies.
Oscillatori
RSI Multi Levels kiawosch [TradingFinder] 7-14-42 Consolidation🔵 Introduction
The Relative Strength Index or RSI is a tool used to measure the speed and intensity of price movement, oscillating between zero and one hundred. It is commonly applied to identify strength or weakness in market momentum across different time intervals. Despite its simple formula and wide usage, the behavior of RSI within specific ranges often provides more precise information than traditional overbought and oversold levels.
The Multi RSI layout displays three RSI values with periods 7, 14 and 42. The seven period RSI plays the primary role in short term analysis. When this value enters predefined ranges, it shows highly consistent and interpretable behavior that can signal trend continuation, corrections or the start of a range structure. The other two values, RSI 14 and RSI 42, help reveal higher timeframe momentum and provide context for the depth and quality of price movement.
Three potential zones are defined, each representing a behavioral range. The position zones forms the basis for signal interpretation :
High Potential : 78 to 85 & 22 to 15
Mid Potential : 70 to 78 & 30 to 22
Low Potential : 58 to 62 & 42 to 38
These zones highlight areas where RSI reacts in specific ways to price movement. Entering the High Potential range usually aligns with new highs or lows in price and often precedes continuation after a correction. In contrast, reactions inside the Mid Potential range frequently appear during clean ranges or channel structures. This approach focuses on momentum quality and structural behavior rather than classic overbought and oversold thresholds.
In summary, the logic behind the signals follows three principles :
Trend continuation, When RSI 7 enters the High Potential zone and price prints a new high or low, continuation after a correction becomes the most likely outcome.
Reversal or slowdown, When RSI exits the High Potential zone while price is reaching a previous high or low, the probability of a short term reversal increases.
Range behavior, In clean ranges or channel structures, RSI 7 typically reacts inside the Mid Potential zone and produces consistent swing responses.
🔵 How to Use
This method is based on observing the repeating behavior of RSI within momentum zones and identifying moments when price continues after a shallow correction or, conversely, when signs of slowing and reversal appear. RSI 7 plays the main role since it gives the most sensitive response to short term price changes. Its entry into or exit from a potential zone, combined with the position of price relative to recent highs and lows, forms the core of the signal logic. RSI 14 and RSI 42 provide higher timeframe confirmation and help evaluate the broader strength or weakness behind each movement.
🟣 Trend continuation after entering the High Potential zone
When RSI 7 reaches the High Potential zone while price forms a new high or low, the probability of continuation becomes very high. The typical sequence includes a short correction in price and a retreat of RSI toward the Mid Potential zone. As long as price structure remains intact and RSI turns upward again, continuation becomes the most likely scenario. As shown in the charts, price often expands strongly after this type of correction and breaks the previous high.
🟣 Reversal or slowdown after exiting the High Potential zone
If RSI 7 enters the High Potential zone but then exits while price is interacting with a previous high or low, conditions for a short term reversal appear. This behavior is clear in the charts, where price hits a supply or demand area and RSI can no longer return to the upper zone. The drop in RSI reflects weakening momentum and, when accompanied by a confirming candle, increases the chance of a reversal or at least a temporary pause.
🟣 Strong reversal after hitting the Mid Potential zone during deeper corrections
Sometimes price enters a deeper corrective phase and RSI 7 moves into or through the Mid Potential zone. When this occurs near a previous low, it can mark the start of a significant reversal. The charts show this pattern clearly, where RSI turns upward while price reacts to support. If the other RSI values show relative alignment, the probability of a strong rebound increases. This signal is often seen after fast declines and can mark the beginning of a recovery wave.
🟣 Range structure and repetitive reactions inside the Mid Potential zone
When price enters a clean range or channel, the behavior of RSI 7 changes completely. In such conditions, RSI repeatedly reacts inside the Mid Potential zone. Each time price touches the upper or lower boundary of the range, RSI approaches the upper or lower part of this zone as well. The result is a sequence of predictable swing reactions, perfectly suitable for mean reversion strategies. Breakouts in these environments also tend to show higher failure rates.
🟣 Sharp reactions and fast reversals at extreme levels (RSI near 90 or below 10)
Although this approach is not based on classic overbought and oversold logic, extremely high or low RSI readings such as ninety often produce strong immediate reactions in price. These conditions usually occur after sudden spikes or emotional breakouts. As visible in the charts, RSI collapses quickly after reaching such extremes and price often reverses sharply. While not a core signal, these moments add meaningful context to momentum interpretation.
🔵 Settings
RSI Setting : This section allows enabling or disabling the three RSI values, adjusting their calculation length and customizing their colors. It is designed to help separate short, medium and longer term momentum visually on the chart.
Zones Setting : This section controls the display of momentum zones and the color applied to each area. Adjusting these colors or toggling them on and off helps the trader visually track the intensity and structure of momentum.
Levels Setting : This section allows editing the numeric boundaries of the levels or showing and hiding each one individually. These levels form the visual framework for interpreting RSI behavior within the defined momentum zones.
🔵 Conclusion
Examining RSI behavior across different momentum zones shows that entering these ranges creates relatively consistent patterns in price movement. Reaching the High Potential zone often corresponds to later stages of a trend, where price has the strength to continue after a brief correction and structure remains intact. In contrast, reactions within the Mid Potential zone occur more frequently when the market transitions into a range or a limited movement phase, where repetitive oscillations dominate.
Overall, observing RSI inside these zones helps distinguish between trending movement, corrective phases and range conditions with greater clarity. Entry or exit from each zone provides insight into the underlying strength or weakness of momentum and reveals where the market is positioned within its movement cycle. This perspective, based on momentum regions rather than traditional values alone, offers a more refined understanding of price behavior and highlights the likely direction of the next move.
macd rsi tunTitle:
Quantum Flow - Clean Momentum & Pattern Signals
Description:
A minimalist trend signal indicator designed purely for practical trading.
How it works:
Core Logic: Combines Momentum crossovers with Engulfing Candle patterns to identify potential reversals.
Clean Display: No messy lines. It only displays simple text signals ("多" for Long, "空" for Short) at key pivot points.
Filtering: Includes an optional RSI filter to improve signal probability and reduce noise.
Extras: Supports Bar Coloring and fully functional Alerts.
Designed specifically for traders who prefer a clean, uncluttered chart.
Note: This is not financial advice. Please test thoroughly in a demo account before live use.
智能趋势-多周期动态信号 Smart Trend Oscillator MTF V1🚀 智能趋势-多周期动态信号 Smart Trend Oscillator MTF V1
—— 让交易像红绿灯一样简单直观 | Making Trading as Simple as Traffic Lights
告别复杂的参数设置,把市场噪音变成明确的信号。 Say goodbye to complex parameters. Turn market noise into clear signals.
🌟 它是做什么的? / What Does It Do?
“智能趋势管家” 就像您的私人交易副驾驶。它内置了一套先进的智能平滑算法,能够自动过滤掉市场中那些骗人的假动作,只把最核心的**“市场真实韵律”通过一条平滑的波浪线展示给您。它不只是一根线,它是一套会思考的系统**。
"Smart Trend Oscillator " is like your personal trading co-pilot. It features a built-in advanced smoothing algorithm that automatically filters out deceptive market "fake-outs," revealing the "true rhythm" of the market through a single, smooth wave. It’s not just a line; it’s a thinking system.
🔥 核心功能 / Core Features
1. 🌊 智能波浪引擎 / Smart Wave Engine
不要被K线的上蹿下跳迷惑。我们的引擎能识别市场内部的真实能量。 Don't be confused by erratic candlesticks. Our engine identifies the true internal energy of the market.
过滤噪音 (Filter Noise):自动忽略短暂的随机波动。
捕捉趋势 (Capture Trends):波浪上升代表买方主导,波浪下降代表卖方主导。
2. 🛡️ 自适应波动通道 / Adaptive Channels
市场有时候像乌龟(波动小),有时候像兔子(波动大)。指标拥有一个“弹性通道”,它会根据市场活跃度自动变宽或变窄,精准判断价格是否“过热”或“超卖”。 The market moves between low and high volatility. The indicator features an "elastic channel" that automatically widens or narrows, accurately judging if the price is "Overheated" or "Oversold."
3. 🌍 全局监控面板 / Global Dashboard
右上角的面板是您的战况指挥室。一眼看懂 6 个不同时间维度的状态。全绿代表多周期共振向上,全红代表多周期共振向下。 The panel in the top-right corner is your Command Center. Understand the status of 6 different time dimensions at a glance. All Green means upward resonance; All Red means downward resonance.
⚙️ 极致的个性化定制 / Ultimate Customization
v16 版本为您提供了前所未有的控制权,让指标完全适应您的交易风格。 Version 16 gives you unprecedented control to tailor the indicator to your trading style.
🕒 1. 时间周期,由你定义 (Customizable Timeframes)
不再局限于系统默认设置。您可以在设置面板中自由输入 6 个您最关心的周期(例如:5分钟、1小时、甚至 3天)。
短线手:设置为 1分/3分/5分/15分...
波段手:设置为 1小时/4小时/日线/周线...
Benefit: You can freely input the 6 timeframes that matter most to you in the settings panel, whether you are a scalper or a swing trader.
🎯 2. 灵敏度调节 (Adjustable Sensitivity)
想要更多交易机会?还是想要更稳健的信号?
高灵敏度:调高 Zone Sensitivity,捕捉每一次微小的回调(适合激进风格)。
低灵敏度:调低数值,过滤掉小波动,只抓大趋势(适合稳健风格)。
Benefit: Dial up the sensitivity to catch every minor pullback (Aggressive), or dial it down to filter noise and catch only big trends (Conservative).
📊 3. 两种平滑模式 (SMA vs. VWMA)
您可以选择通道的计算核心:
Standard (SMA):经典模式,适合大多数市场。
Volume Weighted (VWMA):成交量加权模式。在加密货币或股票市场,它能帮您过滤掉“无量空涨”或“无量空跌”的假信号。
Benefit: Choose Standard (SMA) for general markets, or Volume Weighted (VWMA) to filter out fake moves on low volume (great for Crypto/Stocks).
🚦 信号含义 / Signals Guide
我们把复杂的逻辑浓缩成了最简单的视觉标签: We have condensed complex logic into the simplest visual labels:
🟢 绿色 BUY 标签:市场“便宜”且能量向上。 (Market is "Cheap" & Energy is Up.)
🔴 红色 SELL 标签:市场“过热”且能量向下。 (Market is "Overheated" & Energy is Down.)
🔵 蓝色 HOLD 标签:趋势延续中,建议持仓。 (Trend is continuing, suggest holding position.)
📥 快速上手 / Quick Start
加载指标 (Load):添加到您的图表。
设置周期 (Set Timeframes):在输入选项里填入您习惯查看的 6 个时间周期。
选择模式 (Choose Mode):如果是成交量重要的资产,建议开启 VWMA 模式。
等信号 (Wait):等待带方框的 BUY 或 SELL 标签出现。
把复杂留给算法,把简单留给您。 Leave the complexity to the algorithms, and keep the simplicity for yourself.
主流币种中长线趋势系统This script is a comprehensive trading system designed for medium-to-long-term analysis of mainstream assets. It combines custom volatility algorithms, trend momentum filters, and market structure analysis to identify high-probability reversal points (Tops/Bottoms) and trend-following entry opportunities.
It eliminates market noise and provides clear visual signals, making it suitable for traders looking to capture major market swings without staring at the screen 24/7.
这是一个专为主流资产中长线交易设计的综合分析系统。它融合了自定义的波动率算法、趋势动量过滤器以及市场结构分析,旨在识别高胜率的趋势反转点(顶/底)以及右侧顺势入场机会。
本系统有效过滤了市场噪音,提供清晰的视觉信号,非常适合希望捕捉市场主升浪/主跌浪的交易者。
How to Use / 信号使用说明
The system provides three layers of information: Reversal Warnings, Trend Confirmations, and Key Levels.
本系统提供三个维度的信息:反转预警、趋势确认、关键位结构。
1. Reversal Signals (Top & Bottom) / 顶底反转信号
These signals appear when the market is overheated or oversold based on our proprietary composite algorithm.
这些信号出现在市场极度贪婪或恐慌的时刻,基于独家的复合算法计算得出。
"底" (Bottom) Label (Green): Indicates a potential market bottom or accumulation zone. It suggests that downside momentum is exhausted.
"底"(绿色标签): 提示潜在的市场底部或吸筹区,意味着下跌动能衰竭,是左侧关注买入机会的参考。
"顶" (Top) Label (Red): Indicates a potential market top or distribution zone. It suggests that upside momentum is unsustainable.
"顶"(红色标签): 提示潜在的市场顶部或派发区,意味着上涨动能不可持续,是左侧止盈或减仓的参考。
2. Trend Entry Signals (Circles) / 趋势入场信号 (圆点)
These signals are generated only when the trend direction is confirmed and multiple filters align.
只有在趋势方向明确,且多个动量过滤器发生共振时,才会触发此类信号。
Green Circle: Confirmed Long entry. Best used when price action breaks out of consolidation or resumes an uptrend.
绿色圆点: 确认的多头入场信号。通常在价格突破盘整或上升趋势延续时出现,适合右侧顺势交易。
Red Circle: Confirmed Short entry. Indicates the start or continuation of a bearish trend.
红色圆点: 确认的空头入场信号。预示着下跌趋势的开始或延续。
3. Market Structure (Boxes & Lines) / 市场结构 (方框与线条)
Boxes: These represent institutional Order Blocks (Support/Resistance zones).
方框: 代表机构的关键订单块区域(强支撑/压力区)。
Lines: These visualize Break of Structure (BOS) or Change of Character (CHoCH), helping you understand the current market phase.
线条: 可视化显示市场结构的破坏与反转,帮助你判断当前是处于上涨结构还是下跌结构中。
Settings & Optimization / 设置与优化
Signal Mode (辅助提示模式):
Conservative (保守模式): Fewer signals, higher precision. Best for risk-averse traders.
Balanced (平衡模式): Default setting, balanced between frequency and accuracy.
Aggressive/Demon (激进/恶魔模式): More signals, captures smaller swings but with more noise.
Trade Mode (交易模式): You can choose to display signals for "Both Sides", "Long Only", or "Short Only" to fit your strategy.
Alerts / 警报系统
The script supports real-time alerts. When a signal is triggered, the alert message will also intelligently calculate and include the nearest Pressure (Resistance) and Support price levels based on current market structure.
脚本支持实时警报。当信号触发时,警报消息还会智能计算并附带当前最近的压力位和支撑位价格,方便挂单。
此版本有效期至2026年1月
Disclaimer / 免责声明
This script is for educational and analytical purposes only. Past performance does not guarantee future results. Please manage your risk strictly.
本脚本仅供教育和分析使用。过往表现不代表未来结果。请严格管理您的风险。
TDI Fibonacci Volatility Bands Candle Coloring [cryptalent]"This is an advanced Traders Dynamic Index (TDI) candle coloring system, designed for traders seeking precise dynamic analysis. Unlike traditional TDI, which typically relies on a 50 midline with a single standard deviation band (±1 SD), this indicator innovatively incorporates Fibonacci golden ratio multiples (1.618, 2.618, 3.618 times standard deviation) to create multi-layered dynamic bands. It precisely divides the RSI fast line (green line) position into five distinct strength zones, instantly reflecting them on the candle colors, allowing you to grasp market sentiment in real-time without switching to a sub-chart.
Core Calculation Logic:
RSI Period (default 20), Band Length (default 50), and Fast MA Smoothing Period (default 1) are all adjustable.
The midline is the Simple Moving Average (SMA) of RSI, with upper and lower bands calculated by multiplying Fibonacci multiples with Standard Deviation (STDEV), generating three dynamic band sets: 1.618, 2.618, and 3.618.
Traders can quickly identify the following scenarios:
Extreme Overbought Zone (Strong Bullish, Red): Fast line exceeds custom threshold (default 82) and breaks above the specified band (default 2.618). This often signals overheating, potentially a profit-taking point or reversal short entry, especially at trend tops.
Extreme Oversold Zone (Strong Bearish, Green): Fast line drops below custom threshold (default 28) and breaks below the specified band (default 2.618). This is a potential strong rebound starting point, ideal for bottom-fishing or long entries.
Medium Bullish Zone (Yellow): Fast line surpasses medium threshold (default 66) and stands above the specified band (default 1.618), indicating bullish dominance in trend continuation.
Medium Bearish Zone (Orange): Fast line falls below medium threshold (default 33) and breaks below the specified band (default 1.618), signaling bearish control in segment transitions.
Neutral Zone (No Color Change): Fast line within custom upper and lower limits (default 34~65), retaining original candle colors to avoid noise interference during consolidation.
Color priority logic flows from strong to weak (Extreme > Medium > Neutral), ensuring no conflicts. All parameters are highly customizable, including thresholds, band selections (1.618/2.618/3.618/Midline/None), color schemes, and even optional semi-transparent background coloring (default off, transparency 90%) for enhanced visual layering.
Applicable Scenarios:
Intraday Trading: Capture extreme color shifts as entry/exit signals.
Swing Trading: Use medium colors to confirm trend extensions.
Long-Term Trend Following: Filter noise in neutral zones to focus on major trends.
Supports various markets like forex, stocks, and cryptocurrencies. After installation, adjust parameters in settings to match your strategy, and combine with other indicators like moving averages or support/resistance for improved accuracy.
If you're a TDI enthusiast, this will make your trading more intuitive and efficient!
Multi RSI [TradingLaWea]This is my multiple RSI indicator, you can use 3 RSI in one indicator. Enjoy it. @TradingLaWea
Disoxis Capital Club📊 Strategy B✅This indicator has been exclusively developed for Disoxis Capital Club members, combining advanced volume-weighted analytics with institutional trading concepts.
The indicator automatically resets at the start of each trading session and uses volume-weighted statistical calculations to ensure accuracy that aligns with professional trading platforms. All visual elements, including customizable color schemes and line styles, have been optimized for clarity and real-time decision-making. Designed specifically for active intraday traders within the Disoxis Capital Club community, this indicator incorporates time-based filtering capabilities and session-specific analytics to help identify high-probability trading opportunities.
The tool displays key institutional levels through clean visual representation, making it easier to recognize market behavior around volume-weighted price zones. Whether you're analyzing futures, forex, or equity markets, this indicator provides the technical foundation needed to align your trading with smart money movements and institutional order flow patterns.
Bollinger Bands + VWAP + 4-State MACD BackgroundBollinger Bands + VWAP + 4-State MACD Background
An all-in-one technical analysis indicator combining three proven tools with an intelligent momentum-based background visualization system.
📊 FEATURES
Bollinger Bands
Standard Bollinger Bands implementation with full customization options:
Adjustable period length (default: 20)
Multiple moving average types: SMA, EMA, SMMA (RMA), WMA, VWMA
Configurable standard deviation multiplier (default: 2.0)
Visual fill between bands to highlight volatility zones
Offset capability for forward/backward display
Session VWAP (Volume Weighted Average Price)
Automatically resets at the start of each trading session:
Calculates true volume-weighted average price
Resets daily to provide fresh reference levels
Customizable source input (default: HLC3)
Adjustable line appearance (color and width)
Can be toggled on/off as needed
4-State MACD Background System
This is the unique feature of this indicator. The chart background dynamically changes based on MACD momentum analysis, providing instant visual feedback on trend strength and direction:
🟢 Strong Bullish (Bright Green)
MACD line is above signal line
Histogram is growing (momentum accelerating upward)
Indicates strong upward momentum
🟢 Weak Bullish (Pale Green)
MACD line is above signal line
Histogram is shrinking (momentum decelerating)
Early warning signal that uptrend may be weakening
🔴 Strong Bearish (Bright Red)
MACD line is below signal line
Histogram is falling (momentum accelerating downward)
Indicates strong downward momentum
🔴 Weak Bearish (Pale Red)
MACD line is below signal line
Histogram is rising (momentum decelerating)
Early warning signal that downtrend may be weakening
🎯 HOW TO USE
For Trend Trading:
Strong colored backgrounds indicate confirmed momentum in that direction - consider staying with the trend
Weak colored backgrounds signal potential momentum exhaustion - watch for possible reversals
Use VWAP as a dynamic support/resistance level
Bollinger Band breakouts combined with strong MACD backgrounds can confirm trend strength
Price above VWAP + strong bullish background = bullish bias
Price below VWAP + strong bearish background = bearish bias
For Mean Reversion:
Price touching upper/lower Bollinger Bands with weak MACD background may suggest potential reversal
VWAP acts as a mean reversion anchor during range-bound sessions
Background color shifts from strong to weak often precede price direction changes
Look for price return to VWAP when extended beyond bands with weakening momentum
Signal Confirmation:
Strongest signals occur when multiple indicators align:
BB breakout + MACD strong color + price above/below VWAP
Price rejection at BB bands + MACD color weakening
VWAP support/resistance hold + MACD color change
⚙️ SETTINGS
All components are fully customizable through organized input groups:
Bollinger Bands Group:
Period length
Moving average type (SMA/EMA/SMMA/WMA/VWMA)
Source (close/open/high/low/etc.)
Standard deviation multiplier
Offset
VWAP Group:
Toggle show/hide
Source calculation method
Line color
Line width
MACD Group:
Toggle background on/off
Fast length (default: 12)
Slow length (default: 26)
Signal length (default: 9)
Source
Four separate color settings for each momentum state
All colors include transparency controls
💡 EDUCATIONAL VALUE
This indicator teaches important concepts:
How volatility (Bollinger Bands) relates to price movement
The importance of volume-weighted pricing (VWAP)
Momentum analysis through MACD
How combining multiple timeframes and indicators can provide confluence
The difference between trend strength and trend direction
⚠️ IMPORTANT NOTES
This indicator is for educational and informational purposes only
No indicator is perfect - always use proper risk management
Past performance does not guarantee future results
Combine with your own analysis and risk tolerance
Test thoroughly on historical data before live trading
This is not financial advice - use at your own risk
🔧 TECHNICAL DETAILS
Pine Script Version 6
Overlay indicator (displays on price chart)
All calculations use standard, well-documented formulas
Minimal lag due to efficient coding
Compatible with all timeframes and instruments
No repainting - all signals are confirmed on bar close
📝 CHANGELOG
Version 1.0
Initial release
Bollinger Bands with multiple MA types
Session VWAP with daily reset
4-state MACD background system
Full customization options
Developed for traders who want multiple confirmation signals in a clean, organized format without cluttering their charts with separate indicator panels.
TT - Dynamic MTF Supertrend OscillatorThis is an Oscillator version of my Ultimate Filtered Supertrend Indicator. It gives MTF view of the current trend.
You can use Standard or Alternate calculations
For Standard Calculation use ATR length 10 and Factor of 3
For Alternate Calculation use ATR length of 4 and Factor of 1.
Try various options available and find what works best for you.
Use it along with my "TT - Ultimate Filtered Supertrend Indicator"
Note: This indicator is provided for informational and educational purpose only and should not be relied on for making financial decisions. Please consult with a qualified financial advisor for making investment decisions.
This indicator may have bugs.
Multi-Factor Volume & RSI Screener📊 Multi-Factor Volume & RSI Screener
What it Does: The Multi-Factor Volume & RSI Screener is a specialized dashboard designed for high-efficiency market analysis. It continuously scans up to 16 assets for high-probability setups, enabling traders to efficiently identify momentum and trend shifts without constant chart flipping.
Key Features & Customization:
Timeframe Flexibility: You can select any desired timeframe (e.g., 5-minute, 1-hour, 4-hour, etc.) for the scanner engine to base its calculations on, allowing it to adapt to various trading styles.
Custom Watchlist: The script allows you to configure and monitor a diversified portfolio of up to 15 assets alongside your current chart asset.
🔬 Proprietary Two-Tier Logic (Justifying Value): This closed-source indicator uses a unique, proprietary two-tier logic to generate filtered signals, providing original value by separating high-volume breakouts from pure trend flow:
✅ Tier 1: High-Confidence Signals (Volume Assets): For assets with reliable volume data (e.g., Stocks, Crypto), the script combines Relative Volume and RSI direction to identify high-momentum breakouts (labeled as BIG BUY or BIG SELL). This isolates movements that are statistically significant, providing cleaner entry points.
📈 Tier 2: Trend-Only Signals (Non-Volume Assets): For instruments lacking volume feeds (e.g., certain Forex pairs), the logic intelligently pivots to a purely RSI-based trend analysis to flag periods of strong directional movement (TREND UP or TREND DN), effectively separating trending markets from ranging chop.
Value to the Trader: This dual-logic system ensures comprehensive signal coverage regardless of the asset type. It allows the user to monitor a diversified portfolio of indices, FX, commodities, and stocks all from a single, organized table, thereby enhancing market breadth analysis.
Disclaimer: Trading involves substantial risk. All outputs are for informational and educational purposes only and are not financial advice.
0–14 DTE Volatility Screener (For Matt)ABOUT THIS SCRIPT – 0–14 DTE Volatility Screener
This indicator is designed to identify stocks and ETFs that are well-suited for short-dated options trading (0–14 days to expiration). Short-term options require the underlying ticker to exhibit sufficient realized volatility, consistent range, and clean trend structure to overcome rapid theta decay. This tool highlights instruments with the volatility characteristics needed to support high-quality intraday and short-term swing setups.
What the Indicator Measures
ATR % of Price (ATR%):
The script calculates ATR(14) and expresses it as a percentage of current price. This normalizes volatility across tickers of different price levels.
ATR% = (ATR / Close) × 100
Volatility Thresholds:
Two benchmark levels are plotted:
1.5% ATR → Minimum volatility required for 0–14 DTE setups
3.0% ATR → Preferred high-volatility zone for strong directional trades
Trend Bias (Internal Logic Only):
The script evaluates whether price is above or below the 20-EMA and 50-EMA.
Above both EMAs = long-biased context
Below both EMAs = short-biased context
(Displayed visually only if modifications are added.)
Optional IV Rank Filter:
A placeholder exists for IV Rank integration. If IV Rank data is available, the indicator can filter for environments where implied volatility is not too low or excessively inflated.
How to Interpret the Output
ATR% Line Below 1.5%:
The ticker lacks adequate range. Avoid 0–14 DTE trades unless a catalyst is imminent.
ATR% Between 1.5% and 3%:
Volatility is tradable but moderate. Suitable for structured setups and conservative premium deployment.
ATR% Above 3%:
High-quality volatility environment. The ticker is capable of large, directional moves that can support aggressive 0–14 DTE entries.
Background Highlighting (If Enabled):
The background turns on only when all volatility and IV conditions are satisfied, signaling a fully qualified short-dated options candidate.
Intended Use
This indicator is not a buy/sell signal. It is a volatility qualification tool that helps traders narrow their universe to symbols capable of producing meaningful intraday and multi-day moves. It is most effective when combined with:
Higher-time-frame trend analysis
Liquidity and spread evaluation
Catalyst awareness (earnings, news flow, macro events)
Summary
The 0–14 DTE Volatility Screener provides a normalized, objective measure of whether a ticker offers enough movement to justify short-dated options trading. It helps filter out low-range names and directs focus toward instruments with actionable volatility, cleaner structure, and meaningful opportunity.
Complete Workflow (Optimal)
Daily (1D) → Does the ticker qualify?
ATR ≥ 1.5% → tradeable
ATR ≥ 3% → high-quality
4H & 1H → HTF trend
Only allow trades in the direction of HTF structure
15m or 5m → Entry timing
Apex IndicatorThe Apex Indicator is a physics-based momentum tool designed to measure the 2nd Derivative (Acceleration) of both Price and Volume.
Unlike standard oscillators which often lag, this indicator uses Kinematics to identify the subtle shifts in momentum before price makes a major move. It answers the critical questions: Is the selling pressure fading? and Is there fresh fuel (Volume) entering to support a turn?
This script uses Hull Moving Average (HMA) smoothing for low-latency calculation, and Z-Score Normalization to force Price and Volume onto a shared, readable scale.
Visual Guide
The Histogram (Price Acceleration)
Bright Green: Strong Bullish Acceleration (High Velocity).
Dark Green: Developing Bullish Momentum (or Waning Bullishness depending on context).
Bright Red: Strong Bearish Acceleration (Panic/Dump).
Dark Red: Developing Bearish Momentum (or Waning Bearishness).
The Line (Volume Acceleration)
Yellow: Volume is accelerating (Interest is entering).
Purple: Volume is decelerating (Interest is leaving).
The Background Highlights
Green/Red Background: These mark Statistical Extremes (>1 Standard Deviation). While these show maximum power, they often mark the climax of a move rather than the start.
How to Trade: Reading the Subtleties
The power of the Apex Indicator is not in chasing the spikes, but in reading the Transitions.
1. The Turn (The Reversal Entry)
Don't wait for the explosion; look for the "braking" action.
The Setup: Price has been moving down strongly (Bright Red bars).
The Signal: The histogram shifts to Dark Red and begins moving up toward the zero line (less negative). This means the selling acceleration is dying.
The Trigger: A Dark Green bar prints, accompanied by the Volume Line turning Yellow/Rising.
Why it works: You are entering when the bearish energy is exhausted and fresh volume is stepping in to lift the price, often before the main breakout occurs.
2. The Second Wind (Trend Continuation)
The Setup: You are already in a trend (Green bars), but the bars fade to Dark Green or near Zero (a pullback or pause).
The Trigger: The next bar flips Bright Green and the Volume Line spikes Yellow.
Why it works: This confirms that the pause was just a breather, and buyers are stepping back on the gas.
3. The "Hollow Move" (Trap Avoidance)
The Scenario: Price is moving up (Green bars), but the Volume Line is Purple or dropping.
Interpretation: This is a drift, not a drive. Without volume acceleration support, these moves are prone to rapid reversal.
4. The Climax (Exits)
If the Background flashes Green (Alert Trigger), be aware that price acceleration has hit a statistical extreme (Z-Score > 1).
If you are in a position, this is often a good place to Take Profit, as maintaining that level of acceleration is mathematically difficult for the market to sustain.
Settings
Analysis Length (21): The lookback period for the HMA smoothing.
Normalization Lookback (21): The historical window used to calculate the Z-Score. A setting of 21 allows the indicator to self-adjust quickly to recent volatility conditions.
PEG RSI [Auto EPS Growth]The PEG RSI is a hybrid indicator that combines fundamental valuation with technical momentum. It applies the Relative Strength Index (RSI) directly to the Price/Earnings-to-Growth (PEG) Ratio.
Unlike traditional PEG indicators that require manual input for growth rates, this script automatically calculates the Compound Annual Growth Rate (CAGR) of Earnings Per Share (EPS) based on historical data.
Key Features
- Auto-Calculated Growth: Uses historical TTM Earnings Per Share (EPS) to calculate the CAGR over a user-defined period (Default: 4 years).
- Dynamic Valuation: Converts the static PEG ratio into an oscillator (RSI) to identify relative valuation extremes.
- Trend & Momentum: Visualizes the momentum of the PEG ratio relative to its own history.
Educational Case Study
This indicator is designed for educational purposes and research. Instead of relying on fixed overbought or oversold levels, users are encouraged to study the correlation between the PEG RSI and price action independently.
- Observe how the price reacts when the PEG RSI reaches upper or lower extremes.
- Different stocks may respect different RSI zones based on their growth stability.
- Use this tool to analyze how market valuation momentum shifts over time.
Settings:
- Years for CAGR Growth: Timeframe to calculate EPS growth (Default: 4 years).
- RSI Length: Lookback period for the RSI calculation (Default: 14).
Note: This indicator works best on stocks with a consistent history of earnings. It requires financial data to function (will not work on assets without EPS like Crypto or Forex).
RSS - Reversal Score System v3 [Rulph]OVERVIEW
(Russian version below)
The Reversal Score System v3 (RSS3) is a sophisticated multi-component indicator designed to identify potential market reversal zones by combining volatility pressure analysis, trend momentum measurement, and divergence detection. The system generates a normalized score ranging from -1 (bullish) to +1 (bearish), with visual cloud overlays highlighting high-probability reversal areas. RSS3 integrates multi-timeframe confirmation and adaptive divergence filtering to reduce false signals in strong trends.
CORE COMPONENTS
Volatility Pressure Index (VPI)
VPI measures volatility expansion and price compression by combining:
• RSI distance from neutral (50) to gauge momentum deviation
• Annualized volatility estimation (VIX-style) to detect stress
• Normalized candle range relative to historical volatility
• Bollinger Bands position for price extension analysis
Higher VPI values indicate overbought conditions with volatility pressure, while lower values suggest oversold compression with potential for reversal.
Trend Direction Force Index (TDFI)
TDFI quantifies directional momentum strength by analyzing:
• Divergence between fast (MMA) and slow (SMMA) moving averages
• Average momentum (impetus) between the two moving averages
• Normalized power-weighted trend force
Positive TDFI indicates strong uptrend momentum, negative values indicate downtrend force. Extreme values (>0.7 or <-0.7) trigger impulse signals.
Divergence Detection System
The indicator automatically detects classical and hidden divergences for both VPI and TDFI:
• Bullish divergences: price makes lower low while indicator makes higher low
• Bearish divergences: price makes higher high while indicator makes lower high
• Divergence bonus decays over time (customizable decay period)
• Amplitude-weighted strength multiplier
• Sequential divergence counter for confirmation
Multi-Timeframe Filter (MTF)
Optional higher timeframe analysis helps filter low-probability reversals:
• Off mode : No filtering applied
• Reduce mode : Lowers divergence bonus when counter-trend to HTF (30% reduction)
• Block mode : Completely hides divergence markers against strong HTF trend
MTF calculates VPI and TDFI on higher timeframe and blends scores based on MTF weight parameter.
FINAL SCORE CALCULATION
The final score combines:
Score = (VPI_weight × VPI) + (TDFI_weight × TDFI) - Bull_Div_Bonus + Bear_Div_Bonus
When MTF is enabled:
Final_Score = (1 - MTF_weight) × Base_Score + MTF_weight × MTF_Score
VISUAL FEATURES
Adaptive Score Clouds
Dynamic colored zones appear above/below price when reversal conditions strengthen:
• Green cloud below price : Bullish reversal zone (score < bullish threshold)
• Red cloud above price : Bearish reversal zone (score > bearish threshold)
• Cloud height : Proportional to signal strength (3× ATR maximum)
• Transparency : Decreases with stronger signals (90% weak → 50% strong)
• Threshold mode : Clouds appear only when thresholds exceeded
• Gradient mode : Clouds show accumulation from any score value
Divergence Markers
Triangle markers indicate detected divergences:
• Green/Lime triangles below price: Bullish divergences (lime = both VPI+TDFI)
• Red/Maroon triangles above price: Bearish divergences (maroon = both VPI+TDFI)
• Gray markers: Filtered divergences (when MTF filter is active)
• Offset by pivot lookback period for accuracy
Momentum Impulses
Optional arrow markers highlight strong momentum breakouts:
• Blue arrows down: Bearish momentum impulse
• Orange arrows up: Bullish momentum impulse
Info Table
Real-time statistics display in top-right corner:
• Current final score with color coding
• Individual VPI and TDFI values
• Active divergence bonuses (Bull/Short)
• MTF trend status (when enabled)
• Current filter mode
HOW TO USE
For Reversal Trading
1 — Wait for score to cross bullish threshold (<-0.5) for potential long entries or bearish threshold (>0.5) for shorts
2 — Confirm with divergence markers appearing simultaneously
3 — Look for cloud formation strengthening the signal
4 — Use MTF filter to avoid counter-trend trades
For Trend Continuation
• Impulse arrows indicate strong momentum continuation
• Use as confirmation when trading in direction of established trend
• MTF alignment provides additional confidence
For Multi-Timeframe Analysis
• Enable MTF filter and set higher timeframe (e.g., 4H on 1H chart, Daily on 4H chart)
• Use "Reduce" mode for conservative approach
• Use "Block" mode for strict trend alignment
PARAMETERS GUIDE
Score Group
• VPI Weight (0.5): Balance between volatility and trend components. Increase for volatility-focused signals.
• TDFI Weight (0.5): Balance between volatility and trend components. Increase for trend-focused signals.
• Divergence Bonus Max (0.3): Maximum contribution of divergences to score. Higher = stronger divergence impact.
Divergence Group
• Pivot Lookback (3): 2=aggressive/fast, 3=balanced, 5=conservative/slow
Multi TimeFrame Group
• Higher TF : Typically 4-16× current timeframe (e.g., 4H for 1H chart)
• MTF Weight (0.3): Influence of higher timeframe in final score
• Trend Filter Level (0.5): TDFI threshold defining "strong trend" on HTF
Visual Group
• Cloud Mode : Threshold (traditional) vs Gradient (continuous accumulation)
• Cloud Transparency : Base transparency for weak signals
Advanced Groups
Fine-tune indicator components for specific markets or timeframes. Default values work well for most assets. Increasing periods smooths signals but adds lag; decreasing periods increases sensitivity but may cause noise.
ALERTS
Six alert conditions available:
• Bullish Zone: Score crosses below bullish threshold
• Bearish Zone: Score crosses above bearish threshold
• Strong Bull Div: Both VPI+TDFI show bullish divergence (unfiltered)
• Strong Bear Div: Both VPI+TDFI show bearish divergence (unfiltered)
• Down Impulse: Bearish momentum breakout
• Up Impulse: Bullish momentum breakout
NOTES
• Works on all timeframes and asset classes (crypto, forex, stocks, indices)
• Best results on liquid markets with clear trend/reversal cycles
• Combine with price action, support/resistance, and risk management
• Divergences work best in ranging or weakening trend conditions
• Not a standalone trading system - use as confirmation tool
LIMITATIONS
• Like all indicators, RSS3 can generate false signals in choppy/sideways markets
• Divergence detection requires sufficient historical data (minimum 50-100 bars)
• MTF filter may reduce signal frequency significantly in "Block" mode
• Advanced parameters require understanding of underlying calculations
DISCLAIMER
This indicator is provided for informational and educational purposes only and does not constitute financial, investment, or trading advice. All trading involves risk, and past performance does not guarantee future results. Users are solely responsible for their own trading decisions and should conduct their own research or consult with a qualified financial advisor before making any investment decisions. The author assumes no liability for any losses incurred through the use of this indicator.
═════════════════════════════════════════════════════════════════════════
© Rulph - Reversal Score System v3
ОБЗОР
Reversal Score System v3 (RSS3) — это многокомпонентный индикатор для выявления зон потенциального разворота рынка, объединяющий анализ давления волатильности, измерение силы тренда и обнаружение дивергенций. Система генерирует нормализованный скор от -1 (бычий) до +1 (медвежий) с визуальными облаками, выделяющими зоны высокой вероятности разворота. RSS3 интегрирует подтверждение с высшего таймфрейма и адаптивную фильтрацию дивергенций для снижения ложных сигналов в сильных трендах.
ОСНОВНЫЕ КОМПОНЕНТЫ
Индекс давления волатильности (VPI)
VPI измеряет расширение волатильности и ценовое сжатие, комбинируя:
• Отклонение RSI от нейтрального уровня (50) для оценки моментума
• Оценку годовой волатильности (VIX) для определения стресса
• Нормализованный диапазон свечей относительно исторической волатильности
• Положение относительно полос Боллинджера для анализа растяжения цены
Высокие значения VPI указывают на перекупленность с давлением волатильности, низкие значения — на перепроданность со сжатием и потенциалом разворота.
Индекс силы направления тренда (TDFI)
TDFI количественно оценивает силу направленного моментума через анализ:
• Расхождения между быстрой (MMA) и медленной (SMMA) скользящими средними
• Среднего моментума (импульса) между двумя скользящими
• Нормализованной силы тренда с весовым коэффициентом
Положительный TDFI указывает на сильный восходящий моментум, отрицательные значения — на нисходящую силу. Экстремальные значения (>0.7 или <-0.7) вызывают импульсные сигналы.
Система обнаружения дивергенций
Индикатор автоматически обнаруживает классические и скрытые дивергенции для VPI и TDFI:
• Бычьи дивергенции: цена формирует более низкий минимум, индикатор — более высокий минимум
• Медвежьи дивергенции: цена формирует более высокий максимум, индикатор — более низкий максимум
• Бонус дивергенции затухает со временем (настраиваемый период затухания)
• Множитель силы, взвешенный по амплитуде
• Счётчик последовательных дивергенций для подтверждения
Мультитаймфреймовый фильтр (MTF)
Опциональный анализ высшего таймфрейма помогает отфильтровать развороты с низкой вероятностью:
• Режим Off : Фильтрация не применяется
• Режим Reduce : Снижает бонус дивергенции при контр-тренде к HTF (на 30%)
• Режим Block : Полностью скрывает маркеры дивергенций против сильного тренда HTF
MTF рассчитывает VPI и TDFI на высшем таймфрейме и смешивает скоры на основе параметра MTF weight.
РАСЧЁТ ФИНАЛЬНОГО СКОРА
Финальный скор объединяет:
Скор = (Вес_VPI × VPI) + (Вес_TDFI × TDFI) - Бонус_бычьей_див + Бонус_медвежьей_див
При включённом MTF:
Финальный_скор = (1 - Вес_MTF) × Базовый_скор + Вес_MTF × MTF_скор
ВИЗУАЛЬНЫЕ ФУНКЦИИ
Адаптивные облака скора
Динамические цветные зоны появляются выше/ниже цены при усилении условий разворота:
• Зелёное облако под ценой : Бычья зона разворота (скор < бычьего порога)
• Красное облако над ценой : Медвежья зона разворота (скор > медвежьего порога)
• Высота облака : Пропорциональна силе сигнала (максимум 3× ATR)
• Прозрачность : Уменьшается при усилении сигнала (90% слабый → 50% сильный)
• Режим Threshold : Облака появляются только при превышении порогов
• Режим Gradient : Облака показывают накопление от любого значения скора
Маркеры дивергенций
Треугольные маркеры указывают на обнаруженные дивергенции:
• Зелёные/лаймовые треугольники под ценой: Бычьи дивергенции (лайм = обе VPI+TDFI)
• Красные/бордовые треугольники над ценой: Медвежьи дивергенции (бордо = обе VPI+TDFI)
• Серые маркеры: Отфильтрованные дивергенции (когда активен MTF-фильтр)
• Смещение на период pivot lookback для точности
Импульсы моментума
Опциональные стрелки выделяют сильные импульсные прорывы:
• Синие стрелки вниз: Медвежий импульс моментума
• Оранжевые стрелки вверх: Бычий импульс моментума
Информационная таблица
Статистика в реальном времени в правом верхнем углу:
• Текущий финальный скор с цветовой кодировкой
• Отдельные значения VPI и TDFI
• Активные бонусы дивергенций (Bull/Short)
• Статус тренда MTF (при включении)
• Текущий режим фильтра
КАК ИСПОЛЬЗОВАТЬ
Для торговли на разворотах
1 — Дождитесь пересечения скором бычьего порога (<-0.5) для потенциальных лонгов или медвежьего порога (>0.5) для шортов
2 — Подтвердите одновременным появлением маркеров дивергенций
3 — Ищите формирование облака, усиливающего сигнал
4 — Используйте MTF-фильтр для избегания контр-трендовых сделок
Для продолжения тренда
• Импульсные стрелки указывают на сильное продолжение моментума
• Используйте как подтверждение при торговле в направлении установленного тренда
• Выравнивание MTF даёт дополнительную уверенность
Для мультитаймфреймового анализа
• Включите MTF-фильтр и установите высший таймфрейм (например, 4H на графике 1H, Daily на 4H)
• Используйте режим "Reduce" для консервативного подхода
• Используйте режим "Block" для строгого выравнивания по тренду
РУКОВОДСТВО ПО ПАРАМЕТРАМ
Группа Score
• VPI Weight (0.5): Баланс между компонентами волатильности и тренда. Увеличьте для сигналов, ориентированных на волатильность.
• TDFI Weight (0.5): Баланс между компонентами волатильности и тренда. Увеличьте для сигналов, ориентированных на тренд.
• Divergence Bonus Max (0.3): Максимальный вклад дивергенций в скор. Выше = сильнее влияние дивергенций.
Группа Divergence
• Pivot Lookback (3): 2=агрессивно/быстро, 3=сбалансированно, 5=консервативно/медленно
Группа Multi TimeFrame
• Higher TF : Обычно в 4-16 раз больше текущего таймфрейма (например, 4H для графика 1H)
• MTF Weight (0.3): Влияние высшего таймфрейма в финальном скоре
• Trend Filter Level (0.5): Порог TDFI, определяющий "сильный тренд" на HTF
Группа Visual
• Cloud Mode : Threshold (традиционный) vs Gradient (непрерывное накопление)
• Cloud Transparency : Базовая прозрачность для слабых сигналов
Группы Advanced
Тонкая настройка компонентов индикатора для конкретных рынков или таймфреймов. Значения по умолчанию хорошо работают для большинства активов. Увеличение периодов сглаживает сигналы, но добавляет задержку; уменьшение периодов увеличивает чувствительность, но может вызвать шум.
АЛЕРТЫ
Доступны шесть условий для алертов:
• Bullish Zone: Скор пересекает бычий порог снизу вверх
• Bearish Zone: Скор пересекает медвежий порог сверху вниз
• Strong Bull Div: Обе VPI+TDFI показывают бычью дивергенцию (не отфильтровано)
• Strong Bear Div: Обе VPI+TDFI показывают медвежью дивергенцию (не отфильтровано)
• Down Impulse: Медвежий импульсный прорыв
• Up Impulse: Бычий импульсный прорыв
ПРИМЕЧАНИЯ
• Работает на всех таймфреймах и классах активов (крипто, форекс, акции, индексы)
• Лучшие результаты на ликвидных рынках с чёткими циклами тренд/разворот
• Комбинируйте с price action, уровнями поддержки/сопротивления и риск-менеджментом
• Дивергенции лучше всего работают в условиях флэта или ослабления тренда
• Не является самостоятельной торговой системой - используйте как инструмент подтверждения
ОГРАНИЧЕНИЯ
• Как все индикаторы, RSS3 может генерировать ложные сигналы в изменчивых/боковых рынках
• Обнаружение дивергенций требует достаточного объёма исторических данных (минимум 50-100 баров)
• MTF-фильтр может значительно снизить частоту сигналов в режиме "Block"
• Продвинутые параметры требуют понимания базовых расчётов
ДИСКЛЕЙМЕР
Данный индикатор предоставляется исключительно в информационных и образовательных целях и не является финансовой, инвестиционной или торговой рекомендацией. Любая торговля сопряжена с риском, и прошлые результаты не гарантируют будущей доходности. Пользователи несут полную ответственность за свои торговые решения и должны провести собственное исследование или проконсультироваться с квалифицированным финансовым консультантом перед принятием инвестиционных решений. Автор не несёт ответственности за любые убытки, понесённые в результате использования данного индикатора.
═════════════════════════════════════════════════════════════════════════
© Rulph - Reversal Score System v3
Stochastic RSI Forecast [QuantAlgo]🟢 Overview
The Stochastic RSI Forecast extends the classic momentum oscillator by projecting potential future K and D line values up to 10 bars ahead. Unlike traditional indicators that only reflect historical price action, this indicator uses three proprietary forecasting models, each operating on different market data inputs (price structure, volume metrics, or linear trend), to explore potential price paths. This unique approach allows traders to form probabilistic expectations about future momentum states and incorporate these projections into both discretionary and algorithmic trading and/or analysis.
🟢 How It Works
The indicator operates through a multi-stage calculation process that extends the RSI-to-Stochastic chain forward in time. First, it generates potential future price values using one of three selectable forecasting methods, each analyzing different market dimensions (structure, volume, or trend). These projected prices are then processed through an iterative RSI calculation that maintains continuity with historical gain/loss averages, producing forecasted RSI values. Finally, the system applies the full stochastic transformation (calculating the position of each forecasted RSI within its range, smoothing with K and D periods) to project potential future oscillator values.
The forecasting models adapt to market conditions by analyzing configurable lookback periods and recalculating projections on every bar update. The implementation preserves the mathematical properties of the underlying RSI calculation while extrapolating momentum trajectories, creating visual continuity between historical and forecasted values displayed as semi-transparent dashed lines extending beyond the current bar.
🟢 Key Features
1. Market Structure Model
This algorithm applies price action analysis by tracking break of structure (BOS) and change of character (CHoCH) patterns to identify potential order flow direction. The system detects swing highs and lows using configurable pivot lengths, then analyzes sequences of higher highs or lower lows to determine bullish or bearish structure bias. When price approaches recent swing points, the forecast projects moves in alignment with the established structure, scaled by ATR (Average True Range) for volatility adjustment.
Potential Benefits for Traders:
Explores potential momentum continuation scenarios during established trends
Identifies areas where structure changes might influence momentum
Could be useful for swing traders and position traders who incorporate structure-based analysis
The Structure Influence parameter (0-1 scale) allows blending between pure trend following and structure-weighted forecasts
Helps visualize potential trend exhaustion through weakening structure patterns
2. Volume-Weighted Model
This model analyzes volume patterns by combining On-Balance Volume (OBV), Accumulation/Distribution Line, and volume-weighted price returns to assess potential capital flow. The algorithm calculates directional volume momentum and identifies volume spikes above customizable thresholds to determine accumulation or distribution phases. When volume indicators align directionally, the forecast projects stronger potential moves; when volume diverges from price trends, it suggests possible reversals or consolidation.
Potential Benefits for Traders:
Incorporates volume analysis into momentum forecasting
Attempts to filter price action by volume support or lack thereof
Could be more relevant in markets where volume data is reliable (equities, crypto, major forex pairs)
Volume Influence parameter (0-1 scale) enables adaptation to different market liquidity profiles
Highlights volume climax patterns that sometimes precede trend changes
Could be valuable for traders who incorporate volume confirmation in their analysis
3. Linear Regression Model
This mathematical approach applies least-squares regression fitting to project price trends based on recent price data. Unlike the conditional logic of the other methods, linear regression provides straightforward trend extrapolation based on the best-fit line through the lookback period.
Potential Benefits for Traders:
Delivers consistent, reproducible forecasts based on statistical principles
Works better in trending markets with clear directional bias
Useful for systematic traders building quantitative strategies requiring stable inputs
Minimal parameter sensitivity (primarily controlled by lookback period)
Computationally efficient with fast recalculation on every bar
Serves as a baseline to compare against the more complex structure and volume methods
🟢 Universal Applications Across All Models
Each forecasting method projects potential future stochastic RSI values (K and D lines), which traders can use to:
▶ Anticipate potential crossovers: Visualize possible K/D crosses several bars ahead
▶ Explore overbought/oversold scenarios: Forecast when momentum might return from extreme zones
▶ Assess divergences: Evaluate how oscillator divergences might develop
▶ Inform entry timing: Consider potential points along the forecasted momentum curve for trade entry
▶ Develop systematic strategies: Build rules based on forecasted crossovers, slope changes, or threshold levels
▶ Adapt to market conditions: Switch between methods based on current market character (trending vs range-bound, high vs low volume)
In short, the indicator's flexibility allows traders to combine forecasting projections with traditional stochastic signals, using historical K/D for immediate reference while considering forecasted values for planning and analysis. As with all technical analysis tools, the forecasts represent one possible scenario among many and should be used as part of a broader trading methodology rather than as standalone signals.
ADX Trend Dashboard [ Hemanth ]
The ADX + DI Trend Dashboard is a indicator that helps traders instantly assess market trend direction and strength. It combines the power of ADX and DMI (Directional Movement Index) to give a clear visual representation of bullish, bearish, and sideways trends. The dashboard is fully customizable, lightweight, and easy to use.
Key Features:
Displays ADX, +DI, and -DI lines with dynamic coloring.
Green ADX: Bullish trend
Red ADX: Bearish trend
Mini dashboard shows:
Trend direction (Bullish, Bearish)
Trend strength (Weak, Strong)
Threshold lines at 20 & 25 for quick trend strength reference.
Works on any timeframe and instrument.
Clean and visually appealing design to reduce chart clutter.
Inputs:
ADX Length: Number of bars used to calculate ADX.
Higher values smooth the indicator but respond slower.
Lower values make it more sensitive but may produce more noise.
Strong Trend Threshold: ADX value considered strong. Default: 25
+DI Color / -DI Color: Customize trend line colors.
How to Use:
Trend Direction:
Green ADX + +DI > -DI → Bullish
Red ADX + -DI > +DI → Bearish
Trend Strength:
ADX < 20 → Weak
ADX 20–25 → Moderate
ADX > 25 → Strong
Use the dashboard panel to quickly identify trend and strength without manually analyzing the lines.
Recommended Timeframes:
Works on all timeframes.
Ideal for day trading, swing trading, and long-term analysis.
Note:
This indicator does not generate buy or sell signals by itself. It is designed to help traders analyze trend direction and strength visually and make informed trading decisions in combination with other tools or price action.
DV Master RSIDV Master RSI
Executive Summary
The Relative Strength Index (RSI) is one of the most foundational and widely utilized momentum oscillators in technical analysis. While traditionally used to gauge overbought and oversold conditions, its true power lies in identifying subtle shifts in market momentum and divergence from price action. The DV Master RSI Indicator is a sophisticated Pine Script tool designed to leverage the full strategic potential of the RSI by integrating multiple advanced signaling methods, comprehensive visual customization, and a robust anti-repainting feature. This indicator transforms the classic RSI into a complete, multi-signal trading system.
Key Advanced Features of the DV Master RSI
This indicator is engineered to provide traders with comprehensive momentum analysis and actionable signals through several integrated modules:
Features
Momentum Signaling:
RSI Midline Cross (50-line) Confirms shifts from bearish to bullish momentum and vice-versa.
RSI Moving Average Crossover:
Provides smoothed, less noisy trend confirmation and early entry/exit signals.
Trend Confirmation:
RSI MA Midline Cross uses the trend of the RSI's Moving Average to confirm the overall market bias.
Overbought/Oversold Signals
Visually highlights extreme momentum conditions for potential reversals.
Predictive Analysis
Bullish & Bearish Divergence identifies classic market turning points when price makes new highs/lows but RSI does not.
Hidden Divergence
Signals trend continuation, indicating strong internal momentum supporting the current trend.
Performance Assurance
Anti-Repainting Switch ensures signal integrity for backtesting and live trading by locking critical values on bar closure.
Visual Customization
10 Color Palettes & Background Painting enhances clarity and trading focus with custom colors and visual alerts on the chart and indicator panel.
Strategic Application for Traders
The integration of these features allows traders to employ strategies far beyond simple overbought/oversold monitoring.
Divergence Trading (Predictive Edge):
Divergence is often considered the most powerful signal from a momentum oscillator.
Regular Divergence (Reversal):
When the price makes a Lower Low but the RSI makes a Higher Low, it suggests the downward momentum is weakening, signaling a potential Bullish Reversal. The indicator plots this signal directly, giving traders an early warning to cover shorts or initiate long positions.
Hidden Divergence (Continuation):
This feature is crucial for trend-following. When the price makes a Higher Low but the RSI makes a Lower Low (during an uptrend), it signals that the trend is strong and likely to continue. Traders can use this for confident re-entry into established trends.
Signal Integrity and Backtesting Reliability:
The dedicated Anti-Repainting Switch is paramount for serious algorithmic and discretionary traders.
Problem: Indicators that use real-time price data (like close on the current bar) can change their signal retroactively as the current bar develops. This leads to illusory performance in backtesting.
Solution: By enabling the non-repainting mode, the indicator ensures that all crucial signals (MA Crosses, Midline Crosses, etc.) are only finalized and plotted upon the full confirmation of the bar's closure. This guarantees that your backtested results accurately reflect what would have been tradable in real-time.
Customizable Smoothing:
The inclusion of nine different Moving Average types (EMA, DEMA, TEMA, HMA, SMA, SMA + Bollinger Bands, SMMA, WMA, VWMA) for the RSI line allows a trader to fine-tune the indicator's responsiveness to market noise.
A trader expecting a fast reaction to short-term events might use an EMA.
A trader looking for robust, volume-weighted confirmation might select the VWMA.
Furthermore, the dedicated switches for background color on the chart and the indicator panel provide immediate, non-intrusive visual confirmation of extreme conditions, allowing traders to quickly manage multiple charts.
The DV Master RSI is an essential upgrade for any trader who relies on momentum analysis, providing the precision, assurance, and strategic versatility required for modern market navigation.
Kuytrade - Super Scalping Pro V1.0📘 Strategy "Kuytrade - Super Scalping Pro"
What is this strategy?
This is a scalping trading that helps you catch quick profits from short-term price movements. It's perfect for traders who want to make multiple small wins throughout the day.
How does it work?
The strategy uses a 3-level filter system to find high-quality trading signals:
Level 1: CORE Indicators (Must Pass)
- EMA (Moving Averages): Checks if the trend is going up or down
- MACD: Confirms momentum is building in the right direction
Level 2: MOMENTUM Indicators
- RSI: Looks for oversold (ready to bounce up) or overbought (ready to drop) conditions
- Stochastic: Finds reversal points where price might change direction
Level 3: BOOST Indicators
- RSI Divergence: Spots hidden opportunities when price and momentum disagree
- Strong Candles: Identifies powerful price movements
- ATR Filter: Makes sure the market is active enough to trade
Trading Setup
Each Signal Opens 3 Orders:
Order 1: Closes at TP1 (quick small profit)
Order 2: Closes at TP2 (medium profit)
Order 3: Closes at TP3 (big profit target)
Default Settings:
TP1: 1,000 points
TP2: 1,500 points
TP3: 2,500 points
Stop Loss: 1,200 points
Lot Size: 0.01 per order (3 orders total)
Smart Features
- Trailing Stop Loss
- When TP1 hits, the Stop Loss for TP3 automatically moves to breakeven + 150 points, protecting your profit!
- Auto Asset Detection
The strategy automatically recognizes what you're trading:
- Forex pairs (EURUSD, GBPUSD, etc.)
- Gold, Silver, Platinum
- Crypto (Bitcoin, Ethereum)
- Stock Indices (US30, NASDAQ, S&P500)
Indicators:
You can enable/disable each indicator level
Mix and match to find what works for your style
Visuals:
Show/Hide TP/SL lines
Show/Hide entry boxes
Mobile view for smaller screens
When to Use This Strategy?
✅ Best for:
Active markets (London/NY sessions)
Lower timeframes (1m, 5m, 15m)
Volatile pairs with clear trends
❌ Avoid during:
Major news releases
Very quiet markets
Weekends/holidays
----------------------------------------
กลยุทธ์นี้คืออะไร?
Scalping ที่ออกแบบมาให้ช่วยทำกำไรเล็กๆ จากการเคลื่อนไหวของราคาระยะสั้น เหมาะสำหรับเทรดเดอร์ที่ต้องการทำกำไรเล็กน้อยบ่อยๆ ตลอดทั้งวัน
ทำงานยังไง?
กลยุทธ์ใช้ระบบกรองสัญญาณ 3 ระดับ เพื่อหาจุดเข้าที่มีคุณภาพสูง
Level 1: ตัวบ่งชี้หลัก (ต้องผ่าน)
- EMA (เส้นค่าเฉลี่ย): เช็คว่าเทรนด์กำลังขึ้นหรือลง
- MACD: ยืนยันว่าแรงซื้อ/ขายกำลังมาถูกทาง
Level 2: ตัวบ่งชี้โมเมนตัม
- RSI: หาจุด Oversold (ราคาถูกเกินไป พร้อมกลับตัว) หรือ Overbought (ราคาแพงเกิน พร้อมลง)
- Stochastic: หาจุดกลับตัวที่ราคาอาจจะเปลี่ยนทิศ
Level 3: ตัวบ่งชี้เสริม
- RSI Divergence: เจอโอกาสแอบแฝงเมื่อราคาและโมเมนตัมไม่สอดคล้องกัน
- Strong Candles: จับแท่งเทียนที่แรงมาก
- ATR Filter: ตรวจว่าตลาดมีความผันผวนพอจะเทรดไหม
การตั้งค่าการเทรด
แต่ละสัญญาณเปิด 3 ออเดอร์:
ออเดอร์ 1: ปิดที่ TP1 (กำไรเล็กเร็ว)
ออเดอร์ 2: ปิดที่ TP2 (กำไรกลางๆ)
ออเดอร์ 3: ปิดที่ TP3 (กำไรใหญ่)
ค่าเริ่มต้น:
TP1: 800 จุด
TP2: 1,500 จุด
TP3: 2,500 จุด
Stop Loss: 1,200 จุด
ขนาดล็อต: 0.01 ต่อออเดอร์ (รวม 3 ออเดอร์)
ฟีเจอร์พิเศษ
- Trailing Stop Loss (ขยับ SL ตาม)
- เมื่อ TP1 โดน SL ของ TP3 จะเลื่อนมาที่ราคาเข้า + 150 จุด ทำให้คุณไม่ขาดทุน!
- ตรวจจับสินทรัพย์อัตโนมัติ
กลยุทธ์จะจำคู่เงินที่คุณเทรดได้เอง:
คู่เงิน Forex (EURUSD, GBPUSD ฯลฯ)
- ทองคำ, เงิน, แพลตตินั่ม
- คริปโต (Bitcoin, Ethereum)
- ดัชนีหุ้น (US30, NASDAQ, S&P500)
แดชบอร์ดผลงาน (ล่างซ้าย)
- แสดง Win Rate แต่ละ TP
- ติดตามกำไร/ขาดทุนรวม
- แสดงสถิติทั้งหมด
แดชบอร์ดสถานะ Level (บนขวา)
สถานะตัวบ่งชี้แบบเรียลไทม์
เขียว = สัญญาณพร้อม
แดง = รอเงื่อนไข
ตั้งค่าที่ปรับได้
คุณภาพสัญญาณ:
เปิด "Strict Filter" = สัญญาณน้อยแต่คุณภาพสูง
ปิด "Strict Filter" = สัญญาณเยอะแต่อาจเสี่ยงขึ้น
ตัวบ่งชี้:
- เปิด/ปิดแต่ละ Level ได้
- ผสมผสานหาสูตรที่เหมาะกับคุณ
การแสดงผล:
- แสดง/ซ่อนเส้น TP/SL
- แสดง/ซ่อนกล่องข้อมูล Entry
- โหมดมือถือสำหรับจอเล็ก
เมื่อไหร่ควรใช้กลยุทธ์นี้?
✅ เหมาะกับ:
- ตลาดที่คึกคัก (เซสชั่นลอนดอน/นิวยอร์ก)
- ไทม์เฟรมเล็ก (1m, 5m, 15m)
- คู่เงินที่มีความผันผวนและเทรนด์ชัด
❌ หลีกเลี่ยง:
- ช่วงมีข่าวเศรษฐกิจสำคัญ
- ตลาดเงียบมาก
- วันหยุดสุดสัปดาห์
Alpha-Vector Unconstrained [GG_DOGE]
Alpha-Vector: Variance-Weighted Trend Capture Protocol
Authored by: GG_DOGE
Executive Summary
This algorithm represents the culmination of an exhaustive quantitative regression analysis, designed to exploit fat-tail distribution events in the SOL/USD cryptographic pair. By leveraging recursive historical data modeling on the 8-Hour timeframe, the strategy identifies high-probability momentum asymmetry—specifically isolating periods where directional volatility aligns with institutional order flow.
Unlike static heuristic models, this protocol utilizes a Dynamic Variance-Weighted Allocation Engine. This ensures that capital exposure is inversely correlated to market noise (entropy) while maximizing geometric compounding during high-conviction momentum phases. It essentially acts as a volatility filter, capitalizing on the statistical skew of the asset's return profile while enforcing rigorous drawdown mitigation via adaptive liquidity exits.
Key Algorithmic Features
Asymmetric Risk Architecture: The strategy deploys decoupled risk profiles for Long and Short vectors. Through backtest optimization, we have mathematically determined that bullish drift requires aggressive variance targeting, while bearish mean-reversion requires strictly constrained capital exposure to mitigate "short-squeeze" tail risks.
Volatility-Adjusted Position Sizing: Trade depth is not static. The algorithm calculates the instantaneous Average True Range (ATR) to normalize position size based on current market turbulence. This maintains a constant Risk-of-Ruin probability, regardless of price velocity.
Quantitatively Optimized Trend Filter: The entry signal is governed by a proprietary lookback period derived from computational brute-forcing of historical pivot points, designed to filter out Gaussian noise and only execute during significant structural market shifts.
Operational Guide (Strict Adherence Required)
This script comes pre-loaded with the statistically optimal parameters for the analyzed asset. No manual calibration is required.
Deployment Target:
Asset: CRYPTO:SOLUSD (Solana / US Dollar)
Timeframe: 8h (8-Hour Candle)
Exchange: Any major liquidity venue (Binance, Coinbase, Kraken, etc.)
Configuration:
Strategy Mode: Select "Long & Short" for the fully optimized protocol (captures upside momentum and hedges downside crashes).
Risk Parameters: The default values are mathematically tuned for maximum geometric growth (Highest PnL). Do not alter these unless you wish to artificially suppress the algorithm's volatility targeting.
Execution:
Capital Allocation: The logic is designed for compounding growth. It will automatically calculate the maximum lot size allowed based on your account equity, ensuring 100% capital efficiency without crossing into margin-call territory
Smart Divergence Engine [ChartNation]SMART DIVERGENCE ENGINE — REPAINTING-PROOF RSI DIVERGENCE WITH EXHAUSTION CONFIRMATION
═══════════════════════════════════════════
Smart Divergence Engine solves three critical problems that plague free RSI divergence indicators:
PROBLEM 1: REPAINTING DIVERGENCES
Most divergence scripts detect divergence in real-time as bars form. This causes signals to appear, disappear, and reappear unpredictably—making them unusable for alerts or systematic trading.
OUR SOLUTION: Pivot-Locked Detection
Smart Divergence Engine evaluates RSI at the exact bar where price structure confirms (rsi ), not at the current bar. Once a divergence prints, it NEVER disappears. This is implemented via:
Full swing confirmation (Pivot Left + Pivot Right bars must complete)
RSI evaluation at historical bar: rsi , not rsi
Divergence triggers AFTER structure lock, not during formation
Technical implementation: The script stores RSI values at confirmed pivot bars using var floats (lowRsiPrev, lowRsiCurr, highRsiPrev, highRsiCurr), then compares these locked values when new pivots confirm. This prevents any possibility of historical repaint.
PROBLEM 2: FALSE POSITIVE OVERLOAD
Divergence scripts trigger on ANY price-RSI mismatch, flooding charts with weak signals during choppy conditions. No filtering means traders must manually screen out noise.
OUR SOLUTION: Shark Fin Exhaustion Filter
Before any divergence can be considered actionable, Smart Divergence Engine requires RSI to demonstrate genuine momentum exhaustion through our proprietary "Shark Fin" detection:
Shark Fin Logic (Not Found in Free Scripts):
RSI must pierce the outer volatility band by a configurable buffer (default 1.5 RSI points)
RSI must re-enter the band with directional confirmation (positive slope for bullish, negative slope for bearish)
Band width must exceed minimum standard deviation threshold (volatility qualification)
Cooldown period enforced (default 25 bars) to prevent signal clustering
This multi-condition filter dramatically reduces false divergences by requiring RSI to physically demonstrate exhaustion BEFORE structure confirmation matters.
Technical implementation: The Shark Fin state machine uses boolean flags (bullFinForming, bearFinForming) to track when RSI is stretched beyond bands, then validates re-entry using ta.crossover(rsi, lower) / ta.crossunder(rsi, upper) with slope checks (ta.change(rsi) > 0 / < 0) and volatility gates (dev >= finMinDev).
PROBLEM 3: NO VOLATILITY CONTEXT
Divergence scripts use fixed RSI levels (30/70 or similar) that fail to adapt to changing market conditions. What's "overbought" in a low-volatility regime differs drastically from high-volatility conditions.
OUR SOLUTION: Adaptive Volatility Bands
Smart Divergence Engine calculates dynamic overbought/oversold zones using:
34-period SMA of RSI as basis
1.618 standard deviation multiplier (golden ratio expansion)
Real-time band expansion/contraction based on RSI volatility
The bands provide three advantages:
Shark Fin events only qualify when RSI breaches ADAPTIVE thresholds, not arbitrary fixed levels
Band width (standard deviation) serves as volatility filter—narrow bands = low conviction moves get rejected
50-line midline provides regime context (above 50 = bullish bias, below 50 = bearish bias)
Technical implementation: basis = ta.sma(rsi, 34), dev = ta.stdev(rsi, 34), upper/lower = basis ± dev * 1.618. Shark Fin logic requires rsi < (lower - finBuffer) or rsi > (upper + finBuffer) to trigger, ensuring exhaustion is measured relative to CURRENT volatility, not historical constants.
═══════════════════════════════════════════
METHODOLOGY COMPARISON VS FREE ALTERNATIVES
═══════════════════════════════════════════
STANDARD DIVERGENCE SCRIPTS:
Detection timing: Real-time (current bar)
Historical stability: Repaints continuously
Signal filtering: None or minimal
Volatility adaptation: Fixed levels (30/70)
Exhaustion confirmation: Not implemented
Confirmation layers: 1 (divergence only)
Alert reliability: Unreliable (signals disappear)
SMART DIVERGENCE ENGINE:
Detection timing: Pivot-confirmed (rsi )
Historical stability: Locked at structure bar
Signal filtering: Shark Fin + cooldown + stdev gate
Volatility adaptation: Dynamic bands (34-SMA + 1.618σ)
Exhaustion confirmation: Required via Shark Fin
Confirmation layers: 3 (structure + exhaustion + volatility)
Alert reliability: Stable (never repaints)
═══════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════
RSI ENGINE:
Base calculation: ta.rsi(src, 14)
Smoothing: ta.rma(rsiRaw, 2) — reduces whipsaw noise
Source: Configurable (default close)
VOLATILITY BANDS:
Basis: 34-period SMA of RSI
Multiplier: 1.618 (golden ratio)
Upper band: basis + (stdev * 1.618)
Lower band: basis - (stdev * 1.618)
Purpose: Creates adaptive overbought/oversold zones
DIVERGENCE DETECTION:
Pivot confirmation: 10 left bars + 10 right bars (default)
RSI evaluation: Locked at rsi (historical bar, never current)
Bullish divergence: price lower low + RSI higher low
Bearish divergence: price higher high + RSI lower high
Rendering: Lines drawn between last two confirmed pivots with labels
SHARK FIN EXHAUSTION FILTER:
Depth buffer: 1.5 RSI points (penetration threshold beyond band)
Min band stdev: 1.0 (volatility qualification)
Cooldown: 25 bars minimum between Shark Fin confirmations
Slope validation: Requires ta.change(rsi) > 0 (bullish) or < 0 (bearish)
State tracking: Boolean flags prevent premature confirmations
VISUAL CUSTOMIZATION:
Beauty Mode: Six-layer gradient fill anchored at 50-line
• Purple regime (above 50) with configurable opacity
• Green regime (below 50) with configurable opacity
• Gradient layers: 33%, 66%, 100% intensity
Divergence lines: Glow effect (6px) + core line (3px), both configurable
Shark Fin rendering: 20% fill between RSI and violated band (ephemeral)
Labels: Compact "Bull"/"Bear" markers with dot indicators
═══════════════════════════════════════════
ALERT SYSTEM
═══════════════════════════════════════════
Four distinct alert conditions (configure once, fires on all intervals):
"RSI Shark Fin — Bullish"
Triggers when: RSI re-enters lower band from below with slope + stdev + cooldown confirmation
Use case: Momentum exhaustion at oversold extreme
Reliability: No repaint (confirmation locked at re-entry bar)
"RSI Shark Fin — Bearish"
Triggers when: RSI re-enters upper band from above with slope + stdev + cooldown confirmation
Use case: Momentum exhaustion at overbought extreme
Reliability: No repaint (confirmation locked at re-entry bar)
"Bullish Divergence (Panel)"
Triggers when: Pivot-confirmed bullish divergence completes (price LL + RSI HL)
Timing: Fires AFTER Pivot Right bars complete (delayed but stable)
Reliability: Never repaints (divergence locked at rsi )
"Bearish Divergence (Panel)"
Triggers when: Pivot-confirmed bearish divergence completes (price HH + RSI LH)
Timing: Fires AFTER Pivot Right bars complete (delayed but stable)
Reliability: Never repaints (divergence locked at rsi )
═══════════════════════════════════════════
TRADING IMPLEMENTATION
═══════════════════════════════════════════
CONFLUENCE FRAMEWORK:
Highest-probability setups occur when three conditions align:
Bullish Setup:
Shark Fin confirms below lower band (exhaustion)
Bullish divergence prints at pivot (structure)
RSI reclaims 50 line (regime shift to bullish)
→ Entry consideration at next price structure (support, swing low)
Bearish Setup:
Shark Fin confirms above upper band (exhaustion)
Bearish divergence prints at pivot (structure)
RSI loses 50 line (regime shift to bearish)
→ Entry consideration at next price structure (resistance, swing high)
TREND CONTEXT:
Strong uptrends: Prioritize bullish divergence + lower band Shark Fins (buy dips)
Strong downtrends: Prioritize bearish divergence + upper band Shark Fins (sell rallies)
Range-bound markets: Use 50-line crossovers as additional confirmation filter
RISK MANAGEMENT:
Smart Divergence Engine provides CONTEXT, not entries:
Wait for price confirmation (engulfing candle, rejection wick, structure break)
Place stops below/above pivot structure that triggered divergence
Size positions based on distance to invalidation level
Divergence + Shark Fin = elevated probability, not certainty
═══════════════════════════════════════════
CONFIGURATION PARAMETERS
═══════════════════════════════════════════
RSI SETTINGS:
RSI Length: 14 (default, standard momentum window)
Price Source: close (configurable to any price source)
Note: 2-period RMA smoothing is hardcoded (reduces noise)
VOLATILITY BAND SETTINGS:
Band Length: 34 (SMA period for RSI basis)
Band Multiplier: 1.618 (golden ratio, adjustable)
Show Bands: Toggle visibility (true/false)
DIVERGENCE SETTINGS:
Pivot Left: 10 bars (left-side swing confirmation)
Pivot Right: 10 bars (right-side swing confirmation)
Overbought Level: 68 (reference line, does not affect logic)
Oversold Level: 32 (reference line, does not affect logic)
SHARK FIN SETTINGS:
Fin Depth Buffer: 1.5 RSI points (penetration threshold)
Min Band Stdev: 1.0 (volatility qualification gate)
Min Bars Between Fins: 25 (cooldown period)
VISUAL SETTINGS (Beauty Mode):
Enable Beauty Mode: true/false (gradient rendering)
Divergence Glow: true/false (glow effect on lines)
Glow Width: 3-10 px (glow layer thickness)
Main Line Width: 1-6 px (divergence core line)
Top Color: Purple (configurable, above-50 regime)
Bottom Color: Green (configurable, below-50 regime)
Top Opacity: 0-100% (gradient base transparency)
Bottom Opacity: 0-100% (gradient base transparency)
═══════════════════════════════════════════
PERFORMANCE & LIMITATIONS
═══════════════════════════════════════════
RESOURCE ALLOCATION:
max_lines_count: 500 (divergence + Shark Fin lines)
max_labels_count: 500 (divergence markers)
max_bars_back: 500 (historical pivot lookback)
Suitable for most timeframes; reduce limits if performance degrades on low-end devices
SIGNAL TIMING:
Divergences print AFTER Pivot Right bars complete. This is intentional:
Delayed signals are more reliable than real-time signals
Structure confirmation requires waiting for swing completion
Users demanding instant signals should use free real-time divergence indicators
Users demanding reliable signals that never disappear should use this
PANEL VS OVERLAY:
This is the panel version (overlay=false):
Renders in separate pane below price chart
RSI, bands, divergence lines, and Shark Fin fills appear in this pane
For price-chart annotations, use the companion overlay version (same logic, different rendering)
═══════════════════════════════════════════
This script implements proprietary methodology not available in regular community scripts:
REPAINTING-PROOF ARCHITECTURE
The pivot-locked detection system (rsi evaluation) is a non-trivial implementation that requires:
State management across bars using var variables
Historical RSI value storage at pivot confirmation
Divergence comparison between stored values (not current bar)
This architecture eliminates the #1 complaint with free divergence indicators: disappearing signals.
SHARK FIN EXHAUSTION LOGIC
The multi-condition state machine that validates momentum exhaustion is not found in free scripts:
Penetration threshold (buffer beyond band)
Directional slope confirmation on re-entry
Volatility gate (minimum standard deviation)
Cooldown enforcement (prevents clustering)
This filter layer was developed through extensive backtesting to reduce false divergences during choppy conditions.
ADAPTIVE VOLATILITY FRAMEWORK
The dynamic band system (34-SMA + 1.618σ) provides context-aware overbought/oversold detection:
Bands expand in volatile markets → signals adapt to conditions
Bands contract in ranging markets → tighter detection thresholds
50-line regime framework → directional bias context
This approach outperforms fixed-level systems (30/70) that ignore market context.
CONFLUENCE METHODOLOGY
The three-layer confirmation system (structure + exhaustion + volatility) was engineered to answer: "When is a divergence actually tradeable?" Free scripts detect divergence and stop there. Smart Divergence Engine asks: "Did RSI show exhaustion? Is volatility sufficient? Did structure confirm?"
This level of methodological depth—combined with repainting-proof architecture and professional-grade visual implementation—justifies closed-source protection and paid access.
═══════════════════════════════════════════
Smart Divergence Engine is engineered for traders who demand institutional-grade divergence detection without the noise, repainting, and false positives that plague free alternatives.
Access is restricted to maintain signal quality as methodology evolves.
Smart Divergence Engine Overlay [ChartNation]SMART DIVERGENCE ENGINE OVERLAY — CANDLE-ANCHORED RSI DIVERGENCE VISUALIZATION
═══════════════════════════════════════════
TECHNICAL OVERVIEW
═══════════════════════════════════════════
Smart Divergence Engine Overlay renders pivot-confirmed RSI divergences directly on the price chart with candle-anchored lines and labels. This companion overlay shares the identical detection logic as the panel version but visualizes signals at their exact price levels rather than in oscillator space.
The overlay implements repainting-proof divergence detection through pivot-locked RSI evaluation at historical bars (rsi ), ensuring all lines and labels remain stable as new bars form. Visual elements anchor to xloc.bar_index coordinates, maintaining precise positioning across zoom levels and timeframe changes.
═══════════════════════════════════════════
CORE ARCHITECTURE
═══════════════════════════════════════════
PIVOT-LOCKED DETECTION SYSTEM
The overlay evaluates RSI at confirmed pivot bars, not at the current bar:
Technical implementation:
Price pivots detected via ta.pivotlow() / ta.pivothigh() with configurable Left/Right parameters
RSI value captured at the pivot bar: rsi (historical bar offset)
Divergence comparison performed between stored pivot values (lowRsiPrev vs lowRsiCurr)
State management via var floats prevents recalculation across bars
Result: Once a divergence line prints, it never moves or disappears. Historical stability is guaranteed because RSI evaluation occurs at a locked bar index (bar_index - pivotR), not at the moving present.
Bullish divergence logic:
if not na(lowPricePrev) and lowPriceCurr < lowPricePrev and lowRsiCurr > lowRsiPrev
→ Price made lower low, RSI made higher low
→ Divergence confirmed at lowIdxCurr (pivot bar index)
Bearish divergence logic:
if not na(highPricePrev) and highPriceCurr > highPricePrev and highRsiCurr < highRsiPrev
→ Price made higher high, RSI made lower high
→ Divergence confirmed at highIdxCurr (pivot bar index)
RSI ENGINE
The overlay uses the same RSI calculation as the panel version to ensure signal synchronization:
Base calculation: ta.rsi(src, 14) — standard RSI momentum window
Smoothing layer: ta.rma(rsiRaw, 2) — reduces high-frequency noise
Volatility bands: 34-period SMA basis with 1.618 standard deviation multiplier
Purpose: Bands define adaptive overbought/oversold context (not plotted on overlay)
The volatility framework exists in the calculation layer to maintain logic parity with the panel version, ensuring divergences trigger at identical bars across both implementations.
CANDLE-ANCHORED RENDERING
All visual elements use xloc.bar_index positioning:
Line rendering:
line.new(x1=lowIdxPrev, y1=lowPricePrev, x2=lowIdxCurr, y2=lowPriceCurr,
xloc=xloc.bar_index, color=bullCol, width=lineW)
This anchors lines to specific bar indices and price levels, not to time coordinates. Result: Lines maintain exact positioning when zooming, panning, or switching timeframes.
Label rendering:
label.new(x=lowIdxCurr, y=lowPriceCurr, text="BUY",
xloc=xloc.bar_index, style=label.style_label_up)
Labels attach to the second pivot's bar index and price level, scaling naturally with chart transformations.
═══════════════════════════════════════════
VISUAL IMPLEMENTATION
═══════════════════════════════════════════
DIVERGENCE LINES
Bullish divergence: Connects two price swing lows with upward-sloping line
Color: Configurable (default lime green)
Width: 1-6 pixels (configurable)
Endpoint 1: Previous swing low (lowPricePrev at lowIdxPrev)
Endpoint 2: Current swing low (lowPriceCurr at lowIdxCurr)
Requirement: Current price lower than previous, current RSI higher than previous
Bearish divergence: Connects two price swing highs with downward-sloping line
Color: Configurable (default red)
Width: 1-6 pixels (configurable)
Endpoint 1: Previous swing high (highPricePrev at highIdxPrev)
Endpoint 2: Current swing high (highPriceCurr at highIdxCurr)
Requirement: Current price higher than previous, current RSI lower than previous
Lines extend between pivot bars only (extend.none), never projecting into future.
DIVERGENCE LABELS
Optional BUY/SELL markers render at the second pivot:
BUY label (bullish divergence):
Position: Below current swing low (label.style_label_up)
Text: "BUY"
Color: Matches bullish line color
Size: Normal (size.normal)
SELL label (bearish divergence):
Position: Above current swing high (label.style_label_down)
Text: "SELL"
Color: Matches bearish line color
Size: Normal (size.normal)
Labels can be toggled independently of lines via showLabels input.
═══════════════════════════════════════════
CONFIGURATION PARAMETERS
═══════════════════════════════════════════
RSI CALCULATION SETTINGS:
Price Source: close (configurable to any price field)
RSI Length: 14 (standard momentum window)
Volatility Band Length: 34 (SMA period for RSI basis)
Band Multiplier: 1.618 (standard deviation expansion)
Note: Bands calculate internally but don't plot (logic parity with panel)
DIVERGENCE DETECTION SETTINGS:
Pivot Left: 10 bars (left-side swing confirmation)
Pivot Right: 10 bars (right-side swing confirmation)
Overbought Level: 68 (reference, does not affect logic)
Oversold Level: 32 (reference, does not affect logic)
Pivot parameters control strictness:
Higher values = fewer, more significant divergences (requires wider swings)
Lower values = more frequent divergences (detects smaller swings)
VISUAL SETTINGS:
Show Divergence Lines: true/false toggle
Show BUY/SELL Labels: true/false toggle (independent of lines)
Line Width: 1-6 pixels
Bull Color: Configurable (default lime green)
Bear Color: Configurable (default red)
═══════════════════════════════════════════
ALERT SYSTEM
═══════════════════════════════════════════
Two alert conditions trigger at identical timing as visual signals:
"Bullish Divergence (Overlay)"
Triggers when: Bullish divergence confirms at second pivot
Timing: Fires AFTER Pivot Right bars complete (delayed but stable)
Message: "TDI: Bullish divergence"
Reliability: Never repaints (confirmation locked at rsi )
"Bearish Divergence (Overlay)"
Triggers when: Bearish divergence confirms at second pivot
Timing: Fires AFTER Pivot Right bars complete (delayed but stable)
Message: "TDI: Bearish divergence"
Reliability: Never repaints (confirmation locked at rsi )
Alert configuration:
Set once on any chart/timeframe
Fires only when divergence condition evaluates true
Synchronized with visual rendering (alert = line + label appear)
═══════════════════════════════════════════
TRADING IMPLEMENTATION
═══════════════════════════════════════════
VISUAL ANALYSIS WORKFLOW
The overlay provides direct price-level context for divergence signals:
Bullish divergence interpretation:
Identify two connected swing lows with upward-sloping line
Lower price low indicates selling pressure weakening
Higher RSI low indicates momentum refusing to confirm price weakness
BUY label marks the second swing low (divergence confirmation point)
Bearish divergence interpretation:
Identify two connected swing highs with downward-sloping line
Higher price high indicates buying pressure weakening
Lower RSI high indicates momentum refusing to confirm price strength
SELL label marks the second swing high (divergence confirmation point)
CONFLUENCE WITH PRICE STRUCTURE
Overlay enables direct correlation with chart elements:
Support/Resistance alignment:
Bullish divergence at major support level = higher probability reversal
Bearish divergence at major resistance level = higher probability reversal
Divergence in middle of range = lower conviction signal
Volume confirmation:
Divergence with decreasing volume = confirms momentum exhaustion
Divergence with increasing volume = mixed signal, proceed with caution
Multi-timeframe context:
Higher timeframe trend alignment increases signal reliability
Counter-trend divergences (against HTF trend) require additional confirmation
ENTRY/EXIT FRAMEWORK
The overlay marks divergence confirmation points, not entry triggers:
Entry consideration process:
Divergence line appears → structure-confirmed momentum divergence detected
Wait for price confirmation (engulfing candle, break of structure, rejection wick)
Validate with additional confluence (volume, support/resistance, HTF trend)
Enter with predefined stop below/above divergence pivot
Size position according to distance to invalidation level
Exit planning:
Initial target: Previous swing high (bullish) / swing low (bearish)
Trail stop: Move to breakeven after initial profit target
Invalidation: Close below divergence low (bullish) / above divergence high (bearish)
═══════════════════════════════════════════
PANEL VS OVERLAY USAGE
═══════════════════════════════════════════
IDENTICAL DETECTION LOGIC
Both versions implement the same pivot-locked RSI evaluation:
Same RSI calculation (14-length with 2-period RMA smoothing)
Same volatility band framework (34-SMA + 1.618σ)
Same pivot confirmation (10 Left + 10 Right)
Same divergence comparison (rsi at locked bar indices)
Result: Divergences trigger at identical bars across both implementations.
RENDERING DIFFERENCES
Panel version (overlay=false):
Renders in separate pane below price chart
Displays RSI line, volatility bands, 50-line midline
Divergence lines drawn in oscillator space (RSI value coordinates)
Optional Shark Fin exhaustion visualization
Labels positioned relative to RSI levels
Overlay version (overlay=true):
Renders directly on price chart
No RSI line or bands visible (calculate internally for logic only)
Divergence lines drawn in price space (actual price coordinates)
No Shark Fin visualization (price chart remains clean)
Labels positioned at actual swing high/low prices
COMPLEMENTARY WORKFLOW
Recommended usage pattern:
Panel version: Monitor RSI regime (above/below 50), band interactions, Shark Fin exhaustion
Overlay version: Identify exact divergence price levels, correlate with support/resistance
Combined analysis: Use panel for momentum context, overlay for entry/exit precision
Alternative workflow (overlay only):
If RSI analysis not required, overlay version provides clean divergence detection
Pair with external RSI indicator if separate momentum visualization needed
Focuses chart space on price action and divergence markers only
═══════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════
RESOURCE ALLOCATION:
max_lines_count: 500 (divergence connector lines)
max_labels_count: 500 (BUY/SELL markers)
Suitable for most chart configurations and timeframes
RENDERING STABILITY:
xloc.bar_index positioning ensures visual stability across zoom/pan operations
Historical divergences never move once printed
Lines and labels scale proportionally with chart transformations
TIMEFRAME COMPATIBILITY:
Functions on any timeframe (1m to 1M)
Pivot detection adapts to bar spacing automatically
Lower timeframes generate more frequent signals (smaller swings)
Higher timeframes generate fewer signals (larger swings)
SYMBOL COMPATIBILITY:
Works on all asset classes (stocks, forex, crypto, futures, indices)
No symbol-specific logic or calculations
Universal RSI-based divergence detection
PERFORMANCE CHARACTERISTICS:
Lightweight calculation overhead (RSI + pivot detection + state management)
Visual rendering occurs only on divergence confirmation (not every bar)
No continuous repainting or historical recalculation
═══════════════════════════════════════════
USE CASE SCENARIOS
═══════════════════════════════════════════
SCENARIO 1: Support/Resistance Divergence
Setup: Price tests major support level twice, second test makes lower low
Signal: Bullish divergence line appears, RSI makes higher low at support
Interpretation: Momentum refusing to confirm price weakness at critical level
Action: Consider long entry on next bullish candle above divergence low
SCENARIO 2: Trend Exhaustion
Setup: Strong uptrend, price makes new high but momentum slowing
Signal: Bearish divergence line appears, RSI makes lower high
Interpretation: Buying pressure weakening despite higher price high
Action: Consider profit-taking on longs, watch for reversal confirmation
SCENARIO 3: Range-Bound Reversal
Setup: Price oscillating in horizontal range, tests lower boundary
Signal: Bullish divergence at range support
Interpretation: Oversold bounce opportunity within defined range
Action: Long entry targeting range midpoint or upper boundary
SCENARIO 4: Failed Breakout
Setup: Price breaks resistance but momentum doesn't confirm
Signal: Bearish divergence forms immediately after breakout
Interpretation: Breakout lacks momentum conviction, likely false breakout
Action: Consider fade setup (short) with stop above divergence high
═══════════════════════════════════════════
LIMITATIONS & CONSIDERATIONS
═══════════════════════════════════════════
SIGNAL TIMING:
Divergences print AFTER Pivot Right bars complete. This delay is intentional:
Ensures structure confirmation (full swing formation)
Prevents real-time repaint issues
Trades confirmation reliability for signal speed
Users requiring instant signals should use real-time divergence detectors (with repaint risk).
Users requiring reliable, stable signals should accept the confirmation delay.
LINE CLUTTER:
On lower timeframes with sensitive pivot settings:
High signal frequency may create visual clutter
Solution: Increase Pivot Left/Right values to filter smaller swings
Alternative: Use panel version for primary analysis, overlay for key divergences only
FALSE SIGNALS:
Divergences indicate momentum divergence, not guaranteed reversals:
Strong trends can maintain divergent conditions for extended periods
Divergence in isolation is a warning sign, not a trade trigger
Requires confluence with price action, volume, structure for high-probability setups
VOLATILITY BAND CONTEXT:
Bands calculate internally but don't visualize on overlay:
Users lose visual context of RSI overbought/oversold zones
Solution: Use panel version alongside overlay for complete RSI regime awareness
Alternative: Add separate RSI indicator to chart for band visualization
═══════════════════════════════════════════
Smart Divergence Engine Overlay provides candle-anchored, repainting-proof RSI divergence visualization directly on price charts. Lines and labels render at exact pivot price levels using xloc.bar_index positioning, maintaining stability across all chart transformations. Divergence detection uses pivot-locked RSI evaluation (rsi ) to ensure historical signals never move or disappear.
The overlay shares identical detection logic with the panel version but renders in price space rather than oscillator space, enabling direct correlation with support/resistance levels and price structure. All visual elements trigger only after full pivot confirmation (Pivot Left + Pivot Right bars), trading signal speed for absolute reliability.






















