震荡指标
RSI Statistics [Honestcowboy]⯁ Overview
Research tool for analysing price behaviour based on RSI, find out how your favorite trading pair / timeframe combinations react to RSI. 5 Different projections based on 5 different value zones of RSI:
RSI between 100-80 (very overbought)
RSI between 80-60 (overbought)
RSI between 60-40 (normal)
RSI between 40-20 (oversold)
RSI between 20-00 (very oversold)
The script simply show price projections of different RSI environments so you can get an idea of what price could do when RSI reaches this RSI value zone. Ofcourse past price performance does not guarantee future returns and this is just projections based on the past.
The script also projects RSI just like it does with price so you can get an idea of how long RSI might stay in overbought or very overbought etc
Script is mainly a research tool to use to get ideas to explore further and build upon. Here are some examples:
⯁ Settings
RSI Lenght: this is just normal RSI settings you find in standard RSI (bars used to calculate RSI)
Projection Length: Amount of bars to save for projections. The projections will also project this many bars in futre. Higher values here increase loading time drastically.
Price Action Boundaries: turn the highs / lows of projection zone on or off. I usually turn this off to look more closely at the averages themselves.
Maximum Stats history: Not on by default, in case you only want to show the average projection of last X amount of occurences RSI was in a specific RSI value zone
Selection of the different zones: in case you want to look at a specific zone alone or turn of some zones. It will no longer project for that zone both in the price projection and RSI projections.
⯁ How are these calculated?
To calculate the average price reaction script uses a very simple approach. On each bar it will save price action array up to projection length back in time. It will then check what the RSI value was there and store the array inside the right matrix.
It will use this matrix to calculate the averages, highs and lows of all these arrays for that specific RSI zone. It uses a simple arithmatic averaging method to get average value.
The script uses a similar approach for projecting the RSI itself into the future.
I include a visual showing it a bit better. This is from a different indicator of me using same approach:
The script will force you into a specific background, bar color and color template. Script is not meant to be used with other scripts and should be used as a standalone tool.
[xProfit] Trend Pulse MTF Trend Pulse MTF — Multi-Timeframe Momentum Oscillator
Trend Pulse MTF is an advanced momentum oscillator that aggregates multiple technical indicators across various timeframes to provide a comprehensive market analysis. The indicator combines RSI, Wave Trend, Bollinger Bands Trend, and Laguerre RSI into a single normalized momentum value, helping traders identify overbought/oversold conditions, trend direction, and potential reversal points with high precision.
The indicator displays data from five timeframes (30M, 1H, 4H, 1D, 1W) simultaneously, allowing traders to align their trades with higher-timeframe trends while optimizing entry timing on lower timeframes.
Key Features
• Multi-Indicator Aggregation: Combines 4 different momentum indicators (RSI, Wave Trend, BBTrend, Laguerre RSI) into one normalized value.
• Multi-Timeframe Analysis: Displays momentum data from 5 timeframes (30M, 1H, 4H, 1D, 1W) to identify trend alignment and confluence.
• 8-Color Confluence Histogram: 8 distinct colors represent various combinations of trend directions on the 30M, 1H, and 4H timeframes for instant visual clarity.
• Dynamic Signal Line: An EMA-based signal line that changes color based on the 1D trend direction, helping to identify trend shifts and crossovers.
• Extreme Zone Detection: Automatic identification of FOMO (Overbought) and FEAR (Oversold) zones across multiple timeframes.
• MTF Dashboard: A real-time on-chart table (best viewed on 1H) showing values, EMA difference, and trend direction for all major timeframes.
• Adaptive Normalization: BBTrend values are automatically normalized based on the current chart timeframe for consistent and reliable readings.
• Webhook Integration: Built-in support for automated trading alerts with detailed multi-timeframe JSON data.
How the Indicator Works
Core Components
1. Aggregated Momentum Value:
The indicator calculates a composite momentum score by combining:
◦ RSI (Relative Strength Index): Normalized to a -100 to +100 scale. Measures price momentum and overbought/oversold conditions.
◦ Wave Trend (WT): Based on the Trend Channel Index (TCI). Normalized from -100 to +100. Identifies momentum waves and divergences.
◦ BBTrend (Bollinger Bands Trend): Measures the relationship between short and long Bollinger Bands. It scales automatically based on the timeframe.
◦ Laguerre RSI: An advanced RSI variant with gamma-smoothing that reduces lag while filtering out market noise.
2. Signal Line (EMA Difference):
◦ Calculation: The signal line is created by calculating the difference between the Aggregated Value and Laguerre RSI, then applying an EMA smoothing.
◦ Color Coding: The signal line is Green when the 1D timeframe is in an uptrend (Aggregated Value > EMA Difference) and Red during a downtrend.
3. Multi-Timeframe Data:
Each timeframe provides its own aggregated value and EMA difference, allowing traders to see trend alignment across different time horizons.
Trading Logic & Signal Interpretation
Bullish Signals (Buy Setup):
• Histogram bars are in the negative zone (Oversold; values vary by asset, typically below -60/-80).
• Bars begin to close ABOVE the EMA Difference line (crossover).
• Higher timeframes (4H, 1D, 1W) show bullish confirmation.
• The Signal Line turns Green (1D uptrend).
• Color transition: Dark Red/Maroon → Blue/Purple → Green.
• Interpretation: The market is exiting oversold conditions and starting a bullish reversal. The deeper the oversold reading and the higher the confirming timeframe, the stronger the signal.
Bearish Signals (Sell Setup):
• Histogram bars are in the positive zone (Overbought; typically above +60/+80).
• Bars begin to close BELOW the EMA Difference line (crossover).
• Higher timeframes (4H, 1D, 1W) show bearish confirmation.
• The Signal Line turns Red (1D downtrend).
• Color transition: Dark Green/Green → Orange/Gold → Red.
• Interpretation: The market is exiting overbought conditions and starting a bearish reversal.
Trend Following Strategy
• Uptrend Confirmation: When histogram bars consistently close ABOVE the EMA Difference line. Dark Green color represents the strongest uptrend (30M, 1H, and 4H are all bullish).
• Downtrend Confirmation: When histogram bars consistently close BELOW the EMA Difference line. Maroon color represents the strongest downtrend (30M, 1H, and 4H are all bearish).
Extreme Zones (FOMO & FEAR)
• FOMO Zone (Extreme Overbought): When 1H, 4H and 1D shows an aggregated value > +100, a Light Blue horizontal line appears. This indicates extreme greed/overbought conditions. These are warning zones where a reversal is likely.
• FEAR Zone (Extreme Oversold): When 1H, 4H and 1D shows an aggregated value < -100, a Purple horizontal line appears. This indicates extreme fear/oversold conditions. These are often high-probability buying opportunity zones.
Timeframe Usage Guide
• Long-Term Investments (1D/1W): Use 1D and 1W signals for long-term position building. Enter on FEAR zone crossovers and exit on FOMO zone crossovers. Best for swing traders and investors.
• Swing Trading (4H/8H/12H): Focus on the 4H trend. Use 1D/1W for confirmation. Enter when 4H crosses above the EMA Difference in the oversold zone.
• Day Trading (1H/30M): Primary analysis on 1H, entries on 30M or 15M. Check the MTF Dashboard for alignment. Trade in the direction of the 4H and 1D trends.
• Scalping (15M and lower): Very short-term trades. MUST align with 1H and 4H for best results. Use strict risk management.
Understanding the 8-Color Scheme
The histogram uses 8 colors to show the trend direction combination across three timeframes (30M, 1H, 4H):
• Dark Green: (30M ↑, 1H ↑, 4H ↑) — Maximum Bullish Confluence.
• Green: (30M ↓, 1H ↑, 4H ↑) — Strong Uptrend, minor pullback on 30M.
• Purple: (30M ↑, 1H ↓, 4H ↑) — Mixed trend, 1H correction within 4H uptrend.
• Gold: (30M ↓, 1H ↓, 4H ↑) — Weakening uptrend, potential reversal warning.
• Blue: (30M ↑, 1H ↑, 4H ↓) — Weakening downtrend, potential reversal forming.
• Orange: (30M ↓, 1H ↑, 4H ↓) — Mixed trend, 1H rally within 4H downtrend.
• Red: (30M ↑, 1H ↓, 4H ↓) — Strong downtrend, minor bounce on 30M.
• Maroon: (30M ↓, 1H ↓, 4H ↓) — Maximum Bearish Confluence.
MTF Dashboard Table
When active, the dashboard shows:
• Value: Current aggregated momentum (Color-coded by strength).
• EMA Diff: Current signal line value.
• Trend: Real-time direction (Uptrend/Downtrend).
Dashboard Color Rules:
• Extr. Overbought (>100): Maroon | Strong (>61): Red | Moderate (>30): Orange | Neutral: Yellow | Moderate Oversold (<-30): Lime | Strong (<-61): Green | Extr. Oversold (<-100): Dark Green.
Dashboard Color Rules (Other TFs):
• Extr. Overbought (>100): Maroon | Strong (>81): Red | Moderate (>61): Orange | Neutral: Yellow | Moderate Oversold (<-81): Lime | Strong (<-100): Green | Extr. Oversold: Dark Green.
Best Practices & Risk Management
• Alignment is Key: Always check higher timeframe alignment before entering.
• Wait for Close: Signals are only valid once the candle has closed.
• Risk Control: Never risk more than 1-2% per trade. Use stop-losses below recent swing lows (for longs) or above swing highs (for shorts).
• Avoid Chasing: Do not enter late when the market is already deep in FOMO or FEAR zones.
Webhook Integration
The indicator sends data from the PREVIOUS (confirmed) candle to ensure 100% accuracy and eliminate any possibility of repainting.
{ "signal": "Trend Pulse Status Update", "ticker": "BTCUSDT.P", "data_1H": { "val": 45.20, "ema_diff": 12.50, "is_uptrend": true }, "data_4H": { "val": -15.40, "ema_diff": -5.10, "is_uptrend": false }, "data_1D": { "val": 85.00, "ema_diff": 40.20, "is_uptrend": true }, "data_1W": { "val": 110.00, "ema_diff": 95.00, "is_uptrend": true } }
I hope this tool helps you in your trading journey. Feel free to leave your feedback and questions in the comments below! Boost it if you find it useful!
Disclaimer
IMPORTANT: This indicator is a technical analysis tool designed to assist in trading decisions. It does not provide investment advice and should not be the sole basis for any trading decision.
All trading involves substantial risk of loss. Past performance does not guarantee future results. The indicator's signals are based on mathematical calculations and do not predict future market movements with certainty.
Extreme zones (FOMO/FEAR) indicate overbought/oversold conditions but markets can remain in these zones for extended periods. Always use proper risk management, stop losses, and position sizing.
The multi-timeframe data is provided for informational purposes. Higher timeframe trends can change, and lower timeframe noise can generate false signals. Always conduct your own analysis and consider consulting with a qualified financial advisor before making trading decisions.
MACD Power HAIndicator Name: MACD Power HA
Subtitle: Standardized Heikin-Ashi Momentum Oscillator
Description: The MACD Power HA is an advanced momentum oscillator designed to provide a clearer visualization of market trends compared to the traditional MACD. By transforming standardized MACD values into Heikin-Ashi candles, this indicator filters out market noise and highlights the true strength ("Power") of the current trend.
Unlike a standard MACD, this version normalizes volatility, allowing for more consistent Overbought (OB) and Oversold (OS) detection across different timeframes and assets.
Key Features:
Heikin-Ashi Smoothing: Converts raw momentum data into smooth candles, making it easier to spot trend continuations and reversals without the "choppiness" of standard lines.
Standardized Calculation: Automatically adjusts to volatility, ensuring that signals remain reliable whether the market is quiet or volatile.
Reversion Signals: Displays visual markers (Triangles) when the price reaches extreme Overbought or Oversold levels and begins to reverse.
Hybrid Display: Includes a Signal line and a Histogram to confirm momentum strength.
New Customization Options:
Fully Customizable Colors: Users can now independently configure colors for Up/Down candles, the Histogram, and the Signal line to match their chart theme.
Toggleable Background Bands: Includes adjustable Overbought/Oversold background zones that can be toggled On/Off or recolored to reduce visual clutter.
How to Use:
Trend Following: Look for a sequence of Green Candles (above the midline) for bullish momentum and Red Candles (below the midline) for bearish momentum.
Entries: A change in candle color often signals an entry point (e.g., Red to Green crossover).
Exits/Reversals: Watch for the colored Triangles or when the candles reach the outer background bands, indicating the move may be overextended.
IFT CCI + IFT RSI Average by ysfgnrIFT CCI + IFT RSI Average is a momentum-based oscillator that combines the Inverse Fisher Transform (IFT) of the Commodity Channel Index (CCI) and the Relative Strength Index (RSI) into a single, normalized impulse signal.
The indicator is designed to provide a smoother and more interpretable view of momentum dynamics by transforming traditional oscillators into a bounded range and blending them using adjustable weight ratios.
Core Concept
Both CCI and RSI are calculated, smoothed, and transformed using the Inverse Fisher Transform, which compresses values into a range between -1 and +1.
This transformation improves visual clarity and makes momentum shifts easier to interpret.
The final impulse value is calculated as a weighted average of the IFT-transformed CCI and RSI components.
Weighting Logic
The IFT CCI Weight (%) and IFT RSI Weight (%) inputs control the relative contribution of each component to the final impulse value.
The weights are automatically normalized, meaning the combined contribution always equals 100%, regardless of the selected ratio.
This allows users to emphasize CCI-based momentum, RSI-based momentum, or maintain a balanced blend without affecting overall stability.
Trend Interpretation
The impulse signal is interpreted using fixed threshold levels:
Values above +0.5 indicate strong bullish momentum
Values below -0.5 indicate strong bearish momentum
Values between these levels represent weaker or developing momentum states
An optional Early Trend Entry Mode allows trend detection to begin earlier using predefined threshold logic, without altering the strong trend boundaries.
Multi-Timeframe Support
The indicator supports multi-timeframe analysis.
IFT CCI and IFT RSI calculations can be performed on a user-selected timeframe, while the results are displayed on the current chart timeframe.
This allows higher-timeframe momentum to be analyzed within lower-timeframe price action.
Trend Duration Statistics
The script tracks bullish and bearish trend durations measured in bars and provides statistical summaries using either:
Average duration, or
Median duration, which reduces the influence of extreme values
A progress metric shows how the current trend compares to its historical duration, expressed as a percentage.
Visuals and Table
The impulse line is color-coded based on trend direction and strength
A compact statistics table displays:
Current trend state
Average or median trend duration
Current trend length
Progress relative to historical norms
Table size and position are fully configurable.
Alerts
Alert conditions are provided for:
Strong bullish and bearish momentum starts
Weak trend entries (when enabled)
Trend direction changes
Trend duration threshold warnings
Alerts are designed to notify state changes rather than predict future price movement.
Important Notes
This indicator is intended for analytical and educational purposes.
It does not provide trading signals, predictions, or financial advice.
Users are encouraged to combine it with other tools and apply their own judgment.
Viper Screener🔶 Overview
The Mkt-Viper Screener is the tactical command center of the Viper Suite. It is a multi-asset Telemetry Dashboard designed to provide market-wide situational awareness in a single glance.
Instead of flipping through dozens of charts to find setups, the Viper Screener processes up to 20 assets simultaneously, running them through the core "Viper V5" calculation kernel. It instantly categorizes market conditions based on Trend, Structure, Mean Reversion, and Momentum, allowing you to identify high-probability confluences across the entire market instantly.
🔶 What makes Mkt-Viper Screener unique?
While most screeners only look at simple Moving Averages or RSI, this tool runs a Regenerative Calculation Kernel. It miniaturizes the complex math found in the Viper Pro, Edge, and Oscillator and runs lightweight versions of them on 20 different tickers in the background.
It serves as the "Nexus" of the system, synchronizing the logic of the entire suite into a unified Heads-Up Display (HUD).
Main Features
The dashboard organizes data into four critical dimensions of market analysis:
🔶 1. Trend Signal (The "Pro" Engine)
This column utilizes the Viper Trend Signal logic found in the Mkt-Viper Pro.
BUY:
The asset is in a confirmed Bullish Trend.
SELL:
The asset is in a confirmed Bearish Trend.
🔶 2. Viper Band Status
This column calculates the asset's location relative to the dynamic volatility band.
ABOVE:
Price is extended to the upside (Potential Breakout or Overextension).
BELOW:
Price is extended to the downside.
INSIDE:
Price is trading within the mean-reversion channel (Consolidation).
🔶 3. Market Structure
This analyzes the swing points (Pivots) of the asset to determine the structural bias.
BULLISH:
The asset is making Higher Highs/Lows.
BEARISH:
The asset is making Lower Highs/Lows.
🔶 4. Oscillator Momentum
This utilizes a gravity-based momentum calculation similar to the Viper Oscillator.
RISING ↗:
Velocity is expanding upward.
FALLING ↘:
Velocity is expanding downward.
🔶 Global Auto-Tuning
The screener includes the Viper Synapse Tuner. You can set the sensitivity of the Trend Engine globally.
Fast:
For scalping multiple tickers on lower timeframes.
Moderate:
The standard setting for Swing Trading.
Slow:
For filtering macro-trends across the market.
🔶 Visual Intelligence (UI)
The interface is built with a "Glassmorphism" aesthetic designed to overlay cleanly on your chart without obstructing price action.
Positioning: Fully customizable (Top/Bottom, Left/Right).
Size: Scalable text to fit 4K monitors or Laptops.
🔶 How to use: The "Royal Flush" Workflow
The Screener is designed to find Alignment in the Market.
Step 1: Configuration
Input your favorite 20 assets (Crypto, Forex Pairs, or Indices) into the settings menu. Set the "Screener Timeframe" to your higher timeframe bias (e.g., 4 Hour or Daily).
Step 2: The Scan
Watch the dashboard. You are looking for Total Confluence.
The Strategy:
Full Bullish Lock: When the Trend is BUY, Structure is BULLISH, and Momentum is RISING. This indicates a high-probability impulse move is underway.
Contrarian Scan: If Trend is BUY, but the Viper Band says "ABOVE" and Momentum is "FALLING," the asset is likely due for a pullback. This alerts you to check the chart for a short setup.
🔶 Technical Note: Data Updates & Repainting
Real-Time Recalculation:
The dashboard updates in real-time. This means the status of the Current Open Candle (e.g., the current 4-Hour bar) is fluid. If price is fluctuating around the trendline, the "TREND" cell may flip between BUY and SELL until the candle officially closes. This is normal behavior for real-time monitoring tools.
Historical Data:
This script utilizes request.security with lookahead=barmerge.lookahead_off. This ensures that historical data does not repaint. Once a candle closes and a status is locked, it will never change.
Data Loading:
When loading the screener for the first time, allow the script a moment to fetch data for all 20 tickers. If a cell shows "NaN" or blank, it typically resolves on the next tick.
---------------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, back test, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
ZScore Blowout Screener 20 symbols custom timeIt calculates the Z-score (how many standard deviations price is from its mean) for 20 user-configurable symbols (default: major ETFs like TLT, GLD, SLV, USO, etc. + TSLA) on a single chosen timeframe (default 15-min).
On the last bar it builds and displays a sortable table overlay on the chart showing:
Rank by absolute Z-score (highest deviation first)
Symbol
Signed Z-score (or absolute if toggled)
Absolute Z-score column
Rows with |Z| ≥ user-defined "blowout" threshold (default ≥2.0) are highlighted in red/lime with brighter text. Optional mode blanks non-blowout Z-values while keeping rows visible.
The table position, text size, and number of displayed rows are customizable. It's designed as a quick visual scanner for extreme short-term deviations across diversified assets.
Chan Theory - Chanlun Pro | CJZT# Chan Theory - Chanlun Pro | CJZT
## Overview
This is the professional version of Chan Theory (缠论) structural analysis indicator, built with Pine Script v6. It provides comprehensive multi-level structure recognition, advanced trading signals, MACD divergence analysis, and additional professional tools including Pivot Points support/resistance levels, liquidity-weighted moving averages, and customizable alert systems.
**Why This Indicator?**
Real market movements rarely follow textbook patterns. This indicator addresses this reality with:
- **Single Pen to Segment**: When a powerful pen breaks the previous level's extreme or meets K-line count requirements (configurable 5-30 K-lines), it can directly become a segment
- **9-Pen Segment to Trend**: A segment containing 9+ pens can upgrade to trend line level
- **Flexible Level Upgrade**: Multiple conditions (extremum breakthrough, count requirements, or either) allow the structure to adapt to actual market behavior
- **4K/5K Pen Types**: Designed to better fit sub-cycle movements with shorter K-line requirements
- **Top/Bottom to Pen**: When top/bottom fractal strength is significant, allows pen formation based on amplitude ratio
- **Professional Tools**: Includes Pivot Points, liquidity-weighted MAs, and advanced filtering systems
**Key Features:**
- 5 pen types: Classic, Optimized, 4K, 5K, Strict
- 3 segment modes: Dynamic Correction, Strict, Extension
- 3-level structure: Pens → Segments → Trend Lines
- Complete Type I/II/III trading signals
- MACD divergence analysis
- Pivot Points support/resistance (Traditional, Fibonacci, Camarilla)
- Liquidity-weighted moving averages
- Advanced signal filtering system
- Custom alert configurations
## What Makes This Indicator Original
This indicator is an original implementation of Chan Theory with several unique innovations:
**1. Flexible Level Upgrade System**
Unlike traditional Chan Theory indicators that strictly require 3 pens to form a segment, this indicator introduces practical upgrade conditions. A powerful pen can directly become a segment when it breaks the previous level's extreme OR meets K-line count requirements (configurable 5-30 K-lines).
**2. Five Distinct Pen Construction Types**
Provides multiple pen detection methods (Classic/Optimized/4K/5K/Strict) to fit different market conditions and timeframes, allowing traders to choose the most appropriate method for their trading style.
**3. Integrated Professional Tools**
Combines Chan Theory analysis with professional trading tools:
- **Pivot Points**: Classic support/resistance levels using public domain algorithms (Traditional, Fibonacci, Camarilla)
- **Liquidity-Weighted MAs**: Advanced moving averages based on volume and price movement
- **Custom Alert System**: Configure specific combinations of buy/sell signals for personalized alerts
**4. Three-Level Hierarchical Structure**
Complete implementation of Pens → Segments → Trend Lines with independent controls for each level, including separate extension modes and signal generation.
**5. Comprehensive Signal Filtering**
Multiple filter options including fractal validation, MACD divergence, zero-axis filters, and liquidity confirmation to improve signal quality.
## Core Functions
### 1. Candlestick Containment Processing
Advanced containment processing with configurable options:
- **Left Containment**: Standard processing
- **Right Containment Check**: Optional additional validation
- Recursive processing ensures complete elimination
### 2. Pen Construction (5 Types)
| Type | Description |
|------|-------------|
| **Classic (老笔)** | 5+ processed K-lines per pen |
| **Optimized (新笔)** | 4+ processed + 5+ raw K-lines |
| **4K** | 4 raw K-lines with extremum validation |
| **5K** | 5 raw K-lines standard |
| **Strict (严笔)** | 5+ K-lines with directional validation |
### 3. Single Pen to Segment
Advanced level upgrade conditions:
- **Extremum Breakthrough**: Based on breaking previous level extremes
- **K-line Count**: Based on K-line count (5-30 configurable)
- **Either Satisfied**: Either condition can trigger upgrade
### 4. Segment Modes
| Mode | Description |
|------|-------------|
| **Strict Mode** | No extension, segments only form when fully confirmed |
| **Extension Mode** | Allows segment extension for current market tracking |
| **Dynamic Correction** | Extends first, then corrects based on new information |
### 5. Trading Signals
Complete Type I/II/III signal system:
- **Type I (1buy/1sell)**: Trend reversal based on divergence
- **Type II (2buy/2sell)**: Pullback entries at pivot zones
- **Type III (3buy/3sell)**: Breakout confirmations
### 6. Pivot Points Support/Resistance
Classic pivot point calculations for identifying key price levels:
- **Traditional**: Standard pivot point formula
- **Fibonacci**: Fibonacci-based levels (38.2%, 61.8%)
- **Camarilla**: Intraday support/resistance levels
- Configurable timeframes (Daily, Weekly, Monthly, etc.)
### 7. Liquidity-Weighted Moving Averages
Advanced moving averages that consider volume and price movement:
- Fast and slow MA with customizable periods
- Outlier detection for identifying unusual liquidity events
- Visual fill between MAs for trend identification
### 8. Signal Filtering
Multiple filter options to improve signal quality:
- Fractal validation filter
- MACD divergence filter for Type I signals
- MACD zero-axis filter for Type II signals
- Liquidity confirmation filter
- Expected signal system (early warning)
## How to Use
### Initial Setup
1. Add indicator to chart
2. Select pen type based on your timeframe:
- Intraday (1m-15m): Use 4K or 5K for faster response
- Swing (1H-4H): Use Classic or Optimized
- Position (Daily+): Use Strict for reliability
3. Configure level upgrade:
- Conservative: "Extremum Breakthrough" only
- Balanced: "Either Satisfied" (recommended)
- Aggressive: "K-line Count" only
### Professional Tools Setup
**Pivot Points:**
- Enable "显示 支撑阻力" to show pivot levels
- Choose pivot type (Traditional recommended for beginners)
- Select timeframe (Auto adapts to chart timeframe)
**Liquidity MAs:**
- Enable "显示流动性加权均线"
- Adjust fast/slow periods based on trading style
- Use for trend confirmation and liquidity analysis
### Trading with Signals
1. **Type I Signals**: Enter on trend reversal after divergence confirmation
2. **Type II Signals**: Enter on pullbacks within established trends
3. **Type III Signals**: Enter on breakouts from pivot zones
4. **Pivot Levels**: Use as additional confirmation for entries/exits
### Best Practices
- Use higher timeframe structure for trend direction
- Enter on lower timeframe signals aligned with higher timeframe trend
- Combine pivot levels with Chan Theory signals for confluence
- Set custom alerts for your preferred signal combinations
## Settings Reference
### Display Settings
| Setting | Description |
|---------|-------------|
| Show All Fractals | Display all top/bottom patterns |
| Running Pen | Show forming (unconfirmed) pen |
| K-line Merge | Visualize containment processing |
| Fast Pen Mode | Allow pens without complete fractals |
### Pen Settings
| Setting | Description |
|---------|-------------|
| Pen Type | Choose from 5 construction methods |
| Endpoint Mode | Strict vs flexible secondary extremes |
| Fractal Overlap | Allow overlapping fractals |
| Single Pen to Segment | Enable level upgrade features |
| Upgrade Condition | Extremum/Count/Either |
| K-line Count | 5-30 (for count condition) |
### Segment Settings
| Setting | Description |
|---------|-------------|
| Segment Mode | Dynamic Correction/Strict/Extension |
| Segment to Trend | Enable 9-pen segment to trend upgrade |
| Correction Ratio | 38.2%/50%/61.8%/78.6% Fibonacci ratios |
### Pivot Points Settings
| Setting | Description |
|---------|-------------|
| Pivot Type | Traditional/Fibonacci/Camarilla |
| Timeframe | Auto/Daily/Weekly/Monthly |
| Show Labels | Display level labels |
| Show Prices | Display price values |
### Liquidity MA Settings
| Setting | Description |
|---------|-------------|
| Fast MA Length | Default 50 periods |
| Slow MA Length | Default 100 periods |
| Outlier Threshold | Sensitivity for unusual liquidity |
### Signal Filtering
| Setting | Description |
|---------|-------------|
| Fractal Filter | Require post-fractal price confirmation |
| MACD Divergence Filter | Type I signals must show divergence |
| Zero-Axis Filter | Type II signals must align with MACD |
| Liquidity Filter | Signals must confirm with liquidity MAs |
| Show Expected Signals | Display anticipated signals |
## Disclaimer
- This script is for technical analysis reference only
- Does not constitute investment advice or trading recommendations
- Past performance does not guarantee future results
- Users should make independent trading decisions and manage their own risk
- Recommended for educational purposes and as a supplementary analysis tool
## Code Attribution
This indicator uses TradingView's built-in functions and public domain algorithms:
- **Moving Averages (MA/EMA)**: Uses TradingView's built-in `ta.sma()` and `ta.ema()` functions for the customizable moving average system
- **MACD**: Standard MACD calculation using TradingView's built-in `ta.macd()` function
- **Pivot Points**: Traditional, Fibonacci, and Camarilla pivot point calculations are classic technical analysis methods widely available across all trading platforms
All Chan Theory structural analysis logic (pen construction, segment formation, pivot zone detection, and trading signal generation) is original implementation.
---
# 概述(中文)
本指标是缠论(Chan Theory)结构分析的专业版本,提供完整的多级别结构识别、高级交易信号、MACD背驰分析,以及专业工具包括支撑阻力位、流动性加权均线和自定义警报系统。
## 核心创新
**1. 灵活的级别升级系统**
单笔成段:笔可直接升级为线段(可配置5-30根K线)
**2. 五种笔类型**
适应不同市场环境:老笔、新笔、4K、5K、严笔
**3. 专业工具集成**
- 支撑阻力位(Pivot Points)
- 流动性加权均线
- 自定义警报系统
**4. 三级结构系统**
完整的层级分析:笔 → 线段 → 趋势线
**5. 完整的买卖点系统**
一二三类买卖点,支持预期信号和确认信号
## 使用方法
1. 根据周期选择笔类型
2. 配置级别升级条件
3. 启用专业工具(支撑阻力、流动性均线)
4. 观察结构形成和买卖点信号
5. 结合支撑阻力位确认入场
## 代码归属说明
本指标使用了公共领域算法:
- **支撑阻力位**:Traditional、Fibonacci、Camarilla 枢轴点计算是经典技术分析方法
- **MACD**:使用 TradingView 内置 `ta.macd()` 函数
所有缠论结构分析逻辑均为原创实现。
## 免责声明
本指标仅供技术分析参考,不构成投资建议。用户应自行做出交易决策并管理风险。
Relative Strength Index (RSI) w/ Multi Time Frame w/ DivergencesThis indicator is an advanced evolution of the classic Relative Strength Index (RSI), designed to provide deeper market context by combining Momentum, Multi-Timeframe (MTF) analysis, and Divergences into a single, clean visual tool.
Unlike standard indicators, RSI MTF Pro v2 allows you to configure the Main RSI and the Background Trend Zone independently, giving you full control over your strategy (e.g., watching a 15m RSI while monitoring the 4H trend).
Key Features:
🚀 Dual MTF Engine: Completely independent settings for the Main RSI Line and the Background Zone. You can choose different Timeframes, Lengths, and Levels for each.
heatmap Style Background: The indicator background changes color (Red/Green) based on the MTF RSI trend, helping you filter out bad trades and stick to the dominant trend.
🎨 Smart Gradient Fills: To keep your chart clean, the gradient colors (Red/Green fills) only appear when the RSI breaches the Overbought or Oversold levels.
🎯 Divergence Detector: Automatically spots and marks Regular Bullish and Bearish divergences with pivot-based logic.
How to Use:
Trend Confirmation: Use the Background Color to determine the higher timeframe direction (e.g., Red Background = Uptrend).
Entry Signals: Look for RSI signals that align with the background color (e.g., RSI Oversold/Green Gradient + Green Background).
Reversals: Use the built-in Divergence circles to spot potential trend reversals.
Settings:
Main RSI: Customizable Timeframe, Length, OB/OS Levels.
MTF Background: Independent Timeframe, Length, and Zone thresholds (e.g., >60 Red, <40 Green).
Divergences: Toggle On/Off and adjust Pivot lookback periods.
Disclaimer: This tool is for informational purposes only and does not constitute financial advice.
Chan Theory MACD Divergence | CJZT# Chan Theory MACD Divergence | CJZT
## Overview
This is the companion MACD subplot indicator for Chan Theory structural analysis. It visualizes MACD divergence directly on the histogram, making it easier to identify Type I buy/sell signals (divergence-based trend reversals). This indicator works in perfect sync with the main Chan Theory indicator to provide visual confirmation of divergence patterns.
**Why This Indicator?**
- **Visual Divergence Confirmation**: Displays divergence lines and labels directly on MACD histogram, eliminating guesswork
- **Multi-Level Divergence Detection**: Tracks divergence across pen-level, segment-level, and trend-level structures
- **Four Divergence Methods**: Amplitude, MACD Area, MACD Histogram, or combined - choose what works best for your strategy
- **Real-Time Alerts**: Get notified instantly when divergence patterns form across different structural levels
- **Perfect Sync**: Automatically synchronizes with the main indicator's structural analysis
**Key Features:**
- MACD histogram with divergence visualization
- Pen/Segment/Trend level divergence tracking
- Type I signal divergence confirmation
- Customizable divergence detection methods
- Multi-timeframe divergence alerts
- Clean, distraction-free subplot design
## What Makes This Indicator Original
This indicator is an original implementation designed specifically for Chan Theory divergence analysis with unique features not found in standard MACD indicators:
**1. Synchronized Structural Analysis**
Automatically synchronizes with the main Chan Theory indicator's pen/segment/trend structure using identical K-line containment processing and fractal detection, ensuring perfect alignment between main chart and MACD analysis.
**2. Multi-Level Divergence Visualization**
Unlike standard MACD indicators that only show the histogram, this indicator draws divergence lines connecting MACD peaks/troughs, labels divergence types (pen/segment/trend level), and tracks divergence across three structural levels.
**3. Four Distinct Divergence Detection Methods**
Provides flexibility with Amplitude, MACD Area, MACD Histogram (most visual), or Either Method - allowing traders to choose the most appropriate method for their strategy.
**4. Integrated Expected Signal System**
Shows anticipated divergence patterns before full confirmation, allowing traders to prepare for high-probability setups while awaiting formal confirmation.
**5. Companion Indicator Design**
Specifically designed to work seamlessly with "Chan Theory - Chanlun MAX | CJZT" main indicator, providing complete Chan Theory analysis when used together.
## Disclaimer
- This script is for technical analysis reference only
- Does not constitute investment advice or trading recommendations
- Divergence signals should be confirmed with price action
- Users should make independent trading decisions and manage their own risk
- Recommended for educational purposes and as a supplementary analysis tool
## Core Functions
### 1. MACD Divergence Visualization
Displays divergence relationships directly on the MACD histogram:
- **Pen Divergence**: Compare MACD between consecutive pens
- **Segment Divergence**: Identify divergence at segment completion
- **Trend Divergence**: Detect major trend exhaustion signals
### 2. Four Divergence Detection Methods
| Method | Description |
|--------|-------------|
| **Amplitude Divergence** | Compare price swing amplitude |
| **MACD Area Divergence** | Compare MACD histogram area sum |
| **MACD Histogram** | Compare peak histogram values (recommended) |
| **Either Method** | Trigger when any method shows divergence |
> **Pro Tip**: The MACD Histogram method is most intuitive when used with this subplot indicator, as you can visually see the histogram peak comparison.
### 3. Type I Signal Requirements
Configure when Type I signals can form:
- **Must Have Pivot**: Segment must contain at least one pivot zone
- **Pivot or 3+ Pens**: Segment has pivot OR contains 3+ pens
- **Pivot or 5+ Pens**: Segment has pivot OR contains 5+ pens
### 4. Alert System
Comprehensive divergence alerts:
- **Sub-level Divergence**: Pen-level divergence alerts
- **Main-level Divergence**: Segment-level divergence alerts
- **Big-level Divergence**: Trend-level divergence alerts
- **Multi-level Resonance**: Alerts when divergence aligns across levels
## Settings Reference
### Display Settings
| Setting | Description |
|---------|-------------|
| Fast Pen Mode | Allow pens without complete fractals |
| Pen Type | Classic/Optimized/4K/5K/Strict |
| Single Pen to Segment | Enable level upgrade features |
### Divergence Settings
| Setting | Description |
|---------|-------------|
| Divergence Method | Amplitude/MACD Area/Histogram/Either |
| Type I Pivot Requirement | Pivot or pen count requirements |
| Enable Divergence Check | Force divergence validation for Type I |
### Alert Settings
| Setting | Description |
|---------|-------------|
| Expected vs Confirmed | Alert on expected/confirmed/both signals |
| Show Expected Signals | Display anticipated divergence patterns |
## How to Use
### Setup
1. Add "Chan Theory - Chanlun MAX | CJZT" to your main chart
2. Add this "Chan Theory MACD Divergence | CJZT" indicator to a subplot
3. Both indicators will automatically synchronize their structural analysis
> **Important**: Both indicators have identical default settings. If you need to modify any configuration (such as pen type, single pen to segment conditions, etc.), make sure to apply the same changes to both the main chart and subplot indicators to maintain synchronized structural analysis.
### Reading Divergence
- **Divergence Lines**: Connect MACD peaks/troughs showing divergence
- **Divergence Labels**: Display divergence type and strength
- **Color Coding**: Visual distinction between bullish/bearish divergence
### Best Practices
- Use MACD Histogram method for clearest visual confirmation
- Watch for multi-level divergence resonance for strongest signals
- Combine with main indicator's Type I signals for entry confirmation
- Set alerts for your preferred divergence detection method
## Notes
- This script is designed to work with Chan Theory - Chanlun MAX | CJZT
- For technical analysis reference only
- Does not constitute investment advice
- Users should make independent trading decisions
---
# 概述
本指标是缠论结构分析的配套MACD副图指标。它直接在MACD柱状图上可视化背驰关系,使识别一类买卖点(基于背驰的趋势反转)变得更加容易。本指标与主图缠论指标完美同步,提供背驰形态的视觉确认。
**为什么选择本指标?**
- **可视化背驰确认**:直接在MACD柱状图上显示背驰线和标签,消除猜测
- **多级别背驰检测**:跟踪笔级别、线段级别和趋势级别的背驰
- **四种背驰方法**:振幅、MACD面积、MACD柱体或组合 - 选择最适合您策略的方法
- **实时警报**:当不同结构级别形成背驰形态时立即获得通知
- **完美同步**:自动与主指标的结构分析同步
**核心功能:**
- 带背驰可视化的MACD柱状图
- 笔/线段/趋势级别背驰跟踪
- 一类信号背驰确认
- 可自定义背驰检测方法
- 多周期背驰警报
- 简洁、无干扰的副图设计
## 核心功能
### 1. MACD背驰可视化
直接在MACD柱状图上显示背驰关系:
- **笔背驰**:比较连续笔之间的MACD
- **线段背驰**:识别线段完成时的背驰
- **趋势背驰**:检测主要趋势衰竭信号
### 2. 四种背驰检测方法
| 方式 | 说明 |
|------|------|
| **振幅背驰** | 比较价格振幅 |
| **MACD面积背驰** | 比较MACD柱状图面积总和 |
| **MACD柱体** | 比较柱状图峰值(推荐) |
| **任一方式** | 任一方法显示背驰时触发 |
> **使用技巧**:MACD柱体方式配合本副图指标使用最直观,因为您可以直观地看到柱状图峰值比较。
### 3. 一类信号要求
配置一类信号形成条件:
- **必须有中枢**:线段必须包含至少一个中枢
- **有中枢或3笔以上**:线段有中枢或包含3笔以上
- **有中枢或5笔以上**:线段有中枢或包含5笔以上
### 4. 警报系统
全面的背驰警报:
- **次级别背驰**:笔级别背驰警报
- **本级别背驰**:线段级别背驰警报
- **大级别背驰**:趋势级别背驰警报
- **多级别共振**:跨级别背驰对齐时警报
## 设置参考
### 显示设置
| 设置项 | 说明 |
|--------|------|
| 急速成笔 | 允许无完整分型成笔 |
| 笔的类型 | 老笔/新笔/4K/5K/严笔 |
| 单笔成段 | 启用级别升级功能 |
### 背驰设置
| 设置项 | 说明 |
|--------|------|
| 背驰判断方式 | 振幅/MACD面积/柱体/任一 |
| 一类中枢要求 | 中枢或笔数要求 |
| 启用背驰检查 | 强制一类背驰验证 |
### 警报设置
| 设置项 | 说明 |
|--------|------|
| 预期与确认 | 预期/确认/全部信号警报 |
| 显示预期信号 | 显示预期背驰形态 |
## 使用方法
### 设置步骤
1. 在主图添加 "Chan Theory - Chanlun MAX | CJZT"
2. 在副图添加本 "Chan Theory MACD Divergence | CJZT" 指标
3. 两个指标将自动同步其结构分析
> **重要提示**:两个指标的默认设置已保持一致。如果您需要修改配置(如笔的类型、单笔成段条件等),请确保在主图和副图指标中同时进行相同的修改,以保持结构分析的同步。
### 读取背驰
- **背驰线**:连接显示背驰的MACD峰值/谷值
- **背驰标签**:显示背驰类型和强度
- **颜色编码**:视觉区分多头/空头背驰
### 最佳实践
- 使用MACD柱体方式获得最清晰的视觉确认
- 关注多级别背驰共振以获得最强信号
- 结合主指标的一类信号进行入场确认
- 为您偏好的背驰检测方法设置警报
## 原创性声明
本指标是专为缠论背驰分析设计的原创实现,具有标准MACD指标所没有的独特功能:
**1. 结构同步分析**
与主图缠论指标自动同步,使用相同的K线包含处理和分型识别逻辑
**2. 多级别背驰可视化**
在MACD柱状图上绘制背驰线、标签,跟踪笔/线段/趋势三个级别的背驰
**3. 四种背驰检测方法**
提供振幅、MACD面积、MACD柱体、任一方式四种选择
**4. 预期信号系统**
在完全确认前显示预期背驰形态,提前准备交易
**5. 配套指标设计**
专门设计用于配合主图缠论指标,两者结合实现完整分析
## 免责声明
- 本脚本仅供技术分析参考
- 不构成投资建议或交易推荐
- 背驰信号应结合价格行为确认
- 用户应自行做出交易决策并管理风险
- 建议用于教育目的和作为辅助分析工具
Kinetic Flux Indicator [Deewii]Kinetic Flux is a comprehensive trading analysis suite built around a proprietary analysis library. The system is designed to provide a complete, highly configurable solution for market analysis, strategy backtesting, and real-time market scanning.
Through a modular design, the system is divided into several independent but collaborative components—including Indicators, Strategies, and Market Scanners—all utilizing the sophisticated analysis data generated by the core library. The design reflects a deep understanding of trading workflows, offering not only basic entry/exit signals but also advanced features such as position management, market state filtering, and diverse exit mechanisms to adapt to different user trading styles and risk management needs.
This library is the computational hub of the entire system, encapsulating all core calculation logic. Its primary responsibility is to receive market data (e.g., price, volume) and output a rich set of analytical indicators and trading signals. Due to its proprietary nature, the internal working principles of the library are not disclosed. However, its key data outputs are widely used by other components in the system, including:
Oscillator: Core momentum oscillator values.
Dynamic Bands: Upper Band and Lower Band values.
Trend Line: Adaptive trend values.
Trailing Stop: Dynamically calculated stop-loss price levels.
Trading Signals: Entry, Exit, Cut, Add
Market Compression
This component is responsible for visualizing the analysis results from the core library directly on the chart. It provides extensive visual options, allowing users to intuitively interpret market states and trading signals. Key visualization elements include:
Main Chart: Displays current position status (e.g., Entry, Add, Partial Cut, Stop) via bar color changes.
Sub-Pane: Plots the Oscillator, Dynamic Bands, and Trend Line, utilizing color gradients and fill areas to highlight momentum states.
Signal Labels: Marks Entry, Add, Cut, and Stop exit points on the chart with symbols.
Squeeze Background: Highlights the chart background with a specific color when the market enters a compression state, providing additional market context.
Kinetic Flux Strategy [Deewii]Kinetic Flux is a comprehensive trading analysis suite built around a proprietary analysis library. The system is designed to provide a complete, highly configurable solution for market analysis, strategy backtesting, and real-time market scanning.
Through a modular design, the system is divided into several independent but collaborative components—including Indicators, Strategies, and Market Scanners—all utilizing the sophisticated analysis data generated by the core library. The design reflects a deep understanding of trading workflows, offering not only basic entry/exit signals but also advanced features such as position management, market state filtering, and diverse exit mechanisms to adapt to different user trading styles and risk management needs.
Kalman Hull Trend Score [BackQuant]Kalman Hull Trend Score
Overview
Kalman Hull Trend Score is a trend-strength and regime-evaluation indicator that combines two ideas, Kalman filtering and Hull-style smoothing, then measures persistence of that filtered trend using a rolling score. The goal is to produce a cleaner, more stable trend read than typical moving average tools, while still reacting fast enough to be practical in live markets.
Instead of treating a moving average as a simple line you cross, this indicator turns the filtered trend into an oscillator-like score that answers: “Is the smoothed trend consistently progressing, or is it stalling and degrading?”
Core idea
The indicator is built from two components:
A Kalman-based smoothing engine that estimates price state and reduces noise adaptively.
A Hull-style construction that uses multiple Kalman passes to create a responsive, low-lag trend filter.
Once the Kalman Hull filter is built, a persistence score is calculated by comparing the current Kalman Hull value to many past values. The result is a trend score that rises in sustained trends and compresses or flips during deterioration.
Why Kalman instead of standard smoothing
Traditional moving averages apply fixed smoothing rules regardless of market conditions. A Kalman filter behaves differently, it is designed to estimate an underlying state in noisy data, adjusting how much it “trusts” new price information versus prior estimates.
This script exposes that behavior through two key controls:
Measurement Noise: how noisy the observed price is assumed to be.
Process Noise: how much the underlying state is allowed to evolve from bar to bar.
Together, these settings let you tune the balance between smoothness and responsiveness without relying on blunt averaging alone.
Kalman filter mechanics (conceptual)
Each update cycle follows the classic structure:
Prediction: assume the state continues, and expand uncertainty by process noise.
Update: compute Kalman Gain, then blend the new price observation into the estimate.
Correction: reduce uncertainty based on how much the filter accepted the new information.
When measurement noise is higher, the filter becomes more conservative, smoothing harder. When process noise is higher, the filter adapts faster to regime changes, but can become more reactive.
Check out the original script:
Kalman Hull construction
The “Hull” component is not a standard HMA built from WMAs. Instead, it recreates the Hull idea using Kalman filtering as the smoothing primitive. The structure follows the same intent as HMA, reduce lag while keeping the line smooth, but does it with Kalman passes:
Apply Kalman smoothing over multiple effective lengths.
Combine them using the Hull-style weighting logic.
Run the combined output through another Kalman pass to finalize smoothing.
The result is a Kalman Hull filter that aims to track trend with less jitter than raw price, and less lag than slow averages.
Another Kalman Hull with Supertrend
Trend scoring logic
The trend score is computed by comparing the current Kalman Hull value to past Kalman Hull values over a fixed lookback range (1 to 45 bars in this script):
If current kalmanHMA > kalmanHMA , add +1
If current kalmanHMA < kalmanHMA , add -1
This produces a persistence score rather than a simple direction signal. Strong trends where the filter keeps advancing will accumulate positive comparisons. Weak trends, chop, or reversals will cause the score to flatten, decay, or flip negative.
Interpreting the score
Read the score as trend conviction and persistence:
High positive values: bullish persistence, the filtered trend is progressing consistently.
Low positive values: trend exists but is fragile, progress is slowing.
Near zero: indecision, range behavior, frequent challenges to structure.
Negative values: bearish persistence or sustained deterioration in the filtered trend.
The rate of change matters:
Score expansion suggests trend is gaining traction.
Score compression often signals consolidation or exhaustion.
Fast flips usually accompany regime transitions.
Signal thresholds and regime transitions
User-defined thresholds convert the score into regimes:
Long threshold: score must exceed this level to confirm bullish persistence.
Short threshold: a crossunder of the score triggers bearish regime transition.
This is intentionally conservative. Long bias is maintained while the score holds above the long threshold. Short transitions are event-triggered on breakdown via crossunder, helping avoid constant flipping during minor noise.
Signals are only plotted on regime changes (first bar of the flip), keeping them clean for alerts and backtests.
Visual presentation
The indicator provides multiple layers depending on how you want to use it:
Kalman Hull Trend Score oscillator, color-coded by active regime.
Optional Kalman Hull filter plotted on the price chart for structure context.
Optional threshold reference lines for quick regime mapping.
Optional candle coloring and background shading for instant readability.
You can run it as a pure score panel or as a combined panel + on-chart trend overlay.
How to use in practice
Trend filtering
Favor long setups when the score remains above the long threshold.
Reduce directional aggression when score compresses toward zero.
Treat a short-threshold breakdown as a regime risk event, not just a signal.
Trend quality assessment
Rising score supports continuation trades and adds confidence to breakouts.
Flat or falling score warns that trend persistence is fading.
If price trends but score fails to expand, trend may be weak or liquidity-driven.
Trade management
Use the Kalman Hull line as dynamic structure reference on chart.
Use score deterioration to scale out before a full regime flip.
Use regime flips as confirmation for bias shifts rather than prediction.
Tuning guidelines
Measurement Noise
Higher: smoother filter, fewer false shifts, slower to adapt.
Lower: more responsive, more sensitive to microstructure noise.
Process Noise
Higher: adapts quicker to sudden changes, but can become twitchy.
Lower: steadier state estimate, but slower during sharp regime transitions.
A practical approach is to first tune measurement noise until the Kalman Hull line matches the “clean trend structure” you want, then adjust process noise to control how quickly it reacts when the regime genuinely changes.
Summary
Kalman Hull Trend Score transforms a Kalman-based Hull-style trend filter into a quantified persistence oscillator. By combining adaptive Kalman smoothing with low-lag Hull logic and a rolling comparison score, it provides a cleaner read on trend quality than basic moving averages or single-condition trend tools. It is best used as a regime filter, trend strength gauge, and structure-aware trade management layer.
Chan Theory - Chanlun MAX | CJZT# Chan Theory - Chanlun MAX | CJZT
## Overview
This is the full-featured version of Chan Theory (缠论) structural analysis indicator, built with Pine Script v6. It provides comprehensive multi-level structure recognition including fractals, pens, segments, trend lines, super trend lines, and pivot zones across three levels. The indicator offers advanced trading signal detection with customizable filtering options and MACD divergence analysis.
**Why This Indicator?**
Real market movements rarely follow textbook patterns. This indicator addresses this reality with:
- **Single Pen to Segment**: When a powerful pen breaks the previous level's extreme or meets K-line count requirements, it can directly become a segment - no need to wait for the standard 3-pen structure
- **9-Pen Segment to Trend**: A segment containing 9+ pens can upgrade to trend line level, enabling better same-level decomposition
- **Flexible Level Upgrade**: Multiple conditions (extremum breakthrough, count requirements, or either) allow the structure to adapt to actual market behavior
- **4K/5K Pen Types**: Designed to better fit sub-cycle and sub-sub-cycle movements with shorter K-line requirements
- **Top/Bottom to Pen**: When top/bottom fractal strength is significant, allows pen formation even with insufficient K-line count based on amplitude ratio
- **Main Chart MACD Divergence**: Displays divergence pens/segments directly on K-line chart, comparing entry and exit pen momentum for visual divergence confirmation
- **Sub-Chart MACD Indicator**: Works with the companion Chan Theory MACD sub-chart indicator for consolidation/trend divergence analysis on the MACD histogram
These features enable more accurate fitting of irregular market movements, proper same-level decomposition (同级别分解), and better alignment with sub-cycle structures - essential for practical Chan Theory application.
**Key Features:**
- 5 pen types: Classic, Optimized, 4K, 5K, Strict
- 3 segment modes: Dynamic Correction, Strict, Extension
- 3-level structure: Segments → Trend Lines → Super Trend Lines
- 3-level pivot zones with extension detection
- Complete Type I/II/III trading signals across all levels
- MACD divergence analysis for signal confirmation
- Advanced signal filtering system
- Real-time alerts for all trading signals
## Core Functions
### 1. Candlestick Containment Processing
Advanced containment processing with configurable options:
- **Left Containment**: Standard processing
- **Right Containment Check**: Optional additional validation
- Recursive processing ensures complete elimination
### 2. Pen Construction (5 Types)
| Type | Description |
|------|-------------|
| **Classic (老笔)** | 5+ processed K-lines per pen |
| **Optimized (新笔)** | 4+ processed + 5+ raw K-lines |
| **4K** | 4 raw K-lines with extremum validation |
| **5K** | 5 raw K-lines standard |
| **Strict (严笔)** | 5+ K-lines with directional validation |
### 3. Pen Endpoint Mode
- **Strict Highest/Lowest**: Pen endpoints must be absolute extremes
- **Allow Secondary High/Low**: Flexible endpoint detection when K-line count insufficient
### 4. Single Pen to Segment
Advanced level upgrade conditions:
- **Extremum Breakthrough**: Break previous level extreme
- **Count Condition**: Meet K-line/pen count requirements
- **Either Satisfied**: Flexible combination
### 5. Three-Level Segment System
- **Segments (线段)**: Grouped from pens
- **Trend Lines (趋势线)**: Grouped from segments
- **Super Trend Lines (大趋势线)**: Highest level structure
### 6. Segment Modes
| Mode | Description |
|------|-------------|
| **Dynamic Correction** | Real-time adjustment with correction |
| **Strict Mode** | Full classical compliance |
| **Extension Mode** | Flexible trend continuation |
### 7. Three-Level Pivot Zones
- Sub-level (pen-based) pivot zones
- Main-level (segment-based) pivot zones
- Big-level (trend-based) pivot zones
- Pivot extension detection and visualization
- Early pivot drawing options
## Trading Signal System
### Type I Signals (1buy/1sell)
Trend reversal based on divergence:
- Multiple divergence detection methods
- Configurable pivot/pen count requirements
- MACD area or amplitude comparison
### Type II Signals (2buy/2sell)
Pullback entries with chain detection:
- Standard Type II at position 2
- Type II chain continuation (position 4, 6, 8...)
- Automatic chain termination on Type III
### Type III Signals (3buy/3sell)
Breakout confirmations:
- Configurable search range (3-11 pens)
- Gap detection for confirmation
- Pivot zone boundary breaks
### Type I Divergence Methods
| Method | Description |
|--------|-------------|
| **Amplitude** | Compare price range |
| **MACD Area** | Compare MACD histogram sum |
| **Either** | Any method satisfied |
| **MACD Histogram** | Compare peak histogram values |
> **Pro Tip**: The MACD Histogram method works best when used together with the Chan Theory MACD sub-chart indicator, which visualizes the divergence relationship making it easier to confirm Type I signals visually.
## Signal Filtering System
### Fractal Filters
- **Fractal Validity Filter**: Post-fractal price confirmation
- **Basic Fractal Filter**: K-line color validation
### MACD Filters
- **Type I MACD Divergence**: Confirm divergence with MACD
- **Type II Zero-Axis**: MACD polarity confirmation
### Safety Filters
- **False Signal Avoidance (防狼术)**: MACD direction alignment
### Expected Signal System (预期买卖点)
A unique early-warning mechanism that identifies potential trading signals before full fractal confirmation:
- **Early Detection**: When a pen completes but the fractal is not yet confirmed, the system generates an "expected signal"
- **Multi-Timeframe Validation**: Traders can switch to the sub-timeframe or sub-sub-timeframe to check for divergence patterns, enabling earlier entries with confluence confirmation
- **Risk-Reward Optimization**: Expected signals allow preparation for high-probability setups while awaiting formal confirmation
- **Separate Alert Channels**: Expected and confirmed signals can be routed to different alert outputs for workflow customization
## Alert System
Comprehensive real-time notification system with full customization:
### Multi-Level Coverage
- All Type I/II/III buy/sell signals across 3 structural levels (sub-level, main-level, big-level)
- Separate tracking for each signal type and level combination
### Expected vs Confirmed Alerts
Configure alert behavior based on signal maturity:
| Mode | Description |
|------|-------------|
| **All Alerts** | Notify on both expected and confirmed signals |
| **Confirmed Only** | Alert only when fractal is formally confirmed |
| **Expected Only** | Early notification for anticipated signals |
### Custom Alert Combinations
Create personalized alert rules by combining signals from different levels:
- **Custom Alert 1 & 2**: Define your own trigger conditions
- **Main-Level + Sub-Level Combination**: e.g., alert when main-level shows 1buy AND sub-level shows 2buy
- **10 Signal Types Available**: 1buy/sell, 2buy/sell, 3buy/sell, L2buy/sell, L3buy/sell, or None
### Multi-Level Resonance Alerts
Detect powerful confluence when signals align across multiple levels:
- **Two-Level Resonance**: Sub-level + Main-level signal alignment
- **Three-Level Resonance**: Sub-level + Main-level + Big-level all showing same direction signals
- **Subscribe All Buy/Sell Points**: One-click subscription to all signals at any level
### Special Alerts
- **Type III Rapid Reversal**: Alerts when price reverses immediately after a Type III signal
- **Expected Type I Invalidation**: Alerts when expected Type I signal is invalidated due to no divergence (trend continuation)
- **Expected Type III Disappear**: Alerts when expected Type III signal disappears before confirmation
## Advanced Features
### Segment Correction Ratio
Filter insignificant segments using Fibonacci ratios:
- Options: 38.2%, 50%, 61.8%, 78.6%, or disabled
- When current segment amplitude < previous segment × ratio, correction is triggered
### Trend Breakthrough
When enabled, if a segment breaks the trend line's starting point in the opposite direction, a new trend line is generated instead of extending the existing one
### Trend Start Filter
Prevents premature level upgrades after trend line completion:
- Filter Mode: Only filter extremum breakthrough / Filter all single-pen segments
- Ensures first reversal pen after trend completion meets additional conditions
## Settings Reference
### Display Settings
| Setting | Description |
|---------|-------------|
| Show All Fractals | Display all top/bottom fractals |
| Running Pen | Show unconfirmed forming pen |
| K-line Merge | Visualize containment process |
| Right Containment | Enable right containment check |
| Fast Pen Mode | Allow pens without complete fractals |
### Pen Settings
| Setting | Description |
|---------|-------------|
| Pen Type | Classic/Optimized/4K/5K/Strict |
| Endpoint Mode | Strict or Secondary high/low |
| Fractal Overlap | Allow fractal overlap |
| Pen Extension Fix | Enable extension correction |
### Segment Settings
| Setting | Description |
|---------|-------------|
| Segment Mode | Dynamic/Strict/Extension |
| Trend Extension | Independent trend line extension |
| Super Trend Extension | Independent super trend extension |
| Feature Sequence Gap | Gap detection for repair |
### Pivot Settings
| Setting | Description |
|---------|-------------|
| Sub-level Pivot | Pen-based pivot zones |
| Main-level Pivot | Segment-based pivot zones |
| Big-level Pivot | Trend-based pivot zones |
| Early Draw | Preview forming pivots |
### Signal Settings
| Setting | Description |
|---------|-------------|
| Type II Chain | Continue Type II after position 4 |
| Type III Range | Search range (0-11 pens) |
| Divergence Method | Amplitude/MACD Area/Either/Histogram |
| Pivot Requirement | Pivot or pen count for Type I |
## Notes
- This script is for technical analysis reference only
- Does not constitute investment advice
- Users should make independent trading decisions
- Best used in conjunction with Chan Theory MACD Divergence indicator
---
# 概述
本指标是缠论(Chan Theory)结构分析的完整功能版本,使用Pine Script v6构建。提供全面的多级别结构识别,包括分型、笔、线段、趋势线、大趋势线,以及三个级别的中枢。指标提供高级买卖点检测、可配置的过滤选项和MACD背驰分析。
**为什么选择本指标?**
实际市场走势很少完全符合教科书模式。本指标通过以下功能解决这一问题:
- **单笔成段**:当一笔的力度足够强(突破前一级别极值或满足K线数量要求),可以直接升级为线段——无需等待标准的3笔结构
- **9笔线段成趋势**:包含9笔以上的线段可以升级为趋势线级别,实现更好的同级别分解
- **灵活的级别升级条件**:多种条件(突破极值、数量要求、或任一满足)让结构适应实际市场行为
- **4K/5K笔类型**:专为更好地拟合次周期和次次周期走势设计,使用更短的K线数量要求
- **顶底成笔**:当顶底分型力度较大时,即使K线数量不足也可根据振幅比例允许成笔
- **主图MACD背驰**:在K线图上直接显示背驰的笔和段,对比进入笔和离开笔的动量,可视化确认背驰
- **副图MACD指标**:配合缠论MACD副图指标使用,在MACD柱体上进行盘整背驰或趋势背驰的分析判断
这些功能能够更准确地拟合不规则的市场走势,实现正确的同级别分解,并更好地对齐次周期结构——这对于缠论的实战应用至关重要。
**核心功能:**
- 5种笔类型:老笔、新笔、4K、5K、严笔
- 3种线段模式:当下延伸后修正、严格模式、延伸模式
- 3级结构:线段 → 趋势线 → 大趋势线
- 3级中枢及延伸检测
- 完整的一二三类买卖点(覆盖所有级别)
- MACD背驰分析用于信号确认
- 高级信号过滤系统
- 所有买卖点的实时警报
## 核心功能
### 1. K线包含处理
高级包含处理,提供可配置选项:
- **左包含**:标准处理
- **右包含检查**:可选的额外验证
- 递归处理确保完全消除包含
### 2. 笔的构建(5种类型)
| 类型 | 说明 |
|------|------|
| **老笔** | 每笔至少5根处理后K线 |
| **新笔** | 4根处理后 + 5根原始K线 |
| **4K** | 4根原始K线 + 极值验证 |
| **5K** | 5根原始K线标准 |
| **严笔** | 5根K线 + 方向验证 |
### 3. 笔端点模式
- **严格最高最低点**:笔端点必须是绝对极值
- **允许次高次低点**:K线数量不足时灵活检测
### 4. 单笔成段
高级级别升级条件:
- **突破极值**:突破前一级别极值
- **数量条件**:满足K线/笔数量要求
- **任一满足**:灵活组合
### 5. 三级线段系统
- **线段**:由笔组成
- **趋势线**:由线段组成
- **大趋势线**:最高级别结构
### 6. 线段模式
| 模式 | 说明 |
|------|------|
| **当下延伸后修正** | 实时调整并修正 |
| **严格模式** | 完全符合经典定义 |
| **延伸模式** | 灵活的趋势延续 |
### 7. 三级中枢
- 次级别(基于笔)中枢
- 本级别(基于线段)中枢
- 大级别(基于趋势)中枢
- 中枢延伸检测和可视化
- 提前绘制中枢选项
## 买卖点系统
### 一类买卖点 (1buy/1sell)
基于背驰的趋势反转:
- 多种背驰检测方法
- 可配置中枢/笔数要求
- MACD面积或振幅比较
### 二类买卖点 (2buy/2sell)
回调入场,支持链式判断:
- 标准二类在第2位置
- 二类链延续(第4、6、8...位置)
- 出现三类时自动终止链
### 三类买卖点 (3buy/3sell)
突破确认:
- 可配置搜索范围(3-11笔)
- 缺口检测确认
- 中枢边界突破
### 一类背驰判断方式
| 方式 | 说明 |
|------|------|
| **振幅背驰** | 比较价格振幅 |
| **MACD面积背驰** | 比较MACD柱状图总和 |
| **振幅或MACD面积** | 任一满足 |
| **MACD柱体** | 比较柱状图峰值 |
> **使用技巧**:MACD柱体方式配合缠论MACD副图指标使用效果更佳,副图可视化背驰关系,更容易直观确认一类买卖点。
## 信号过滤系统
### 分型过滤
- **买卖点分型过滤**:分型后价格确认
- **买卖点分型基础过滤**:K线颜色验证
### MACD过滤
- **1买卖macd背驰过滤**:用MACD确认背驰
- **2买卖点过滤**:MACD极性确认
### 安全过滤
- **防狼术**:MACD方向一致性
### 预期买卖点系统
独特的早期预警机制,在完整分型确认之前识别潜在交易信号:
- **提前识别**:当笔完成但分型尚未正式确认时,系统生成"预期信号"
- **多周期验证**:交易者可切换至次周期或次次周期确认背驰形态,实现共振确认下的更早入场
- **优化风险回报**:预期信号允许在等待正式确认的同时,为高概率交易提前做好准备
- **独立警报通道**:预期信号和确认信号可分别路由至不同警报输出,满足个性化工作流需求
## 警报系统
全面的实时通知系统,支持完整自定义配置:
### 多级别覆盖
- 覆盖3个结构级别(次级别、本级别、大级别)的所有一二三类买卖点
- 每种信号类型和级别组合独立追踪
### 预期与确认警报分离
根据信号成熟度配置警报行为:
| 模式 | 说明 |
|------|------|
| **全部警报** | 预期信号和确认信号均通知 |
| **仅正式分型** | 仅在分型正式确认后发出警报 |
| **仅预期分型** | 提前通知预期信号 |
### 自定义警报组合
通过组合不同级别的信号创建个性化警报规则:
- **自定义警报1和2**:定义自己的触发条件
- **本级别+次级别组合**:例如当本级别出现1买且次级别出现2买时触发警报
- **10种信号类型可选**:1买/卖、2买/卖、3买/卖、类2买/卖、类3买/卖、或无
### 多级别共振警报
检测多级别信号对齐时的强势共振:
- **双级别共振**:次级别+本级别信号对齐
- **三级别共振**:次级别+本级别+大级别同时出现相同方向信号
- **一键订阅所有买卖点**:一键订阅任意级别的所有信号
### 特殊警报
- **三类买卖点急速反转**:三类信号出现后价格立即反转时发出警报
- **预期一类信号失效**:当预期一类信号因不背驰被清除时发出警报(趋势延续)
- **预期三类信号消失**:当预期三类信号在确认前消失时发出警报
## 高级功能
### 线段修正比例
使用斐波那契比例过滤不显著的线段:
- 选项:38.2%、50%、61.8%、78.6%、或禁用
- 当前线段振幅 < 前一线段 × 比例时,触发修正
### 趋势突破
启用后,当线段以相反方向突破趋势线起点时,生成新趋势线而非延伸现有趋势线
### 趋势起点过滤
防止趋势线完成后过早的级别升级:
- 过滤模式:仅过滤突破极值 / 过滤所有单笔段
- 确保趋势完成后的第一个反向笔满足额外条件
## 设置参考
### 显示设置
| 设置项 | 说明 |
|--------|------|
| 显示所有顶底 | 显示所有顶底分型 |
| 运行中的笔 | 显示未确认的形成中笔 |
| 显示K线合并过程 | 可视化包含处理 |
| 启用右包含检查 | 启用右包含检查 |
| 急速成笔 | 允许无完整分型成笔 |
| **递归设置(实验性)** | |
| 启用跨周期递归 | 使用低级别趋势线作为本级别笔 |
| 递归来源周期 | 指定低级别的周期(如1分钟) |
### 分型、笔设置
| 设置项 | 说明 |
|--------|------|
| 笔的类型 | 老笔/新笔/4K/5K/严笔 |
| 笔端点模式 | 严格或次高次低 |
| 允许分型重叠 | 允许分型重叠 |
| 笔延伸修正 | 启用延伸修正 |
### 线段设置
| 设置项 | 说明 |
|--------|------|
| 线段模式 | 当下延伸后修正/严格/延伸 |
| 趋势线延伸 | 独立趋势线延伸控制 |
| 大趋势线延伸 | 独立大趋势线延伸控制 |
| 特征序列缺口检测 | 缺口检测用于修复 |
### 中枢设置
| 设置项 | 说明 |
|--------|------|
| 次级别中枢 | 基于笔的中枢 |
| 本级别中枢 | 基于线段的中枢 |
| 大级别中枢 | 基于趋势的中枢 |
| 提前绘制 | 预览形成中的中枢 |
### 买卖点设置
| 设置项 | 说明 |
|--------|------|
| 启用类2链式判断 | 第4位置后继续类2 |
| 类3搜索范围 | 搜索范围(0-11笔) |
| 背驰判断方式 | 振幅/MACD面积/任一/柱体 |
| 中枢要求 | 一类的中枢或笔数要求 |
## 声明
- 本脚本仅供技术分析参考
- 不构成投资建议
- 用户应自行做出交易决策
- 建议结合缠论MACD背驰指标使用
Money Flow Index (MFI) w/ Multi Time Frame DivergencesBack color MTF
Money Flow Index (MFI) w/ Multi Time Frame Divergences
Viper Oscillator🔶 Overview
The Mkt-Viper Oscillator is a specialized Kinetic Momentum Engine engineered for Precision Timing and energy measurement. It serves as a high-fidelity market oscilloscope, designed to decode the raw velocity of price action and identify high-probability entry and exit points with enhanced clarity.
Markets move with varying degrees of force and resistance. Mkt-Viper Oscillator analyzes this behavior by utilizing a Kinetic Momentum Model. It measures Price Displacement against Market Viscosity (a dynamic resistance filter) to determine the true energy behind a move. By filtering out low-energy "drift," this approach allows traders to gauge the true strength of a trend and identify moments of momentum exhaustion or renewal.
🔶 What makes Mkt-Viper Oscillator unique?
The Viper Oscillator distinguishes itself through its Multi-Dimensional Calculation Matrix. Rather than relying on a single data source, it fuses Price Action, Volume Flow, and Volatility (Z-Score) into a single output.
The core engine measures Market Inertia. By applying a "Denoising Kernel" and recursive smoothing algorithms, it filters out erratic ticks to visualize the smooth, hydrodynamic flow of money entering and exiting the asset, providing a clearer picture of market intent.
Main Features
🔶 The Core Oscillator
The central Line or Ribbon of the oscillator represents the "Engine Core." It visualizes the battle between momentum (Torque) and resistance (Drag).
Visual Modes:
Standard:
Uses a multi-layered rendering technique (Core + Outer Glow) to create a crisp, high-visibility "Neon" line.
Ribbon Mode:
Displays a Signal Line cross system. When the fast line crosses the slow "Trail," it signals a micro-shift in momentum.
Momentum Flips:
The oscillator plots discrete Circles on the ribbon when the slope flips direction. These mark the precise moment momentum shifts from expansion to contraction.
🔶 Kinetic Exhaustion Zones
Standard oscillators often use static lines (like 70/30) that provide little context on trend strength. The Viper Oscillator replaces these with dynamic Kinetic Exhaustion Zones.
The Logic:
These zones represent the limits of "Market Torque." Instead of a binary On/Off signal, the zones function as a gradient stress field.
Visuals (Adaptive Glow):
The system utilizes a programmed opacity gradient.
Fade In:
The zones begin to materialize when the Core passes a certain threshhold (Moderate Momentum).
Maximum Glow:
As the oscillator begins to travel deeper beyond the threshold (Peak Torque), the zones glow with maximum intensity, signaling that the move is becoming statistically stretched or overextended.
Usage:
In a strong trend, the oscillator can "pin" inside the glow zone. This is a sign of immense strength, not a reversal. The reversal signal occurs when the Core exits the glow zone and returns toward the mean.
🔶 Z-Score Velocity Line
Floating above the main oscillator is the Velocity Line (Thin Line). This is not just a second oscillator; it is a volatility-adjusted Z-Score.
The Logic:
It measures the speed of price change relative to the current volatility conditions.
Usage:
When the Velocity Line spikes aggressively while the main Oscillator moves slowly, it is an early warning sign for a potential pullback.
🔶 Money Flow Wave (Background)
The background of the oscillator features a subtle, filled "Wave." This is the Money Flow Index (MFI) overlay.
The Logic:
This layer tracks volume-weighted price action. It allows you to see Divergences between Price and Volume.
Usage:
If the Kinetic Core (Price Momentum) is making a Higher High, but the Money Flow Wave (Volume) is making a Lower Low, it indicates a "Hollow Rally" lacking institutional backing.
🔶 Sigma Sniper Signals
The system constantly monitors Volume Volatility using a 3.0 Sigma (Standard Deviation) threshold.
Visuals:
When a volume spike exceeds 3 standard deviations from the mean (a statistical anomaly), a small "⌃" or "⌄" symbol appears at the top or bottom of the panel.
Meaning:
This marks a potential Volume Climax. It signifies potential capitulation (panic selling) or euphoria (fomo buying). These points are possibly probable reversal areas.
🔶 Trend Power Bar
Located at the very bottom of the pane is the Trend Power Bar. This is a binary filter designed to keep you on the right side of the macro flow.
The Logic:
It uses a "Linkage Kernel" (Correlation Coefficient) to measure the alignment of the trend.
Green:
Macro Trend is Bullish.
Red:
Macro Trend is Bearish.
Opacity:
The bar becomes transparent when the trend is weakening, warning you of potential consolidation.
🔶 Fractal Divergences
Timing reversals requires spotting the disconnect between price and momentum. The Divergence Engine uses Fractal Geometry to detect these setups automatically.
Regular Divergence:
Draws lines connecting peaks or valleys where Price pushes further but Momentum fails to follow. These are potential reversal signals.
🔶 Synthetic Resolution Scaler (MTF)
Traders often need to see higher-timeframe momentum without changing charts. The Resolution Scaler allows you to project higher-timeframe data onto your current chart.
How it works:
Instead of using repainting request.security calls, the script mathematically scales the internal lookback periods (Lengths) to simulate higher timeframes (e.g., viewing Hourly momentum on a 15-minute chart) while maintaining smooth, real-time updates.
🔶 Visual Intelligence (Theme Engine)
Visual clarity is essential for rapid decision-making. A cluttered or poorly contrasted chart can lead to cognitive fatigue. To address this, the Viper Oscillator features a global Color Theme Engine that instantly synchronizes every element of the suite—signals, candles, clouds, and text—to a unified palette.
The Presets:
The system comes with five professionally designed profiles to suit different trading environments and lighting conditions:
Viper Original: High-contrast Neon Green & Purple (Optimized for Dark Mode).
Classic: Standard Green/Red configuration for traditionalists.
Cool Blues: A calming Blue/Violet palette designed to reduce emotional reactivity.
Ember & Ash: High-warmth Orange/Slate contrast.
Monochrome: Grayscale/Silver logic for distraction-free structural analysis.
Customization:
Traders with specific branding requirements or accessibility needs (such as color blindness) can select "Custom Theme." This unlocks distinct color inputs, allowing you to define your own specific Bullish, Bearish, and Neutral colors that instantly propagate across the entire indicator suite.
🔶 How to use: The "Timing" Workflow
Mkt-Viper Oscillator is designed to filter out premature entries. Rather than catching falling knives, we recommend a workflow based on Momentum Structure:
Strategy: Momentum Continuation (The HL/LH Setup)
The highest probability entries occur when momentum resets but the trend structure remains intact.
Trend Context:
Ensure the Trend Power Bar is Green (Bullish) or Red (Bearish).
Wait for Structure:
Do not buy the first dip. Wait for the Kinetic Core to print a Higher Low (HL) in a bullish trend or a Lower High (LH) in a bearish trend. This "Momentum Stair-Step" confirms that counter-trend energy has been exhausted.
The Trigger:
Enter when a Momentum Flip Circle (Dot) appears after this Higher Low or Lower High is established.
Exit:
Take profits when the Velocity Line spikes into the extremes or a Divergence line appears.
While powerful as a standalone unit, this engine is mathematically calibrated to pair with the Mkt-Viper Pro (Trend) and Mkt-Viper Edge (Structure) indicators.
Important:
This indicator is intended to be used with additional confluences and key areas. It is not recommended to blindly buy or sell the momentum flip dots.
🔶 Realistic Expectations & Methodology
Oscillator Lag:
All oscillators are derivative of price and inherently possess some lag. The "Kinetic" math reduces this lag significantly, but it cannot eliminate it entirely as it must process past data.
Signal Confirmation:
The "Flip Circles" and Reversal signals are confirmed on candle close. While they do not repaint history, they will wait for the bar to close before locking in. This is a safety feature to prevent fake-outs.
Trending vs. Ranging:
Oscillators perform best in Ranging markets or during Pullbacks in a trend. Using Overbought/Oversold signals blindly during a parabolic trend is dangerous, as momentum can stay "Overbought" for extended periods. Always check the Trend Power Bar context.
---------------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, back test, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
LAMI RSI INDIThis RSI indicator is built to do 2 things fast:
Catch momentum shifts when RSI crosses your overbought/oversold levels (customizable).
Detect regular divergence (bullish & bearish) so you can spot reversal clues early.
You’ll see arrows for level-cross signals, plus divergence labels to help confirm whether the move is losing strength.
Std Deviation RangeWhen you want to know when the standard deviation is outside your boundaries this indicator is for you. It lets you set you SD limit and it can color the background when you are out of bounds. Currently the default is 20 SMA bollinger bands set at 1.1. If it is inside those limits the background is green and when it exceeds that range the background is red. You can change the SMA, the standard deviation, and the colors.
Swingtrend Regime [A0A_Indicator]A regime-style oscillator designed to help read swing context and shifting conditions. Clean visuals, configurable display elements, and optional alerts for key state changes.
RSI-RS StrategyRSI-RS Strategy: Smart Trend Following 🚀
Overview
This strategy combines Multi-Timeframe RSI with Mansfield Relative Strength to identify high-momentum breakouts in strong stocks. Unlike standard RSI strategies, it features a "Smart Trailing Stop" that tightens when momentum weakens but respects key RSI 50 support levels to avoid shaking you out of winning trades.
Key Features ✨
1. 🎯 High-Probability Entries
Multi-Confirmations: Requires Monthly RSI > 60 and Weekly RSI > 60 (Trend is Up).
Dual Trigger: Enters on a Daily RSI Breakout (>60) OR a Weekly RSI Catch-up, ensuring you don't miss late moves.
RS Filter: Only buys stocks outperforming the Index (RS > 0).
New Listing Safe: Automatically skips Monthly checks for new IPOs lacking history.
2. 🛡️ Advanced "Hybrid" Stop Loss
This strategy solves the "Wick Out" problem:
Confirmation Exit: If price drops below the Stop Loss, it waits for the Next Candle to confirm the breakdown. It ignores intraday wicks!
Crash Protection: Includes a "Panic Button" (Default 3% buffer). If price crashes rapidly intraday, it exits immediately to save capital.
Smart Trailing: The Stop Loss moves UP when RSI shows weakness (<60), locking in profits.
3. 🧠 Smart Support Buffer
Wait for 50: Uniquely detects when RSI is resting on 50 Support (Zone 50-55).
Patience: It ignores minor weakness signals in this zone, waiting for a bounce instead of exiting prematurely.
4. 🧹 Clean Visuals
Minimalist Labels: Transparent Entry/Exit labels that don't declutter the chart.
Setup Watch: Visually signals "Watch > " before the trade triggers.
Transparency: "SL Update" diamonds prove exactly why the stop moved (showing the RSI value).
Settings Guide ⚙️
Confirmation Window: How many bars the breakout remains valid (Default: 2).
RSI Support Buffer: The "Safe Zone" range above 50 (Default: 5).
Crash Buffer %: Distance below SL for immediate emergency exit (Default: 3.0%).
Visuals: Toggle Setup Labels and SL Diamonds on/off to keep your chart clean.
How to Trade It
Green Background: You are in a trade.
Red Line: Your Hard Stop Loss (Closing Basis).
Maroon Dotted Line: Your Crash Limit (Intraday Danger Zone).
Orange Diamond: Warning! RSI Weakness detected, SL has tightened.
Disclaimer
Backtested on Indian Equities (NSE). Designed for Swing Trading on Daily Timeframe. Always manage your own risk.
eBacktesting - Learning: RSI DivergenceseBacktesting - Learning: RSI Divergences is meant to train your eye to spot when a trend is losing momentum before price fully turns.
How to study it (step-by-step)
1. Start with the trend
- First decide if price is generally trending up or down (higher highs / higher lows vs lower highs / lower lows).
- Divergences matter most after a trend has been running for a while.
2. Look for the “mismatch”
- Bearish divergence: price prints higher highs, but RSI prints lower highs.
- This often shows up near the end of a strong bullish run, when buyers are still pushing price up but with less momentum.
- Bullish divergence: price prints lower lows, but RSI prints higher lows.
- This can show up near the end of a bearish move, when selling pressure is fading.
3. Treat divergence as a warning, not an entry
- The key lesson: divergence often signals trend weakness, not an instant reversal.
- After a divergence appears, study what happens next: stalling, ranging, a pullback, or a full reversal.
4. Add simple confirmation
- Practice waiting for something obvious after the divergence:
a break of a small support/resistance level,
a shift in swing structure,
or a clear rejection candle from a key area.
- This helps you avoid taking every divergence as a trade signal.
5. Use it inside eBacktesting (best practice)
- Replay the chart and pause on each divergence mark.
- Log:
Where it happened (after a long run or in the middle of chop?),
Whether price stalled first or reversed immediately,
What confirmation appeared (if any),
The best “invalidation” idea (what would prove you wrong?).
- Over time you’ll see which divergences are meaningful for your market and session, and which ones are noise.
These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
YVAO Q SinyalliVoltide al sat osilatörüdür. rsi haraketli ortlamaları ile trend tahmini imkanı sağlar.






















