VV Moving Average Convergence Divergence # VMACDv3 - Volume-Weighted MACD with A/D Divergence Detection
## Overview
**VMACDv3** (Volume-Weighted Moving Average Convergence Divergence Version 3) is a momentum indicator that applies volume-weighting to traditional MACD calculations on price, while using the Accumulation/Distribution (A/D) line for divergence detection. This hybrid approach combines volume-weighted price momentum with volume distribution analysis for comprehensive market insight.
## Key Features
- **Volume-Weighted Price MACD**: Traditional MACD calculation on price but weighted by volume for earlier signals
- **A/D Divergence Detection**: Identifies when A/D trend diverges from MACD momentum
- **Volume Strength Filtering**: Distinguishes high-volume confirmations from low-volume noise
- **Color-Coded Histogram**: 4-color system showing momentum direction and volume strength
- **Real-Time Alerts**: Background colors and alert conditions for bullish/bearish divergences
## Difference from ACCDv3
| Aspect | VMACDv3 | ACCDv3 |
|--------|---------|---------|
| **MACD Input** | **Price (Close)** | **A/D Line** |
| **Volume Weighting** | Applied to price | Applied to A/D line |
| **Primary Signal** | Volume-weighted price momentum | Volume distribution momentum |
| **Use Case** | Price momentum with volume confirmation | Volume flow and accumulation/distribution |
| **Sensitivity** | More responsive to price changes | More responsive to volume patterns |
| **Best For** | Trend following, breakouts | Volume analysis, smart money tracking |
**Key Insight**: VMACDv3 shows *where price is going* with volume weight, while ACCDv3 shows *where volume is accumulating/distributing*.
## Components
### 1. Volume-Weighted MACD on Price
Unlike standard MACD that uses simple price EMAs, VMACDv3 weights each price by its corresponding volume:
```
Fast Line = EMA(Price × Volume, 12) / EMA(Volume, 12)
Slow Line = EMA(Price × Volume, 26) / EMA(Volume, 26)
MACD = Fast Line - Slow Line
```
**Benefits of Volume Weighting**:
- High-volume price movements have greater impact
- Filters out low-volume noise and false moves
- Provides earlier trend change signals
- Better reflects institutional activity
### 2. Accumulation/Distribution (A/D) Line
Used for divergence detection, measuring buying/selling pressure:
```
A/D = Σ ((2 × Close - Low - High) / (High - Low)) × Volume
```
- **Rising A/D**: Accumulation (buying pressure)
- **Falling A/D**: Distribution (selling pressure)
- **Doji Handling**: When High = Low, contribution is zero
### 3. Signal Lines
- **MACD Line** (Blue, #2962FF): The fast-slow difference showing momentum
- **Signal Line** (Orange, #FF6D00): EMA or SMA smoothing of MACD
- **Zero Line**: Reference for bullish (above) vs bearish (below) bias
### 4. Histogram Color System
The histogram uses 4 distinct colors based on **direction** and **volume strength**:
| Condition | Color | Meaning |
|-----------|-------|---------|
| Rising + High Volume | **Dark Green** (#1B5E20) | Strong bullish momentum with volume confirmation |
| Rising + Low Volume | **Light Teal** (#26A69A) | Bullish momentum but weak volume (less reliable) |
| Falling + High Volume | **Dark Red** (#B71C1C) | Strong bearish momentum with volume confirmation |
| Falling + Low Volume | **Light Pink** (#FFCDD2) | Bearish momentum but weak volume (less reliable) |
Additional shading:
- **Light Cyan** (#B2DFDB): Positive but not rising (momentum stalling)
- **Bright Red** (#FF5252): Negative and accelerating down
### 5. Divergence Detection
VMACDv3 compares A/D trend against volume-weighted price MACD:
#### Bullish Divergence (Green Background)
- **Condition**: A/D is trending up BUT MACD is negative and trending down
- **Interpretation**: Volume is accumulating while price momentum appears weak
- **Signal**: Smart money accumulation, potential bullish reversal
- **Action**: Look for long entries, especially at support levels
#### Bearish Divergence (Red Background)
- **Condition**: A/D is trending down BUT MACD is positive and trending up
- **Interpretation**: Volume is distributing while price momentum appears strong
- **Signal**: Smart money distribution, potential bearish reversal
- **Action**: Consider exits, avoid new longs, watch for breakdown
## Parameters
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Source** | Close | OHLC/HLC3/etc | Price source for MACD calculation |
| **Fast Length** | 12 | 1-50 | Period for fast EMA (shorter = more sensitive) |
| **Slow Length** | 26 | 1-100 | Period for slow EMA (longer = smoother) |
| **Signal Smoothing** | 9 | 1-50 | Period for signal line (MACD smoothing) |
| **Signal Line MA Type** | EMA | SMA/EMA | Moving average type for signal calculation |
| **Volume MA Length** | 20 | 5-100 | Period for volume average (strength filter) |
## Usage Guide
### Reading the Indicator
1. **MACD Lines (Blue & Orange)**
- **Blue Line (MACD)**: Volume-weighted price momentum
- **Orange Line (Signal)**: Smoothed trend of MACD
- **Crossovers**: Blue crosses above orange = bullish, below = bearish
- **Distance**: Wider gap = stronger momentum
- **Zero Line Position**: Above = bullish bias, below = bearish bias
2. **Histogram Colors**
- **Dark Green (#1B5E20)**: Strong bullish move with high volume - **most reliable buy signal**
- **Light Teal (#26A69A)**: Bullish but low volume - wait for confirmation
- **Dark Red (#B71C1C)**: Strong bearish move with high volume - **most reliable sell signal**
- **Light Pink (#FFCDD2)**: Bearish but low volume - may be temporary dip
3. **Background Divergence Alerts**
- **Green Background**: A/D accumulating while price weak - potential bottom
- **Red Background**: A/D distributing while price strong - potential top
- Most powerful at key support/resistance levels
### Trading Strategies
#### Strategy 1: Volume-Confirmed Trend Following
1. Wait for MACD to cross above zero line
2. Look for **dark green** histogram bars (high volume confirmation)
3. Enter long on second consecutive dark green bar
4. Hold while histogram remains green
5. Exit when histogram turns light green or red appears
6. Set stop below recent swing low
**Example**:
```
Price: 26,400 → 26,450 (rising)
MACD: -50 → +20 (crosses zero)
Histogram: Light teal → Dark green → Dark green
Volume: 50k → 75k → 90k (increasing)
```
#### Strategy 2: Divergence Reversal Trading
1. Identify divergence background (green = bullish, red = bearish)
2. Confirm with price structure (support/resistance, chart patterns)
3. Wait for MACD to cross signal line in divergence direction
4. Enter on first **dark colored** histogram bar after divergence
5. Set stop beyond divergence area
6. Target previous swing high/low
**Example - Bullish Divergence**:
```
Price: Making lower lows (26,350 → 26,300 → 26,250)
A/D: Rising (accumulation)
MACD: Below zero but starting to curve up
Background: Green shading appears
Entry: MACD crosses signal line + dark green bar
Stop: Below 26,230
Target: 26,450 (previous high)
```
#### Strategy 3: Momentum Scalping
1. Trade only in direction of MACD zero line (above = long, below = short)
2. Enter on dark colored bars only
3. Exit on first light colored bar or opposite color
4. Quick in and out (1-5 minute holds)
5. Tight stops (0.2-0.5% depending on instrument)
#### Strategy 4: Histogram Pattern Trading
**V-Bottom Reversal (Bullish)**:
- Red histogram bars start rising (becoming less negative)
- Forms "V" shape at the bottom
- Transitions to light red → light teal → **dark green**
- Entry: First dark green bar
- Signal: Momentum reversal with volume
**Λ-Top Reversal (Bearish)**:
- Green histogram bars start falling (becoming less positive)
- Forms inverted "V" at the top
- Transitions to light green → light pink → **dark red**
- Entry: First dark red bar
- Signal: Momentum exhaustion with volume
### Multi-Timeframe Analysis
**Recommended Approach**:
1. **Higher Timeframe (15m/1h)**: Identify overall trend direction
2. **Trading Timeframe (5m)**: Time entries using VMACDv3 signals
3. **Lower Timeframe (1m)**: Fine-tune entry prices
**Example Setup**:
```
15-minute: MACD above zero (bullish bias)
5-minute: Dark green histogram appears after pullback
1-minute: Enter on break of recent high with volume
```
### Volume Strength Interpretation
The volume filter compares current volume to 20-period average:
- **Volume > Average**: Dark colors (green/red) - high confidence signals
- **Volume < Average**: Light colors (teal/pink) - lower confidence signals
**Trading Rules**:
- ✓ **Aggressive**: Take all dark colored signals
- ✓ **Conservative**: Only take dark colors that follow 2+ light colors of same type
- ✗ **Avoid**: Trading light colored signals during high volatility
- ✗ **Avoid**: Ignoring volume context during news events
## Technical Details
### Volume-Weighted Calculation
```pine
// Volume-weighted fast EMA
fast_ma = ta.ema(src * volume, fast_length) / ta.ema(volume, fast_length)
// Volume-weighted slow EMA
slow_ma = ta.ema(src * volume, slow_length) / ta.ema(volume, slow_length)
// MACD is the difference
macd = fast_ma - slow_ma
// Signal line smoothing
signal = ta.ema(macd, signal_length) // or ta.sma() if SMA selected
// Histogram
hist = macd - signal
```
### Divergence Detection Logic
```pine
// A/D trending up if above its 5-period SMA
ad_trend = ad > ta.sma(ad, 5)
// MACD trending up if above zero
macd_trend = macd > 0
// Divergence when trends oppose each other
divergence = ad_trend != macd_trend
// Specific conditions for alerts
bullish_divergence = ad_trend and not macd_trend and macd < 0
bearish_divergence = not ad_trend and macd_trend and macd > 0
```
### Histogram Coloring Logic
```pine
hist_color = (hist >= 0
? (hist < hist
? (vol_strength ? #1B5E20 : #26A69A) // Rising: dark/light green
: #B2DFDB) // Positive but falling: cyan
: (hist < hist
? (vol_strength ? #B71C1C : #FFCDD2) // Rising (less negative): dark/light red
: #FF5252)) // Falling more: bright red
```
## Alerts
Built-in alert conditions for divergence detection:
### Bullish Divergence Alert
- **Trigger**: A/D trending up, MACD negative and trending down
- **Message**: "Bullish Divergence: A/D trending up but MACD trending down"
- **Use Case**: Potential reversal or continuation after pullback
- **Action**: Look for long entry setups
### Bearish Divergence Alert
- **Trigger**: A/D trending down, MACD positive and trending up
- **Message**: "Bearish Divergence: A/D trending down but MACD trending up"
- **Use Case**: Potential top or trend reversal
- **Action**: Consider exits or short entries
### Setting Up Alerts
1. Click "Create Alert" in TradingView
2. Condition: Select "VMACDv3"
3. Choose alert type: "Bullish Divergence" or "Bearish Divergence"
4. Configure: Email, SMS, webhook, or popup
5. Set frequency: "Once Per Bar Close" recommended
## Comparison Tables
### VMACDv3 vs Standard MACD
| Feature | Standard MACD | VMACDv3 |
|---------|---------------|---------|
| **Price Weighting** | Equal weight all bars | Volume-weighted |
| **Sensitivity** | Fixed | Adaptive to volume |
| **False Signals** | More during low volume | Fewer (volume filter) |
| **Divergence** | Price vs MACD | A/D vs MACD |
| **Volume Analysis** | None | Built-in |
| **Color System** | 2 colors | 4+ colors |
| **Best For** | Simple trend following | Volume-confirmed trading |
### VMACDv3 vs ACCDv3
| Aspect | VMACDv3 | ACCDv3 |
|--------|---------|--------|
| **Focus** | Price momentum | Volume distribution |
| **Reactivity** | Faster to price moves | Faster to volume shifts |
| **Best Markets** | Trending, breakouts | Accumulation/distribution phases |
| **Signal Type** | Where price + volume going | Where smart money positioning |
| **Divergence Meaning** | Volume vs price disagreement | A/D vs momentum disagreement |
| **Use Together?** | ✓ Yes, complementary | ✓ Yes, different perspectives |
## Example Trading Scenarios
### Scenario 1: Strong Bullish Breakout
```
Time: 9:30 AM (market open)
Price: Breaks above 26,400 resistance
MACD: Crosses above zero line
Histogram: Dark green bars (#1B5E20)
Volume: 2x average (150k vs 75k avg)
A/D: Rising (no divergence)
Action: Enter long at 26,405
Stop: 26,380 (below breakout)
Target 1: 26,450 (risk:reward 1:2)
Target 2: 26,500 (risk:reward 1:4)
Result: High probability setup with volume confirmation
```
### Scenario 2: False Breakout (Avoided)
```
Time: 2:30 PM (slow period)
Price: Breaks above 26,400 resistance
MACD: Slightly positive
Histogram: Light teal bars (#26A69A)
Volume: 0.5x average (40k vs 75k avg)
A/D: Flat/declining
Action: Avoid trade
Reason: Low volume, no conviction, potential false breakout
Outcome: Price reverses back below 26,400 within 10 minutes
Saved: Avoided losing trade due to volume filter
```
### Scenario 3: Bullish Divergence Bottom
```
Time: 11:00 AM
Price: Making lower lows (26,350 → 26,300 → 26,280)
MACD: Below zero but curving upward
Histogram: Red bars getting shorter (V-bottom forming)
Background: Green shading (divergence alert)
A/D: Rising despite price falling
Volume: Increasing on down bars
Setup:
1. Divergence appears at 26,280 (green background)
2. Wait for MACD to cross signal line
3. First dark green bar appears at 26,290
4. Enter long: 26,295 (next bar open)
5. Stop: 26,265 (below divergence low)
6. Target: 26,350 (previous swing high)
Result: +55 points (30 point risk, 1.8:1 reward)
Key: Divergence + volume confirmation = high probability reversal
```
### Scenario 4: Bearish Divergence Top
```
Time: 1:45 PM
Price: Making higher highs (26,500 → 26,520 → 26,540)
MACD: Positive but flattening
Histogram: Green bars getting shorter (Λ-top forming)
Background: Red shading (bearish divergence)
A/D: Declining despite rising price
Volume: Decreasing on up bars
Setup:
1. Bearish divergence at 26,540 (red background)
2. MACD crosses below signal line
3. First dark red bar appears at 26,535
4. Enter short: 26,530
5. Stop: 26,555 (above divergence high)
6. Target: 26,475 (support level)
Result: +55 points (25 point risk, 2.2:1 reward)
Key: Distribution while price rising = smart money exiting
```
### Scenario 5: V-Bottom Reversal
```
Downtrend in progress
MACD: Deep below zero (-150)
Histogram: Series of dark red bars
Pattern Development:
Bar 1: Dark red, hist = -80, falling
Bar 2: Dark red, hist = -95, falling
Bar 3: Dark red, hist = -100, falling (extreme)
Bar 4: Light pink, hist = -98, rising!
Bar 5: Light pink, hist = -90, rising
Bar 6: Light teal, hist = -75, rising (crosses to positive momentum)
Bar 7: Dark green, hist = -55, rising + volume
Action: Enter long on Bar 7
Reason: V-bottom confirmed with volume
Stop: Below Bar 3 low
Target: Zero line on histogram (mean reversion)
```
## Best Practices
### Entry Rules
✓ **Wait for dark colors**: High-volume confirmation is key
✓ **Confirm divergences**: Use with price support/resistance
✓ **Trade with zero line**: Long above, short below for best odds
✓ **Multiple timeframes**: Align 1m, 5m, 15m signals
✓ **Watch for patterns**: V-bottoms and Λ-tops are reliable
### Exit Rules
✓ **Partial profits**: Take 50% at first target
✓ **Trail stops**: Use histogram color changes
✓ **Respect signals**: Exit on opposite dark color
✓ **Time stops**: Close positions before major news
✓ **End of day**: Square up before close
### Avoid
✗ **Don't chase light colors**: Low volume = low confidence
✗ **Don't ignore divergence**: Early warning system
✗ **Don't overtrade**: Wait for clear setups
✗ **Don't fight the trend**: Zero line dictates bias
✗ **Don't skip stops**: Always use risk management
## Risk Management
### Position Sizing
- **Dark green/red signals**: 1-2% account risk
- **Light signals**: 0.5% account risk or skip
- **Divergence plays**: 1% account risk (higher uncertainty)
- **Multiple confirmations**: Up to 2% account risk
### Stop Loss Placement
- **Trend trades**: Below/above recent swing (20-30 points typical)
- **Breakout trades**: Below/above breakout level (15-25 points)
- **Divergence trades**: Beyond divergence extreme (25-40 points)
- **Scalp trades**: Tight stops at 10-15 points
### Profit Targets
- **Minimum**: 1.5:1 reward to risk ratio
- **Scalps**: 15-25 points (quick in/out)
- **Swing**: 50-100 points (hold through pullbacks)
- **Runners**: Trail with histogram color changes
## Timeframe Recommendations
| Timeframe | Trading Style | Typical Hold | Advantages | Challenges |
|-----------|---------------|--------------|------------|------------|
| **1-minute** | Scalping | 1-5 minutes | Fast profits, many setups | Noisy, high false signals |
| **5-minute** | Intraday | 15-60 minutes | Balance of speed/clarity | Still requires quick decisions |
| **15-minute** | Swing | 1-4 hours | Clearer trends, less noise | Fewer opportunities |
| **1-hour** | Position | 4-24 hours | Strong signals, less monitoring | Wider stops required |
**Recommendation**: Start with 5-minute for best balance of signal quality and opportunity frequency.
## Combining with Other Indicators
### VMACDv3 + ACCDv3
- **Use**: Confirm volume flow with price momentum
- **Signal**: Both showing dark green = highest conviction long
- **Divergence**: VMACDv3 bullish + ACCDv3 bearish = examine price action
### VMACDv3 + RSI
- **Use**: Overbought/oversold with momentum confirmation
- **Signal**: RSI < 30 + dark green VMACD = strong reversal
- **Caution**: RSI > 70 + light green VMACD = potential false breakout
### VMACDv3 + Elder Impulse
- **Use**: Bar coloring + histogram confirmation
- **Signal**: Green Elder bars + dark green VMACD = aligned momentum
- **Exit**: Blue Elder bars + light colors = momentum stalling
## Limitations
- **Requires volume data**: Will not work on instruments without volume feed
- **Lagging indicator**: MACD inherently follows price (2-3 bar delay)
- **Consolidation noise**: Generates false signals in tight ranges
- **Gap handling**: Large gaps can distort volume-weighted values
- **Not standalone**: Should combine with price action and support/resistance
## Troubleshooting
**Problem**: Too many light colored signals
**Solution**: Increase Volume MA Length to 30-40 for stricter filtering
**Problem**: Missing entries due to waiting for dark colors
**Solution**: Lower Volume MA Length to 10-15 for more signals (accept lower quality)
**Problem**: Divergences not appearing
**Solution**: Verify volume data available; check if A/D line is calculating
**Problem**: Histogram colors not changing
**Solution**: Ensure real-time data feed; refresh indicator
## Version History
- **v3**: Removed traditional MACD, using volume-weighted MACD on price with A/D divergence
- **v2**: Added A/D divergence detection, volume strength filtering, enhanced histogram colors
- **v1**: Basic volume-weighted MACD on price
## Related Indicators
**Companion Tools**:
- **ACCDv3**: Volume-weighted MACD on A/D line (distribution focus)
- **RSIv2**: RSI with A/D divergence detection
- **DMI**: Directional Movement Index with A/D divergence
- **Elder Impulse**: Bar coloring system using volume-weighted MACD
**Use Together**: VMACDv3 (momentum) + ACCDv3 (distribution) + Elder Impulse (bar colors) = complete volume-based trading system
---
*This indicator is for educational purposes. Past performance does not guarantee future results. Always practice proper risk management and never risk more than you can afford to lose.*
المؤشرات والاستراتيجيات
Value Charts by Mark Helweg1. Introduction
This script is a simplified implementation of the Value Charts concept introduced by Mark Helweg and David Stendahl in their work on “Dynamic Trading Indicators”. It converts raw price into value units by normalizing distance from a dynamic fair‑value line, making it easier to see when price is relatively overvalued or undervalued across different markets and timeframes. The code focuses on plotting Value Chart candlesticks and clean visual bands, keeping the logic close to the original idea while remaining lightweight for intraday and swing trading.
2. Key Features
- Dynamic fair‑value axis
Uses a moving average of the chosen price source as the fair‑value line and a volatility‑based deviation (smoothed True Range) to scale all price moves into comparable value units.
- Normalized Value Chart candlesticks
OHLC prices are transformed into value units and displayed as a dedicated candlestick panel, visually similar to standard candles but detached from raw price, highlighting relative extremes instead of absolute levels.
- Custom upper and lower visual limits
User‑defined upper and lower bands frame the majority of action and emphasize extreme value zones, helping the trader spot potential exhaustion or mean‑reversion conditions at a glance.
- Clean, publishing‑friendly layout
Only the normalized candles and three simple reference lines (top, bottom, zero) are plotted, keeping the chart uncluttered and compliant with presentation standards for published scripts.
3. How to Use
1. Attach the indicator to a separate pane (overlay = false) on any market and timeframe you trade.
2. Set the “Period (Value Chart)” to control how fast the fair‑value line adapts: shorter values react more quickly, longer values smooth more.
3. Adjust the “Volatility Factor” so that most candles stay between the upper and lower limits, with only true extremes touching or exceeding them.
4. Use the Value Chart candlesticks as a relative overbought/oversold tool:
- Candles pressing into the Top band suggest overvalued conditions and potential for pullbacks or reversions.
- Candles pressing into the Bottom band suggest undervalued conditions and potential for bounces.
5. Combine the signals with your existing price‑action, volume, or trend‑filter rules on the main chart; the Value Chart panel is designed as a context and timing tool, not a standalone trading system.
specific breakout FiFTOStrategy Description: 10:14 Breakout Only
Overview This is a time-based intraday trading strategy designed to capture momentum bursts that occur specifically after the 10:14 AM candle closes. It operates on the logic that if price breaks the high of this specific candle within a short window, a trend continuation is likely.
Core Logic & Rules
The Setup Candle (10:14 AM)
The strategy waits specifically for the minute candle at 10:14 to complete.
Once this candle closes, the strategy records its High price.
Defining the Entry Level
It calculates a trigger price by taking the 10:14 High and adding a user-defined Buffer (e.g., +1 point).
Formula: Entry Level = 10:14 High + Buffer
The "Active Window" (Expiry)
The trade setup does not remain open all day. It has a strict time limit.
By default, the setup is valid from 10:15 to 10:20.
If the price does not break the Entry Level by the expiry time (default 10:20), the setup is cancelled and no trade is taken for the day.
Entry Trigger
If a candle closes above the Entry Level while the window is open, a Long (Buy) position is opened immediately.
Exits (Risk Management)
Stop Loss: A fixed number of points below the entry price.
Target: A fixed number of points above the entry price.
Visual & Automation Features
Visual Boxes: Upon entry, the strategy draws a "Long Position" style visual on the chart. A green box highlights the profit zone, and a red box highlights the loss zone. These boxes extend automatically until the trade closes.
JSON Alerts: The strategy is pre-configured to send data-rich alerts for automation (e.g., Telegram bots).
Entry Alert: Includes Symbol, Entry Price, SL, and TP.
Exit Alerts: Specific messages for "Target Hit" or "SL Hit".
Summary of User Inputs
Entry Buffer: Extra points added to the high to filter false breaks.
Fixed Stop Loss: Risk per trade in points.
Fixed Target: Reward per trade in points.
Expiry Minute: The minute (10:xx) at which the setup becomes invalid if not triggered.
52 Week High LowPurpose
This indicator plots the rolling **52-week high and low price levels** to highlight long-term breakout zones, major support/resistance bands, and trend structure used by position and swing traders.
## How It Works
The script dynamically calculates:
- The highest high over the last ~260 trading sessions (52-week high)
- The lowest low over the last ~260 trading sessions (52-week low)
- Visual bands that update in real time as price evolves
## Best Timeframe
Optimized for **daily charts** to reflect true yearly price ranges.
Can be adapted to other timeframes using the bar-count inputs.
## Trading Applications
✅ Breakout confirmation tool
✅ Long-term trend validation
✅ Relative strength filter alignment
✅ RRG and momentum cross-checks
✅ Swing trade zone identification
## How To Use
1. Apply to daily charts.
2. Track price interaction with the 52-week bands.
3. Look for:
- Breakouts above the high band for trend continuation
- Pullbacks toward the high band for retest entries
- Rejections at the low band as breakdown confirmation
⚠️ This indicator maps key price structure — it does **not predict directional outcomes**.
Always combine with volume or momentum confirmation.
---
## Mathematical Basis
Rolling extreme calculations based on:
- **Highest high over N bars**
- **Lowest low over N bars**
N defaults to **52 weeks × 5 sessions = 260 bars** for daily charts.
---
Developed for professional retail traders seeking institutional-grade structural tools.
ExitAnt Cloud Score📘 ExitAnt Cloud Score
ExitAnt Cloud Score 는 일목균형표(Ichimoku Cloud)의 구름대 돌파 신호를 기반으로,
다양한 추세 보조지표를 결합하여 매수 추세 강도를 점수화(0~5점) 해주는 트렌드 분석 지표입니다.
기존 일목구름 단독 신호는 변동성이 크거나 신뢰도가 낮을 수 있기 때문에,
이 지표는 여러 기술적 요소를 종합적으로 평가하여
“지금이 얼마나 강력한 추세 전환 구간인가?” 를 직관적으로 보여줍니다.
🎯 지표 목적
일목균형표 구름 돌파의 신뢰도 강화
보조지표 신호를 자동으로 점수화하여 한눈에 판단 가능
캔들 위에 이모지를 배치해 시각적으로 즉시 해석 가능
초보자부터 숙련자까지 모두 활용 가능한 추세 진입 필터링 도구
🧠 점수 계산 방식 (0~5점)
구름 상향 돌파가 발생하면 아래 조건들을 체크하여 점수를 부여합니다.
▶ +1점 조건 항목
1. 골든 크로스 발생
* 최근 설정한 n봉 이내에서 Fast MA가 Slow MA를 상향 돌파한 경우
2. RSI 과매도 구간
* RSI가 설정 값 이하일 때 추세 전환 가능성이 증가
3. MACD 강세 전환
* MACD가 0 아래에 있으면서 시그널선 상향 돌파 발생
4. RSI 상승 다이버전스
* 가격은 낮아지지만 RSI는 상승 → 바닥 신호
5. 200MA 위에 위치
* 장기 추세와 일치하는 시점만 점수 강화
▶ 점수별 이모지
1점 🟡 : 약한 진입 신호
2점 🟢 : 관찰이 필요한 강화 신호
3점 📈 : 추세 전환 가능성 증가
4점 🚀 : 강한 추세 신호
5점 👑 : 매우 강력한 진입 시그널
🖥 차트 표시 요소
구름대(Span A / Span B)만 표시하여 더 깔끔한 시각화
이모지는 캔들 위에 자동 배치
필요 시 최근 n개의 캔들만 표시하도록 설정 가능
오른쪽 상단에 조건 요약 안내창 표시
🔧 사용자 설정
Tenkan / Kijun / SenkouB 기간 조정
MA, RSI, MACD, 다이버전스 사용 여부 선택
최근 몇 개의 캔들까지 점수를 표시할지 설정 가능
이모지는 사용자 취향에 따라 변경 가능
⚠️ 유의사항
본 지표는 **가격 움직임의 확률적 해석을 돕는 보조지표**이며, 단독으로 매수·매도 결정을 내려서는 안 됩니다.
시장 상황(변동성, 거래량, 프레임)에 따라 신호의 신뢰도는 달라질 수 있습니다.
실제 매매 전략에 적용하기 전 반드시 백테스트와 검증이 필요합니다.
# **📘 ExitAnt Cloud Score — English Description**
📘 ExitAnt Cloud Score
ExitAnt Cloud Score is a trend analysis indicator that evaluates bullish trend strength by scoring (0–5 points) signals based on Ichimoku Cloud breakouts combined with multiple momentum and trend indicators.
Since the default Ichimoku Cloud breakout alone can be unreliable or highly volatile, this indicator integrates several technical conditions to visually and intuitively show
“How strong is the current trend reversal opportunity?”
🎯 Purpose of the Indicator
Enhance the reliability of Ichimoku Cloud breakout signals
Automatically score multiple signals for quick visual judgment
Place emojis directly above candles for instant interpretation
Works for both beginners and experienced traders as a trend-entry filtering tool
🧠 Scoring Logic (0–5 points)
When a bullish breakout above the cloud occurs, the indicator checks the following conditions and assigns points.
▶ +1 Point Conditions
1. Golden Cross
* Fast MA crosses above Slow MA within the user-defined lookback window
2. RSI Oversold
* RSI below threshold increases the probability of trend reversal
3. MACD Bullish Shift
* MACD is below zero while crossing above the signal line
4. RSI Bullish Divergence
* Price makes a lower low while RSI makes a higher low → potential bottom signal
5. Above the 200MA
* Only scores when price aligns with long-term trend direction
▶ Emoji by Score
1 Point 🟡 : Weak early signal
2 Points 🟢 : Improved setup; watch closely
3 Points 📈 : Decent trend reversal possibility
4 Points 🚀 : Strong trend entry signal
5 Points 👑 : Very strong bullish signal
🖥 Chart Elements
Displays only Span A / Span B to keep the cloud visually clean
Emojis automatically appear above candles
Optionally limit the number of candles displaying signals
Summary box appears in the upper-right corner
🔧 User Settings
Adjustable Tenkan / Kijun / Senkou B periods
Enable/disable MA, RSI, MACD, divergence filters
Set how many recent candles should show the score
Emojis can be customized by the user
⚠️ Disclaimer
This is a technical assistant tool that helps interpret price movement probabilities; it should not be used as a standalone buy/sell signal.
Signal reliability may vary depending on volatility, volume, and timeframe.
Always conduct backtesting and validation before using it in real trading strategies.
HV Rank & PercentileHistoric Volatility Percentile (green plot) and Historic Volatility Rank (grey plot >= 50%, red plot < 50%) are based on the 252 previous trading days of the Historic Volatility. This code was written using Pine Script version 6 by gemini.google.com.
Multi-Timeframe Fair Value Gap by Vigna📊 Multi-Timeframe Fair Value Gap (FVG) Indicator
This indicator displays Fair Value Gaps (FVGs) from multiple timeframes simultaneously on your chart. FVGs are price gaps that occur when the market moves quickly and skips certain price levels. These gaps tend to be "filled" later and often serve as important support and resistance zones.
🎯 What are Fair Value Gaps?
A Fair Value Gap occurs when:
Bullish FVG: The current low is higher than the high from 2 candles ago (gap upward)
Bearish FVG: The current high is lower than the low from 2 candles ago (gap downward)
⏱️ Supported Timeframes:
1 Hour (1H)
2 Hours (2H)
3 Hours (3H)
4 Hours (4H)
1 Day (1D)
1 Week (1W)
🎨 Features:
✅ All timeframes visible simultaneously
✅ Each timeframe has its own color (bullish & bearish)
✅ Labels show the timeframe of each gap
✅ Automatic deletion when gap is filled
✅ Optional: MidPoint Fill (gap marked as filled at 50%)
✅ Extend right: Gaps extend to the right until filled
✅ All colors fully customizable
⚙️ Settings:
Timeframes: Enable/disable individual timeframes as needed
MidPoint Fill: Mark gap as filled when 50% is reached
Delete On Fill: Automatically remove filled gaps from chart
Label Timeframes: Show labels with timeframe names
Colors: Customize all colors to your preferences
💡 Application:
FVGs often serve as magnetic attraction points for price
Higher timeframe FVGs (4H, 1D, 1W) are typically more significant
Use FVGs as potential entry/exit zones
Combine with other indicators for better confirmation
📈 Recommended Use:
Works best on timeframes from 15min to 1H
Ideal for Forex, Crypto, and Stocks
Especially useful for Swing Trading and Day Trading
🔧 Technical Details:
Uses optimized request.security() calls (12 total, under the 40 limit)
Employs tuple syntax for efficient data fetching
Real-time gap detection and filling mechanism
Memory-efficient array management with var keyword
CRR - Entry SIN RETROUse in 1 minute:
EMA 15, 30, 200 → strong trend.
VWAP → institutional fair price.
RSI (8) → strength (Bull > 60, Bear < 40).
MACD → momentum direction.
Volume vs. average → ensure sufficient liquidity.
FVG (optional) → liquidity gap in your favor.
2️⃣ Signals WITHOUT PULLBACK
BUY WITHOUT PULLBACK when:
EMA15 > EMA30 > EMA200 (strong bullish trend)
MACD bullish, RSI > 60
High volume
Price above EMA15 and VWAP
(Optional) Bullish FVG in your favor
SELL WITHOUT PULLBACK when everything above is reversed (bearish).
Generate alerts:
CRR BUY 1m WITHOUT PULLBACK
CRR SELL 1m WITHOUT PULLBACK
3️⃣ Single-line HUD
When a signal appears, everything is automatically set up:
DIR: BUY / SELL / —
ENTRY: entry price
SL: 1× ATR
TP1, TP2, TP3: 1×, 2×, and 3× ATR
Everything is displayed in a compact HUD (configurable position).
🧠 In simple terms:
It's your engine for quick entries in 1M when the market is moving at full speed, without pullbacks, with everything filtered by trend, strength, volume, and FVG, and it provides you with the ENTRY–SL–TPs ready to go.
Gold Mastermind Pro v6EMA50 / EMA200 trend (UP / DOWN / FLAT)
VWAP + ATR + RSI filters for entries
ATR-based stop & 2R target
Risk-based position sizing with max 5 contracts
Cooldown in bars after each entry
Long arrows = baby blue, Short arrows = bright orange
Simple dashboard label showing trend, qty, stop & target
ATR% Multiple from MA (with QQQ Reference)ATR% Multiple from MA (with QQQ Reference)
This indicator measures how extended a stock's price is from its moving average, normalized by volatility (ATR). It's useful for identifying overbought/oversold conditions and timing profit-taking.
How it works:
ATR% = ATR / Current Price (volatility as % of price)
% Gain From MA = How far price is from the moving average
ATR% Multiple From MA = % Gain From MA ÷ ATR%
Features:
Displays ATR% Multiple for the current symbol
Adds QQQ ATR% Multiple as a market benchmark reference
Shows % Gain From MA and ATR % for additional context
Customizable MA type (SMA, EMA, WMA, VWMA) and lengths
Usage:
Values of 7-10+ suggest taking partial profits (price is extended)
Negative values suggest oversold conditions
Compare your stock's extension to QQQ to gauge relative strength
Inspired by jfsrev's original ATR% Multiple from 50-MA concept, with added QQQ market reference:
Execution Heatmap v8 — Classic Blocks (Final Logic)This indicator visualizes real-time market context through a structured execution heatmap, representing multiple analytic dimensions in a compact on-chart panel. Designed for traders who rely on confluence-based decision making, it tracks the shifting behavior of price, volume, and structural regimes to help identify momentum shifts, exhaustion points, and directional conviction.
🔶 Overview
The Execution Heatmap v8 consolidates key elements from trend, volume, and momentum analysis into a single panel. Each row represents a core component of the execution model, colored dynamically to reflect bullish, bearish, neutral, or mixed states. The final block produces a BUY, SELL, or SELL-ALERT classification — fully aligned with the internal logic of the GOLDMASTER‑HUD framework.
🔸 Core Logic Components
VWAP Direction: Detects price bias relative to VWAP (overextended, below value, or neutral).
Impulse Engine: Evaluates momentum using RSI and MFI thresholds to determine directional energy.
Volume Surge: Highlights aggressive volume imbalances and determines the dominant side (bull or bear).
Fake Break Detection: Identifies false breakouts at recent swing extremes to flag potential reversals.
Regime Filter: Measures underlying trend structure using dual‑EMA alignment (20/50 EMA).
Pattern Recognition: Detects emerging HL (higher low) or LH (lower high) structures.
Structure Strength: Maps strong vs. weak structural phases based on regime and pattern alignment.
Final Signal Engine: Synthesizes all modules into actionable classifications:
BUY: Price structure supports trend continuation.
SELL‑ALERT: Early weakness or exhaustion detected within a strong up‑trend.
SELL: Confirmed reversal alignment (momentum, VWAP, volume, and structure all bearish).
WAIT: Caution when conditions remain inconclusive.
🟩🟥 Color‑Coded Heat Blocks
Each metric is represented as a colored cell:
Green: Bullish / upward bias
Red: Bearish / downward bias
Yellow: Neutral / weak / mixed
Dark gray: Undefined or transitional
⚙️ Customization
Adjustable panel position (bottom‑right, bottom‑left, top‑right, top‑left).
Non‑intrusive table layout optimized for overlaying on active charts.
Lightweight execution with minimal resource load, ideal for intraday use.
FX Fresh Momentum FX Fresh Momentum calculates the true strength and session momentum of the 8 major currencies using a 7-pair average and session resets (Tokyo, London, New York).
Each session opens with a zero-base, allowing you to see only the fresh momentum.
Includes pair-averaged strength, ×100 momentum scaling, vertical session dividers, and institutional color coding.
Ideal for FX day traders who want cleaner session-based momentum signals
Relative Strength Line by QuantxThe Relative Strength Line compares the price performance of a stock against a benchmark index (e.g., NIFTY, S&P 500, Bank Nifty, etc.).
It does not indicate momentum of the stock itself — it indicates whether the stock is outperforming or underperforming the market.
🔍 How To Read It
RSL Behavior Meaning
RSL moving up Stock is outperforming the benchmark (strong leadership)
RSL moving down Stock is underperforming the benchmark (weakness vs market)
RSL breaking above previous highs Strong institutional demand, leadership candidate
RSL trending sideways Stock is performing similar to the index (no leadership)
📈 Why It Matters
Institutional traders and top-performing strategies focus on stocks showing relative strength BEFORE price breakout.
A stock making new RSL highs even before a price breakout often becomes a top performer in the coming trend.
🧠 Core Trading Edge
You don’t need to predict the market.
Just identify which stocks are being accumulated and leading the market right now — that’s what the Relative Strength Line reveals.
Equal Highs & Lows Strategy // ------------------------------------------------------------------------------
// 🧠 THE MARKET PSYCHOLOGY (WHY THIS WORKS):
// ------------------------------------------------------------------------------
// 1. THE MAGNET THEORY:
// "Equal Highs" (EQH) and "Equal Lows" (EQL) are not random. They represent
// Retail Support and Resistance. Retail traders are taught to put Stop Losses
// just above Double Tops or just below Double Bottoms.
// - Therefore, these lines represent massive pools of LIQUIDITY (Money).
// - Price is often engineered to move toward these lines to "unlock" that money.
//
// 2. THE INSTITUTIONAL TRAP (STOP HUNTS):
// Institutions need liquidity to fill large orders without slippage.
// - To Buy massive amounts, they need many Sellers -> They push price BELOW EQL
// to trigger retail Sell Stops.
// - To Sell massive amounts, they need many Buyers -> They push price ABOVE EQH
// to trigger retail Buy Stops.
//
// 3. THE STRATEGY (TURTLE SOUP):
// We do not trade the initial touch. We wait for the "Sweep & Reclaim".
// - Bullish Signal (GRAB ⬆): Price drops below the Green Line (EQL), grabs the
// stops, but buyers step in and force the candle to CLOSE back above the line.
// - Bearish Signal (GRAB ⬇): Price spikes above the Red Line (EQH), grabs the
// stops, but sellers step in and force the candle to CLOSE back below the line.
// ------------------------------------------------------------------------------
Swing Data - ADR% / RVol / PVol / Float % / Avg $ Vol (Mod)Modified from this source code:
I have added the current bar DR so i can compare to ADR of the current bar to see if it is worth taking the trade for my bar-by-bar practice.
Quick too instead of having to measure it each time
Perfect Trade Screener – Merthan KRYPTO PRO (v6) for cryptoPerfect Trade Screener – Merthan KRYPTO PRO (v6) for crypto
Mirpapa_Lib_HTFLibrary "Mirpapa_Lib_HTF"
High Time Frame Handler Library:
Provides utilities for working with High Time Frame (HTF) and chart (LTF) conversions and data retrieval.
IsChartTFcomparisonHTF(_chartTf, _htfTf)
IsChartTFcomparisonHTF
@description
Determine whether the given High Time Frame (HTF) is greater than or equal to the current chart timeframe.
Parameters:
_chartTf (string) : The current chart’s timeframe string (examples: "5", "15", "1D").
_htfTf (string) : The High Time Frame string to compare (examples: "60", "1D").
@return
Returns true if HTF minutes ≥ chart minutes, false otherwise or na if conversion fails.
GetHTFrevised(_tf)
GetHTFrevised
@description
Retrieve a specific bar value from a Higher Time Frame (HTF) series.
Supports current and historical OHLC values, based on a case identifier.
Parameters:
_tf (string) : The target HTF string (examples: "60", "1D").
GetHTFrevised(_tf, _case)
Parameters:
_tf (string)
_case (string)
GetHTFfromLabel(_label)
GetHTFfromLabel
@description
Convert a Korean HTF label into a Pine Script-recognizable timeframe string.
Examples:
"5분" → "5"
"1시간" → "60"
"일봉" → "1D"
"주봉" → "1W"
"월봉" → "1M"
"연봉" → "12M"
Parameters:
_label (string) : The Korean HTF label string (examples: "5분", "1시간", "일봉").
@return
Returns the Pine Script timeframe string corresponding to the label, or "1W" if no match is found.
GetHTFoffsetToLTFoffset(_offset, _chartTf, _htfTf)
GetHTFoffsetToLTFoffset
@description
Adjust an HTF bar index and offset so that it aligns with the current chart’s bar index.
Useful for retrieving historical HTF data on an LTF chart.
Parameters:
_offset (int) : The HTF bar offset (0 means current HTF bar, 1 means one bar ago, etc.).
_chartTf (string) : The current chart’s timeframe string (examples: "5", "15", "1D").
_htfTf (string) : The High Time Frame string to align (examples: "60", "1D").
@return
Returns the corresponding LTF bar index after applying HTF offset. If result is negative, returns 0.
UpdateHTFCache(_cache, _tf)
UpdateHTFCache
@description HTF 데이터 캐싱 (성능 최적화).\
HTF의 OHLC 데이터를 캐싱하여 매 틱마다 request.security 호출 방지.\
_cache: 기존 캐시 (없으면 na, 첫 호출 시).\
_tf: 캐싱할 시간대 (예: "60", "1D").\
새 bar 또는 bar_index 변경 시에만 업데이트, 그 외에는 기존 캐시 반환.\
Parameters:
_cache (HTFCache) : 기존 캐시 데이터 (없으면 na)
_tf (string) : 시간대
Returns: HTFCache 업데이트된 캐시 데이터
GetTimeframeSettings(_currentTF, _midTF1m, _highTF1m, _midTF5m, _highTF5m, _midTF15m, _highTF15m, _midTF30m, _highTF30m, _midTF60m, _highTF60m, _midTF240m, _highTF240m, _midTF1D, _highTF1D, _midTF1W, _highTF1W, _midTF1M, _highTF1M)
GetTimeframeSettings
@description 현재 차트 시간대에 맞는 중위/상위 시간대 자동 선택.\
_currentTF: 현재 차트 시간대 (timeframe.period).\
1분~1월 차트별로 적절한 중위/상위 시간대 매핑.\
예: 5분 차트 → 중위 15분, 상위 60분.\
반환: .\
Parameters:
_currentTF (string) : 현재 차트 시간대
_midTF1m (string)
_highTF1m (string)
_midTF5m (string)
_highTF5m (string)
_midTF15m (string)
_highTF15m (string)
_midTF30m (string)
_highTF30m (string)
_midTF60m (string)
_highTF60m (string)
_midTF240m (string)
_highTF240m (string)
_midTF1D (string)
_highTF1D (string)
_midTF1W (string)
_highTF1W (string)
_midTF1M (string)
_highTF1M (string)
Returns:
HTFCache
Fields:
_timeframe (series string)
_lastBarIndex (series int)
_isNewBar (series bool)
_barIndex (series int)
_open (series float)
_high (series float)
_low (series float)
_close (series float)
_open1 (series float)
_close1 (series float)
_high1 (series float)
_low1 (series float)
_open2 (series float)
_close2 (series float)
_high2 (series float)
_low2 (series float)
_high3 (series float)
_low3 (series float)
_time1 (series int)
_time2 (series int)
EMA Color Cross + Trend Bars + Background BY İNCEBACAK//@version=5
indicator("EMA Color Cross + Trend Bars + Background", overlay=true)
// EMA ayarları
shortEMA = input.int(9, "Short EMA")
longEMA = input.int(21, "Long EMA")
emaShort = ta.ema(close, shortEMA)
emaLong = ta.ema(close, longEMA)
// Trend yönü
trendUp = emaShort > emaLong
trendDown = emaShort < emaLong
// EMA çizgileri trend yönüne göre renk değiştirsin
plot(emaShort, color=trendUp ? color.green : color.red, linewidth=4)
plot(emaLong, color=trendUp ? color.green : color.red, linewidth=4)
// Barları trend yönüne göre renklendir
barcolor(trendUp ? color.green : color.red)
// Arka plan trend yönüne göre
bgcolor(trendUp ? color.new(color.green, 85) : color.new(color.red, 85))
// Kesişim sinyalleri ve oklar
longSignal = ta.crossover(emaShort, emaLong)
shortSignal = ta.crossunder(emaShort, emaLong)
plotshape(longSignal, title="Long", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.large)
plotshape(shortSignal, title="Short", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.large)
Next Month/Week/Day CPRNext Month/Week/Day CPR with S1 and S3, R1 and R3. Next Month/Week/Day CPR with S1 and S3, R1 and R3. Next Month/Week/Day CPR with S1 and S3, R1 and R3.
Gap Zones with Unfilled AreasA very efficient scalping strategy for BTC. Both for the sell and buy. Take the trade when the price retraces back into 50% of the zone and and aim for a an easy 1:2
Adaptive Alligator - Asymmetric MH (Entry Only)
Adaptive Alligator – Asymmetric Mexican Hat (Entry Only)
This strategy combines adaptive cycle detection (wavelet + autocorrelation), directional entropy, and a Mexican Hat filter to generate highly selective LONG entry signals. Exits are based solely on the Alligator structure. The system is designed to detect asymmetric, strong, and accelerating bullish phases while filtering out market noise.
1. Adaptive Cycle Detection: The strategy analyzes the median price using wavelet decomposition (Haar, Daubechies D4/D6, Symlet 4), wavelet detail energy, and autocorrelation. It also incorporates the ratio of short-term to long-term ATR volatility. Based on these components, it computes a dominant_cycle value, which dynamically controls the lengths of the Alligator lines (Jaw, Teeth, Lips). This adaptive behavior allows the Alligator to speed up during trending phases and slow down during noise or consolidation.
2. Directional Entropy: Entropy is measured separately for upward and downward movements within the selected lookback window. The entropy difference: e_diff = entropy_down - entropy_up represents the directional bias of the market. When e_diff > 0, the market shows an organized bullish pressure; when < 0, bearish dominance.
3. Mexican Hat Filter: The Mexican Hat (Ricker Wavelet) acts as a second-derivative filter, detecting local maxima in the acceleration of directional entropy. The filtered output (mh_out) is compared against an adaptive noise level computed as SMA(|mh_out|). A signal is considered strong only when: – mh_out exceeds the adaptive noise level, – mh_out is rising relative to the previous bar. This step is critical for eliminating false signals produced by random fluctuations.
4. Entry Logic: A LONG entry requires all three layers: (1) Alligator structure: Lips > Teeth > Jaw. (2) Directional entropy bias: e_diff > 0. (3) A strong, accelerating Mexican Hat signal confirmed by a user-defined number of bars. Once all conditions are satisfied, a buy_final entry is triggered.
5. Exit Logic: Exits are intentionally simple and rely solely on the Alligator: crossunder(lips, teeth) This clean separation ensures precise, adaptive entries and stable, consistent exits.
6. Visual Components: – Alligator lines: Jaw (blue), Teeth (red), Lips (green), plotted with their characteristic offsets. – Background coloring reflects signal strength: dark green (STRONG BUY), lime (acceleration), yellow (weak bias), transparent otherwise. – A dedicated panel displays e_diff (entropy difference), mh_out (Mexican Hat output), and the adaptive noise band.
7. Diagnostic Table: A compact diagnostic dashboard shows: – MH Value, – Noise Level, – MH Acceleration (YES/NO), – Signal Status (STRONG BUY / ACCELERATING / WEAK / BEARISH). It updates on the last bar, making it suitable for live monitoring.
8. Use Case: This strategy is highly selective and ideal as an entry module within trend-following systems. By combining wavelets, entropy, and adaptive noise modeling, it effectively filters out consolidation periods and focuses only on statistically significant bullish transitions. It can be integrated with various exit frameworks such as ATR stops, channel-based exits, range boxes, or trailing logic.






















