Heikin Ashi Swing Setup DailyTFHeikin Ashi Swing Setup is a trend-following swing trading indicator designed for Daily timeframe traders.
This indicator combines:
Heikin Ashi candle strength
EMA-based trend confirmation
RSI momentum filter
ATR-based price expansion logic
The goal is to capture strong directional swing moves while avoiding sideways and noisy markets.
BUY Signal Logic
Strong bullish Heikin Ashi candle (no lower wick)
Price above EMA 50
EMA slope upward (trend confirmation)
RSI between 50–70
Price sufficiently away from EMA (ATR filter)
SELL Signal Logic
Strong bearish Heikin Ashi candle (no upper wick)
Price below EMA 50
EMA slope downward
RSI between 30–50
ATR-based price expansion confirmed
Recommended Usage
Timeframe: Daily
Markets: Stocks & Indices
Holding Period: 5–20 trading days
Best used with:
Weekly trend analysis
Supply & Demand zones
Previous swing highs/lows
Pattern grafici
TDKM V.5.1An arrow appears when there is a trade signal. Buy according to the buy signal, sell according to the sell signal.
MES ORB Fakeout Alert - No RSIVWAP Integration: In 2025/2026 trading, price action often "reverses" to the VWAP. If the MES breaks the ORB High but stays below the VWAP, it’s a high-probability fakeout. This script catches that.
Relative Volume (Effort vs. Result): Instead of RSI, it looks at the Volume SMA. If the market tries to break a level with less volume than the 20-candle average, the "effort" isn't there, and the "result" (the breakout) is likely a lie.
Automatic Session Handling: It specifically looks at America/New_York time to ensure the 9:30 AM open is captured correctly regardless of where you are located.
Niftycycles Gann Lunar Cycle# Niftycycles Gann Lunar Cycle
**Gann's Lunar Time Cycle** is a powerful market timing indicator that reveals hidden cyclical patterns in financial markets based on lunar influences. This tool identifies precise calendar dates when markets are most likely to experience trend changes, reversals, and significant price pivots.
## ⚠️ IMPORTANT: DAILY TIMEFRAME ONLY
**This indicator works exclusively on the Daily (1D) timeframe.**
- Designed for daily market analysis and swing trading
- Lunar calculations optimized for daily price bars
- Cycle dates correspond to calendar days, not intraday timeframes
- Will display an error message if applied to any other timeframe
## 🔮 Universal Market Application
Works consistently across **ALL financial markets** on daily charts:
- **Stocks, ETFs & Market Indices**
- **Commodities** (Gold, Silver, Oil, Grains)
- **Forex & Currency Pairs**
- **Cryptocurrencies**
- **Bonds & Interest Rates**
## 🎯 What This Indicator Shows You
### 1. **Cycle Turning Points**
- **Red Anchor Line**: Your starting point for the cycle
- **Historical Dates**: Past cycle points where markets pivoted
- **Future Dates**: Upcoming cycle points for forward planning
- **Color-coded Table**: Clear display of Anchor/Historical/Future dates
### 2. **Critical Inversion Zones**
- **Pink Zones**: Primary inversion zone (Aries/0° ±15°)
- **Blue Zones**: Secondary inversion zone (Selectable zodiac positions)
- **Visual Highlighting**: Daily price bars colored when Moon enters these critical zones
### 3. **Comprehensive Date Table**
- **Chronological List**: All cycle dates in order
- **Date Filtering**: Focus on specific time periods
- **Anchor Highlight**: Starting point clearly marked in bold red
- **Type Identification**: Anchor/Historical/Future clearly labeled
## 🎮 How to Use This Indicator
### Step 1: Apply to DAILY Chart
1. Ensure you're viewing a **Daily (1D) timeframe** chart
2. Apply the indicator - it will only work on daily charts
3. If you see an error message, switch to daily timeframe
### Step 2: Set Your Timezone
1. Click the settings gear icon
2. Under "Start Configuration" → "Timezone"
3. Select your city/country for accurate lunar calculations
4. **This is critical for precise timing!**
### Step 3: Choose Your Starting Point
1. Under "Start Configuration" → "Start Date/Time"
2. Enter a significant market turning point date
3. **Best anchor points**: Major highs/lows, trend reversal dates
### Step 4: Select Inversion Zones
1. **Primary Zone**: Always shown (Aries/0°)
2. **Secondary Zone**: Choose from:
- Leo (120° ±15°)
- Virgo (150° ±15°)
- Libra (180° ±15°)
- Scorpio (210° ±15°)
3. Adjust zone colors if desired
### Step 5: Customize Your View
1. **Date Range Filter**: Show only specific time periods
2. **Table Settings**: Adjust text size and number of dates displayed
3. **Display Options**: Toggle table and zones on/off
## 📊 What You'll See on Your Chart
### Visual Elements:
1. **Red Anchor Line**: Your cycle starting point
2. **Inversion Zone Boxes**: Pink/blue highlights on daily price bars
3. **Cycle Dates Table**: Bottom-right corner with all dates
4. **Information Note**: Top-right corner with key reminders
### How to Interpret:
**At Cycle Dates (Table Dates):**
- Watch for potential trend changes on daily closes
- Existing trends may reverse or accelerate
- Set alerts for these exact calendar dates
**When Daily Bars are Colored (Inversion Zones):**
- Increased probability of daily trend reversals
- "Normal" High→Low alternation may invert
- Particularly powerful when near cycle dates
**Using the Date Table:**
- Plan trades around upcoming calendar dates
- Verify past dates against actual daily market pivots
- Filter to focus on specific time periods
## ⚠️ Critical Understanding
### What This Indicator Provides:
- ✅ **Exact Calendar Dates** for potential market turns
- ✅ **Visual Warning Zones** where daily reversals are more likely
- ✅ **Forward Projection** of 1 month of future dates
- ✅ **Historical Validation** of cycle accuracy on daily charts
### What This Indicator Does NOT Do:
- ❌ **Not a buy/sell signal generator**
- ❌ **Doesn't predict price direction** (only timing)
- ❌ **Doesn't guarantee reversals** at every date
- ❌ **Not a standalone trading system**
- ❌ **Won't work on intraday timeframes** (hourly, 15min, etc.)
## 🔍 Professional Usage Tips
### Best Practices:
1. **Daily Charts Only**: Use exclusively on 1D timeframe
2. **Anchor Selection**: Choose significant daily turning points
3. **Confirmation Required**: Wait for daily price action confirmation
4. **Context Matters**: Consider overall daily trend and market conditions
### Practical Applications:
**For Swing Traders:**
- **Daily Entries/Exits**: Time around cycle dates for swing positions
- **Position Management**: Adjust stops at projected daily turning points
- **Weekly Planning**: Plan week ahead using upcoming cycle dates
**For Investors:**
- **Portfolio Rebalancing**: Schedule adjustments at cycle points
- **Entry/Exit Planning**: Time major investments strategically
- **Monthly Review**: Align monthly analysis with lunar cycles
**For Analysts:**
- **Cycle Identification**: Spot repeating daily time patterns
- **Report Timing**: Schedule analysis around critical dates
- **Risk Assessment**: Identify high-volatility daily periods
## 🎨 Customization Options
- **Timezone Selection**: Accurate for your location
- **Inversion Zones**: Choose secondary zodiac position
- **Date Filtering**: Focus on relevant daily periods
- **Table Display**: Adjust size and number of dates shown
- **Zone Colors**: Customize visual appearance
## 📈 Real-World Strategy Integration
### Combine With Daily Analysis:
- **Support/Resistance**: Daily chart levels
- **Price Patterns**: Daily reversal patterns
- **Volume Analysis**: Daily volume confirmation
- **Trend Indicators**: Daily trend changes
### Risk Management:
- **Never trade on dates alone** - always require daily confirmation
- **Smaller positions** when trading against inversion zones
- **Tighter stops** around projected daily turning points
- **Daily close confirmation** before acting
## ⚙️ Key Features
- **Daily Timeframe Only**: Exclusively for daily market analysis
- **Automatic Calculations**: Set once, updates automatically
- **Future Projection**: Always shows 1 month ahead
- **Filter System**: Focus on relevant date ranges
- **Clean Interface**: Non-cluttered, professional display
## 📝 Important Notes
- **Timezone Critical**: Must set correctly for accurate dates
- **Daily Charts Only**: Won't function on other timeframes
- **Anchor Dependent**: Quality of results depends on anchor selection
- **1-Month Projection**: Future dates limited to next 30 days
- **Inversion Frequency**: 3-4 High→High/Low→Low inversions per year expected
- **Cycle Alternation**: Most cycles alternate High→Low→High→Low
---
**Final Advice:** This is a daily timing tool, not a directional predictor. Use it to know WHEN to pay attention on daily charts, then use your other daily analysis tools to determine WHAT might happen. The most successful users combine lunar timing with traditional daily technical analysis for comprehensive market understanding.
*Private Invitational Access Only - Unauthorized Distribution Prohibited*
**Disclaimer:** This indicator is provided exclusively to authorized users. Sharing, distributing, or reproducing this tool without permission is strictly prohibited. Market timing based on celestial cycles - Use as part of a complete daily trading strategy.
QUARTERS THEORY XAUUSDThe “Quarter Theory XAUUSD” indicator on TradingView is designed to automatically plot horizontal price levels in $25 increments on your chart, providing traders with a clear visual representation of key psychological and technical price points. These levels are particularly useful for instruments like XAU/USD, where price often reacts to round numbers, forming support and resistance zones that can be leveraged for both scalping and swing trading strategies. By showing all $25 increments as horizontal white lines, the indicator ensures that traders can quickly identify potential entry and exit points, without the need for manual drawing or repeated calculations.
The indicator works by calculating the nearest $25 multiple relative to the current market price and then drawing horizontal lines across the chart for all increments within a defined range. This range can be customized to suit the instrument being traded; for example, for gold (XAU/USD), a typical range might extend from 0 to 5000, covering all practical price levels that could be relevant in both high and low market conditions. By using Pine Script’s persistent variables, the indicator efficiently creates these lines only once at the start of the chart, avoiding unnecessary resource usage and preventing TradingView from slowing down, which can happen if lines are redrawn every bar.
From a trading perspective, these levels serve multiple purposes. For scalpers, the $25 increments act as micro support and resistance points, helping to determine short-term price reactions and potential breakout zones. Scalpers can use these levels to enter positions with tight stop-loss orders just beyond a level and take profits near the next $25 increment, which aligns with common price behavior patterns in highly liquid instruments. For swing traders, the same levels provide broader context, allowing them to identify areas where price might pause or reverse over several days. Swing traders can use these levels to align trades with the prevailing trend, particularly when combined with other indicators such as moving averages or trendlines.
Another key advantage of the Quarterly Levels indicator is its simplicity and visual clarity. By plotting lines in a uniform white color and extending them to the right, the chart remains clean and easy to read, allowing traders to focus on price action and market dynamics rather than cluttered technical drawings. This visual consistency also helps in backtesting and strategy development, as traders can quickly see how price interacts with each level over time. Additionally, the use of round-number increments leverages the psychological tendencies of market participants, as many traders place stop orders or entry points near these levels, making them natural zones of interest.
Overall, the Quarterly Levels indicator combines efficiency, clarity, and practical trading utility into a single tool. It streamlines chart analysis, highlights meaningful price zones, and supports both scalping and swing trading approaches, making it an essential addition to a trader’s toolkit. By understanding how to integrate these levels into trading strategies, traders can make more informed decisions, manage risk effectively, and identify high-probability trade setups across various market conditions.
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()` 函数
所有缠论结构分析逻辑均为原创实现。
## 免责声明
本指标仅供技术分析参考,不构成投资建议。用户应自行做出交易决策并管理风险。
Daily Manipulation LevelsDML -
This indicator projects statistically-derived Manipulation and Distribution levels based on historical daily price behavior, helping you anticipate where price is likely to reach during the current trading session.
🔍 How It Works
The DML analyzes the last 60 days (configurable) of daily candles and measures two key distances from each day's open:
For Bullish Days (close > open):
Manipulation Distance: How far price dropped below the open before rallying
Distribution Distance: How far price extended above the open
For Bearish Days (close < open):
Manipulation Distance: How far price spiked above the open before selling off
Distribution Distance: How far price extended below the open
The indicator then calculates the average (mean or median) of these historical distances and projects them from the current session's open (6pm ET for futures).
📊 The Levels
O (Orange): Current session open - your anchor point
+D: Bullish distribution target (projected high)
-D: Bearish distribution target (projected low)
+M: Bearish manipulation zone (where shorts get trapped before a selloff)
-M: Bullish manipulation zone (where longs get trapped before a rally)
📈 How To Use It
1. Identify the Daily Bias
Wait for price to sweep a manipulation level and show signs of reversal. A sweep of -M followed by bullish structure suggests an expansion toward +D. A sweep of +M followed by bearish structure suggests expansion toward -D.
2. Power of Three Framework
The levels align with ICT's Power of Three concept:
Accumulation: Price consolidates near the open
Manipulation: Price sweeps liquidity at +M or -M, trapping traders
Distribution: Price expands toward the opposite extreme (+D or -D)
3. Confluence Zones
Use these levels alongside other concepts like Fair Value Gaps, Order Blocks, and liquidity pools. When a DML level aligns with an FVG or key swing point, the probability of reaction increases significantly.
4. Target Setting
After a manipulation sweep and reversal confirmation (CISD), use the distribution level as your target. The statistical nature of these levels means price reaches them more often than not.
⚙️ Settings
Lookback Periods: Number of historical days to analyze (default: 60)
Calculation Method: Mean, Median, or Both - Median is less affected by outlier days
Calculation Mode: Points (raw price distance) or Percent (normalized by open price)
Level Visibility: Toggle individual levels on/off
Colors & Transparency: Fully customizable appearance
💡 Tips
On volatile days, expect manipulation to exceed the average levels - use them as zones, not exact prices
When "Both" is selected, solid lines show the mean and dashed lines show the median - if they're close together, the projection is more reliable
The levels reset at 6pm ET each day (futures session open)
Works best on intraday timeframes (1m - 1H) for NQ, ES, and other index futures
⚠️ Disclaimer
This indicator is a statistical tool based on historical averages. Past performance does not guarantee future results. Always use proper risk management and confirm signals with price action before entering trades.
EMA and DEMA CrossesCombined crosses for EMA and Double EMA
Gives Buy and Sell signals basis all 3 conditions
Niftycycles Gann Master Timecycle**WD Gann's Master Time Cycle** is an exclusive, invite-only indicator that reveals hidden market timing cycles based on the legendary trader WD Gann's proprietary methods. This powerful tool identifies predetermined time points where markets consistently pivot from highs to lows and lows to highs, with specific zones where trend inversions are most likely to occur.
## Universal Market Application
This indicator has been validated across **ALL financial markets** with remarkable consistency:
- **Stocks** & **ETFs**
- **Commodities** (precious metals, energy, agriculture)
- **Market Indices** (global equity indices)
- **Currency Pairs** (Forex markets)
- **Cryptocurrencies** (digital assets)
## Core Principle
Markets move in repeating cyclical patterns. By identifying the correct starting point (anchor), this indicator projects forward in time to reveal:
- **Cycle Starting Points** (Red Anchor Lines)
- **Subsequent Cycle Points** (Blue Vertical Lines)
- **Critical Inversion Zones** (Purple-shaded areas where trend reversals frequently occur)
The indicator shows **exactly 3 future cycle points** at all times, providing forward-looking guidance without overwhelming the chart.
## How to Use (Simple 2-Step Process)
### Step 1: Find Your Anchor Point
**This is the SINGLE MOST IMPORTANT step for accurate results.**
**What is an anchor point?**
A significant market turning point where a major trend reversal occurred. This should be:
- A clear, obvious high or low on the chart
- A point where price changed direction for an extended period
- A level that marked the beginning or end of a substantial market move
**Examples of good anchor points:**
- The COVID crash low (March 2020)
- All-time highs or major cycle tops
- Long-term support/resistance levels that held for months
- Beginning of major bull/bear markets
### Step 2: Set the Anchor Date
1. Click the settings gear icon on the indicator
2. Under "Start Date," enter the exact date of your identified turning point
3. The indicator will automatically project all future cycle points from this anchor
**That's it!** The indicator does the rest automatically.
## What You'll See on Your Chart
### Visual Elements:
1. **Red Anchor Line** (thicker line): Your starting point for the cycle
2. **Blue Vertical Lines**: Future and historical cycle points where pivots typically occur
3. **Inversion Zones** (purple shaded areas): Critical time windows where trend reversals are more likely
4. **Vertical Rays**: All lines extend through the entire price range for clear visibility
### How to Interpret:
- **When price approaches a vertical line**: Watch for potential reversal signals
- **When price is within an Inversion Zone**: Be alert for possible trend changes
- **The first red line**: Marks your chosen cycle starting point
- **Always 3 future blue lines**: Shows upcoming cycle points for planning
## Critical Understanding
### What This Indicator Provides:
- **Timing Framework**: Shows WHEN to watch for potential reversals
- **Visual Roadmap**: Creates a time-based structure on your chart
- **Forward Guidance**: Always shows 3 upcoming cycle points
- **Historical Validation**: Projects backward to show past cycle accuracy
### What This Indicator Does NOT Do:
- **Not a standalone buy/sell signal**
- **Does not predict direction** (only timing)
- **Does not guarantee reversals will occur**
- **Not a crystal ball** - requires confirmation
## Customization Options
- **Line Width**: Adjust visibility of cycle lines
- **Anchor Line Width**: Emphasize the starting point
- **Inversion Zone Fill**: Modify zone transparency/color
- **Line Opacity**: Control overall indicator visibility
## Professional Usage Tips
### Best Practices:
1. **Anchor Quality Matters**: Spend time finding the most significant historical turning point
2. **Multiple Timeframes**: Works on daily, weekly, and monthly charts
3. **Confirmation Required**: Always wait for price action confirmation at cycle points
4. **Market Context**: Consider overall trend and market conditions
5. **Backtest First**: Test your anchor choice on historical data before using it forward
### Advanced Techniques:
- **Multiple Instances**: Run several copies with different anchor points to find cycle convergences
- **Cycle Stacking**: When multiple cycle points align, stronger signals often emerge
- **Zone Awareness**: Pay extra attention when price action occurs within Inversion Zones
## Real-World Applications
### For Traders:
- **Swing Trading**: Time entries/exits around cycle points
- **Position Management**: Adjust stops or take profits at projected turning points
- **Risk Management**: Increase caution around cycle points
### For Investors:
- **Portfolio Rebalancing**: Time adjustments to market cycles
- **Entry/Exit Planning**: Schedule major investments at favorable cycle points
- **Market Analysis**: Understand the timing structure of long-term trends
## Key Features
- **Clean Visual Design**: Non-cluttered, easy-to-read display
- **Automatic Calculation**: Set once, works continuously
- **Future Projection**: Always shows 3 upcoming cycle points
- **Historical Accuracy**: Validates against past market behavior.
**Final Thought:** The effectiveness of this tool depends entirely on your ability to identify the correct historical anchor point. Take your time studying the chart, find that one significant turning point, and let the cycles reveal themselves.
*Private Invitational Access Only - Unauthorized Distribution Prohibited*
Killzone - VLGreen for Asia, Yellow for London, Blue inside for NY Killzone, Purple for London Close.
Supply & Demand Sniper369Indicator Philosophy: The Convergence of Structure and Liquidity
The Supply & Demand Sniper369 is not just another signal generator; it is a professional-grade execution framework built on the principles of Institutional Order Flow and Liquidity Engineering. While standard indicators often lag or provide signals in "no-man's land," this script is designed to identify high-probability reversal points by combining macro-structural zones with micro-execution triggers.
What Makes This Script Original?
Most scripts treat Supply/Demand and Entry Triggers as separate entities. The originality of the Sniper369 lies in its Strict Hierarchical Logic. It employs a "Two-Factor Authentication" system for trades:
1. Structural Validation: Identifying where "Smart Money" has historically left unfilled orders.
2. Liquidity Sweep Confirmation: Using the Enigma 369 logic to detect a specific manipulation pattern (a stop-run or "sweep") that occurs exclusively within those structural zones.
By using Pine Script v6 Object-Oriented Programming, the script manages dynamic arrays of boxes and lines that auto-delete upon mitigation, ensuring your chart remains a clean, actionable workspace.
Underlying Concepts & Calculations
1. Macro: Structural Supply & Demand
The indicator calculates zones based on Pivot Strength and Volatility Scaling.
Calculations: It scans for major structural pivots ( and ). Once a pivot is confirmed, it doesn't just draw a line; it calculates a zone width based on the Average True Range (ATR).
Why it works: Institutions do not enter at a single price; they enter in "pockets" of liquidity. Using ATR-based zones ensures that on high-volatility pairs (like Gold or GBP/JPY), your zones are appropriately wide, while on lower-volatility pairs, they remain tight and precise.
2. Micro: The Enigma 369 Sniper Logic
Once price enters a zone, the "Sniper" logic activates. This is based on the Institutional Wick-Liquidity concept.
The Sweep: The script looks for a candle that breaks the high/low of the previous candle (trapping "breakout" traders) but fails to hold that level.
The Mean Threshold (50% Wick): A core calculation of the Enigma logic is the midpoint of the rejection wick.
Calculation: for Sells.
Logic: Institutions often re-test the 50% level of a long wick to fill the remaining orders before the real move starts.
How to Use the Indicator
Step 1: Wait for Structural Alignment
Observe the Teal (Demand) and Red (Supply) boxes. These are your "Points of Interest" (POI). Do not take any trades until the price is physically touching or inside these boxes.
Step 2: Monitor for the Sniper Trigger
When the price is inside a zone, look for the appearance of the Solid and Dotted lines.
The Solid Line: This is the extreme of the manipulation candle. It serves as your structural invalidation level (Stop Loss).
The Dotted Line: This is the 50% Wick level. It is your "Sniper Entry" target.
Step 3: Execution & Alerts
The script features a built-in alert system that notifies you the moment a Sniper activation occurs inside a zone.
Conservative Entry: Place a Limit Order at the Dotted Line.
Aggressive Entry: Market enter on the close of the Sniper candle if the price has already reacted strongly.
Exit: Target the opposing Supply or Demand zone for a high Risk-to-Reward ratio.
Technical Summary for Traders
Trend Detection: Uses an EMA-50 Filter to ensure Snipers only fire in the direction of the dominant trend (optional).
Scalping/Day Trading: Optimized for the 1m, 5m, and 15m timeframes, but functions perfectly on 4H/Daily for swing traders.
Dynamic Cleanup: The script automatically deletes lines if the price closes past them, signaling that the "Liquidity Grab" was actually a breakout, thus preventing you from entering a losing trade.
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. 配套指标设计**
专门设计用于配合主图缠论指标,两者结合实现完整分析
## 免责声明
- 本脚本仅供技术分析参考
- 不构成投资建议或交易推荐
- 背驰信号应结合价格行为确认
- 用户应自行做出交易决策并管理风险
- 建议用于教育目的和作为辅助分析工具
Breaker Blocks Finder | Gold | ProjectSyndicateProjectSyndicate Breaker Blocks Finder
📊 Overview
The ProjectSyndicate Breaker Blocks Finder (PS BB Finder) is a professional-grade Pine Script indicator designed to detect and display Bullish and Bearish Breaker Blocks based on Smart Money Concepts (SMC) methodology. This indicator is specifically optimized for XAUUSD (Gold) trading but works reliably across all symbols and timeframes.
Key Features
✅ Non-Repainting: Breaker blocks never change position after formation
✅ Multi-Timeframe Support: Optimized for M5, M10, M15, M20, M30, and H1
✅ Highly Customizable: 10+ user-configurable settings
✅ Visual Clarity: Color-coded boxes and labels for easy identification
✅ Performance Optimized: Handles 1000+ candles without lag
✅ Cross-Symbol Compatible: Works on Forex, Crypto, Stocks, Indices, and Commodities
✅ Displacement Detection: Uses ATR-based displacement to filter false signals
🎯 What are Breaker Blocks?
A Breaker Block is a failed order block that becomes a new support or resistance zone after being invalidated by price. It represents a market structure shift where institutional traders (smart money) have flipped their position.
Bullish Breaker Block
A Bullish Breaker Block forms when:
1 A bearish order block (resistance zone) exists
2 Price breaks ABOVE this zone with strong displacement
3 The former resistance zone now becomes SUPPORT
4 Price may retest this zone before continuing higher
Visual: Green box with "BB ▲" label
Bearish Breaker Block
A Bearish Breaker Block forms when:
5 A bullish order block (support zone) exists
6 Price breaks BELOW this zone with strong displacement
7 The former support zone now becomes RESISTANCE
8 Price may retest this zone before continuing lower
Visual: Red box with "BB ▼" label
⚙️ Default Settings
Setting Default Range Description
Lookback Period 1000 100-5000 Number of historical candles to analyze
Max Breaker Blocks 5 1-50 Maximum number of breaker blocks to display
Swing Detection Length 10 2-20 Bars on each side to confirm swing high/low. Higher = more significant swings
Use Displacement Filter true true/false Enable to filter breaker blocks by displacement size
Displacement Multiplier 2.0 0.5-5.0 Minimum move size as multiple of ATR. Higher = stricter detection
Invalidation Method Close Close/Wick Close = Conservative (candle must close beyond zone)Wick = Aggressive (wick touch is enough)
📈 Recommended Timeframes & Settings
This indicator is optimized for the following timeframes. Use these settings as a starting point.
Lower Timeframes (M5, M10, M15, M20)
These settings are designed to capture faster price movements and are the default settings for the indicator.
Setting Recommended Value
Lookback Period 1000
Max Breaker Blocks 5
Swing Detection Length 10
Use Displacement Filter true
Displacement Multiplier 2.0
Invalidation Method Close
Higher Timeframes (M30, H1)
For these timeframes, a less strict displacement filter is recommended to capture more significant, but less frequent, breaker blocks.
Setting Recommended Value
Lookback Period 1000
Max Breaker Blocks 5
Swing Detection Length 10
Use Displacement Filter true
Displacement Multiplier 1.0
Invalidation Method Close
🎓 How to Use
Step 1: Identify Breaker Blocks
Once the indicator is loaded, breaker blocks will automatically appear on your chart:
• Green boxes = Bullish breaker blocks (former resistance, now support)
• Red boxes = Bearish breaker blocks (former support, now resistance)
Step 2: Wait for Retest
The most reliable trading opportunities occur when price retests the breaker block zone:
• For bullish breaker blocks, wait for price to come back down to the green zone
• For bearish breaker blocks, wait for price to come back up to the red zone
Step 3: Look for Confluence
Combine breaker blocks with other SMC concepts for higher probability setups:
• Fair Value Gaps (FVG) within the breaker block zone
• Liquidity grabs before the retest
• Break of Structure (BoS) or Change of Character (ChoCH) confirmation
Step 4: Enter the Trade
Bullish Setup:
• Entry: At or near the bullish breaker block zone
• Stop Loss: Below the breaker block
• Take Profit: Previous swing high or higher
Bearish Setup:
• Entry: At or near the bearish breaker block zone
• Stop Loss: Above the breaker block
• Take Profit: Previous swing low or lower
🛡️ Non-Repainting Guarantee
This indicator is 100% non-repainting, meaning:
✅ Breaker blocks never change position after formation
✅ Historical breaker blocks remain in the exact same location indefinitely
✅ Backtesting results are reliable and consistent
🐛 Troubleshooting
Issue: No Breaker Blocks Appearing
Solutions:
• Ensure "Use Displacement Filter" is enabled.
• On M30/H1, try lowering the "Displacement Multiplier" to 1.0.
• Scroll back in history; blocks may not be present on the most recent bars.
Issue: Too Many Breaker Blocks
Solutions:
• Increase "Displacement Multiplier" to 2.5 or 3.0.
• Increase "Swing Detection Length" to 12-15.
• Decrease "Max Breaker Blocks" to 3-4.
Long + Short + Signal//@version=6
indicator("Long + Short + Signal", overlay=true)
Buy = input.bool(false, "Buy ")
Sell = input.bool(false, "Sell ")
// ================= INPUTS =================
// ---- LONG ----
periodK_Long = 50
smoothK_Long = 3
periodD_Long = 3
// ---- SHORT ----
periodK_Short = 14
smoothK_Short = 3
periodD_Short = 3
// ================= FUNCTIONS =================
f_stoch_long(tf) =>
k = request.security(syminfo.tickerid, tf,
ta.sma(ta.stoch(close, high, low, periodK_Long), smoothK_Long))
d = request.security(syminfo.tickerid, tf,
ta.sma(k, periodD_Long))
k > 50 and d > 50 ? color.green : k < 40 and d < 40 ? color.red : color.gray
f_stoch_short(tf) =>
k = request.security(syminfo.tickerid, tf,
ta.sma(ta.stoch(close, high, low, periodK_Short), smoothK_Short))
d = request.security(syminfo.tickerid, tf,
ta.sma(k, periodD_Short))
k > 60 and d > 60 ? color.green : k < 40 and d < 40 ? color.red : color.gray
// ================= TABLE =================
// 2 rows × 8 columns
var table t = table.new(position.top_right, 8, 2, border_width=3)
if barstate.islast
// ===== HEADINGS (BIGGER) =====
table.cell(
t, 0, 0, "Short",
bgcolor=color.black,
text_color=color.white,
text_size=size.large,
text_halign=text.align_center
)
table.cell(
t, 0, 1, "Long",
bgcolor=color.black,
text_color=color.white,
text_size=size.large,
text_halign=text.align_center
)
// ===== LONG ROW =====
table.cell(t, 1, 0, "1m", bgcolor=f_stoch_short("1"), text_color=color.white, text_size=size.normal)
table.cell(t, 2, 0, "5m", bgcolor=f_stoch_short("5"), text_color=color.white, text_size=size.normal)
table.cell(t, 3, 0, "15m", bgcolor=f_stoch_short("15"), text_color=color.white, text_size=size.normal)
table.cell(t, 4, 0, "60m", bgcolor=f_stoch_short("60"), text_color=color.white, text_size=size.normal)
table.cell(t, 5, 0, "D", bgcolor=f_stoch_short("D"), text_color=color.white, text_size=size.normal)
table.cell(t, 6, 0, "W", bgcolor=f_stoch_short("W"), text_color=color.white, text_size=size.normal)
table.cell(t, 7, 0, "M", bgcolor=f_stoch_short("M"), text_color=color.white, text_size=size.normal)
// ===== SHORT ROW =====
table.cell(t, 1, 1, "1m", bgcolor=f_stoch_long("1"), text_color=color.white, text_size=size.normal)
table.cell(t, 2, 1, "5m", bgcolor=f_stoch_long("5"), text_color=color.white, text_size=size.normal)
table.cell(t, 3, 1, "15m", bgcolor=f_stoch_long("15"), text_color=color.white, text_size=size.normal)
table.cell(t, 4, 1, "60m", bgcolor=f_stoch_long("60"), text_color=color.white, text_size=size.normal)
table.cell(t, 5, 1, "D", bgcolor=f_stoch_long("D"), text_color=color.white, text_size=size.normal)
table.cell(t, 6, 1, "W", bgcolor=f_stoch_long("W"), text_color=color.white, text_size=size.normal)
table.cell(t, 7, 1, "M", bgcolor=f_stoch_long("M"), text_color=color.white, text_size=size.normal)
lengthK = 14
lengthD = 3
lengthEMA = 3
emaEma(source, length) => ta.ema(ta.ema(source, length), length)
highestHigh = ta.highest(lengthK)
lowestLow = ta.lowest(lengthK)
highestLowestRange = highestHigh - lowestLow
relativeRange = close - (highestHigh + lowestLow) / 2
smi = 200 * (emaEma(relativeRange, lengthD) / emaEma(highestLowestRange, lengthD))
// ===== BUY / SELL CONDITIONS =====
buyEntry = ta.crossover(smi, 50)
buyExit = ta.crossunder(smi, 50)
sellEntry = ta.crossunder(smi, -40)
sellExit = ta.crossover(smi, -40)
// ===== PLOTS =====
plotshape( Buy and buyEntry, title="BUY", style=shape.triangleup,location=location.belowbar, color=color.green,size=size.small, text="BUY")
plotshape( Buy and buyExit, title="EXIT BUY", style=shape.triangledown, location=location.abovebar, color=color.lime,size=size.tiny, text="EXIT")
plotshape( Sell and sellEntry,title="SELL", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, text="SELL")
plotshape( Sell and sellExit, title="EXIT SELL", style=shape.triangleup, location=location.belowbar, color=color.orange, size=size.tiny, text="EXIT")
shortest = ta.ema(close, 9)
shortEMA = ta.ema(close, 21)
longer = ta.ema(close, 50)
longest = ta.ema(close, 200)
plot(shortest, color=color.red, title="EMA 9")
plot(shortEMA, color=color.orange, title="EMA 21")
plot(longer, color=color.aqua, title="EMA 50")
plot(longest, color=color.blue, title="EMA 200")
Crypto Camp Day Key LevelsDaily key levels Daily key levels Daily key levels Daily key levels Daily key levels Daily key levels















