Central Time Opens (9 AM/Midnight Open)Time opening prices for midnight open and 10 AM key open, but for central timezone.
Indicadores e estratégias
Macro FVG with Quarter Theory & CE AlertsStarting with Python, target, starting with script now, but I made this FvVG identifier. It will. Create the favorite group as it. Occurs. Just moving up it would be green, if it's moving down it would be red and if it's mitigated but turn dark black.
Multi Timeframe 50 EMA (15m | 1H | Daily)50 EMA of Daily 1 hr and 15 minutes visible in 3 minutes timeframe
Vishall - Spot - HA for Normal & FutureVishall - Spot - HA for Normal & Future
Vishall - Spot - HA for Normal & Future
Vishall - Spot - HA for Normal & Future
MA Ribbon (Horizontal Levels)📊 MA Ribbon (Horizontal Levels)
MA Ribbon (Horizontal Levels) is a minimalist moving average tool that displays moving averages as horizontal price levels instead of traditional sloping lines.
Rather than showing the historical path of each moving average, this indicator focuses exclusively on where each selected MA is currently located in price, allowing traders to treat moving averages as dynamic support and resistance levels.
The result is a clean, uncluttered chart that preserves moving average structure without visual noise.
🔍 What Makes It Different
No traditional moving average curves
No shading, bands, or fills
Each moving average is represented as a horizontal line at its current value
Lines automatically update as price and the MA value change
Designed to complement price action rather than dominate the chart
This approach makes it easier to see key MA levels at a glance, especially when multiple averages are in use.
⚙️ Key Features
✅ Fully Customizable Moving Averages
Select the moving average type:
SMA
EMA
SMMA (RMA)
WMA
VWMA
Choose the price source (e.g., close)
Configure up to 10 independent moving averages
✅ Per-MA Controls
Each moving average can be customized individually:
Enable or disable any MA (use anywhere from 1 to 10)
Set the MA period (length)
Choose line color
Adjust line thickness
Select line style (solid, dashed, dotted)
✅ Horizontal Level Visualization
Each MA is plotted as a horizontal line extending across the chart, representing the current value of that moving average.
As the MA updates, the level shifts vertically, maintaining a clear and consistent reference point.
🧠 How to Use It
This indicator is designed as a context and structure tool, not a signal generator.
Common use cases include:
Identifying dynamic support and resistance zones
Visualizing where short-term and long-term MA levels are stacked
Using MA levels as confluence with price action, VWAP, or volume-based tools
Maintaining a clean chart while still respecting moving average structure
Because the lines are horizontal, the indicator is especially useful for:
Breakout traders
Mean-reversion traders
Market participants who focus on structure and levels rather than indicator signals
🎯 Who It’s For
This indicator is ideal for traders who:
Prefer minimal, uncluttered charts
Think of moving averages as levels, not signals
Want full control over MA appearance and behavior
Use price action and structure first, indicators second
Use this tool in conjunction with standard moving average indicators, treating these horizontal MA levels as complementary reference points rather than replacements
MA Ribbon (Horizontal Levels) is built for traders who want clarity, flexibility, and structural insight — without sacrificing chart readability.
GD Spread FilterAdditional chart for Gold spread, which highlights not relevant periods (clearings and night time)
PT Spread FilterAdditional chart for Platinum spread, which highlights not relevant periods (clearings and night time)
CNY Spread FilterAdditional chart for CNY spread, which highlights not relevant periods (clearings and night time)
Average CandleAverage Candle is a custom indicator that plots a synthetic candle built from the average open, high, low, and close of the last X periods, providing a smoother view of price behavior and trend. It helps filter noise by summarizing recent market action into a single, representative **candle** per bar.
1. Introduction
Average Candle calculates the simple moving average of each OHLC component (Open, High, Low, Close) over a user-defined lookback period and renders that as a separate candle on the chart.
This creates a smoothed representation of price that is less affected by short-term volatility while still respecting the overall structure of the market.
By visualizing these averaged candles, traders can better identify underlying direction and momentum without removing the original price bars.
2. Key features
- Uses the average of the last X opens, highs, lows, and closes to build a synthetic candle for each bar, allowing consistent smoothing across all OHLC components.
- Colors the Average Candle bullish or bearish based on whether the average close is above or below the average open, making directional bias visually clear at a glance.
- Can be overlaid on the main chart to compare raw price candles with their averaged counterpart, helping traders distinguish meaningful swings from short-term noise.
3. How to use
- Add the indicator to your chart, choose the desired lookback length (X periods), and tune it according to your trading timeframe and style—for example, shorter lengths for more responsive signals and longer lengths for smoother trends.
- Use the Average Candle to confirm trend direction, detect potential reversals, or validate entries and exits by checking whether price action aligns with the smoothed average structure.
- Combine it with other tools such as support/resistance, volume, or momentum indicators, ensuring it is used as a complementary visualization aid rather than a standalone signal generator.
RSI Momentum SuperTrend█ OVERVIEW
RSI Momentum SuperTrend is a momentum-based trend oscillator that combines classic RSI with a SuperTrend mechanism calculated directly on RSI values. Instead of using price-based ATR, the indicator measures volatility of RSI itself, allowing dynamic adaptation to different markets and timeframes.
It is fast and responsive, designed for early detection of momentum shifts. It works especially well for divergence analysis, pullbacks within higher timeframe trends, and as a confirmation tool in contrarian strategies.
█ CONCEPT
The indicator was created to combine:
- the sensitivity of an oscillator (RSI)
- the stability of the SuperTrend mechanism
The key element is calculating “ATR” directly on RSI changes and then normalizing it. This allows:
- automatic adaptation to the instrument’s behavior
- consistent performance across different markets and timeframes
Dynamic upper and lower bands (RSI ± adaptive range) act as momentum control levels.
A trend change occurs only after these levels are broken, helping to reduce market noise.
█ FEATURES
Data source:
- RSI (default: close)
- RSI length
- EMA smoothing
Additional:
- Optional raw RSI display
(can be used to build custom strategies and to compare with the SuperTrend line)
Calculations:
- EMA-smoothed RSI
- Adaptive ATR calculated on RSI changes
- Volatility normalization
- Dynamic bands: RSI ± (ATR × multiplier)
- Trailing mechanism:
- Levels are dynamically updated according to trend direction
- Direction changes only after they are broken
- Trend change logic:
- Down → Up: RSI > upper band
- Up → Down: RSI < lower band
Visualization:
- RSI line with dynamic trend coloring
- SuperTrend line on RSI
- Gradient fill between RSI and ST
- Candle coloring according to trend
- Overbought / Oversold zones with fill
- Fog on Price (optional). Trend direction visualization directly on the price chart
Alerts:
- Trend change to UP
- Trend change to DOWN
█ HOW TO USE
Adding:
Paste the code into Pine Editor or search for “RSI Momentum SuperTrend”
Main settings:
- RSI Length → default 14
- RSI Smoothing → signal smoothing
- ATR Length (on RSI) → adaptation control
- ATR Multiplier → main sensitivity parameter
- Show Raw RSI → raw RSI preview
- Color Candles → candle coloring according to trend
- Fog on Price → trend visualization on price
Interpretation:
- Green color = uptrend
- Red color = downtrend
- Higher multiplier = fewer signals, higher quality
- Lower multiplier = faster reaction, more signals
█ APPLICATIONS
It is recommended to use the indicator together with other technical tools.
If you want to use it not as a trend indicator but as an entry tool, consider combining it with a slower trend indicator (e.g. classic SuperTrend). In this setup:
- the main trend is defined by the slower indicator
- entries are taken only in its direction
- RSI Momentum ST helps to identify local pullbacks within the trend
Ideal for:
- Divergences
e.g. price makes higher highs while RSI Momentum ST makes lower highs → possible trend weakness
similarly: price goes down while the indicator goes up
- Pullbacks in higher timeframe trends
e.g. H4 uptrend, while on M15 RSI Momentum ST enters oversold zone → potential end of pullback
- Contrarian strategies
e.g. strong downtrend, while RSI Momentum ST starts turning up → possible market reaction
Early detection of momentum shifts
Best combined with:
- Support and resistance levels
- Market structure (HH, HL, LH, LL)
- Volume
- Price action
- Higher timeframe analysis
█ NOTES
- Works on all markets and timeframes
- Faster than classic price-based trend indicators
- Best results are achieved when used with market context
- Not a standalone trading system
[HFT] Leaky Bucket: FPGA-Based Order Flow SimulationDescription:
This indicator is a functional simulation of a hardware-based "Leaky Bucket" algorithm, typically used in FPGA (Field-Programmable Gate Array) chips for High-Frequency Trading (HFT) and network traffic shaping.
Unlike standard volume indicators (like OBV or CMF) that rely on floating-point Moving Averages (EMA/SMA), this script uses Bitwise Integer Math to simulate hardware registers. This approach removes the lag associated with smoothing and provides a raw, "tick-by-tick" representation of Order Flow exhaustion.
█ Underlying Concepts (How it works)
Integer Math & Bitwise Logic: The script eschews standard float calculations for int registers. Instead of division, it uses Bitwise Right Shift (>>) to simulate the "leak" rate. This mimics how hardware processes data streams with near-zero latency.
The Leaky Bucket Model:
Flow (Input): Volume * Price Delta flows into a "Bucket" (Accumulator Register).
Leak (Output): The bucket leaks at a constant rate determined by the Decay Shift.
Saturation: If the Flow > Leak, the bucket fills. We simulate a 32-bit integer saturation limit (sat_limit). When the bucket hits this limit, it represents "Panic Buying/Selling" — the market capability to absorb orders is saturated.
█ Uniqueness & Originality This is custom-built code, not a mashup of existing indicators. It translates hardware logic (Verilog/VHDL concepts) into Pine Script:
It introduces a "Saturation Warning" mechanism that detects when volume pressure exceeds mathematical limits.
It implements a "Gray Line" Strategy, focusing on volatility decay rather than momentum initiation.
█ How to Use: The "Gray Line" Strategy
This tool is designed for Mean Reversion and Exhaustion Trading, specifically on M1 to M5 timeframes.
Do NOT trade the breakout: When you see massive Green (Long) or Purple (Short) bars, this indicates "Extreme Momentum". Do not enter yet. Wait.
Wait for the "Gray Line": The signal is generated when the Extreme Momentum stops and the bar turns Gray (Neutral).
Signal L (Long): Generated when a sequence of Extreme Short bars (Purple) ends, and the histogram returns to Gray/Maroon. This confirms sellers are exhausted.
Signal S (Short): Generated when a sequence of Extreme Long bars (Green) ends, and the histogram returns to Gray/Teal. This confirms buyers are exhausted.
█ Disclaimer This script is intended for educational purposes regarding HFT algorithms and Order Flow analysis. It does not provide financial advice.
Apex Wallet - Ultimate Trend Meter: 9-in-1 Multi-Layer Momentum Overview The Apex Wallet Trend Meter is an advanced decision-making dashboard designed to provide a comprehensive view of market conditions without cluttering your main price chart. It synthesizes complex data from 9 different technical sources into a clean, horizontal visual grid, allowing traders to spot confluence at a single glance.
The Power of Confluence Instead of switching between multiple oscillators, this tool monitors:
Triple EMA Structure: Tracks Short, Medium, and Long-term trend directions.
Momentum Suite: Real-time status of RSI, Stochastic, and StochRSI.
Advanced Analyzers: Includes MACD (Line/Signal), TDI (Traders Dynamic Index), and the Andean Oscillator for trend exhaustion and volatility states.
Smart Delta Net: A sophisticated Volume Delta engine that filters market noise through customizable modes (Buy/Sell, Neutral, or Automatic).
Key Features:
Adaptive Trading Presets: One-click selection for Scalping, Day-Trading, or Swing-Trading. The script automatically recalibrates all 9 indicator periods to fit your timeframe.
Market Bias Filtering: Indicators are color-coded based on their alignment with the global market trend. Signals only turn Bullish or Bearish when they align with the master trend EMA.
Dynamic Delta Grid: Displays scaled net volume values directly inside the grid for precise institutional flow tracking.
Fully Customizable UI: Toggle any layer on/off and adjust the layout density to match your workspace.
How to use: Look for "Vertical Confluence." When multiple layers turn the same color simultaneously, it indicates a high-probability momentum shift.
Athanor - Context Execution EngineAthanor is a discretionary-to-mechanical execution indicator designed for traders who want to apply market judgment once and then remove themselves entirely from the trade.
Rather than generating signals or predictions, Athanor acts as a controlled execution furnace: you define the trade context (entry, invalidation, and target), and the system executes that decision exactly as specified — without interference, re-entries, or emotional overrides.
This makes Athanor especially suited for:
Prop firm evaluations
Set-and-forget trading
Overnight or “sleep-safe” execution
Traders who want discipline enforced after analysis is complete
Key Features
• Supports up to four independent trade scenarios (e.g. range fades and breakouts)
• One-and-done execution — first fill locks all others (OCO behavior)
• Daily arming logic prevents historical or stale triggers
• Time-based expiry ensures trades only execute while context is valid
• Optional global cancel time for session-based trading
• Webhook alerts compatible with automation services (e.g. TradersPost)
What Athanor Is Not
Athanor does not:
Predict direction
Trail stops
Scale positions
Re-enter after a stop
Override your decisions
It executes only what you explicitly authorize.
Intended Workflow
Analyze the market and identify a complete, self-contained trade idea
Define entry, stop, and target levels
Arm Athanor for the current session
Walk away and let the trade resolve
If price reaches your level, the trade executes.
If not, the idea expires without consequence.
Philosophy
Athanor is built on the principle that judgment and execution should not occur at the same time.
By separating analysis from execution, traders reduce emotional interference, over-management, and rule-breaking — especially during high-pressure environments such as prop firm evaluations.
Time+Another way of looking at time, with each time classification split into 4 parts, where you can assess in what quarter of time price moves, or does not.
Reversal Chart Patterns DetectorDescription
📋 Overview - What the indicator does
✨ Features - 11 key features
🟢 Bullish Patterns - 5 patterns dengan emoji dan penjelasan
🔴 Bearish Patterns - 5 patterns dengan emoji dan penjelasan
✅ Confirmation System - Volume & RSI confirmation details
🛡️ Risk Management - LONG only untuk Malaysian market
🎨 Visual Elements - Labels, SMAs, lines, dashboard
⚙️ Settings - 4 kategori settings dijelaskan
🔔 Alerts - 4 alert conditions
💡 Best Practices - Trading guidelines
📝 Notes - Important usage tips
Market Health Indicator# Market Health Indicator - Documentation
## Overview
The Market Health Indicator is a Pine Script technical analysis tool designed for TradingView that evaluates overall market conditions by analyzing the relationship between price and three Exponential Moving Averages (EMAs), as well as the relationships between the EMAs themselves. The indicator provides a quantitative score and actionable investment recommendations.
---
## Purpose
This indicator helps traders and investors:
- Assess the overall health and trend strength of a market or security
- Make informed decisions about position sizing
- Identify bullish, bearish, or neutral market conditions
- Determine when to increase, reduce, or exit positions
---
## Scoring Methodology
### Scoring System
The indicator evaluates **6 conditions**, each contributing either **+1** or **-1** to the total score:
#### Price vs EMA Conditions (3 conditions)
1. **Price vs EMA 21**
- Price > EMA 21 → +1
- Price < EMA 21 → -1
2. **Price vs EMA 50**
- Price > EMA 50 → +1
- Price < EMA 50 → -1
3. **Price vs EMA 100**
- Price > EMA 100 → +1
- Price < EMA 100 → -1
#### EMA Relationship Conditions (3 conditions)
4. **EMA 21 vs EMA 100**
- EMA 21 > EMA 100 → +1
- EMA 21 < EMA 100 → -1
5. **EMA 21 vs EMA 50**
- EMA 21 > EMA 50 → +1
- EMA 21 < EMA 50 → -1
6. **EMA 50 vs EMA 100**
- EMA 50 > EMA 100 → +1
- EMA 50 < EMA 100 → -1
### Total Score Range
- **Minimum Score**: -6 (all conditions bearish)
- **Maximum Score**: +6 (all conditions bullish)
---
## Market Health Status
Based on the total score, the indicator assigns one of five market health statuses:
| Score Range | Status | Interpretation |
|-------------|--------|----------------|
| 4 to 6 | **Strong Bullish** | All or most conditions favor upward momentum |
| 2 to 3 | **Bullish** | Majority of conditions are positive |
| -1 to 1 | **Neutral** | Mixed signals, no clear directional bias |
| -3 to -2 | **Bearish** | Majority of conditions are negative |
| -6 to -4 | **Strong Bearish** | All or most conditions favor downward momentum |
---
## Investment Level Recommendations
The indicator provides position sizing recommendations based on the score:
| Score Range | Investment Level | Action |
|-------------|-----------------|--------|
| 4 to 6 | **100% Invested** | Maximum exposure - strong bullish conditions |
| 2 to 3 | **75% Invested** | High exposure - moderately bullish conditions |
| 0 to 1 | **50% Invested** | Moderate exposure - neutral to slightly positive conditions |
| Below 0 | **Exit Weak Stocks** | Reduce exposure - bearish conditions, exit underperforming positions |
---
## Installation & Setup
### Installation Steps
1. Open TradingView and navigate to any chart
2. Click on **Pine Editor** at the bottom of the screen
3. Copy the entire Pine Script code
4. Paste it into the Pine Editor
5. Click **"Add to Chart"**
### Configuration Options
The indicator includes two customizable settings accessible via the settings gear icon:
#### 1. Table Position
Choose where the indicator table appears on your chart:
- **Top**: top_left, top_center, top_right
- **Middle**: middle_left, middle_center, middle_right
- **Bottom**: bottom_left, bottom_center, bottom_right
**Default**: top_right
#### 2. Table Size
Adjust the text size of the indicator table:
- **tiny**: Smallest text size
- **small**: Small text size
- **normal**: Standard text size (default)
- **large**: Large text size
- **huge**: Largest text size
**Default**: normal
---
## Understanding the Display
### Table Components
The indicator displays a table with the following rows:
1. **Header Row (Colored)**
- Left cell: Market Health status
- Right cell: Current score out of 6
- Color indicates market condition (green = bullish, yellow = neutral, red = bearish)
2. **Investment Level Row (Blue)**
- Shows recommended position sizing based on current score
- Helps with portfolio management decisions
3. **Column Headers (Gray)**
- "Condition" - describes each evaluation criteria
- "Score" - shows the +1 or -1 value
4. **Condition Rows (6 rows)**
- Each row shows one of the 6 scoring conditions
- Left column: condition description
- Right column: score value (+1 in green or -1 in red)
---
## Interpretation Guidelines
### Strong Bullish (Score 4-6)
**Characteristics:**
- Price trading above all major EMAs
- EMAs aligned in bullish order (21 > 50 > 100)
- Strong upward momentum
**Action:**
- Maintain full exposure (100% invested)
- Consider adding to winning positions
- Look for pullbacks as buying opportunities
### Bullish (Score 2-3)
**Characteristics:**
- Price above most EMAs
- Generally positive EMA alignment
- Moderate upward trend
**Action:**
- Maintain high exposure (75% invested)
- Hold existing positions
- Be selective with new entries
### Neutral (Score -1 to 1)
**Characteristics:**
- Mixed signals from price and EMAs
- No clear trend direction
- Market indecision
**Action:**
- Reduce exposure to 50%
- Wait for clearer signals
- Focus on risk management
- Consider range-bound strategies
### Bearish (Score -2 to -3)
**Characteristics:**
- Price below most EMAs
- Generally negative EMA alignment
- Moderate downward trend
**Action:**
- Exit weak positions
- Reduce overall exposure
- Raise cash levels
- Protect capital
### Strong Bearish (Score -4 to -6)
**Characteristics:**
- Price trading below all major EMAs
- EMAs aligned in bearish order (21 < 50 < 100)
- Strong downward momentum
**Action:**
- Exit weak stocks immediately
- Minimal to no long exposure
- Preserve capital
- Wait for market conditions to improve
---
## Best Practices
### Usage Tips
1. **Timeframe Selection**
- Works on all timeframes
- Higher timeframes (daily, weekly) provide more reliable signals
- Lower timeframes (intraday) may generate more frequent signals but with higher noise
2. **Combine with Other Analysis**
- Use as a component of a comprehensive trading strategy
- Complement with support/resistance levels
- Consider volume and other momentum indicators
- Factor in fundamental analysis for longer-term positions
3. **Position Sizing**
- Treat investment level recommendations as guidelines, not rigid rules
- Adjust based on your risk tolerance and account size
- Consider your overall portfolio allocation
4. **Risk Management**
- Always use stop losses regardless of indicator reading
- Don't ignore risk management during "Strong Bullish" periods
- The indicator shows trend, not specific entry/exit points
### Limitations
- **Lagging Nature**: EMAs are lagging indicators, so signals may come after trend changes have begun
- **Whipsaw Risk**: In choppy, sideways markets, the indicator may generate mixed signals
- **Not a Standalone System**: Should be used as part of a broader trading strategy
- **No Predictive Power**: Shows current conditions, not future direction
- **Market Context**: May need adjustment during extreme market conditions or unusual volatility
---
## Technical Details
### EMA Calculations
The indicator uses three standard Exponential Moving Averages:
- **EMA 21**: Short-term trend (approximately 1 month of trading days)
- **EMA 50**: Medium-term trend (approximately 2.5 months)
- **EMA 100**: Long-term trend (approximately 5 months)
EMAs give more weight to recent prices compared to Simple Moving Averages (SMAs), making them more responsive to price changes.
### Update Frequency
- The indicator recalculates on every bar close
- Real-time updates during the current bar formation
- Table displays the most recent completed bar data
### Performance
- Lightweight indicator with minimal computational overhead
- Suitable for use with multiple charts simultaneously
- No historical data storage required beyond standard EMA calculations
---
## Frequently Asked Questions
**Q: Can I change the EMA periods (21, 50, 100)?**
A: The current version uses fixed EMA periods. Modifying these would require editing the Pine Script code directly.
**Q: Does this indicator work on all assets?**
A: Yes, it works on stocks, forex, cryptocurrencies, commodities, and indices - any asset with price data.
**Q: Can I use this for day trading?**
A: Yes, but it's designed for swing trading and position trading. For day trading, consider using lower timeframes and being aware of increased signal noise.
**Q: What if the score keeps changing?**
A: Frequent score changes indicate a choppy or transitional market. Consider waiting for a more stable reading before taking action.
**Q: Should I exit ALL positions when score is negative?**
A: The recommendation is to "Exit Weak Stocks" - focus on underperforming positions. Strong stocks may still be held with appropriate stop losses.
**Q: Can I get alerts based on score changes?**
A: The current version doesn't include alerts, but this functionality could be added with Pine Script modifications.
---
## Version History
**Version 1.0**
- Initial release
- 6-condition scoring system
- Investment level recommendations
- Customizable table position and size
- Overlay on main chart
---
## Support & Feedback
For questions, suggestions, or issues with the indicator:
- Review this documentation thoroughly
- Test the indicator on historical data before live trading
- Adjust settings to match your chart layout preferences
- Always paper trade new strategies before risking real capital
---
## Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, trading advice, or any other type of advice. Trading and investing involve substantial risk of loss. Past performance is not indicative of future results. Always do your own research and consult with a qualified financial advisor before making investment decisions.
Gold Premium Histogram
Compares Altins1 to gram gold in turkish lira to see the deviation and suggesting when to arbitrage
AIE Crypto BoxAIE Crypto Box
The AIE Crypto Box highlights the previous day’s high, low, and midpoint directly on your chart.
It draws a clean, light-blue range box with optional midline, extending into the current session to help traders identify key liquidity zones, support & resistance, and breakout levels.
Designed for intraday traders and scalpers, the box provides a clear market framework for session opens, range trading, and break-and-retest setups.
Best used on lower timeframes (1m–15m).
Dual RSI Spread Strategy [Custom]
概述
这是一个综合性的动量交易工具,结合了双重 RSI 交叉系统与经典 RSI 背离检测功能。该指标旨在通过分析短期与长期动量的“剪刀差”来识别潜在的超买/超卖区域,并辅以顶底背离信号作为反转确认。
核心功能与逻辑
1. 双重 RSI 差值信号 (Dual RSI Spread) 该策略同时计算两条 RSI 曲线:
短周期 RSI (默认 13):对价格变化反应灵敏。
长周期 RSI (默认 42):代表长期趋势基准。
交易信号基于两条 RSI 的差值 (Spread) 生成,逻辑如下:
🟢 买入信号 (Buy):当 长周期 RSI - 短周期 RSI > 20。这意味着短期动量严重低于长期基准,市场可能处于深度超卖状态,存在均值回归需求。
🔴 卖出信号 (Sell):当 短周期 RSI - 长周期 RSI > 20。这意味着短期动量冲高过快,远超长期基准,市场可能过热。
2. RSI 顶底背离 (Divergence) 指标内置了经典的背离检测算法(可选择开启/关闭),应用于短周期 RSI:
Bullish Divergence (看涨背离):价格创新低,但 RSI 底部抬高。
Bearish Divergence (看跌背离):价格创新高,但 RSI 顶部降低。 (注意:背离功能默认关闭,请在设置中勾选 "Calculate Divergence" 开启)
3. 高度自定义
支持自定义 RSI 长度、平滑类型 (SMA/EMA) 及平滑长度。
支持自定义差值阈值(默认 20)。
完整的告警支持:可分别为差值信号和背离信号设置 TradingView 告警。
如何使用 建议将“差值信号”作为预警,结合“背离信号”作为确认。当出现“买入”标签且随后出现 Bullish 背离时,胜率通常更高。
Overview
This is a comprehensive momentum trading tool that combines a Dual RSI Cross System with Classic RSI Divergence Detection. It is designed to identify potential overbought/oversold conditions by analyzing the "spread" between short-term and long-term momentum, reinforced by divergence signals for reversal confirmation.
Key Features & Logic
1. Dual RSI Spread Signals The script calculates two RSI lines simultaneously:
Short RSI (Default 13): Sensitive to immediate price changes.
Long RSI (Default 42): Represents the longer-term baseline.
Trading signals are generated based on the Spread (Difference) between these two lines:
🟢 BUY Signal: Triggers when Long RSI - Short RSI > 20. This implies short-term momentum is significantly below the long-term baseline, suggesting a deep oversold condition and potential mean reversion.
🔴 SELL Signal: Triggers when Short RSI - Long RSI > 20. This implies short-term momentum has spiked too far above the baseline, suggesting an overheated market.
2. RSI Divergence The indicator includes a built-in divergence detection algorithm (optional) applied to the Short RSI:
Bullish Divergence: Price makes a lower low, but RSI makes a higher low.
Bearish Divergence: Price makes a higher high, but RSI makes a lower high. (Note: Divergence is disabled by default. Please check "Calculate Divergence" in the settings to enable).
3. Fully Customizable
Configurable RSI lengths, Smoothing types (SMA/EMA), and Smoothing lengths.
Adjustable Spread Threshold (Default is 20).
Full Alert Support: Set alerts specifically for Spread Signals or Divergence detections.
How to Use It is recommended to use the "Spread Signals" as an early warning system and the "Divergence Signals" as confirmation. A setup where a "BUY" spread label is followed by a Bullish Divergence line often presents a higher probability trade.






















