Blue Sniper V.1Overview
This Pine Script indicator is designed to generate Buy and Sell signals based on proximity to the 50 EMA, stochastic oscillator levels, retracement conditions, and EMA slopes. It is tailored for trending market conditions, making it ideal for identifying high-probability entry points during strong bullish or bearish trends.
Key Features:
Filters out signals in non-trending conditions.
Focuses on retracements near the 50 EMA for precise entries.
Supports alert notifications for Buy and Sell signals.
Includes a cooldown mechanism to prevent signal spamming.
Allows time-based filtering to restrict signals to a specific trading window.
How It Works
Trending Market Conditions
The indicator is most effective when the market exhibits a clear trend. It uses two exponential moving averages (50 EMA and 200 EMA) to determine the overall market trend:
Bullish Trend: 50 EMA is above the 200 EMA, and both EMAs have upward slopes.
Bearish Trend: 50 EMA is below the 200 EMA, and both EMAs have downward slopes.
Buy and Sell Conditions
Buy Signal:
The market is in a bullish trend.
Stochastic oscillator is in the oversold zone.
Price retraces upwards, breaking away from the recent low by more than 1.5 ATR.
Price is near the 50 EMA (within the defined proximity percentage).
Sell Signal:
The market is in a bearish trend.
Stochastic oscillator is in the overbought zone.
Price retraces downwards, breaking away from the recent high by more than 1.5 ATR.
Price is near the 50 EMA.
Outputs
Signals:
Buy Signal: Green "BUY" label below the price bar.
Sell Signal: Red "SELL" label above the price bar.
Alerts:
Alerts are triggered for Buy and Sell signals if conditions are met within the specified time window (if enabled).
EMA Visualization:
50 EMA (blue line).
200 EMA (red line).
Limitations
Not Suitable for Non-Trending Markets: This script is designed for trending conditions. Sideways or choppy markets may produce false signals.
Proximity Tolerance: Adjust the proximityPercent to prevent signals from triggering too frequently during minor oscillations around the 50 EMA.
No Guarantee of Accuracy: As with any technical indicator, it should be used in conjunction with other tools and analysis.
在腳本中搜尋"富时中国50期指"
Prometheus Polarized Fractal Efficiency (PFE)This indicator uses market data to calculate Polarized Fractal Efficiency (PFE) on an asset, so traders can have a better idea of which direction it may go.
Users can control the lookback length for the fractal calculation, the lookback length for the Exponential Moving Average (EMA), and whether or not to display lines at the -50 and 50 level, or -25 and 25 level.
Polarized Fractal Efficiency:
The Polarized Fractal Efficiency (PFE) indicator is a value between -100 and 100 with 0 as a midpoint.
A PFE above 0 indicates the asset may trend higher, a PFE below 0 indicates the asset may trend lower.
There are many ways to trade with PFE, the intuitive trend riding as described above, or reversals.
Even when the PFE is above 0, if it gets high enough, it may also be an indication of a reversal. A PFE of 90 - 100, or -100 - -90, may indicate price is ready to revert the other direction. Furthermore, traders already in a position may look to breaks of other levels to be their take profit or stop out spot.
Calculation:
Pi = 100 x (Price - Price )2 + N2 / Summation, j= 0, to N-2 (Price - Price )2 + 1
If Close < Close Pi = -Pi
PFEi = EMA(Pi, M)
Where:
N = period of indicator
M = smoothing period
Citation: www.investopedia.com
Scenarios:
Inputs are (9, 5) and every display option is on.
Trend example
Step 1: A short trade appears as PFE crosses below -25. We reach a safe take profit as PFE crosses below -50. Traders can use these levels to exit as well as enter.
Step 2: On the cross above 25 there is a safe long. As the PFE value breaks 0 a safe, early take profit could be appropriate for this trade. No guarantee we would see 50.
Step 3: Long scenario at break of 25, straight to 50. Simple, straightforward setup.
Step 4: This long results in a stop loss. Once again entry as PFE crosses 25, but as we cross the 0 line it is for a loss.
Step 5: The last trade in this example is reminiscent of step 3. This is a short trade entry at break of 25 and exit at break of 50.
Traders have liberty to use the PFE value to determine spots to enter and exit trades, long or short. 25 and 50 were chosen arbitrarily, values like 10 and 60 may work as well, we encourage traders to use their own discretion along with tools.
Reversal example
Step 1: PFE is around -100, crossing below it at one point! Strong zone for a potential reversal.
Step 2: PFE crosses above 25 adding conviction.
Step 3: Option to exit at 70.
Step 4: Option to exit at 90.
There is no “one size fits all method”, this approach may be more intuitive for some users and is just as feasible as the first.
Longer trend example
Step 1: Using -50 and 50 this time instead of -25 and 25 to be safer on our entries we see a short here. Was a good entry and as the value gets closer to -70 we can safely close.
Step 2: On this candle we see a long for the break of 50. On the next candle we break the 0 line, but because of our safe entry at 50, we could hold this and only stop out at a break of -25. We get close but stay in it and close at 70.
Step 3: Break of 50 for a long once again. This time the break of 0 line occurs as we are in profit, not letting a green trade go red is a golden rule of trading, so an early exit here.
Step 4: Same at step 2, break of 50 to long and stay in it, not stopping out at break of 0 line. The PFE value eventually reaches 70 and there is a good exit.
Quicker Reversal example
Step 1: Notice a close with PFE below -90, enter long for the reversal. Then close for profit when the PFE crosses above 70.
Step 2: When the PFE breaks above 90 we have a short entry. Like the long closing it when it crosses below -70.
Step 3: This step is the same setup as step 2. As PFE breaks above 90 we have a short entry. Closing it when it crosses below -70.
Recap:
Described above are 4 different examples with many different trades. Both trend and reversal trades. The PFE value is an indicator that can be used by traders in many different ways and Prometheus encourages traders to use their own discretion along with tools and not follow indicators blindly.
Options:
Users can control the input for the lookback of the indicator. The default is 9.
The smoothing factor for the EMA is also changeable, default is 5.
Users have options to display lines at -50, -25, 25, and 50.
Trend Gazer v5# Trend Gazer v5: Professional Multi-Timeframe ICT Analysis System
## 📊 Overview
**Trend Gazer v5** is a comprehensive institutional-grade trading system that synthesizes multiple proven methodologies into a unified analytical framework. This indicator combines **ICT (Inner Circle Trader) concepts**, **Smart Money Structure**, **Order Block detection**, **Fair Value Gaps**, and **volumetric analysis** to provide traders with high-probability trade setups backed by institutional footprints.
Unlike fragmented indicators that force traders to switch between multiple tools, Trend Gazer v5 delivers a **holistic market view** in a single overlay, eliminating analysis paralysis and enabling confident decision-making.
---
## 🎯 Why This Combination is Necessary
### The Problem with Single-Concept Indicators
Traditional indicators suffer from three critical flaws:
1. **Isolated Context** - Price action, volume, and structure are analyzed separately, creating conflicting signals
2. **Timeframe Blindness** - Single-timeframe analysis misses institutional activity occurring across multiple timeframes
3. **Lagging Confirmation** - Waiting for one indicator to confirm another causes missed entries and late exits
### The Institutional Trading Reality
Professional traders and institutions operate across **multiple dimensions simultaneously**:
- **Structural Context**: Where are we in the market cycle? (CHoCH, SiMS, BoMS)
- **Order Flow**: Where is institutional supply and demand concentrated? (Order Blocks)
- **Inefficiencies**: Where are price imbalances that must be filled? (Fair Value Gaps)
- **Momentum Context**: Is volume expanding or contracting? (VWC/TBOSI)
- **Mean Reversion Points**: Where do institutions expect rebounds? (NPR/BB, EMAs)
**Trend Gazer v5 unifies these dimensions**, creating a complete picture of market microstructure that individual indicators cannot provide.
---
## 🔬 Core Analytical Framework
### 1️⃣ ICT Donchian Smart Money Structure
**Purpose**: Identify institutional market structure shifts that precede major moves.
**Components**:
- **CHoCH (Change of Character)** - Market structure break signaling trend exhaustion
- `1.CHoCH` (Bullish) - Lower low broken, shift to bullish structure
- `A.CHoCH` (Bearish) - Higher high broken, shift to bearish structure
- **SiMS (Shift in Market Structure)** - Initial structure shift (2nd occurrence)
- **BoMS (Break of Market Structure)** - Continuation structure (3rd+ occurrence)
**Why It's Essential**:
Retail traders react to price changes. Institutions **create** price changes by breaking structure. By detecting these shifts using **Donchian channels** (the purest form of high/low tracking), we identify the exact moments when institutional bias changes.
**Credit**: Based on *ICT Donchian Smart Money Structure* by Zeiierman (CC BY-NC-SA 4.0)
---
### 2️⃣ Multi-Timeframe Order Block Detection
**Purpose**: Map institutional supply/demand zones where price is likely to reverse.
**Methodology**:
Order Blocks represent the **last opposite-direction candle** before a strong move. These zones indicate where institutions accumulated (bullish OB) or distributed (bearish OB) positions.
**Multi-Timeframe Coverage**:
- **1-minute**: Scalping zones for day traders
- **3-minute**: Short-term swing zones
- **15-minute**: Intraday institutional zones
- **60-minute**: Daily swing zones
- **Current TF**: Dynamic adaptation to any chart timeframe
**Key Features**:
- **Bounce Detection** - Identifies when price rebounds from OB zones (Signal 7: 🎯 OB Bounce)
- **Breaker Tracking** - Monitors when OBs are violated, converting bullish OBs to resistance and vice versa
- **Visual Rendering** - Color-coded boxes with transparency showing OB strength
- **OB Direction Filter** - Blocks contradictory signals (no SELL in bullish OB, no BUY in bearish OB)
**Why MTF Order Blocks Matter**:
A 60-minute Order Block represents institutional positioning at a larger timeframe. When combined with a 3-minute entry signal, you're trading **with** the big players, not against them.
---
### 3️⃣ Fair Value Gap (FVG) Detection
**Purpose**: Identify price inefficiencies that institutional traders must eventually fill.
**What Are FVGs?**:
Fair Value Gaps occur when price moves so rapidly that it leaves an **imbalance** - a gap between the high of one candle and the low of the candle two bars later (or vice versa). Institutions view these as inefficient pricing that must be corrected.
**Detection Logic**:
```
Bullish FVG: high < low → Gap up = Bearish imbalance (expect downward fill)
Bearish FVG: low > high → Gap down = Bullish imbalance (expect upward fill)
```
**Visual Design**:
- **Bullish FVG**: Green boxes (support zones where price should bounce)
- **Bearish FVG**: Red boxes (resistance zones where price should reject)
- **Mitigation Tracking**: FVGs disappear when filled, signaling completion
- **Volume Attribution**: Each FVG tracks associated buying/selling volume
**Why FVGs Are Critical**:
Institutions operate on **efficiency**. Gaps represent inefficiency. When price returns to fill a gap, it's not random - it's institutional traders **correcting market inefficiency**. Trading into FVG fills offers exceptional risk/reward.
---
### 4️⃣ Volumetric Weighted Cloud (VWC/TBOSI)
**Purpose**: Detect momentum shifts and trend strength using volume-weighted price action.
**Mechanism**:
VWC applies **volatility weighting** to moving averages, creating a dynamic cloud that expands during high-volatility trends and contracts during consolidation.
**Multi-Timeframe Analysis**:
- **1m, 3m, 5m**: Micro-scalping momentum
- **15m**: Intraday trend confirmation
- **60m, 240m**: Swing trade trend validation
**Signal Generation**:
- **VWC Switch (Signal 2)**: When cloud color flips (red → green or green → red), indicating momentum reversal
- **VWC Status Table**: Real-time display of trend direction across all timeframes
**Why Volume-Weighting Matters**:
Traditional moving averages treat all bars equally. VWC gives **more weight to high-volume bars**, ensuring that signals reflect actual institutional participation, not low-volume noise.
---
### 5️⃣ Non-Repaint STDEV (NPR) & Bollinger Bands
**Purpose**: Identify extreme mean-reversion points without repainting.
**Problem with Traditional Indicators**:
Many indicators **repaint** - they change past values when new data arrives, making backtests misleading. NPR uses **lookahead bias prevention** to ensure signals remain fixed.
**Configuration**:
- **15-minute NPR/BB**: Intraday volatility bands
- **60-minute NPR/BB**: Swing trade extremes
- **Multiple Kernel Options**: Exponential, Simple, Double Exponential, Triple Exponential for different smoothing profiles
**Signal Logic (Signal 8)**:
- **BUY**: Price closes **inside** lower band (not just touching it) → Extreme oversold with institutional absorption likely
- **SELL**: Price closes **inside** upper band → Extreme overbought with institutional distribution likely
**Why NPR is Superior**:
Repainting indicators give traders false confidence in backtests. NPR ensures every signal you see in history is **exactly** what a trader would have seen in real-time.
---
### 6️⃣ 💎 STRONG CHoCH Pattern Detection
**Purpose**: Identify the highest-probability setups when multiple CHoCH confirmations align within a tight timeframe.
**Pattern Logic**:
**STRONG BUY Pattern**:
```
1.CHoCH → A.CHoCH → 1.CHoCH (within 20 bars)
```
This sequence indicates:
1. Initial bullish structure shift
2. Bearish retest (pullback)
3. **Renewed bullish confirmation** - Institutions are re-accumulating after shaking out weak hands
**STRONG SELL Pattern**:
```
A.CHoCH → 1.CHoCH → A.CHoCH (within 20 bars)
```
This sequence indicates:
1. Initial bearish structure shift
2. Bullish retest (dead cat bounce)
3. **Renewed bearish confirmation** - Institutions are re-distributing after trapping longs
**Visual Display**:
```
💎 BUY
```
- **0% transparency** (fully opaque) - Maximum visual priority
- Displayed **immediately** when pattern completes (no additional signal required)
- Independent of Market Structure filter (pattern itself is the confirmation)
**Why STRONG Signals Are Different**:
- **Triple Confirmation**: Three structure shifts eliminate false breakouts
- **Tight Timeframe**: 20-bar window ensures institutional conviction, not random noise
- **Automatic Display**: No waiting for price action - the pattern itself triggers the alert
- **Historical Validation**: This specific sequence has proven to precede major institutional moves
**Risk Management**:
STRONG signals offer the best risk/reward because:
1. Stop loss can be placed beyond the middle CHoCH (tight risk)
2. Target can be set at next major structure level (large reward)
3. Pattern failure is immediately evident (quick exit if wrong)
---
### 7️⃣ Multi-EMA Framework
**Purpose**: Provide dynamic support/resistance and trend context.
**EMA Configuration**:
- **EMA 7**: Micro-trend (scalping)
- **EMA 20**: Short-term trend
- **EMA 50**: Institutional pivot (Signal 6: EMA50 Bounce)
- **EMA 100**: Mid-term trend filter
- **EMA 200**: Major institutional support/resistance
- **EMA 400, 800**: Macro trend context
**Visual Fills**:
- Color-coded fills between EMAs create **visual trend strength zones**
- Convergence = consolidation
- Divergence = trending market
**Why 7 EMAs?**:
Each EMA represents a different **participant timeframe**:
- EMA 7/20: Day traders and scalpers
- EMA 50/100: Swing traders
- EMA 200/400/800: Position traders and institutions
When all EMAs align, **all participant types agree on direction** - the highest-probability trend trades.
---
## 🚀 8-Signal Trading System
Trend Gazer v5 employs **8 distinct signal conditions** (all enabled by default), each designed to capture different market regimes:
### ⭐ Signal Hierarchy & Trading Philosophy
**IMPORTANT**: Not all signals are created equal. The indicator displays a hierarchy of signal quality:
**PRIMARY SIGNALS (Trade These)**:
- 💎 **STRONG BUY/SELL** - Triple-confirmed CHoCH patterns (highest priority)
- 🌟 **Star Signals (S7, S8)** - High-probability institutional zone reactions
- Signal 7: Order Block Bounce
- Signal 8: 60m NPR/BB Bounce
**AUXILIARY SIGNALS (Confirmation & Context)**:
- **Signals 1-6** - Use these as:
- **Confirmation** for Star Signals (when multiple signals align)
- **Context** for understanding market conditions
- **Early warnings** of potential moves (validate before trading)
- **Additional filters** (e.g., "only trade Star Signals that also have Signal 1")
**Trading Recommendation**:
- **Conservative Traders**: Trade ONLY 💎 STRONG and 🌟 Star Signals
- **Moderate Traders**: Trade Star Signals + validated auxiliary signals (2+ signal confirmation)
- **Active Traders**: Use all signals with proper risk management
The visual transparency system reinforces this hierarchy:
- 0% transparent = STRONG (💎) - Highest conviction
- 50% transparent = Star (🌟) + OB signals - High quality
- 70% transparent = Auxiliary (S1-S6) - Supplementary information
### Signal 1: RSI Shift + Structure (AND Logic)
**Strictest Signal** - Requires both RSI momentum confirmation AND structure change.
- **Use Case**: High-conviction trades in trending markets
- **Frequency**: Least frequent, highest accuracy
### Signal 2: VWC Switch (OR Logic)
**Most Frequent Signal** - Triggers on any VWC color flip across monitored timeframes.
- **Use Case**: Capturing early momentum shifts
- **Frequency**: Most frequent, good for active traders
### Signal 3: Structure Change
**Bar Color Change with RSI Confirmation** - Detects when candle color shifts with supporting RSI.
- **Use Case**: Trend continuation trades
- **Frequency**: Moderate
### Signal 4: BB Breakout + RSI
**Bollinger Band Breakout Reversal** - Price breaks band then immediately reverses.
- **Use Case**: Fade false breakouts
- **Frequency**: Moderate, excellent risk/reward
### Signal 5: BB/EMA50 Break
**Aggressive Breakout Signal** - Price breaks both BB and EMA50 simultaneously.
- **Use Case**: Momentum breakout trades
- **Frequency**: Moderate-high
### Signal 6: EMA50 Bounce Reversal
**Mean Reversion at EMA50** - Price touches EMA50 and bounces.
- **Use Case**: Trading pullbacks in strong trends
- **Frequency**: Moderate, reliable
### Signal 7: 🌟 OB Bounce (Star Signal)
**Order Block Bounce** - Price enters OB zone and reverses.
- **Use Case**: Institutional zone reactions
- **Frequency**: Low, but extremely high quality
- **Special Features**:
- 🎯 **OB Bounce Label**: `🌟 🎯 BUY/SELL ` - Actual Signal 7 bounce from visible OB
- 📍 **In OB Label**: `📍 BUY/SELL ` - Other signals (S1-6, S8) occurring inside an OB zone
- **OB Direction Filter**: Blocks contradictory signals (no SELL in bullish OB, no BUY in bearish OB)
### Signal 8: 🌟 60m NPR/BB Bounce (Star Signal)
**Extreme Mean-Reversion** - Price closes **inside** 60m NPR/BB bands at extremes.
- **Use Case**: Capturing institutional absorption at extremes
- **Frequency**: Low, exceptional win rate
- **Special Logic**: Candle close must be **INSIDE** bands, not just touching (prevents false breakouts)
### 💎 STRONG Signals (Bonus)
**CHoCH Pattern Completion** - Triple-confirmed structure shifts.
- **STRONG BUY**: `1.CHoCH → A.CHoCH → 1.CHoCH (≤20 bars)`
- **STRONG SELL**: `A.CHoCH → 1.CHoCH → A.CHoCH (≤20 bars)`
- **Display**: Immediate upon pattern completion (independent signal)
- **Use Case**: Highest-conviction institutional trend shifts
---
## 🎨 Visual Design Philosophy
### Signal Hierarchy via Transparency
**0% Transparency (Opaque)**:
- 💎 **STRONG BUY/SELL** - Highest priority, institutional pattern confirmation
**50% Transparency**:
- 🌟 **Star Signals** (S7, S8) - High-quality mean reversion
- 🎯 **OB Bounce** - Institutional zone reaction
- 📍 **In OB** - Enhanced signal in institutional zone
- **CHoCH Labels** (1.CHoCH, A.CHoCH) - Structure shift markers
**70% Transparency**:
- **Regular Signals** (S1-S6) - Standard trade setups
This visual hierarchy ensures traders **instantly recognize** high-priority setups without analysis paralysis.
### Color Scheme: Japanese Candlestick Convention
**Bullish = Red | Bearish = Blue/Green**
This follows traditional Japanese candlestick methodology where:
- **Red (Yang)**: Positive energy, rising prices, bullish
- **Blue/Green (Yin)**: Negative energy, falling prices, bearish
While Western conventions often reverse this, we maintain **ICT and institutional conventions** for consistency with professional trading rooms.
---
## 📡 Alert System
### Any Alert (Automatic)
**8 Events Monitored**:
1. 💎 **STRONG BUY** - Pattern: `1.CHoCH → A.CHoCH → 1.CHoCH`
2. 💎 **STRONG SELL** - Pattern: `A.CHoCH → 1.CHoCH → A.CHoCH`
3. ⭐ **Star BUY** - Signal 7 or 8
4. ⭐ **Star SELL** - Signal 7 or 8
5. 📍 **BUY (in OB)** - Any signal inside Bullish Order Block
6. 📍 **SELL (in OB)** - Any signal inside Bearish Order Block
7. **Bullish CHoCH** - Market structure shift to bullish
8. **Bearish CHoCH** - Market structure shift to bearish
**Format**: `TICKER TIMEFRAME EventName`
**Example**: `BTCUSDT 5 💎 STRONG BUY`
### Individual alertcondition() Options
Create custom alerts for specific events:
- BUY/SELL Signals (all or filtered)
- Star Signals Only (S7/S8)
- STRONG Signals Only (💎)
- CHoCH Events Only
- Bullish/Bearish CHoCH separately
---
## ⚙️ Configuration & Settings
### ICT Structure Filter (DEFAULT ON ⭐)
**Enable Structure Filter**: Display signals ONLY after CHoCH/SiMS/BoMS
- **Purpose**: Filter out noise by requiring institutional confirmation
- **Recommendation**: Keep enabled for disciplined trading
**Show Structure Labels (DEFAULT ON ⭐)**: Display CHoCH/SiMS/BoMS labels
- **Purpose**: Visual confirmation of market structure state
- **Labels**:
- `1.CHoCH` (Red background, white text) - Bullish structure shift
- `A.CHoCH` (Blue background, white text) - Bearish structure shift
- `2.SMS` / `B.SMS` (Red/Blue text) - Shift in Market Structure (2nd occurrence)
- `3.BMS` / `C.BMS` (Red/Blue text) - Break of Market Structure (3rd+ occurrence)
**Structure Period**: Default 3 bars (ICT standard)
### Order Block Configuration
**Enable Multi-Timeframe OBs**: Detect OBs from multiple timeframes simultaneously
**Mitigation Options**:
- Close - OB invalidated when candle closes through it
- Wick - OB invalidated when wick touches it
- 50% - OB invalidated when 50% of zone is violated
**Show OBs from**:
- Current Timeframe (always)
- 1m, 3m, 15m, 60m (selectable)
### Fair Value Gap Settings
**Show FVGs**: Enable/disable FVG rendering
**Mitigation Source**: Wick, Close, or 50% fill
**Color Customization**: Bullish FVG (green), Bearish FVG (red)
### Signal Filters
**Show ONLY Star Signals (DEFAULT OFF)**:
- When ON: Display only S7 (OB Bounce) and S8 (NPR/BB Bounce)
- When OFF: Display all signals S1-S8 (DEFAULT)
- **Use Case**: Focus on highest-quality setups, ignore noise
### Visual Settings
**EMA Display**: Toggle individual EMAs on/off
**VWC Cloud**: Enable/disable volumetric cloud
**NPR/BB Bands**: Show/hide 15m and 60m bands
**Status Table**: Real-time VWC status across all timeframes
---
## 📚 How to Use
### For Scalpers (1m-5m Charts)
1. Enable **1m and 3m Order Blocks**
2. Watch for **Signal 2 (VWC Switch)** or **Signal 5 (BB/EMA50 Break)**
3. Confirm with **1m/3m MTF OB** as support/resistance
4. Use **FVGs** for micro-target setting
5. Set alerts for **Star BUY/SELL** for highest-quality scalps
### For Day Traders (15m-60m Charts)
1. Enable **15m and 60m Order Blocks**
2. Wait for **CHoCH** to establish bias
3. Trade **Signal 7 (OB Bounce)** or **Signal 8 (60m NPR/BB Bounce)**
4. Use **EMA 50/100** as dynamic stop placement
5. Set alerts for **💎 STRONG BUY/SELL** for major moves
### For Swing Traders (4H-Daily Charts)
1. Enable **60m Order Blocks** (will render as larger zones on HTF)
2. Wait for **Market Structure confirmation** (CHoCH)
3. Focus on **Signal 1 (RSI Shift + Structure)** for highest conviction
4. Use **EMA 200/400/800** for macro trend alignment
5. Set alerts for **Bullish/Bearish CHoCH** to catch structure shifts early
### Universal Strategy (Recommended Approach)
1. **Focus on Primary Signals First** - Build your track record with 💎 STRONG and 🌟 Star Signals only
2. **Wait for Market Structure** - Never trade against CHoCH direction
3. **Use Auxiliary Signals for Confirmation** - When a Star Signal appears, check if auxiliary signals (S1-6) also confirm
4. **Respect Order Blocks** - Fade signals that contradict OB direction
5. **Use FVGs for Targets** - Price gravitates toward unfilled gaps
6. **Gradually Incorporate Auxiliary Signals** - Once profitable with primary signals, experiment with validated auxiliary setups
### Signal Quality Statistics (Typical Observation)
Based on common market behavior patterns:
**💎 STRONG Signals**:
- Frequency: Rare (1-3 per week on daily charts)
- Win Rate: Very High (70-85% when proper risk management applied)
- Risk/Reward: Excellent (1:3 to 1:5+ typical)
**🌟 Star Signals (S7, S8)**:
- Frequency: Moderate (2-5 per day on lower timeframes)
- Win Rate: High (60-75% when aligned with structure)
- Risk/Reward: Good (1:2 to 1:4 typical)
**Auxiliary Signals (S1-6)**:
- Frequency: High (multiple per hour on active timeframes)
- Win Rate: Moderate (50-65% standalone, higher when used as confirmation)
- Risk/Reward: Variable (1:1 to 1:3 typical)
**Key Insight**: Trading only primary signals reduces trade frequency but dramatically improves consistency and psychological ease.
---
## 🏆 What Makes This Indicator Unique
### 1. **True Multi-Timeframe Integration**
Most "MTF" indicators simply display data from other timeframes. Trend Gazer v5 **synthesizes** MTF data into unified signals, eliminating conflicting information.
### 2. **Non-Repainting Architecture**
All signals are fixed at bar close. What you see in backtests is exactly what you'd see in real-time.
### 3. **Institutional Focus**
Every component is designed around institutional behavior:
- Where they accumulate (Order Blocks)
- When they shift (CHoCH)
- What they must fix (FVGs)
- How they create momentum (VWC)
### 4. **Complete Transparency**
- **Open Source** - Full code visibility
- **Credited Sources** - All borrowed concepts attributed
- **No Black Boxes** - Every calculation is documented
### 5. **Flexible Yet Focused**
- **8 Signal Types** - Adapts to any market regime
- **Default Settings Optimized** - Works immediately without tweaking
- **Optional Filters** - "Show ONLY Star Signals" for disciplined traders
### 6. **Professional Alert System**
- **8-event Any Alert** - Never miss institutional moves
- **Individual alertconditions** - Customize to your strategy
- **Formatted Messages** - Ticker + Timeframe + Event for instant context
---
## 📖 Educational Value
### Learning ICT Concepts
This indicator serves as a **visual teaching tool** for:
- **Market Structure**: See CHoCH/SiMS/BoMS in real-time
- **Order Blocks**: Understand where institutions positioned
- **Fair Value Gaps**: Learn how inefficiencies are filled
- **Smart Money Behavior**: Watch institutional footprints unfold
### Backtesting & Strategy Development
Use Trend Gazer v5 to:
1. **Validate ICT Concepts** - Do OB bounces really work? Test it.
2. **Optimize Entry Timing** - Which signals work best in your market?
3. **Develop Filters** - Combine signals for your edge
4. **Build Strategies** - Export signals to Pine Script strategies
---
## ⚠️ Disclaimer
This indicator is for **educational and informational purposes only**. It should not be considered as financial advice or a recommendation to buy or sell any financial instrument.
**Trading involves substantial risk of loss**. Past performance is not indicative of future results. No indicator, regardless of sophistication, can guarantee profitable trades.
**Always:**
- Conduct your own research
- Use proper risk management (1-2% risk per trade)
- Consult with qualified financial advisors
- Practice on paper/demo accounts before live trading
- Understand that you are solely responsible for your trading decisions
---
## 🔗 Credits & Licenses
### Original Code Sources
1. **ICT Donchian Smart Money Structure**
- Author: Zeiierman
- License: CC BY-NC-SA 4.0
- Modifications: Integrated with multi-signal system, added CHoCH pattern detection
2. **Reverse RSI Signals**
- Author: AlgoAlpha
- License: MPL 2.0
- Modifications: Adapted for internal signal logic
3. **Volumetric Weighted Cloud (VWC/TBOSI)**
- Original concept adapted for multi-timeframe analysis
- Enhanced with MTF table display
4. **Order Block & FVG Detection**
- Based on ICT concepts
- Custom implementation with MTF support
### This Indicator's License
**Mozilla Public License 2.0 (MPL 2.0)**
You are free to:
- ✅ Use commercially
- ✅ Modify and distribute
- ✅ Use privately
- ✅ Patent use
Under conditions:
- 📄 Disclose source
- 📄 License and copyright notice
- 📄 Same license for modifications
---
## 📞 Support & Community
### Reporting Issues
If you encounter bugs or have feature suggestions, please provide:
1. Chart timeframe and symbol
2. Settings configuration
3. Screenshot of the issue
4. Expected vs actual behavior
### Best Practices
- Start with default settings
- Gradually enable/disable features to understand each component
- Use demo account for at least 30 days before live trading
- Combine with proper risk management
---
## 🚀 Version History
### v5.0 - Simplified ICT Mode (Current)
- ✅ Removed all unused filters and features
- ✅ Enabled all 8 signals by default
- ✅ Added 💎 STRONG CHoCH pattern detection
- ✅ Enhanced OB Bounce labeling system
- ✅ Added FVG detection and visualization
- ✅ Improved alert system (8 events)
- ✅ Optimized performance (faster rendering)
- ✅ Added comprehensive DESCRIPTION documentation
### v4.2 - ICT Mode with EMA Convergence Filter (Deprecated)
- Legacy version with EMA convergence features (removed for simplicity)
### v4.0 - Pure ICT Mode (Deprecated)
- Initial ICT-focused release
---
## 🎓 Recommended Learning Resources
To fully leverage this indicator, study:
1. **ICT Concepts** (Inner Circle Trader - YouTube)
- Market Structure
- Order Blocks
- Fair Value Gaps
- Liquidity Concepts
2. **Smart Money Concepts (SMC)**
- Change of Character (CHoCH)
- Break of Structure (BOS)
- Liquidity Sweeps
3. **Volume Spread Analysis (VSA)**
- Effort vs Result
- Supply vs Demand
- Volume Climax
4. **Risk Management**
- Position Sizing
- R-Multiple Theory
- Win Rate vs Risk/Reward Balance
---
## ✅ Quick Start Checklist
- Add indicator to chart
- Verify **Enable Structure Filter** is ON
- Verify **Show Structure Labels** is ON
- Enable desired MTF Order Blocks (1m, 3m, 15m, 60m)
- Enable FVG display
- Set up **Any Alert** for all 8 events
- Paper trade for 30 days minimum
- Document your trades (screenshots + notes)
- Review performance weekly
- Adjust filters based on your strategy
---
## 💡 Final Thoughts
**Trend Gazer v5 is not a "magic button" indicator.** It's a professional analytical framework that requires education, practice, and discipline.
The best traders don't use indicators to **tell them what to do**. They use indicators to **confirm what they already see** in price action.
Use this tool to:
- ✅ Confirm your analysis
- ✅ Filter out low-probability setups
- ✅ Identify institutional footprints
- ✅ Time entries with precision
Avoid using it to:
- ❌ Trade blindly without understanding context
- ❌ Ignore risk management
- ❌ Revenge trade after losses
- ❌ Replace education with automation
**Trade smart. Trade safe. Trade with structure.**
---
**© rasukaru666 | 2025 | Mozilla Public License 2.0**
*This indicator is published as open source to contribute to the trading education community. If it helps you, please share your experience and help others learn.*
------------------------------------------------------
# Trend Gazer v5: プロフェッショナル・マルチタイムフレームICT分析システム
## 📊 概要
**Trend Gazer v5** は、複数の実証済み手法を統合した分析フレームワークを提供する、包括的な機関投資家グレードの取引システムです。このインジケーターは、**ICT(Inner Circle Trader)コンセプト**、**スマートマネー構造**、**オーダーブロック検知**、**フェアバリューギャップ**、および**出来高分析**を組み合わせて、機関投資家の足跡に裏打ちされた高確率の取引セットアップをトレーダーに提供します。
断片的なインジケーターは、トレーダーに複数のツールを切り替えることを強いますが、Trend Gazer v5は**包括的な市場ビュー**を単一のオーバーレイで提供し、分析麻痺を排除して自信ある意思決定を可能にします。
---
## 🎯 なぜこの組み合わせが必要なのか
### 単一コンセプトインジケーターの問題点
従来のインジケーターは3つの致命的な欠陥を抱えています:
1. **孤立したコンテキスト** - 価格、出来高、構造が個別に分析され、矛盾するシグナルを生成
2. **タイムフレームの盲目性** - 単一タイムフレーム分析は、複数のタイムフレームで発生する機関投資家の活動を見逃す
3. **遅れた確認** - あるインジケーターが別のインジケーターの確認を待つことで、エントリーを逃し、エグジットが遅れる
### 機関投資家の取引実態
プロのトレーダーや機関投資家は、**複数の次元を同時に**操作します:
- **構造的コンテキスト**: 市場サイクルのどこにいるのか?(CHoCH、SiMS、BoMS)
- **オーダーフロー**: 機関投資家の需要と供給が集中しているのはどこか?(オーダーブロック)
- **非効率性**: 埋めなければならない価格の不均衡はどこか?(フェアバリューギャップ)
- **モメンタムコンテキスト**: 出来高は拡大しているか縮小しているか?(VWC/TBOSI)
- **平均回帰ポイント**: 機関投資家がリバウンドを期待する場所はどこか?(NPR/BB、EMA)
**Trend Gazer v5はこれらの次元を統合**し、個別のインジケーターでは提供できない市場マイクロ構造の完全な全体像を作成します。
---
## 🔬 コア分析フレームワーク
### 1️⃣ ICT ドンチャン・スマートマネー構造
**目的**: 大きな動きに先行する機関投資家の市場構造シフトを識別する。
**コンポーネント**:
- **CHoCH (Change of Character / 性質の変化)** - トレンド疲弊を示す市場構造のブレイク
- `1.CHoCH`(強気) - 直近安値のブレイク、強気構造へのシフト
- `A.CHoCH`(弱気) - 直近高値のブレイク、弱気構造へのシフト
- **SiMS (Shift in Market Structure / 市場構造のシフト)** - 初期構造シフト(2回目の発生)
- **BoMS (Break of Market Structure / 市場構造のブレイク)** - 継続構造(3回目以降の発生)
**なぜ不可欠なのか**:
小売トレーダーは価格変化に反応します。機関投資家は構造を破ることで価格変化を**作り出します**。**ドンチャンチャネル**(高値/安値追跡の最も純粋な形式)を使用してこれらのシフトを検出することで、機関投資家のバイアスが変化する正確な瞬間を特定します。
**クレジット**: Zeiierman氏の*ICT Donchian Smart Money Structure*に基づく(CC BY-NC-SA 4.0)
---
### 2️⃣ マルチタイムフレーム・オーダーブロック検知
**目的**: 価格が反転する可能性が高い機関投資家の需給ゾーンをマッピングする。
**方法論**:
オーダーブロックは、強い動きの前の**最後の反対方向ローソク足**を表します。これらのゾーンは、機関投資家がポジションを蓄積(強気OB)または分配(弱気OB)した場所を示します。
**マルチタイムフレームカバレッジ**:
- **1分足**: デイトレーダー向けスキャルピングゾーン
- **3分足**: 短期スイングゾーン
- **15分足**: イントラデイ機関投資家ゾーン
- **60分足**: デイリースイングゾーン
- **現在のTF**: 任意のチャートタイムフレームへの動的適応
**主要機能**:
- **バウンス検知** - OBゾーンから価格がリバウンドする時を識別(シグナル7: 🎯 OBバウンス)
- **ブレーカー追跡** - OBが破られた時を監視し、強気OBを抵抗に、弱気OBをサポートに変換
- **ビジュアルレンダリング** - OBの強度を示す透明度付きの色分けされたボックス
- **OB方向フィルター** - 矛盾するシグナルをブロック(強気OBでSELLなし、弱気OBでBUYなし)
**なぜMTFオーダーブロックが重要か**:
60分足のオーダーブロックは、より大きなタイムフレームでの機関投資家のポジショニングを表します。3分足のエントリーシグナルと組み合わせることで、大口プレイヤーと**同じ方向**で取引することになります。
---
### 3️⃣ フェアバリューギャップ(FVG)検知
**目的**: 機関投資家が最終的に埋めなければならない価格の非効率性を識別する。
**FVGとは何か?**:
フェアバリューギャップは、価格があまりにも急速に動いて**不均衡**を残す時に発生します - 1本のローソク足の高値と2本後のローソク足の安値の間のギャップ(またはその逆)。機関投資家はこれらを修正されなければならない非効率的な価格設定と見なします。
**検知ロジック**:
```
強気FVG: high < low → ギャップアップ = 弱気の不均衡(下方フィル予想)
弱気FVG: low > high → ギャップダウン = 強気の不均衡(上方フィル予想)
```
**ビジュアルデザイン**:
- **強気FVG**: 緑のボックス(価格がバウンドすべきサポートゾーン)
- **弱気FVG**: 赤のボックス(価格が拒否されるべき抵抗ゾーン)
- **ミティゲーション追跡**: FVGは埋められると消え、完了を示す
- **出来高帰属**: 各FVGは関連する買い/売り出来高を追跡
**なぜFVGが重要か**:
機関投資家は**効率性**で動きます。ギャップは非効率性を表します。価格がギャップを埋めるために戻る時、それはランダムではありません - 機関投資家が**市場の非効率性を修正**しているのです。FVGフィルへの取引は卓越したリスク/リワードを提供します。
---
### 4️⃣ 出来高加重クラウド(VWC/TBOSI)
**目的**: 出来高加重プライスアクションを使用してモメンタムシフトとトレンド強度を検出する。
**メカニズム**:
VWCは移動平均に**ボラティリティ加重**を適用し、高ボラティリティトレンド中に拡大し、コンソリデーション中に縮小する動的クラウドを作成します。
**マルチタイムフレーム分析**:
- **1m、3m、5m**: マイクロスキャルピングモメンタム
- **15m**: イントラデイトレンド確認
- **60m、240m**: スイングトレードトレンド検証
**シグナル生成**:
- **VWCスイッチ(シグナル2)**: クラウドの色が反転した時(赤→緑または緑→赤)、モメンタム反転を示す
- **VWCステータステーブル**: 全タイムフレームのトレンド方向のリアルタイム表示
**なぜ出来高加重が重要か**:
従来の移動平均はすべてのバーを等しく扱います。VWCは**高出来高バーに重みを与え**、シグナルが低出来高のノイズではなく、実際の機関投資家の参加を反映することを保証します。
---
### 5️⃣ ノンリペイントSTDEV(NPR)&ボリンジャーバンド
**目的**: リペイントなしで極端な平均回帰ポイントを識別する。
**従来のインジケーターの問題点**:
多くのインジケーターは**リペイント**します - 新しいデータが到着すると過去の値を変更し、バックテストを誤解させます。NPRは**先読みバイアス防止**を使用して、シグナルが固定されたままであることを保証します。
**設定**:
- **15分足NPR/BB**: イントラデイボラティリティバンド
- **60分足NPR/BB**: スイングトレード極値
- **複数のカーネルオプション**: 指数、単純、二重指数、三重指数 - 異なる平滑化プロファイル
**シグナルロジック(シグナル8)**:
- **BUY**: 価格が下部バンドの**内側**でクローズ(触れるだけではない)→ 極端な売られ過ぎで機関投資家の吸収が可能性高い
- **SELL**: 価格が上部バンドの**内側**でクローズ → 極端な買われ過ぎで機関投資家の分配が可能性高い
**なぜNPRが優れているか**:
リペイントインジケーターはトレーダーにバックテストで誤った自信を与えます。NPRは、履歴で見るすべてのシグナルが、トレーダーがリアルタイムで見たであろうもの**そのもの**であることを保証します。
---
### 6️⃣ 💎 STRONG CHoChパターン検知
**目的**: 短い時間枠内で複数のCHoCH確認が整列した時の最高確率セットアップを識別する。
**パターンロジック**:
**STRONG BUYパターン**:
```
1.CHoCH → A.CHoCH → 1.CHoCH(20バー以内)
```
このシーケンスは以下を示します:
1. 初期強気構造シフト
2. 弱気リテスト(プルバック)
3. **更新された強気確認** - 機関投資家は弱い手を振り落とした後に再蓄積中
**STRONG SELLパターン**:
```
A.CHoCH → 1.CHoCH → A.CHoCH(20バー以内)
```
このシーケンスは以下を示します:
1. 初期弱気構造シフト
2. 強気リテスト(デッドキャットバウンス)
3. **更新された弱気確認** - 機関投資家はロングを罠にかけた後に再分配中
**ビジュアル表示**:
```
💎 BUY
```
- **0%透明度**(完全不透明) - 最大の視覚的優先度
- パターン完成時に**即座に**表示(追加シグナル不要)
- 市場構造フィルターから独立(パターン自体が確認)
**なぜSTRONGシグナルが異なるか**:
- **三重確認**: 3つの構造シフトが誤ったブレイクアウトを排除
- **短い時間枠**: 20バーウィンドウがランダムなノイズではなく、機関投資家の確信を保証
- **自動表示**: 価格アクションを待たない - パターン自体がアラートをトリガー
- **歴史的検証**: この特定のシーケンスは主要な機関投資家の動きに先行することが証明されている
**リスク管理**:
STRONGシグナルは最高のリスク/リワードを提供します:
1. ストップロスは中央のCHoCHの外に配置可能(タイトなリスク)
2. ターゲットは次の主要構造レベルに設定可能(大きなリワード)
3. パターン失敗は即座に明らか(間違っていればクイックエグジット)
---
### 7️⃣ マルチEMAフレームワーク
**目的**: ダイナミックなサポート/レジスタンスとトレンドコンテキストを提供する。
**EMA設定**:
- **EMA 7**: マイクロトレンド(スキャルピング)
- **EMA 20**: 短期トレンド
- **EMA 50**: 機関投資家のピボット(シグナル6: EMA50バウンス)
- **EMA 100**: 中期トレンドフィルター
- **EMA 200**: 主要な機関投資家のサポート/レジスタンス
- **EMA 400、800**: マクロトレンドコンテキスト
**ビジュアルフィル**:
- EMA間の色分けされたフィルが**ビジュアルトレンド強度ゾーン**を作成
- 収束 = コンソリデーション
- 発散 = トレンド市場
**なぜ7つのEMAか?**:
各EMAは異なる**参加者タイムフレーム**を表します:
- EMA 7/20: デイトレーダーとスキャルパー
- EMA 50/100: スイングトレーダー
- EMA 200/400/800: ポジショントレーダーと機関投資家
すべてのEMAが整列した時、**すべての参加者タイプが方向に同意**している - 最高確率のトレンド取引です。
---
## 🚀 8シグナル取引システム
Trend Gazer v5は**8つの異なるシグナル条件**(すべてデフォルトで有効)を採用しており、それぞれが異なる市場レジームを捕捉するように設計されています:
### ⭐ シグナル階層&取引哲学
**重要**: すべてのシグナルが同じではありません。インジケーターはシグナル品質の階層を表示します:
**プライマリーシグナル(これを取引する)**:
- 💎 **STRONG BUY/SELL** - 三重CHoChパターン(最優先)
- 🌟 **スターシグナル(S7、S8)** - 高確率の機関投資家ゾーン反応
- シグナル7: オーダーブロックバウンス
- シグナル8: 60m NPR/BBバウンス
**補助シグナル(確認とコンテキスト)**:
- **シグナル1-6** - これらを以下として使用:
- スターシグナルの**確認**(複数のシグナルが整列した時)
- 市場状況を理解するための**コンテキスト**
- 潜在的な動きの**早期警告**(取引前に検証)
- **追加フィルター**(例:「シグナル1も出ているスターシグナルのみ取引」)
**取引推奨**:
- **保守的トレーダー**: 💎 STRONGと🌟スターシグナル**のみ**取引
- **中程度トレーダー**: スターシグナル + 検証された補助シグナル(2+シグナル確認)
- **アクティブトレーダー**: 適切なリスク管理ですべてのシグナルを使用
視覚的透明度システムはこの階層を強化します:
- 0%透明度 = STRONG(💎) - 最高の確信
- 50%透明度 = スター(🌟)+ OBシグナル - 高品質
- 70%透明度 = 補助(S1-S6) - 補足情報
### シグナル1: RSIシフト + 構造(ANDロジック)
**最も厳格なシグナル** - RSIモメンタム確認と構造変化の両方が必要。
- **使用例**: トレンド市場での高確信取引
- **頻度**: 最も少ない、最高の精度
- **分類**:
### シグナル2: VWCスイッチ(ORロジック)
**最も頻繁なシグナル** - 監視されているタイムフレームでのVWC色反転でトリガー。
- **使用例**: 早期モメンタムシフトの捕捉
- **頻度**: 最も頻繁、アクティブトレーダーに適している
- **分類**:
### シグナル3: 構造変化
**バーカラー変化とRSI確認** - RSIサポートでローソク足の色がシフトする時を検出。
- **使用例**: トレンド継続取引
- **頻度**: 中程度
- **分類**:
### シグナル4: BBブレイクアウト + RSI
**ボリンジャーバンドブレイクアウト反転** - 価格がバンドを破った後すぐに反転。
- **使用例**: 誤ったブレイクアウトをフェード
- **頻度**: 中程度、優れたリスク/リワード
- **分類**:
### シグナル5: BB/EMA50ブレイク
**積極的ブレイクアウトシグナル** - 価格がBBとEMA50を同時にブレイク。
- **使用例**: モメンタムブレイクアウト取引
- **頻度**: 中〜高
- **分類**:
### シグナル6: EMA50バウンス反転
**EMA50での平均回帰** - 価格がEMA50に触れてバウンス。
- **使用例**: 強いトレンドでのプルバック取引
- **頻度**: 中程度、信頼性あり
- **分類**:
### シグナル7: 🌟 OBバウンス(スターシグナル)
**オーダーブロックバウンス** - 価格がOBゾーンに入って反転。
- **使用例**: 機関投資家ゾーン反応
- **頻度**: 低いが、極めて高品質
- **分類**:
- **特別機能**:
- 🎯 **OBバウンスラベル**: `🌟 🎯 BUY/SELL ` - 可視OBからの実際のシグナル7バウンス
- 📍 **In OBラベル**: `📍 BUY/SELL ` - OBゾーン内で発生する他のシグナル(S1-6、S8)
- **OB方向フィルター**: 矛盾するシグナルをブロック(強気OBでSELLなし、弱気OBでBUYなし)
### シグナル8: 🌟 60m NPR/BBバウンス(スターシグナル)
**極端な平均回帰** - 価格が60m NPR/BBバンドの極値で**内側に**クローズ。
- **使用例**: 極値での機関投資家の吸収を捕捉
- **頻度**: 低い、卓越した勝率
- **分類**:
- **特別ロジック**: ローソク足のクローズがバンドの**内側**でなければならない(触れるだけではダメ、誤ったブレイクアウトを防止)
### 💎 STRONGシグナル(ボーナス)
**CHoChパターン完成** - 三重確認された構造シフト。
- **STRONG BUY**: `1.CHoCH → A.CHoCH → 1.CHoCH(≤20バー)`
- **STRONG SELL**: `A.CHoCH → 1.CHoCH → A.CHoCH(≤20バー)`
- **表示**: パターン完成時に即座(独立したシグナル)
- **分類**:
- **使用例**: 最高確信の機関投資家トレンドシフト
---
## 🎨 ビジュアルデザイン哲学
### 透明度によるシグナル階層
**0%透明度(不透明)**:
- 💎 **STRONG BUY/SELL** - 最優先、機関投資家パターン確認
**50%透明度**:
- 🌟 **スターシグナル**(S7、S8) - 高品質平均回帰
- 🎯 **OBバウンス** - 機関投資家ゾーン反応
- 📍 **In OB** - 機関投資家ゾーン内の強化されたシグナル
- **CHoChラベル**(1.CHoCH、A.CHoCH) - 構造シフトマーカー
**70%透明度**:
- **通常シグナル**(S1-S6) - 標準取引セットアップ
この視覚的階層により、トレーダーは分析麻痺なしに高優先度セットアップを**即座に認識**できます。
### カラースキーム: 日本式ローソク足慣例
**強気 = 赤 | 弱気 = 青/緑**
これは伝統的な日本式ローソク足方法論に従います:
- **赤(陽)**: ポジティブエネルギー、上昇価格、強気
- **青/緑(陰)**: ネガティブエネルギー、下降価格、弱気
西洋の慣例はしばしばこれを逆にしますが、プロの取引ルームとの一貫性のために**ICTと機関投資家の慣例**を維持します。
---
## 📡 アラートシステム
### Any Alert(自動)
**8つのイベントを監視**:
1. 💎 **STRONG BUY** - パターン: `1.CHoCH → A.CHoCH → 1.CHoCH`
2. 💎 **STRONG SELL** - パターン: `A.CHoCH → 1.CHoCH → A.CHoCH`
3. ⭐ **Star BUY** - シグナル7または8
4. ⭐ **Star SELL** - シグナル7または8
5. 📍 **BUY (in OB)** - 強気オーダーブロック内の任意のシグナル
6. 📍 **SELL (in OB)** - 弱気オーダーブロック内の任意のシグナル
7. **Bullish CHoCH** - 強気への市場構造シフト
8. **Bearish CHoCH** - 弱気への市場構造シフト
**フォーマット**: `TICKER TIMEFRAME EventName`
**例**: `BTCUSDT 5 💎 STRONG BUY`
### 個別alertcondition()オプション
特定のイベントのカスタムアラートを作成:
- BUY/SELLシグナル(すべてまたはフィルタリング)
- スターシグナルのみ(S7/S8)
- STRONGシグナルのみ(💎)
- CHoChイベントのみ
- 強気/弱気CHoCH個別
---
## ⚙️ 設定と設定
### ICT構造フィルター(デフォルトON ⭐)
**構造フィルターを有効化**: CHoCH/SiMS/BoMS後のシグナル**のみ**表示
- **目的**: 機関投資家の確認を要求することでノイズをフィルター
- **推奨**: 規律ある取引のために有効のままにする
**構造ラベルを表示(デフォルトON ⭐)**: CHoCH/SiMS/BoMSラベルを表示
- **目的**: 市場構造状態の視覚的確認
- **ラベル**:
- `1.CHoCH`(赤背景、白テキスト) - 強気構造シフト
- `A.CHoCH`(青背景、白テキスト) - 弱気構造シフト
- `2.SMS` / `B.SMS`(赤/青テキスト) - 市場構造のシフト(2回目)
- `3.BMS` / `C.BMS`(赤/青テキスト) - 市場構造のブレイク(3回目以降)
**構造期間**: デフォルト3バー(ICT標準)
### オーダーブロック設定
**マルチタイムフレームOBを有効化**: 複数のタイムフレームから同時にOBを検出
**ミティゲーションオプション**:
- Close - ローソク足がクローズで通過した時にOB無効化
- Wick - ウィックが触れた時にOB無効化
- 50% - ゾーンの50%が侵害された時にOB無効化
**OBを表示**:
- 現在のタイムフレーム(常に)
- 1m、3m、15m、60m(選択可能)
### フェアバリューギャップ設定
**FVGを表示**: FVGレンダリングを有効/無効
**ミティゲーションソース**: Wick、Close、または50%フィル
**カラーカスタマイゼーション**: 強気FVG(緑)、弱気FVG(赤)
### シグナルフィルター
**スターシグナルのみ表示(デフォルトOFF)**:
- ONの時: S7(OBバウンス)とS8(NPR/BBバウンス)のみ表示
- OFFの時: すべてのシグナルS1-S8を表示(デフォルト)
- **使用例**: 最高品質のセットアップに集中し、ノイズを無視
### ビジュアル設定
**EMA表示**: 個別のEMAをオン/オフ切り替え
**VWCクラウド**: 出来高クラウドを有効/無効
**NPR/BBバンド**: 15mと60mバンドを表示/非表示
**ステータステーブル**: すべてのタイムフレームでのリアルタイムVWCステータス
---
## 📚 使用方法
### スキャルパー向け(1m-5m チャート)
1. **1mと3mオーダーブロック**を有効化
2. **シグナル2(VWCスイッチ)**または**シグナル5(BB/EMA50ブレイク)**を監視
3. サポート/レジスタンスとして**1m/3m MTF OB**で確認
4. マイクロターゲット設定に**FVG**を使用
5. 最高品質のスキャルプのために**Star BUY/SELL**のアラートを設定
### デイトレーダー向け(15m-60m チャート)
1. **15mと60mオーダーブロック**を有効化
2. バイアスを確立するために**CHoCH**を待つ
3. **シグナル7(OBバウンス)**または**シグナル8(60m NPR/BBバウンス)**を取引
4. ダイナミックストップ配置に**EMA 50/100**を使用
5. 主要な動きのために**💎 STRONG BUY/SELL**のアラートを設定
### スイングトレーダー向け(4H-日足 チャート)
1. **60mオーダーブロック**を有効化(HTFでより大きなゾーンとしてレンダリング)
2. **市場構造確認**(CHoCH)を待つ
3. 最高確信のために**シグナル1(RSIシフト + 構造)**に集中
4. マクロトレンド整列のために**EMA 200/400/800**を使用
5. 構造シフトを早期に捕捉するために**Bullish/Bearish CHoCH**のアラートを設定
### ユニバーサル戦略(推奨アプローチ)
1. **まずプライマリーシグナルに集中** - 💎 STRONGと🌟スターシグナル**のみ**でトラックレコードを構築
2. **市場構造を待つ** - CHoCH方向に逆らって取引しない
3. **補助シグナルを確認に使用** - スターシグナルが現れたら、補助シグナル(S1-6)も確認するかチェック
4. **オーダーブロックを尊重** - OB方向と矛盾するシグナルをフェード
5. **ターゲットにFVGを使用** - 価格は埋められていないギャップに引き寄せられる
6. **徐々に補助シグナルを組み込む** - プライマリーシグナルで利益が出たら、検証された補助セットアップを実験
### シグナル品質統計(典型的な観察)
一般的な市場行動パターンに基づく:
**💎 STRONGシグナル**:
- 頻度: まれ(日足チャートで週1-3回)
- 勝率: 非常に高い(適切なリスク管理適用時70-85%)
- リスク/リワード: 優秀(典型的に1:3から1:5+)
**🌟 スターシグナル(S7、S8)**:
- 頻度: 中程度(短期足で1日2-5回)
- 勝率: 高い(構造と整列時60-75%)
- リスク/リワード: 良好(典型的に1:2から1:4)
**補助シグナル(S1-6)**:
- 頻度: 高い(活発なタイムフレームで1時間に複数回)
- 勝率: 中程度(単独で50-65%、確認として使用時はより高い)
- リスク/リワード: 変動(典型的に1:1から1:3)
**重要な洞察**: プライマリーシグナルのみの取引は取引頻度を減らしますが、一貫性と心理的容易さを劇的に改善します。
---
## 🏆 このインジケーターのユニークな点
### 1. **真のマルチタイムフレーム統合**
ほとんどの「MTF」インジケーターは単に他のタイムフレームからデータを表示するだけです。Trend Gazer v5はMTFデータを統一されたシグナルに**合成**し、矛盾する情報を排除します。
### 2. **ノンリペイント・アーキテクチャ**
すべてのシグナルはバークローズで固定されます。バックテストで見るものは、リアルタイムで見るであろうもの**そのもの**です。
### 3. **機関投資家フォーカス**
すべてのコンポーネントは機関投資家の行動を中心に設計されています:
- どこで蓄積するか(オーダーブロック)
- いつシフトするか(CHoCH)
- 何を修正しなければならないか(FVG)
- どのようにモメンタムを作り出すか(VWC)
### 4. **完全な透明性**
- **オープンソース** - 完全なコード可視性
- **クレジットされたソース** - すべての借用コンセプトが帰属
- **ブラックボックスなし** - すべての計算が文書化
### 5. **柔軟だが焦点を絞った**
- **8シグナルタイプ** - 任意の市場レジームに適応
- **最適化されたデフォルト設定** - 調整なしですぐに動作
- **オプションフィルター** - 規律あるトレーダーのための「スターシグナルのみ表示」
### 6. **プロフェッショナルアラートシステム**
- **8イベントAny Alert** - 機関投資家の動きを見逃さない
- **個別alertconditions** - あなたの戦略にカスタマイズ
- **フォーマットされたメッセージ** - 即座のコンテキストのためのTicker + Timeframe + Event
---
## 📖 教育的価値
### ICT概念の学習
このインジケーターは以下のための**視覚的教育ツール**として機能します:
- **市場構造**: CHoCH/SiMS/BoMSをリアルタイムで見る
- **オーダーブロック**: 機関投資家がどこでポジショニングしたかを理解
- **フェアバリューギャップ**: 非効率性がどのように埋められるかを学ぶ
- **スマートマネー行動**: 機関投資家の足跡が展開するのを観察
### バックテスティングと戦略開発
Trend Gazer v5を使用して:
1. **ICT概念を検証** - OBバウンスは本当に機能するか?テストする。
2. **エントリータイミングを最適化** - あなたの市場でどのシグナルが最も機能するか?
3. **フィルターを開発** - あなたのエッジのためにシグナルを組み合わせる
4. **戦略を構築** - シグナルをPine Scriptストラテジーにエクスポート
---
## ⚠️ 免責事項
このインジケーターは**教育および情報提供のみを目的**としています。金融アドバイスではありません。
**リスク警告**:
- 取引には重大な損失リスクが伴い、すべての投資家に適しているわけではありません
- 過去のパフォーマンスは将来の結果を**示すものではありません**
- どのインジケーターも利益ある取引を保証することはできません
- あなたは自分の取引決定に対して単独で責任を負います
**取引前に**:
- 自分自身の調査とデューデリジェンスを実施
- 資格のある金融アドバイザーに相談
- 適切なリスク管理を使用(取引あたり1-2%以上リスクを取らない)
- ライブ取引前にペーパー/デモアカウントで練習
- 損失は取引の一部であることを理解
このインジケーターによって提供される情報は、投資アドバイス、金融アドバイス、取引アドバイス、またはその他の種類のアドバイスを構成するものではありません。インジケーターの出力をそのように扱うべきではありません。作成者は、あなたが任意の暗号通貨、証券、または商品を買い、売り、または保有すべきであると推奨するものではありません。常に自分自身の調査を行い、専門的なアドバイスを求めてください。
このソフトウェアは、明示的または黙示的を問わず、いかなる種類の保証もなく「現状のまま」提供されます。
---
## 🔗 クレジットとライセンス
### 原作コードソース
1. **ICT Donchian Smart Money Structure**
- 作者: Zeiierman
- ライセンス: CC BY-NC-SA 4.0
- 変更: マルチシグナルシステムと統合、CHoChパターン検知を追加
2. **Reverse RSI Signals**
- 作者: AlgoAlpha
- ライセンス: MPL 2.0
- 変更: 内部シグナルロジックに適応
3. **Volumetric Weighted Cloud(VWC/TBOSI)**
- 元のコンセプトをマルチタイムフレーム分析に適応
- MTFテーブル表示で強化
4. **Order Block & FVG Detection**
- ICTコンセプトに基づく
- MTFサポートでカスタム実装
### このインジケーターのライセンス
**Mozilla Public License 2.0(MPL 2.0)**
以下が自由です:
- ✅ 商用利用
- ✅ 変更と配布
- ✅ 私的使用
- ✅ 特許使用
条件:
- 📄 ソースを開示
- 📄 ライセンスと著作権表示
- 📄 変更に同じライセンス
---
## 📞 サポートとコミュニティ
### 問題の報告
バグに遭遇したり機能提案がある場合は、以下を提供してください:
1. チャートタイムフレームとシンボル
2. 設定構成
3. 問題のスクリーンショット
4. 期待される動作と実際の動作
### ベストプラクティス
- デフォルト設定で開始
- 各コンポーネントを理解するために段階的に機能を有効/無効化
- ライブ取引前に少なくとも30日間デモアカウントを使用
- 適切なリスク管理と組み合わせる
---
## 🚀 バージョン履歴
### v5.0 - Simplified ICT Mode(現在)
- ✅ すべての未使用フィルターと機能を削除
- ✅ すべての8シグナルをデフォルトで有効化
- ✅ 💎 STRONG CHoChパターン検知を追加
- ✅ OBバウンスラベリングシステムを強化
- ✅ FVG検知と可視化を追加
- ✅ アラートシステムを改善(8イベント)
- ✅ パフォーマンスを最適化(より速いレンダリング)
- ✅ 包括的なDESCRIPTIONドキュメントを追加
### v4.2 - ICT Mode with EMA Convergence Filter(非推奨)
- EMA収束機能を持つレガシーバージョン(シンプルさのために削除)
### v4.0 - Pure ICT Mode(非推奨)
- 初期ICTフォーカスリリース
---
## 🎓 推奨学習リソース
このインジケーターを完全に活用するために、以下を学習してください:
1. **ICTコンセプト**(Inner Circle Trader - YouTube)
- 市場構造
- オーダーブロック
- フェアバリューギャップ
- 流動性コンセプト
2. **スマートマネーコンセプト(SMC)**
- Change of Character(CHoCH)
- Break of Structure(BOS)
- Liquidity Sweeps
3. **Volume Spread Analysis(VSA)**
- Effort vs Result
- Supply vs Demand
- Volume Climax
4. **リスク管理**
- ポジションサイジング
- R-Multiple理論
- 勝率vsリスク/リワードバランス
---
## ✅ クイックスタートチェックリスト
- チャートにインジケーターを追加
- **構造フィルターを有効化**がONであることを確認
- **構造ラベルを表示**がONであることを確認
- 希望するMTFオーダーブロックを有効化(1m、3m、15m、60m)
- FVG表示を有効化
- すべての8イベントのために**Any Alert**を設定
- 最低30日間ペーパートレード
- 取引を文書化(スクリーンショット + ノート)
- 週次でパフォーマンスをレビュー
- あなたの戦略に基づいてフィルターを調整
---
## 💡 最後の考え
**Trend Gazer v5は「魔法のボタン」インジケーターではありません。**教育、練習、規律を必要とするプロフェッショナル分析フレームワークです。
最高のトレーダーは、インジケーターを使って**何をすべきかを教えてもらいません**。インジケーターを使って、プライスアクションで**既に見ているものを確認**します。
このツールを使用して:
- ✅ 分析を確認
- ✅ 低確率セットアップをフィルターアウト
- ✅ 機関投資家の足跡を識別
- ✅ エントリーを精密にタイミング
使用を避けるべき:
- ❌ コンテキストを理解せずに盲目的に取引
- ❌ リスク管理を無視
- ❌ 損失後にリベンジトレード
- ❌ 教育を自動化に置き換える
**スマートに取引しましょう。安全に取引しましょう。構造を持って取引しましょう。**
---
**© rasukaru666 | 2025 | Mozilla Public License 2.0**
*このインジケーターは、取引教育コミュニティに貢献するためにオープンソースとして公開されています。役立つ場合は、あなたの経験を共有して他の人が学ぶのを助けてください。*
NormalizedIndicatorsNormalizedIndicators - Comprehensive Trend Normalization Library
Overview
This Pine Script™ library provides an extensive collection of normalized trend-following indicators and calculation functions for technical analysis. The main advantage of this library lies in its unified signal output: All trend indicators are normalized to a standardized format where 1 represents a bullish signal, -1 represents a bearish signal, and 0 (where applicable) represents a neutral signal.
This normalization enables traders to seamlessly combine different indicators, create consensus signals, and develop complex multi-indicator strategies without worrying about different scales and interpretations.
📊 Categories
The library is divided into two main categories:
1. Trend-Following Indicators
2. Calculation Indicators
🔄 Trend-Following Indicators
Stationary Indicators
These oscillate around a fixed value and are not bound to price.
BBPct() - Bollinger Bands Percent
Source: Algoalpha X Sushiboi77
Parameters:
Length: Period for Bollinger Bands
Factor: Standard deviation multiplier
Source: Price source (typical: close)
Logic: Calculates the position of price within the Bollinger Bands as a percentage
Signal:
1 (bullish): when positionBetweenBands > 50
-1 (bearish): when positionBetweenBands ≤ 50
Special Feature: Uses an array to store historical standard deviations for additional analysis
RSI() - Relative Strength Index
Source: TradingView
Parameters:
len: RSI period
src: Price source
smaLen: Smoothing period for RSI
Logic: Classic RSI with additional SMA smoothing
Signal:
1 (bullish): RSI-SMA > 50
-1 (bearish): RSI-SMA < 50
0 (neutral): RSI-SMA = 50
Non-Stationary Indicators
These follow price movement and have no fixed boundaries.
NorosTrendRibbonSMA() & NorosTrendRibbonEMA()
Source: ROBO_Trading
Parameters:
Length: Moving average and channel period
Source: Price source
Logic: Creates a price channel based on the highest/lowest MA value over a specified period
Signal:
1 (bullish): Price breaks above upper band
-1 (bearish): Price breaks below lower band
0 (neutral): Price within channel (maintains last state)
Difference: SMA version uses simple moving averages, EMA version uses exponential
TrendBands()
Source: starlord_xrp
Parameters: src (price source)
Logic: Uses 12 EMAs (9-30 period) and checks if all are rising or falling simultaneously
Signal:
1 (bullish): All 12 EMAs are rising
-1 (bearish): All 12 EMAs are falling
0 (neutral): Mixed signals
Special Feature: Very strict conditions - extremely strong trend filter
Vidya() - Variable Index Dynamic Average
Source: loxx
Parameters:
source: Price source
length: Main period
histLength: Historical period for volatility calculation
Logic: Adaptive moving average that adjusts to volatility
Signal:
1 (bullish): VIDYA is rising
-1 (bearish): VIDYA is falling
VZO() - Volume Zone Oscillator
Parameters:
source: Price source
length: Smoothing period
volumesource: Volume data source
Logic: Combines price and volume direction, calculates the ratio of directional volume to total volume
Signal:
1 (bullish): VZO > 14.9
-1 (bearish): VZO < -14.9
0 (neutral): VZO between -14.9 and 14.9
TrendContinuation()
Source: AlgoAlpha
Parameters:
malen: First HMA period
malen1: Second HMA period
theclose: Price source
Logic: Uses two Hull Moving Averages for trend assessment with neutrality detection
Signal:
1 (bullish): Uptrend without divergence
-1 (bearish): Downtrend without divergence
0 (neutral): Trend and longer MA diverge
LeonidasTrendFollowingSystem()
Source: LeonidasCrypto
Parameters:
src: Price source
shortlen: Short EMA period
keylen: Long EMA period
Logic: Simple dual EMA crossover system
Signal:
1 (bullish): Short EMA < Key EMA
-1 (bearish): Short EMA ≥ Key EMA
ysanturtrendfollower()
Source: ysantur
Parameters:
src: Price source
depth: Depth of Fibonacci weighting
smooth: Smoothing period
bias: Percentage bias adjustment
Logic: Complex system with Fibonacci-weighted moving averages and bias bands
Signal:
1 (bullish): Weighted MA > smoothed MA (with upward bias)
-1 (bearish): Weighted MA < smoothed MA (with downward bias)
0 (neutral): Within bias zone
TRAMA() - Trend Regularity Adaptive Moving Average
Source: LuxAlgo
Parameters:
src: Price source
length: Adaptation period
Logic: Adapts to trend regularity - accelerates in stable trends, slows in consolidations
Signal:
1 (bullish): Price > TRAMA
-1 (bearish): Price < TRAMA
0 (neutral): Price = TRAMA
HullSuite()
Source: InSilico
Parameters:
_length: Base period
src: Price source
_lengthMult: Length multiplier
Logic: Uses Hull Moving Average with lagged comparisons for trend determination
Signal:
1 (bullish): Current Hull > Hull 2 bars ago
-1 (bearish): Current Hull < Hull 2 bars ago
0 (neutral): No change
STC() - Schaff Trend Cycle
Source: shayankm (described as "Better MACD")
Parameters:
length: Cycle period
fastLength: Fast MACD period
slowLength: Slow MACD period
src: Price source
Logic: Combines MACD concepts with stochastic normalization for early trend signals
Signal:
1 (bullish): STC is rising
-1 (bearish): STC is falling
🧮 Calculation Indicators
These functions provide specialized mathematical calculations for advanced analysis.
LCorrelation() - Long-term Correlation
Creator: unicorpusstocks
Parameters:
Input: First time series
Compare: Second time series
Logic: Calculates the average of correlations across 6 different periods (30, 60, 90, 120, 150, 180)
Returns: Correlation value between -1 and 1
Application: Long-term relationship analysis between assets, markets, or indicators
MCorrelation() - Medium-term Correlation
Creator: unicorpusstocks
Parameters:
Input: First time series
Compare: Second time series
Logic: Calculates the average of correlations across 6 different periods (15, 30, 45, 60, 75, 90)
Returns: Correlation value between -1 and 1
Application: Medium-term relationship analysis with higher sensitivity
assetBeta() - Beta Coefficient
Creator: unicorpusstocks
Parameters:
measuredSymbol: The asset to be measured
baseSymbol: The reference asset (e.g., market index)
Logic:
Calculates Beta across 4 different time horizons (50, 100, 150, 200 periods)
Beta = Correlation × (Asset Standard Deviation / Market Standard Deviation)
Returns the average of all 4 Beta values
Returns: Beta value (typically 0-2, can be higher/lower)
Interpretation:
Beta = 1: Asset moves in sync with the market
Beta > 1: Asset more volatile than market
Beta < 1: Asset less volatile than market
Beta < 0: Asset moves inversely to the market
💡 Usage Examples
Example 1: Multi-Indicator Consensus
pinescriptimport unicorpusstocks/MyIndicatorLibrary/1 as lib
// Combine multiple indicators
signal1 = lib.BBPct(20, 2.0, close)
signal2 = lib.RSI(14, close, 5)
signal3 = lib.TRAMA(close, 50)
// Consensus signal: At least 2 of 3 must agree
consensus = (signal1 + signal2 + signal3)
strongBuy = consensus >= 2
strongSell = consensus <= -2
Example 2: Correlation-Filtered Trading
pinescriptimport unicorpusstocks/MyIndicatorLibrary/1 as lib
// Only trade when strong correlation with market exists
spy = request.security("SPY", timeframe.period, close)
correlation = lib.MCorrelation(close, spy)
trendSignal = lib.NorosTrendRibbonEMA(50, close)
// Only bullish signals with positive correlation
tradeBuy = trendSignal == 1 and correlation > 0.5
tradeSell = trendSignal == -1 and correlation > 0.5
Example 3: Beta-Adjusted Position Sizing
pinescriptimport unicorpusstocks/MyIndicatorLibrary/1 as lib
spy = request.security("SPY", timeframe.period, close)
beta = lib.assetBeta(close, spy)
// Adjust position size based on Beta
basePositionSize = 100
adjustedSize = basePositionSize / beta // Less size with high Beta
⚙️ Technical Details
Normalization Standard
Bullish: 1
Bearish: -1
Neutral: 0 (only for selected indicators)
Advantages of Normalization
Simple Aggregation: Signals can be added/averaged
Consistent Interpretation: No confusion about different scales
Strategy Development: Simplified logic for backtesting
Combinability: Seamlessly mix different indicator types
Performance Considerations
All functions are optimized for Pine Script v5
Proper use of var for state management
Efficient array operations where needed
Minimal recursive calls
📋 License
This code is subject to the Mozilla Public License 2.0. More details at: mozilla.org
🎯 Use Cases
This library is ideal for:
Quantitative Traders: Systematic strategy development with unified signals
Multi-Timeframe Analysis: Consensus across different timeframes
Portfolio Managers: Beta and correlation analysis for diversification
Algo Traders: Machine learning with standardized features
Retail Traders: Simplified signal interpretation without deep technical knowledge
🔧 Installation
pinescriptimport unicorpusstocks/MyIndicatorLibrary/1
Then use the functions with your chosen alias:
pinescriptlib.BBPct(20, 2.0, close)
lib.RSI(14, close, 5)
// etc.
⚠️ Important Notes
All indicators are lagging, as is typical for trend-following indicators
Signals should be combined with additional analysis (volume, support/resistance, etc.)
Backtesting is recommended before starting live trading with these signals
Different assets and timeframes may require different parameter optimizations
This library provides a solid foundation for professional trading system design with the flexibility to develop your own complex strategies while abstracting away technical complexity.
MULTI-CONDITION RSI SIGNAL GENERATOR═══════════════════════════════════════════════
MULTI-CONDITION RSI SIGNAL GENERATOR
═══════════════════════════════════════════════
OVERVIEW:
This indicator generates trading signals based on Relative Strength Index (RSI) movements with multiple confirmation layers designed to filter false signals and identify high-probability reversal opportunities.
═══════════════════════════════════════════════
WHAT MAKES THIS ORIGINAL:
═══════════════════════════════════════════════
Unlike basic RSI indicators that simply plot overbought/oversold crossovers, this system combines FOUR distinct confirmation mechanisms:
1. PERSISTENCE FILTERING - Requires RSI to remain in extreme zones for a minimum duration
2. LOOKBACK VALIDATION - Verifies recent extreme zone visits before signaling
3. DIVERGENCE DETECTION - Identifies price/RSI divergence for stronger signals
4. MOMENTUM CONFIRMATION - Provides trend-continuation entries via midline crosses
This multi-layered approach significantly reduces whipsaw trades that plague simple RSI crossover systems.
═══════════════════════════════════════════════
HOW IT WORKS (TECHNICAL METHODOLOGY):
═══════════════════════════════════════════════
STEP 1: RSI CALCULATION
- Standard RSI calculation using user-defined period (default: 14)
- Monitors two extreme zones: Overbought (default: 70) and Oversold (default: 30)
STEP 2: PERSISTENCE FILTERING
The script counts how many bars RSI has spent in extreme zones within the lookback period:
- For overbought signals: Counts bars where RSI > 70
- For oversold signals: Counts bars where RSI < 30
- Signal only triggers if count >= Minimum Duration (default: 4 bars)
This filters out brief spikes that immediately reverse, focusing on sustained extreme conditions that are more likely to lead to genuine reversals.
STEP 3: LOOKBACK VALIDATION
- Checks if RSI reached extreme zones within the Lookback Bars period (default: 20)
- Uses ta.highest() and ta.lowest() functions to verify recent extremes
- Ensures we're trading reversals from meaningful extremes, not random crossovers
STEP 4: BASIC SIGNAL GENERATION
- BUY SIGNAL: RSI crosses above the oversold level (30) after meeting persistence and lookback conditions
- SELL SIGNAL: RSI crosses below the overbought level (70) after meeting persistence and lookback conditions
STEP 5: DIVERGENCE DETECTION
The script identifies two types of divergence over the Divergence Lookback period (default: 5 bars):
A) BULLISH DIVERGENCE (indicates potential upward reversal):
- Price makes a lower low (current low < previous low)
- RSI makes a higher low (current RSI low > previous RSI low)
- Suggests weakening downward momentum
B) BEARISH DIVERGENCE (indicates potential downward reversal):
- Price makes a higher high (current high > previous high)
- RSI makes a lower high (current RSI high < previous RSI high)
- Suggests weakening upward momentum
STEP 6: STRONG SIGNAL CONFIRMATION
- STRONG BUY: Basic buy signal + bullish divergence present
- STRONG SELL: Basic sell signal + bearish divergence present
- These represent the highest-probability setups
STEP 7: MOMENTUM SIGNALS (OPTIONAL)
- MOMENTUM BUY: RSI crosses above 50 after being oversold (trend continuation)
- MOMENTUM SELL: RSI crosses below 50 after being overbought (trend continuation)
- Smaller signals for traders who want trend-following entries
═══════════════════════════════════════════════
SIGNAL TYPES AND VISUAL INDICATORS:
═══════════════════════════════════════════════
📈 GREEN TRIANGLE (below bar) - Standard Buy Signal
RSI crossed above oversold level with confirmation filters
📉 RED TRIANGLE (above bar) - Standard Sell Signal
RSI crossed below overbought level with confirmation filters
🔵 BLUE TRIANGLE (below bar) - Strong Buy Signal
Buy signal + bullish divergence (HIGHEST PRIORITY)
🟣 PURPLE TRIANGLE (above bar) - Strong Sell Signal
Sell signal + bearish divergence (HIGHEST PRIORITY)
🟢 GREEN CIRCLE (small) - Momentum Buy
RSI crosses above 50 after oversold conditions
🔴 RED CIRCLE (small) - Momentum Sell
RSI crosses below 50 after overbought conditions
BACKGROUND SHADING:
- Light red background: RSI currently overbought
- Light green background: RSI currently oversold
═══════════════════════════════════════════════
PARAMETER SETTINGS:
═══════════════════════════════════════════════
1. OVERBOUGHT LEVEL (default: 70, range: 50-90)
- Higher values = fewer but stronger overbought signals
- Lower values = more sensitive to overbought conditions
- Recommended: 70 for standard markets, 80 for crypto/volatile assets
2. OVERSOLD LEVEL (default: 30, range: 10-50)
- Lower values = fewer but stronger oversold signals
- Higher values = more sensitive to oversold conditions
- Recommended: 30 for standard markets, 20 for crypto/volatile assets
3. RSI PERIOD (default: 14, range: 2-50)
- Standard RSI calculation period
- Lower = more sensitive/faster signals
- Higher = smoother/slower signals
- Recommended: 14 (industry standard)
4. MINIMUM DURATION (default: 4, range: 1-20)
- Required bars in extreme zone before signal
- Higher values = fewer signals but better quality
- Lower values = more signals but more false positives
- Recommended: 3-5 for day trading, 5-10 for swing trading
5. LOOKBACK BARS (default: 20, range: 5-100)
- How far back to check for extreme zone visits
- Should match your typical trading timeframe
- Recommended: 20 for intraday, 50 for daily charts
6. DIVERGENCE LOOKBACK (default: 5, range: 2-20)
- Period for comparing price/RSI highs and lows
- Lower values = more frequent divergence signals
- Higher values = more significant divergences
- Recommended: 5-10 depending on timeframe
═══════════════════════════════════════════════
HOW TO USE THIS INDICATOR:
═══════════════════════════════════════════════
RECOMMENDED TRADING APPROACH:
1. PRIMARY ENTRIES: Focus on Strong Buy/Sell signals (blue/purple triangles)
- These have the highest win rate due to divergence confirmation
- Wait for price action confirmation (support/resistance, candlestick patterns)
2. SECONDARY ENTRIES: Regular Buy/Sell signals (green/red triangles)
- Use these when Strong signals are infrequent
- Require additional confirmation from other indicators or chart patterns
3. TREND CONTINUATION: Momentum signals (small circles)
- Best used when overall trend is clear
- Not recommended for reversal trading
4. FILTER TRADES: Use background shading as context
- Be cautious entering longs when background is red (overbought)
- Be cautious entering shorts when background is green (oversold)
RISK MANAGEMENT GUIDELINES:
- Never risk more than 2-5% of capital per trade
- Use stop losses below recent swing lows (buys) or above swing highs (sells)
- Target at least 1.5:1 reward-to-risk ratio
- Consider position sizing based on signal strength
TIMEFRAME RECOMMENDATIONS:
- 15min - 1hour: Day trading with adjusted parameters (lower minimum duration)
- 4hour - Daily: Swing trading with default parameters
- Weekly: Position trading with increased lookback periods
COMPLEMENTARY TOOLS:
This indicator works best when combined with:
- Support and resistance levels
- Trend indicators (moving averages, trend lines)
- Volume analysis
- Price action patterns (engulfing candles, pin bars)
═══════════════════════════════════════════════
LIMITATIONS AND CONSIDERATIONS:
═══════════════════════════════════════════════
- This is NOT a standalone trading system - requires additional analysis
- RSI-based strategies perform best in ranging/choppy markets
- May generate fewer signals in strong trending markets
- Divergence signals can be early - wait for price confirmation
- Not recommended for highly illiquid assets
- Backtest on your specific market before live trading
- No indicator is 100% accurate - always use proper risk management
═══════════════════════════════════════════════
TECHNICAL NOTES:
═══════════════════════════════════════════════
- Code is original and does not reuse external libraries
- Uses Pine Script v5 native functions only
- Alert conditions included for all signal types
- No repainting - signals appear and remain fixed
- Efficient calculation methods minimize processing load
═══════════════════════════════════════════════
ALERT SETUP:
═══════════════════════════════════════════════
Four alert conditions are available:
1. "Buy Alert" - Triggers on standard buy signals
2. "Sell Alert" - Triggers on standard sell signals
3. "Strong Buy Alert" - Triggers on divergence-confirmed buy signals
4. "Strong Sell Alert" - Triggers on divergence-confirmed sell signals
To set up alerts: Right-click chart → Add Alert → Select desired condition
═══════════════════════════════════════════════
This indicator is provided for educational and informational purposes. Always practice proper risk management and never trade with money you cannot afford to lose.
RSI: chart overlay
This indicator maps RSI thresholds directly onto price. Since the EMA of price aligns with RSI’s 50-line, it draws a volatility-based band around the EMA to reveal levels such as 70 and 30.
By converting RSI values into visible price bands, the overlay lets you see exactly where price would have to move to hit traditional RSI boundaries. These bands adapt in real time to both price movement and market volatility, keeping the classic RSI logic intact while presenting it in the context of price action. This approach helps traders interpret RSI signals without leaving the main chart window.
The calculation uses the same components as the RSI: alternative derivation script: Wilder’s EMA for smoothing, a volatility-based unit for scaling, and a normalization factor. The result is a dynamic band structure on the chart, representing RSI boundary levels in actual price terms.
Key components and calculation breakdown:
Wilder’s EMA
Used as the anchor point for measuring price position.
myEMA = ta.rma(close, Length)
Volatility Unit
Derived from the EMA of absolute close-to-close price changes.
CC_vol = ta.rma(math.abs(close - close ), Length)
Normalization Factor
Scales the volatility unit to align with the RSI formula’s structure.
normalization_factor = 1 / (Length - 1)
Upper and Lower Boundaries
Defines price bands corresponding to selected RSI threshold values.
up_b = myEMA + ((upper - 50) / 50) * (CC_vol / normalization_factor)
down_b = myEMA - ((50 - lower) / 50) * (CC_vol / normalization_factor)
Inputs
RSI length
Upper boundary – RSI level above 50
Lower boundary – RSI level below 50
ON/OFF toggle for 50-point line (EMA of close prices)
ON/OFF toggle for overbought/oversold coloring (use with line chart)
Interpretation:
Each band on the chart represents a chosen RSI level.
When price touches a band, RSI is at that threshold.
The distance between moving average and bands adjusts automatically with volatility and your selected RSI length.
All calculations remain fully consistent with standard RSI values.
Feedback and code suggestions are welcome, especially regarding implementation efficiency and customization.
MACD-V MomentumThe MACD-V (Moving Average Convergence Divergence – Volatility Normalized) is an award-winning momentum indicator created by Alex Spiroglou, CFTe, DipTA (ATAA). It improves on the traditional MACD by normalizing momentum with volatility, solving several well-known limitations of classic indicators:
✅ Time stability – readings are consistent across history
✅ Cross-market comparability – works equally on stocks, crypto, forex, and commodities
✅ Objective momentum framework – universal thresholds at +150 / -150, +50 / -50
✅ Cleaner signals – reduces false signals in ranges and lag in high momentum
By dividing the MACD spread by ATR, the indicator expresses momentum in volatility units, allowing meaningful comparison across timeframes and markets.
MACD-V defines seven objective momentum states:
Risk (Oversold): below -150
Rebounding: -150 to +50 and above signal
Rallying: +50 to +150 and above signal
Risk (Overbought): above +150
Retracing: above -50 and below signal
Reversing: -150 to -50 and below signal
Ranging: between -50 and +50 for N bars
Optional background tints highlight the active regime (Bull above 200-MA, Bear below 200-MA).
Rare extremes (e.g., MACD-V < -100 in a bull regime) are tagged for additional context.
Use Cases
Identify and track momentum lifecycles across any market
Spot rare extremes for potential reversal opportunities
Filter out low-momentum whipsaws in ranging conditions
Compare momentum strength across multiple symbols
Support systematic and rule-based strategy development
Volume-Weighted RSI & Multi-Normalized MACD### Description for Publishing: Volume-Weighted RSI & Multi-Normalized MACD
**Overview**
The "Volume-Weighted RSI & Multi-Normalized MACD" indicator is a powerful and versatile tool designed for traders seeking enhanced momentum and trend analysis. Combining a volume-weighted Relative Strength Index (VW-RSI) with a customizable Moving Average Convergence Divergence (MACD) featuring multiple normalization methods, this indicator provides deep insights into market dynamics. It supports multi-timeframe (MTF) analysis and includes an optional stepped plotting mode for discrete signal visualization, making it ideal for both trend-following and mean-reversion strategies across various markets (stocks, forex, crypto, etc.).
**Key Features**
1. **Volume-Weighted RSI (VW-RSI)**:
- A modified RSI that incorporates trading volume for greater sensitivity to market activity.
- Normalized to a user-defined range (default: -50 to +50) for consistent analysis.
- Optional smoothing with multiple moving average types (SMA, EMA, WMA, VWMA, SMMA, or SMA with Bollinger Bands) to reduce noise and highlight trends.
- Overbought (+20) and oversold (-20) levels for quick reference.
2. **Multi-Normalized MACD**:
- Offers six normalization methods for MACD, allowing traders to tailor the output to their strategy:
- Normalized Volume Weighted MACD (unbounded).
- Min-Max Normalization (bounded).
- Volatility Normalization (unbounded, volatility-adjusted).
- Volatility Normalization with Min-Max (bounded).
- Hyperbolic Tangent Normalization (bounded).
- Arctangent Normalization (bounded).
- Min-Max with Smoothing (bounded).
- All bounded methods scale to the user-defined range (default: -50 to +50), ensuring comparability with VW-RSI.
- Dynamic color changes for MACD line (lime/red) and histogram (aqua/blue/red/maroon) based on momentum and signal line crosses.
3. **Stepped Plotting Mode**:
- Optional mode to plot RSI and MACD as discrete, stepped lines, reducing noise by only updating when values change significantly (configurable thresholds).
- Ideal for traders focusing on clear, actionable signal changes.
4. **Multi-Timeframe Support**:
- Configurable timeframe input (default: chart timeframe) for analyzing RSI and MACD on higher or lower timeframes, enhancing cross-timeframe strategies.
5. **Customizable Display**:
- Toggle options to show/hide MACD line, signal line, histogram, and cross dots.
- Bollinger Bands for RSI smoothing (optional) with adjustable standard deviation multiplier.
- Clear visual cues with horizontal lines for overbought/oversold levels, midline, and MACD bounds.
**Usage Instructions**
1. **Add to Chart**: Apply the indicator to any symbol (e.g., BTCUSD, SPY) on any timeframe (1H, 1D, etc.).
2. **Configure Settings**:
- **General**: Adjust `Lower Bound` (-50 default) and `Upper Bound` (+50 default) for the output range. Set `Timeframe` for MTF analysis. Enable `Stepped?` for discrete plotting.
- **RSI**: Choose `Price Source` (default: ohlc4), `RSI Length` (default: 9), and smoothing options (e.g., EMA, Bollinger Bands). Adjust `RSI Diff Threshold` for stepped mode.
- **MACD**: Select `Price Source`, `Fast Length` (9), `Slow Length` (21), `Signal Length` (9), and a normalization method (default: Volatility Min-Max). Adjust `MACD Diff Threshold` for stepped mode.
- **Display Options**: Toggle MACD components and histogram colors for clarity.
3. **Interpretation**:
- **VW-RSI**: Watch for crosses above +20 (overbought) or below -20 (oversold) for potential reversals. Use smoothed RSI or Bollinger Bands for trend confirmation.
- **MACD**: Look for MACD/Signal line crosses (dots indicate crossings) and histogram changes for momentum shifts. Bounded normalizations align with RSI for unified analysis.
- **Stepped Mode**: Focus on significant changes in RSI/MACD for clearer signals.
4. **Companion Overlay**: For visualization on the main price chart, use the companion script "VW-RSI & MACD Price Overlay" (available separately, requires this script to be published). It plots RSI and MACD as price-scaled echo lines, with toggles to show/hide and customizable scaling (high/low or ATR).
**Who Is This For?**
- **Trend Traders**: Use MACD normalizations and MTF to identify momentum shifts across timeframes.
- **Mean-Reversion Traders**: Leverage VW-RSI’s overbought/oversold signals for entry/exit points.
- **Technical Analysts**: Customize normalization and smoothing to match specific market conditions.
- **All Markets**: Works on stocks, forex, cryptocurrencies, and more, with any timeframe.
**Notes**
- Unbounded MACD normalizations (`enable_nvw`, `enable_vol`) may produce values outside -50/+50, suitable for volatility-focused strategies.
- For price chart overlay, publish this script and use its ID in the companion script’s `request.security` call.
- Adjust scaling inputs in the companion script for optimal visualization on volatile or stable assets.
**Author’s Note**
Developed by NEPOLIX, this indicator combines volume-weighted precision with flexible normalization for robust technical analysis. Feedback and suggestions are welcome to enhance future versions!
SMA+MACD+RSI+Stoch Entry📌 Tools Used:
• SMA 21, SMA 50, SMA 200
• MACD (12, 26, 9)
• Pivot Point Standard
• RSI (length 75)
• Stochastic (14, 3, 3)
Trading Timeframe:
• Usable on all timeframes
Chart Preparation:
• Analyze the overall market trend and the instrument being traded
• Set an appropriate timeframe according to the market
• Apply SMA 21, SMA 50, SMA 200
• Apply MACD and Pivot Point Standard
• Ensure a proper market trend by checking the position of SMA 21, SMA 50, and SMA 200 relative to each other
If there are too many crossings between SMA 21, SMA 50, and SMA 200, do not enter any trades until the market trend stabilizes
Conditions for Entering a Long Trade (Bullish Trigger):
• Candle closes above the pivot line
• Confirm an uptrend by checking that SMA 21 is above SMA 50, and SMA 50 is above SMA 200
• RSI is above the midpoint
• Presence of a suitable corrective step with normal slope, considering the strength of the previous step
• MACD histogram indicates bullish momentum
• Stochastic shows a bullish crossover from below
Conditions for Entering a Short Trade (Bearish Trigger):
• Candle closes below the pivot line
• Confirm a downtrend by checking that SMA 21 is below SMA 50, and SMA 50 is below SMA 200
• RSI is below the midpoint
• Presence of a suitable corrective step with normal slope, considering the strength of the previous step
• MACD histogram indicates bearish momentum
• Stochastic shows a bearish crossover from above
Six Meridian Divine Swords [theUltimator5]The Six Meridian Divine Sword is a legendary martial arts technique in the classic wuxia novel “Demi-Gods and Semi-Devils” (天龙八部) by Jin Yong (金庸). The technique uses powerful internal energy (qi) to shoot invisible sword-like energy beams from the six meridians of the hand. Each of the six fingers/meridians corresponds to a “sword,” giving six different sword energies.
The Six Meridian Divine Swords indicator is a compact “signal dashboard” that fuses six classic indicators (fingers)—MACD, KDJ, RSI, LWR (Williams %R), BBI, and MTM—into one pane. Each row is a traffic-light dot (green/bullish, red/bearish, gray/neutral). When all six align, the script draws a confirmation line (“All Bullish” or “All Bearish”). It’s designed for quick consensus reads across trend, momentum, and overbought/oversold conditions.
How to Read the Dashboard
The pane has 6 horizontal rows (explained in depth later):
MACD
KDJ
RSI
LWR (Larry Williams %R)
BBI (Bull & Bear Index)
MTM (Momentum)
Each tick in the row is a dot, with sentiment identified by a color.
Green = bullish condition met
Red = bearish condition met
Gray = inside a neutral band (filtering chop), shown when Use Neutral (Gray) Colors is ON
There are two lines that track the dots on the top or bottom of the pane.
All Bullish Signal Line: appears only if all 6 are strongly bullish (default color = white)
All Bearish Signal Line: appears only if all 6 are strongly bearish (default color = fuchsia)
The Six Meridians (Indicators) — What They Mean:
1) MACD — Trend & Momentum
What it is: A trend-following momentum indicator based on the relationship between two moving averages (typically 12-EMA and 26-EMA)
Logic used: Classic MACD line (EMA12−EMA26) vs its 9-EMA signal.
Bullish: MACD > Signal and |MACD−Signal| > Neutral Threshold
Bearish: MACD < Signal and |diff| > threshold
Neutral: |diff| ≤ threshold
Why: Small crosses can whipsaw. The neutral band ignores tiny separations to reduce noise.
Inputs: Fast/Slow/Signal lengths, Neutral Threshold.
2) KDJ — Stochastic with J-line boost
What it is: A variation of the stochastic oscillator popular in Chinese trading systems
Logic used: K = SMA(Stochastic, smooth), D = SMA(K, smooth), J = 3K − 2D.
Bullish: K > D and |K−D| > 2
Bearish: K < D and |K−D| > 2
Neutral: |K−D| ≤ 2
Why: K–D separation filters tiny wiggles; J offers an “extreme” early-warning context in the value label.
Inputs: Length, Smoothing.
3) RSI — Momentum balance (0–100)
What it is: A momentum oscillator measuring speed and magnitude of price changes (0–100)
Logic used: RSI(N).
Bullish: RSI > 50 + Neutral Zone
Bearish: RSI < 50 − Neutral Zone
Neutral: Between those bands
Why: Centerline/adaptive bands (around 50) give a directional bias without relying on fixed 70/30.
Inputs: Length, Neutral Zone (± around 50).
4) LWR (Williams %R) — Overbought/Oversold
What it is: An oscillator similar to stochastic, measuring how close the close is to the high-low range over N periods
Logic used: %R over N bars (0 to −100).
Bullish: %R > −50 + Neutral Zone
Bearish: %R < −50 − Neutral Zone
Neutral: Between those bands
Why: Uses a centered band around −50 instead of only −20/−80, making it act like a directional filter.
Inputs: Length, Neutral Zone (± around −50).
5) BBI (Bull & Bear Index) — Smoothed trend bias
What it is: A composite moving average, essentially the average of several different moving averages (often 3, 6, 12, 24 periods)
Logic used: Average of 4 SMAs (3/6/12/24 by default):
BBI = (MA3 + MA6 + MA12 + MA24) / 4
Bullish: Close > BBI and |Close−BBI| > 0.2% of BBI
Bearish: Close < BBI and |diff| > threshold
Neutral: |diff| ≤ threshold
Why: Multiple MAs blended together reduce single-MA whipsaw. A dynamic 0.2% band ignores tiny drift.
Inputs: 4 lengths (default 3/6/12/24). Threshold is auto-scaled at 0.2% of BBI.
6) MTM (Momentum) — Rate of change in price
What it is: A simple measure of rate of change
Logic used: MTM = Close − Close
Bullish: MTM > 0.5% of Close
Bearish: MTM < −0.5% of Close
Neutral: |MTM| ≤ threshold
Why: A percent-based gate adapts across prices (e.g., $5 vs $500) and mutes insignificant moves.
Inputs: Length. Threshold auto-scaled to 0.5% of current Close.
Display & Inputs You Can Tweak
🎨 Use Neutral (Gray) Colors
ON (default): 3-color mode with clear “no-trade”/“weak” states.
OFF: classic binary (green/red) without neutral filtering.
ALEX - ATR Extensions + ADR + TableALEX - ATR Extensions + ADR + Table
Overview
The ALEX ATR Extensions indicator is a comprehensive volatility and momentum analysis tool that combines Average True Range (ATR), Average Daily Range (ADR), and moving average distance calculations in a single, customizable display. This indicator helps traders assess current price action relative to historical volatility and key moving averages, providing crucial context for risk management and trade planning.
Key Features
Multi-Metric Analysis
- ATR Percentage: Current ATR as a percentage of price for volatility assessment
- ADR Percentage: Average Daily Range as a percentage for typical daily movement
- Low of Day Distance: Distance from current price to daily low
- Moving Average Distance: ATR-normalized distance from 21 and 50 period moving averages
Flexible Moving Average Options
- Configurable MA Types: Choose between EMA or SMA for both 21 and 50 period averages
- Customizable Periods: Adjust moving average lengths to suit your trading style
- Daily Timeframe Data: Uses daily moving averages regardless of chart timeframe
ATR Extension Levels
- Dynamic Price Targets: Calculate extension levels based on ATR multiples from moving averages
- Visual Reference Lines: Optional overlay lines showing ATR extension targets
- Customizable Multipliers: Adjust ATR multipliers for different risk/reward scenarios
Smart Visual Alerts
- Color-Coded Distance Metrics: Automatic color changes based on distance thresholds
- Symbol Plotting: Customizable chart symbols when distance thresholds are exceeded
- Threshold-Based Alerts: Visual cues when price reaches significant ATR distances
Comprehensive Data Table
- Real-Time Metrics: Live updating table with all key measurements
- Customizable Display: Toggle individual metrics on/off based on preference
- Professional Styling: Adjustable colors, fonts, and transparency
How to Use
Volatility Assessment
- High ATR%: Indicates elevated volatility, larger position sizing considerations
- Low ATR%: Suggests compressed volatility, potential for expansion
- ADR% Comparison: Compare current day's range to historical average
Moving Average Analysis
- ATR Distance 21/50: Normalized distance showing how extended price is from key levels
- Positive Values: Price above moving average (bullish positioning)
- Negative Values: Price below moving average (bearish positioning)
- Color Changes: Automatic alerts when reaching threshold levels
Extension Target Planning
- ATR Extension Lines: Visual price targets based on volatility-adjusted projections
- Risk/Reward Planning: Use extension levels for profit target placement
- Breakout Confirmation: Extension levels can confirm breakout validity
Symbol Alert System
- Chart Symbols: Automatic plotting when distance thresholds are breached
- Customizable Triggers: Set your own threshold levels for alerts
- Visual Scanning: Quick identification of extended conditions across multiple charts
Settings
Display Controls
- Show ADR%: Toggle average daily range percentage display
- Show ATR%: Toggle average true range percentage display
- Show LoD Distance: Toggle low of day distance calculation
- Show LoD Price: Toggle actual low of day price display
- Show ATR Distance from 21/50 DMA: Toggle moving average distance metrics
- Show 21/50 DMA Price: Toggle actual moving average price display
- Show ATR Extension Levels: Toggle extension target display in table
Moving Average Configuration
- 21/50 DMA Type: Choose between EMA or SMA calculation methods
- 21/50 DMA Period: Customize moving average lengths
- ADR/ATR Length: Adjust calculation periods for range measurements
Color Thresholds
- Threshold Levels: Set distance levels for color changes (default 2.0 and 5.0)
- Custom Colors: Choose colors for different threshold breaches
- Separate 21/50 Settings: Independent color schemes for each moving average
Symbol Settings
- Show Char Symbol: Toggle symbol plotting for each moving average
- Custom Symbols: Choose any character for chart plotting
- Symbol Colors: Customize colors for visual distinction
- Threshold Levels: Set trigger points for symbol appearance
ATR Extension Lines
- Show Extension Lines: Toggle visual extension level lines
- ATR Multipliers: Customize extension distance (default 2.0x)
- Line Colors: Choose colors for extension level visualization
Table Customization
- Background Color: Adjust table transparency and color
- Text Color: Customize default text appearance
- Font Size: Choose from tiny to huge font options
Advanced Applications
Trend Strength Analysis
- Large ATR distances suggest strong trending moves
- Small ATR distances indicate potential consolidation or reversal zones
- Compare current readings to recent historical ranges
Risk Management
- Use ATR% for position sizing calculations
- Extension levels provide natural profit target zones
- Distance metrics help identify overextended conditions
Multi-Timeframe Context
- Apply to different timeframes for comprehensive analysis
- Daily data provides consistency across all chart intervals
- Combine with weekly/monthly analysis for broader context
Market Regime Identification
- High volatility periods: Increased ATR% readings
- Low volatility periods: Compressed ATR% readings
- Trending markets: Sustained high distance readings
- Consolidating markets: Low distance readings with frequent color changes
Best Practices
Volatility-Adjusted Trading
- Increase position sizes during low volatility periods
- Reduce position sizes during high volatility periods
- Use ATR% for stop-loss placement relative to normal market movement
Extension Level Usage
- Primary targets: 1.5-2.0x ATR extensions
- Secondary targets: 2.5-3.0x ATR extensions
- Avoid chasing prices beyond 3x ATR extensions
Threshold Optimization
- Backtest different threshold levels for your trading style
- Consider market conditions when setting alert levels
- Adjust thresholds based on instrument volatility characteristics
Integration Strategies
- Combine with momentum indicators for confirmation
- Use alongside support/resistance levels
- Incorporate into systematic trading approaches
Technical Specifications
- Compatible with Pine Script v6
- Uses daily timeframe data for consistency
- Optimized for real-time performance
- Works on all chart types and timeframes
- Supports all tradeable instruments
Ideal For
- Swing traders using daily charts
- Position traders seeking volatility context
- Day traders needing intraday reference levels
- Risk managers requiring volatility metrics
- Systematic traders building rule-based strategies
Disclaimer
This indicator is for educational and informational purposes only. It should not be used as the sole basis for trading decisions. Always combine with other forms of analysis, proper risk management techniques, and consider your individual trading plan and risk tolerance. Past performance does not guarantee future results.
Compatible with Pine Script v6 | Optimized for daily timeframe analysis | Works across all markets and instruments
Topological Market Stress (TMS) - Quantum FabricTopological Market Stress (TMS) - Quantum Fabric
What Stresses The Market?
Topological Market Stress (TMS) represents a revolutionary fusion of algebraic topology and quantum field theory applied to financial markets. Unlike traditional indicators that analyze price movements linearly, TMS examines the underlying topological structure of market data—detecting when the very fabric of market relationships begins to tear, warp, or collapse.
Drawing inspiration from the ethereal beauty of quantum field visualizations and the mathematical elegance of topological spaces, this indicator transforms complex mathematical concepts into an intuitive, visually stunning interface that reveals hidden market dynamics invisible to conventional analysis.
Theoretical Foundation: Topology Meets Markets
Topological Holes in Market Structure
In algebraic topology, a "hole" represents a fundamental structural break—a place where the normal connectivity of space fails. In markets, these topological holes manifest as:
Correlation Breakdown: When traditional price-volume relationships collapse
Volatility Clustering Failure: When volatility patterns lose their predictive power
Microstructure Stress: When market efficiency mechanisms begin to fail
The Mathematics of Market Topology
TMS constructs a topological space from market data using three key components:
1. Correlation Topology
ρ(P,V) = correlation(price, volume, period)
Hole Formation = 1 - |ρ(P,V)|
When price and volume decorrelate, topological holes begin forming.
2. Volatility Clustering Topology
σ(t) = volatility at time t
Clustering = correlation(σ(t), σ(t-1), period)
Breakdown = 1 - |Clustering|
Volatility clustering breakdown indicates structural instability.
3. Market Efficiency Topology
Efficiency = |price - EMA(price)| / ATR
Measures how far price deviates from its efficient trajectory.
Multi-Scale Topological Analysis
Markets exist across multiple temporal scales simultaneously. TMS analyzes topology at three distinct scales:
Micro Scale (3-15 periods): Immediate structural changes, market microstructure stress
Meso Scale (10-50 periods): Trend-level topology, medium-term structural shifts
Macro Scale (50-200 periods): Long-term structural topology, regime-level changes
The final stress metric combines all scales:
Combined Stress = 0.3×Micro + 0.4×Meso + 0.3×Macro
How TMS Works
1. Topological Space Construction
Each market moment is embedded in a multi-dimensional topological space where:
- Price efficiency forms one dimension
- Correlation breakdown forms another
- Volatility clustering breakdown forms the third
2. Hole Detection Algorithm
The indicator continuously scans this topological space for:
Hole Formation: When stress exceeds the formation threshold
Hole Persistence: How long structural breaks maintain
Hole Collapse: Sudden topology restoration (regime shifts)
3. Quantum Visualization Engine
The visualization system translates topological mathematics into intuitive quantum field representations:
Stress Waves: Main line showing topological stress intensity
Quantum Glow: Surrounding field indicating stress energy
Fabric Integrity: Background showing structural health
Multi-Scale Rings: Orbital representations of different timeframes
4. Signal Generation
Stable Topology (✨): Normal market structure, standard trading conditions
Stressed Topology (⚡): Increased structural tension, heightened volatility expected
Topological Collapse (🕳️): Major structural break, regime shift in progress
Critical Stress (🌋): Extreme conditions, maximum caution required
Inputs & Parameters
🕳️ Topological Parameters
Analysis Window (20-200, default: 50)
Primary period for topological analysis
20-30: High-frequency scalping, rapid structure detection
50: Balanced approach, recommended for most markets
100-200: Long-term position trading, major structural shifts only
Hole Formation Threshold (0.1-0.9, default: 0.3)
Sensitivity for detecting topological holes
0.1-0.2: Very sensitive, detects minor structural stress
0.3: Balanced, optimal for most market conditions
0.5-0.9: Conservative, only major structural breaks
Density Calculation Radius (0.1-2.0, default: 0.5)
Radius for local density estimation in topological space
0.1-0.3: Fine-grained analysis, sensitive to local changes
0.5: Standard approach, balanced sensitivity
1.0-2.0: Broad analysis, focuses on major structural features
Collapse Detection (0.5-0.95, default: 0.7)
Threshold for detecting sudden topology restoration
0.5-0.6: Very sensitive to regime changes
0.7: Balanced, reliable collapse detection
0.8-0.95: Conservative, only major regime shifts
📊 Multi-Scale Analysis
Enable Multi-Scale (default: true)
- Analyzes topology across multiple timeframes simultaneously
- Provides deeper insight into market structure at different scales
- Essential for understanding cross-timeframe topology interactions
Micro Scale Period (3-15, default: 5)
Fast scale for immediate topology changes
3-5: Ultra-fast, tick/minute data analysis
5-8: Fast, 5m-15m chart optimization
10-15: Medium-fast, 30m-1H chart focus
Meso Scale Period (10-50, default: 20)
Medium scale for trend topology analysis
10-15: Short trend structures
20-25: Medium trend structures (recommended)
30-50: Long trend structures
Macro Scale Period (50-200, default: 100)
Slow scale for structural topology
50-75: Medium-term structural analysis
100: Long-term structure (recommended)
150-200: Very long-term structural patterns
⚙️ Signal Processing
Smoothing Method (SMA/EMA/RMA/WMA, default: EMA) Method for smoothing stress signals
SMA: Simple average, stable but slower
EMA: Exponential, responsive and recommended
RMA: Running average, very smooth
WMA: Weighted average, balanced approach
Smoothing Period (1-10, default: 3)
Period for signal smoothing
1-2: Minimal smoothing, noisy but fast
3-5: Balanced, recommended for most applications
6-10: Heavy smoothing, slow but very stable
Normalization (Fixed/Adaptive/Rolling, default: Adaptive)
Method for normalizing stress values
Fixed: Static 0-1 range normalization
Adaptive: Dynamic range adjustment (recommended)
Rolling: Rolling window normalization
🎨 Quantum Visualization
Fabric Style Options:
Quantum Field: Flowing energy visualization with smooth gradients
Topological Mesh: Mathematical topology with stepped lines
Phase Space: Dynamical systems view with circular markers
Minimal: Clean, simple display with reduced visual elements
Color Scheme Options:
Quantum Gradient: Deep space blue → Quantum red progression
Thermal: Black → Hot orange thermal imaging style
Spectral: Purple → Gold full spectrum colors
Monochrome: Dark gray → Light gray elegant simplicity
Multi-Scale Rings (default: true)
- Display orbital rings for different time scales
- Visualizes how topology changes across timeframes
- Provides immediate visual feedback on cross-scale dynamics
Glow Intensity (0.0-1.0, default: 0.6)
Controls the quantum glow effect intensity
0.0: No glow, pure line display
0.6: Balanced, recommended setting
1.0: Maximum glow, full quantum field effect
📋 Dashboard & Alerts
Show Dashboard (default: true)
Real-time topology status display
Current market state and trading recommendations
Stress level visualization and fabric integrity status
Show Theory Guide (default: true)
Educational panel explaining topological concepts
Dashboard interpretation guide
Trading strategy recommendations
Enable Alerts (default: true)
Extreme stress detection alerts
Topological collapse notifications
Hole formation and recovery signals
Visual Logic & Interpretation
Main Visualization Elements
Quantum Stress Line
Primary indicator showing topological stress intensity
Color intensity reflects current market state
Line style varies based on selected fabric style
Glow effect indicates stress energy field
Equilibrium Line
Silver line showing average stress level
Reference point for normal market conditions
Helps identify when stress is elevated or suppressed
Upper/Lower Bounds
Red upper bound: High stress threshold
Green lower bound: Low stress threshold
Quantum fabric fill between bounds shows stress field
Multi-Scale Rings
Aqua circles : Micro-scale topology (immediate changes)
Orange circles: Meso-scale topology (trend-level changes)
Provides cross-timeframe topology visualization
Dashboard Information
Topology State Icons:
✨ STABLE: Normal market structure, standard trading conditions
⚡ STRESSED: Increased structural tension, monitor closely
🕳️ COLLAPSE: Major structural break, regime shift occurring
🌋 CRITICAL: Extreme conditions, reduce risk exposure
Stress Bar Visualization:
Visual representation of current stress level (0-100%)
Color-coded based on current topology state
Real-time percentage display
Fabric Integrity Dots:
●●●●● Intact: Strong market structure (0-30% stress)
●●●○○ Stressed: Weakening structure (30-70% stress)
●○○○○ Fractured: Breaking down structure (70-100% stress)
Action Recommendations:
✅ TRADE: Normal conditions, standard strategies apply
⚠️ WATCH: Monitor closely, increased vigilance required
🔄 ADAPT: Change strategy, regime shift in progress
🛑 REDUCE: Lower risk exposure, extreme conditions
Trading Strategies
In Stable Topology (✨ STABLE)
- Normal trading conditions apply
- Use standard technical analysis
- Regular position sizing appropriate
- Both trend-following and mean-reversion strategies viable
In Stressed Topology (⚡ STRESSED)
- Increased volatility expected
- Widen stop losses to account for higher volatility
- Reduce position sizes slightly
- Focus on high-probability setups
- Monitor for potential regime change
During Topological Collapse (🕳️ COLLAPSE)
- Major regime shift in progress
- Adapt strategy immediately to new market character
- Consider closing positions that rely on previous regime
- Wait for new topology to stabilize before major trades
- Opportunity for contrarian plays if collapse is extreme
In Critical Stress (🌋 CRITICAL)
- Extreme market conditions
- Significantly reduce risk exposure
- Avoid new positions until stress subsides
- Focus on capital preservation
- Consider hedging existing positions
Advanced Techniques
Multi-Timeframe Topology Analysis
- Use higher timeframe TMS for regime context
- Use lower timeframe TMS for precise entry timing
- Alignment across timeframes = highest probability trades
Topology Divergence Trading
- Most powerful at regime boundaries
- Price makes new high/low but topology stress decreases
- Early warning of potential reversals
- Combine with key support/resistance levels
Stress Persistence Analysis
- Long periods of stable topology often precede major moves
- Extended stress periods often resolve in regime changes
- Use persistence tracking for position sizing decisions
Originality & Innovation
TMS represents a genuine breakthrough in applying advanced mathematics to market analysis:
True Topological Analysis: Not a simplified proxy but actual topological space construction and hole detection using correlation breakdown, volatility clustering analysis, and market efficiency measurement.
Quantum Aesthetic: Transforms complex topology mathematics into an intuitive, visually stunning interface inspired by quantum field theory visualizations.
Multi-Scale Architecture: Simultaneous analysis across micro, meso, and macro timeframes provides unprecedented insight into market structure dynamics.
Regime Detection: Identifies fundamental market character changes before they become obvious in price action, providing early warning of structural shifts.
Practical Application: Clear, actionable signals derived from advanced mathematical concepts, making theoretical topology accessible to practical traders.
This is not a combination of existing indicators or a cosmetic enhancement of standard tools. It represents a fundamental reimagining of how we measure, visualize, and interpret market dynamics through the lens of algebraic topology and quantum field theory.
Best Practices
Start with defaults: Parameters are optimized for broad market applicability
Match timeframe: Adjust scales based on your trading timeframe
Confirm with price action: TMS shows market character, not direction
Respect topology changes: Reduce risk during regime transitions
Use appropriate strategies: Adapt approach based on current topology state
Monitor persistence: Track how long topology states maintain
Cross-timeframe analysis: Align multiple timeframes for highest probability trades
Alerts Available
Extreme Topological Stress: Market fabric under severe deformation
Topological Collapse Detected: Regime shift in progress
Topological Hole Forming: Market structure breakdown detected
Topology Stabilizing: Market structure recovering to normal
Chart Requirements
Recommended Markets: All liquid markets (forex, stocks, crypto, futures)
Optimal Timeframes: 5m to Daily (adaptable to any timeframe)
Minimum History: 200 bars for proper topology construction
Best Performance: Markets with clear regime characteristics
Academic Foundation
This indicator draws from cutting-edge research in:
- Algebraic topology and persistent homology
- Quantum field theory visualization techniques
- Market microstructure analysis
- Multi-scale dynamical systems theory
- Correlation topology and network analysis
Disclaimer
This indicator is for educational and research purposes only. It does not constitute financial advice or provide direct buy/sell signals. Topological analysis reveals market structure characteristics, not future price direction. Always use proper risk management and combine with your own analysis. Past performance does not guarantee future results.
See markets through the lens of topology. Trade the structure, not the noise.
Bringing advanced mathematics to practical trading through quantum-inspired visualization.
Trade with insight. Trade with structure.
— Dskyz , for DAFE Trading Systems
Pivot S/R with Volatility Filter## *📌 Indicator Purpose*
This indicator identifies *key support/resistance levels* using pivot points while also:
✅ Detecting *high-volume liquidity traps* (stop hunts)
✅ Filtering insignificant pivots via *ATR (Average True Range) volatility*
✅ Tracking *test counts and breakouts* to measure level strength
---
## *⚙ SETTINGS – Detailed Breakdown*
### *1️⃣ ◆ General Settings*
#### *🔹 Pivot Length*
- *Purpose:* Determines how many bars to analyze when identifying pivots.
- *Usage:*
- *Low values (5-20):* More pivots, better for scalping.
- *High values (50-200):* Fewer but stronger levels for swing trading.
- *Example:*
- Pivot Length = 50 → Only the most significant highs/lows over 50 bars are marked.
#### *🔹 Test Threshold (Max Test Count)*
- *Purpose:* Sets how many times a level can be tested before being invalidated.
- *Example:*
- Test Threshold = 3 → After 3 tests, the level is ignored (likely to break).
#### *🔹 Zone Range*
- *Purpose:* Creates a price buffer around pivots (±0.001 by default).
- *Why?* Markets often respect "zones" rather than exact prices.
---
### *2️⃣ ◆ Volatility Filter (ATR)*
#### *🔹 ATR Period*
- *Purpose:* Smoothing period for Average True Range calculation.
- *Default:* 14 (standard for volatility measurement).
#### *🔹 ATR Multiplier (Min Move)*
- *Purpose:* Requires pivots to show *meaningful price movement*.
- *Formula:* Min Move = ATR × Multiplier
- *Example:*
- ATR = 10 pips, Multiplier = 1.5 → Only pivots with *15+ pip swings* are valid.
#### *🔹 Show ATR Filter Info*
- Displays current ATR and minimum move requirements on the chart.
---
### *3️⃣ ◆ Volume Analysis*
#### *🔹 Volume Change Threshold (%)*
- *Purpose:* Filters for *unusual volume spikes* (institutional activity).
- *Example:*
- Threshold = 1.2 → Requires *120% of average volume* to confirm signals.
#### *🔹 Volume MA Period*
- *Purpose:* Lookback period for "normal" volume calculation.
---
### *4️⃣ ◆ Wick Analysis*
#### *🔹 Wick Length Threshold (Ratio)*
- *Purpose:* Ensures rejection candles have *long wicks* (strong reversals).
- *Formula:* Wick Ratio = (Upper Wick + Lower Wick) / Candle Range
- *Example:*
- Threshold = 0.6 → 60% of the candle must be wicks.
#### *🔹 Min Wick Size (ATR %)*
- *Purpose:* Filters out small wicks in volatile markets.
- *Example:*
- ATR = 20 pips, MinWickSize = 1% → Wicks under *0.2 pips* are ignored.
---
### *5️⃣ ◆ Display Settings*
- *Show Zones:* Toggles support/resistance shaded areas.
- *Show Traps:* Highlights liquidity traps (▲/▼ symbols).
- *Show Tests:* Displays how many times levels were tested.
- *Zone Transparency:* Adjusts opacity of zones.
---
## *🎯 Practical Use Cases*
### *1️⃣ Liquidity Trap Detection*
- *Scenario:* Price spikes *above resistance* then reverses sharply.
- *Requirements:*
- Long wick (Wick Ratio > 0.6)
- High volume (Volume > Threshold)
- *Outcome:* *Short Trap* signal (▼) appears.
### *2️⃣ Strong Support Level*
- *Scenario:* Price bounces *3 times* from the same level.
- *Indicator Action:*
- Labels the level with test count (3/5 = 3 tests out of max 5).
- Turns *red* if broken (Break Count > 0).
Deep Dive: How This Indicator Works*
This indicator combines *four professional trading concepts* into one powerful tool:
1. *Classic Pivot Point Theory*
- Identifies swing highs/lows where price previously reversed
- Unlike basic pivot indicators, ours uses *confirmed pivots only* (filtered by ATR)
2. *Volume-Weighted Validation*
- Requires unusual trading volume to confirm levels
- Filters out "phantom" levels with low participation
3. *ATR Volatility Filtering*
- Eliminates insignificant price swings in choppy markets
- Ensures only meaningful levels are plotted
4. *Liquidity Trap Detection*
- Spots institutional stop hunts where markets fake out traders
- Uses wick analysis + volume spikes for high-probability signals
---
Deep Dive: How This Indicator Works*
This indicator combines *four professional trading concepts* into one powerful tool:
1. *Classic Pivot Point Theory*
- Identifies swing highs/lows where price previously reversed
- Unlike basic pivot indicators, ours uses *confirmed pivots only* (filtered by ATR)
2. *Volume-Weighted Validation*
- Requires unusual trading volume to confirm levels
- Filters out "phantom" levels with low participation
3. *ATR Volatility Filtering*
- Eliminates insignificant price swings in choppy markets
- Ensures only meaningful levels are plotted
4. *Liquidity Trap Detection*
- Spots institutional stop hunts where markets fake out traders
- Uses wick analysis + volume spikes for high-probability signals
---
## *📊 Parameter Encyclopedia (Expanded)*
### *1️⃣ Pivot Engine Settings*
#### *Pivot Length (50)*
- *What It Does:*
Determines how many bars to analyze when searching for swing highs/lows.
- *Professional Adjustment Guide:*
| Trading Style | Recommended Value | Why? |
|--------------|------------------|------|
| Scalping | 10-20 | Captures short-term levels |
| Day Trading | 30-50 | Balanced approach |
| Swing Trading| 50-200 | Focuses on major levels |
- *Real Market Example:*
On NASDAQ 5-minute chart:
- Length=20: Identifies levels holding for ~2 hours
- Length=50: Finds levels respected for entire trading day
#### *Test Threshold (5)*
- *Advanced Insight:*
Institutions often test levels 3-5 times before breaking them. This setting mimics the "probe and push" strategy used by smart money.
- *Psychology Behind It:*
Retail traders typically give up after 2-3 tests, while institutions keep testing until stops are run.
---
### *2️⃣ Volatility Filter System*
#### *ATR Multiplier (1.0)*
- *Professional Formula:*
Minimum Valid Swing = ATR(14) × Multiplier
- *Market-Specific Recommendations:*
| Market Type | Optimal Multiplier |
|------------------|--------------------|
| Forex Majors | 0.8-1.2 |
| Crypto (BTC/ETH) | 1.5-2.5 |
| SP500 Stocks | 1.0-1.5 |
- *Why It Matters:*
In EUR/USD (ATR=10 pips):
- Multiplier=1.0 → Requires 10 pip swings
- Multiplier=1.5 → Requires 15 pip swings (fewer but higher quality levels)
---
### *3️⃣ Volume Confirmation System*
#### *Volume Threshold (1.2)*
- *Institutional Benchmark:*
- 1.2x = Moderate institutional interest
- 1.5x+ = Strong smart money activity
- *Volume Spike Case Study:*
*Before Apple Earnings:*
- Normal volume: 2M shares
- Spike threshold (1.2): 2.4M shares
- Actual volume: 3.1M shares → STRONG confirmation
---
### *4️⃣ Liquidity Trap Detection*
#### *Wick Analysis System*
- *Two-Filter Verification:*
1. *Wick Ratio (0.6):*
- Ensures majority of candle shows rejection
- Formula: (UpperWick + LowerWick) / Total Range > 0.6
2. *Min Wick Size (1% ATR):*
- Prevents false signals in flat markets
- Example: ATR=20 pips → Min wick=0.2 pips
- *Trap Identification Flowchart:*
Price Enters Zone →
Spikes Beyond Level →
Shows Long Wick →
Volume > Threshold →
TRAP CONFIRMED
---
## *💡 Master-Level Usage Techniques*
### *Institutional Order Flow Analysis*
1. *Step 1:* Identify pivot levels with ≥3 tests
2. *Step 2:* Watch for volume contraction near levels
3. *Step 3:* Enter when trap signal appears with:
- Wick > 2×ATR
- Volume > 1.5× average
### *Multi-Timeframe Confirmation*
1. *Higher TF:* Find weekly/monthly pivots
2. *Lower TF:* Use this indicator for precise entries
3. *Example:*
- Weekly pivot at $180
- 4H shows liquidity trap → High-probability reversal
---
## *⚠ Critical Mistakes to Avoid*
1. *Using Default Settings Everywhere*
- Crude oil needs higher ATR multiplier than bonds
2. *Ignoring Trap Context*
- Traps work best at:
- All-time highs/lows
- Major psychological numbers (00/50 levels)
3. *Overlooking Cumulative Volume*
- Check if volume is building over multiple tests
EMA Scoring Strategy## **📊 EMA Scoring Strategy for Trend Analysis**
This strategy is designed to **identify bullish trends** based on multiple **Exponential Moving Averages (EMAs)**. It assigns a **score** based on how the price and EMAs interact, and highlights strong bullish conditions when the score reaches **4 or above**.
---
## **🔹 Strategy Logic**
### 1️⃣ **Calculating EMAs**
- **EMA 21** → Short-term trend
- **EMA 50** → Mid-term trend
- **EMA 100** → Long-term trend
---
### 2️⃣ **Scoring System**
For each trading day, the strategy assigns **+1 or -1 points** based on the following conditions:
| Condition | Score |
|-----------|-------|
| If **Price > EMA 21** | +1 |
| If **Price > EMA 50** | +1 |
| If **Price > EMA 100** | +1 |
| If **EMA 21 > EMA 50** | +1 |
| If **EMA 50 > EMA 100** | +1 |
| If **EMA 21 > EMA 100** | +1 |
| If **Price < EMA 21** | -1 |
| If **Price < EMA 50** | -1 |
| If **Price < EMA 100** | -1 |
| If **EMA 21 < EMA 50** | -1 |
| If **EMA 50 < EMA 100** | -1 |
| If **EMA 21 < EMA 100** | -1 |
---
### 3️⃣ **Bullish Confirmation** (Score ≥ 4)
- The **score is calculated every day**.
- When the **score reaches 4 or above**, it confirms a strong **bullish trend**.
- A **green background** is applied to highlight such days.
- A **histogram** is plotted **only when the score is 4 or higher** to keep the chart clean.
- A **buy signal** is generated when the score **crosses above 4**.
---
## **🔹 Visualization & Alerts**
### ✅ **What You See on the Chart**
1. **EMA Lines (21, 50, 100)** 📈
2. **Green Background for Strong Bullish Days (Score ≥ 4)** ✅
3. **Histogram Showing Score (Only for 4 and above)** 📊
4. **Buy Signal When Score Crosses Above 4** 💰
### 🔔 **Alerts**
- **An alert is triggered** when the score crosses **above 4**, notifying the user about a bullish trend.
---
## **📌 How to Use This Strategy**
1. **Identify Strong Bullish Trends:** When the score is **4 or above**, it suggests that price momentum is strong.
2. **Enter Trades on Buy Signals:** When the score **crosses above 4**, it could be a good time to buy.
3. **Stay in the Trade While Score is 4+:** The green background confirms a **strong uptrend**.
4. **Exit When Score Drops Below 4:** This suggests weakening momentum.
---
## **🔹 Advantages of This Strategy**
✅ **Simple & Objective** - Uses clear rules for trend confirmation
✅ **Filters Out Noise** - Only highlights strong bullish conditions
✅ **Works on Any Market** - Can be applied to stocks, indices, crypto, etc.
✅ **Customizable** - You can tweak EMAs or score conditions as needed
---
## **🚀 Next Steps**
Would you like me to add **stop-loss conditions**, **sell signals**, or any **extra confirmations like RSI or volume**? 😃
Cryptolabs Global Liquidity Cycle Momentum IndicatorCryptolabs Global Liquidity Cycle Momentum Indicator (LMI-BTC)
This open-source indicator combines global central bank liquidity data with Bitcoin price movements to identify medium- to long-term market cycles and momentum phases. It is designed for traders who want to incorporate macroeconomic factors into their Bitcoin analysis.
How It Works
The script calculates a Liquidity Index using balance sheet data from four central banks (USA: ECONOMICS:USCBBS, Japan: FRED:JPNASSETS, China: ECONOMICS:CNCBBS, EU: FRED:ECBASSETSW), augmented by the Dollar Index (TVC:DXY) and Chinese 10-year bond yields (TVC:CN10Y). This index is:
- Logarithmically scaled (math.log) to better represent large values like central bank balances and Bitcoin prices.
- Normalized over a 50-period range to balance fluctuations between minimum and maximum values.
- Compared to prior-year values, with the number of bars dynamically adjusted based on the timeframe (e.g., 252 for 1D, 52 for 1W), to compute percentage changes.
The liquidity change is analyzed using a Chande Momentum Oscillator (CMO) (period: 24) to measure momentum trends. A Weighted Moving Average (WMA) (period: 10) acts as a signal line. The Bitcoin price is also plotted logarithmically to highlight parallels with liquidity cycles.
Usage
Traders can use the indicator to:
- Identify global liquidity cycles influencing Bitcoin price trends, such as expansive or restrictive monetary policies.
- Detect momentum phases: Values above 50 suggest overbought conditions, below -50 indicate oversold conditions.
- Anticipate trend reversals by observing CMO crossovers with the signal line.
It performs best on higher timeframes like daily (1D) or weekly (1W) charts. The visualization includes:
- CMO line (green > 50, red < -50, blue neutral), signal line (white), Bitcoin price (gray).
- Horizontal lines at 50, 0, and -50 for improved readability.
Originality
This indicator stands out from other momentum tools like RSI or basic price analysis due to:
- Unique Data Integration: Combines four central bank datasets, DXY, and CN10Y as macroeconomic proxies for Bitcoin.
- Dynamic Prior-Year Analysis: Calculates liquidity changes relative to historical values, adjustable by timeframe.
- Logarithmic Normalization: Enhances visibility of extreme values, critical for cryptocurrencies and macro data.
This combination offers a rare perspective on the interplay between global liquidity and Bitcoin, unavailable in other open-source scripts.
Settings
- CMO Period: Default 24, adjustable for faster/slower signals.
- Signal WMA: Default 10, for smoothing the CMO line.
- Normalization Window: Default 50 periods, customizable.
Users can modify these parameters in the Pine Editor to tailor the indicator to their strategy.
Note
This script is designed for medium- to long-term analysis, not scalping. For optimal results, combine it with additional analyses (e.g., on-chain data, support/resistance levels). It does not guarantee profits but supports informed decisions based on macroeconomic trends.
Data Sources
- Bitcoin: INDEX:BTCUSD
- Liquidity: ECONOMICS:USCBBS, FRED:JPNASSETS, ECONOMICS:CNCBBS, FRED:ECBASSETSW
- Additional: TVC:DXY, TVC:CN10Y
AI InfinityAI Infinity – Multidimensional Market Analysis
Overview
The AI Infinity indicator combines multiple analysis tools into a single solution. Alongside dynamic candle coloring based on MACD and Stochastic signals, it features Alligator lines, several RSI lines (including glow effects), and optionally enabled EMAs (20/50, 100, and 200). Every module is individually configurable, allowing traders to tailor the indicator to their personal style and strategy.
Important Note (Disclaimer)
This indicator is provided for educational and informational purposes only.
It does not constitute financial or investment advice and offers no guarantee of profit.
Each trader is responsible for their own trading decisions.
Past performance does not guarantee future results.
Please review the settings thoroughly and adjust them to your personal risk profile; consider supplementary analyses or professional guidance where appropriate.
Functionality & Components
1. Candle Coloring (MACD & Stochastic)
Objective: Provide an immediate visual snapshot of the market’s condition.
Details:
MACD Signal: Used to identify bullish and bearish momentum.
Stochastic: Detects overbought and oversold zones.
Color Modes: Offers both a simple (two-color) mode and a gradient mode.
2. Alligator Lines
Objective: Assist with trend analysis and determining the market’s current phase.
Details:
Dynamic SMMA Lines (Jaw, Teeth, Lips) that adjust based on volatility and market conditions.
Multiple Lengths: Each element uses a separate smoothing period (13, 8, 5).
Transparency: You can show or hide each line independently.
3. RSI Lines & Glow Effects
Objective: Display the RSI values directly on the price chart so critical levels (e.g., 20, 50, 80) remain visible at a glance.
Details:
RSI Scaling: The RSI is plotted in the chart window, eliminating the need to switch panels.
Dynamic Transparency: A pulse effect indicates when the RSI is near critical thresholds.
Glow Mode: Choose between “Direct Glow” or “Dynamic Transparency” (based on ATR distance).
Custom RSI Length: Freely adjustable (default is 14).
4. Optional EMAs (20/50, 100, 200)
Objective: Utilize moving averages for trend assessment and identifying potential support/resistance areas.
Details:
20/50 EMA: Select which one to display via a dropdown menu.
100 EMA & 200 EMA: Independently enabled.
Color Logic: Automatically green (price > EMA) or red (price < EMA). Each EMA’s up/down color is customizable.
Configuration Options
Candle Coloring:
Choose between Gradient or Simple mode.
Adjust the color scheme for bullish/bearish candles.
Transparency is dynamically based on candle body size and Stochastic state.
Alligator Lines:
Toggle each line (Jaw/Teeth/Lips) on or off.
Select individual colors for each line.
RSI Section:
RSI Length can be set as desired.
RSI lines (0, 20, 50, 80, 100) with user-defined colors and transparency (pulse effect).
Additional lines (e.g., RSI 40/60) are also available.
Glow Effects:
Switch between “Dynamic Transparency” (ATR-based) and “Direct Glow”.
Independently applied to the RSI 100 and RSI 0 lines.
EMAs (20/50, 100, 200):
Activate each one as needed.
Each EMA’s up/down color can be customized.
Example Use Cases
Trend Identification:
Enable Alligator lines to gauge general trend direction through SMMA signals.
Timing:
Watch the Candle Colors to spot potential overbought or oversold conditions.
Fine-Tuning:
Utilize the RSI lines to closely monitor important thresholds (50 as a trend barometer, 80/20 as possible reversal zones).
Filtering:
Enable a 50 EMA to quickly see if the market is trading above (bullish) or below (bearish) it.
EMA Crossover Strategy with Take Profit and Candle HighlightingStrategy Overview:
This strategy is based on the Exponential Moving Averages (EMA), specifically the EMA 20 and EMA 50. It takes advantage of EMA crossovers to identify potential trend reversals and uses multiple take-profit levels and a stop-loss for risk management.
Key Components:
EMA Crossover Signals:
Buy Signal (Uptrend): A buy signal is generated when the EMA 20 crosses above the EMA 50, signaling the start of a potential uptrend.
Sell Signal (Downtrend): A sell signal is generated when the EMA 20 crosses below the EMA 50, signaling the start of a potential downtrend.
Take Profit Levels:
Once a buy or sell signal is triggered, the strategy calculates multiple take-profit levels based on the range of the previous candle. The user can define multipliers for each take-profit level.
Take Profit 1 (TP1): 50% of the previous candle's range above or below the entry price.
Take Profit 2 (TP2): 100% of the previous candle's range above or below the entry price.
Take Profit 3 (TP3): 150% of the previous candle's range above or below the entry price.
Take Profit 4 (TP4): 200% of the previous candle's range above or below the entry price.
These levels are adjusted dynamically based on the previous candle's high and low, so they adapt to changing market conditions.
Stop Loss:
A stop-loss is set to manage risk. The default stop-loss is 3% from the entry price, but this can be adjusted in the settings. The stop-loss is triggered if the price moves against the position by this amount.
Trend Direction Highlighting:
The strategy highlights the bars (candles) with colors:
Green bars indicate an uptrend (when EMA 20 crosses above EMA 50).
Red bars indicate a downtrend (when EMA 20 crosses below EMA 50).
These visual cues help users easily identify the market direction.
Strategy Entries and Exits:
Entries: The strategy enters a long (buy) position when the EMA 20 crosses above the EMA 50 and a short (sell) position when the EMA 20 crosses below the EMA 50.
Exits: The strategy exits the positions at any of the defined take-profit levels or the stop-loss. Multiple exit levels provide opportunities to take profit progressively as the price moves in the favorable direction.
Entry and Exit Conditions in Detail:
Buy Entry Condition (Uptrend):
A buy position is opened when EMA 20 crosses above EMA 50, signaling the start of an uptrend.
The strategy calculates take-profit levels above the entry price based on the previous bar's range (high-low) and the multipliers for TP1, TP2, TP3, and TP4.
Sell Entry Condition (Downtrend):
A sell position is opened when EMA 20 crosses below EMA 50, signaling the start of a downtrend.
The strategy calculates take-profit levels below the entry price, similarly based on the previous bar's range.
Exit Conditions:
Take Profit: The strategy attempts to exit the position at one of the take-profit levels (TP1, TP2, TP3, or TP4). If the price reaches any of these levels, the position is closed.
Stop Loss: The strategy also has a stop-loss set at a default value (3% below the entry for long trades, and 3% above for short trades). The stop-loss helps to protect the position from significant losses.
Backtesting and Performance Metrics:
The strategy can be backtested using TradingView's Strategy Tester. The results will show how the strategy would have performed historically, including key metrics like:
Net Profit
Max Drawdown
Win Rate
Profit Factor
Average Trade Duration
These performance metrics can help users assess the strategy's effectiveness over historical periods and optimize the input parameters (e.g., multipliers, stop-loss level).
Customization:
The strategy allows for the adjustment of several key input values via the settings panel:
Take Profit Multipliers: Users can customize the multipliers for each take-profit level (TP1, TP2, TP3, TP4).
Stop Loss Percentage: The user can also adjust the stop-loss percentage to a custom value.
EMA Periods: The default periods for the EMA 50 and EMA 20 are fixed, but they can be adjusted for different market conditions.
Pros of the Strategy:
EMA Crossover Strategy: A classic and well-known strategy used by traders to identify the start of new trends.
Multiple Take Profit Levels: By taking profits progressively at different levels, the strategy locks in gains as the price moves in favor of the position.
Clear Trend Identification: The use of green and red bars makes it visually easier to follow the market's direction.
Risk Management: The stop-loss and take-profit features help to manage risk and optimize profit-taking.
Cons of the Strategy:
Lagging Indicators: The strategy relies on EMAs, which are lagging indicators. This means that the strategy might enter trades after the trend has already started, leading to missed opportunities or less-than-ideal entry prices.
No Confirmation Indicators: The strategy purely depends on the crossover of two EMAs and does not use other confirming indicators (e.g., RSI, MACD), which might lead to false signals in volatile markets.
How to Use in Real-Time Trading:
Use for Backtesting: Initially, use this strategy in backtest mode to understand how it would have performed historically with your preferred settings.
Paper Trading: Once comfortable, you can use paper trading to test the strategy in real-time market conditions without risking real money.
Live Trading: After testing and optimizing the strategy, you can consider using it for live trading with proper risk management in place (e.g., starting with a small position size and adjusting parameters as needed).
Summary:
This strategy is designed to identify trend reversals using EMA crossovers, with customizable take-profit levels and a stop-loss to manage risk. It's well-suited for traders looking for a systematic way to enter and exit trades based on clear market signals, while also providing flexibility to adjust for different risk profiles and trading styles.
RSI-Adjusted 9SMAThis indicator integrates the Relative Strength Index (RSI) and a Simple Moving Average (SMA) to create a more robust trading signal by blending momentum and trend analysis. Here's how they work together:
How the RSI and SMA Work in Harmony
RSI (Momentum Indicator):
The RSI measures the speed and change of price movements, oscillating between 0 and 100.
Typically, an RSI value above 50 suggests bullish momentum, while values below 50 indicate bearish momentum.
The script further refines this by applying a 9-period EMA to the RSI. This smoothing process filters out noise, providing a clearer picture of momentum shifts.
SMA (Trend Indicator):
The SMA calculates the average price over a specific period (9 in this case), helping to smooth out price fluctuations and identify the overall trend.
By observing the SMA, traders can determine whether the market is trending upward, downward, or moving sideways.
Combining the Two for Stronger Signals:
The RSI EMA acts as a momentum filter. When it is above 50, it indicates the presence of bullish momentum. Under such conditions, the SMA turning blue provides a stronger confirmation of an uptrend.
Conversely, when the RSI EMA is below 50, it signals weakening momentum. The SMA turning white underlines the caution, suggesting potential bearish conditions or a lack of trend strength.
This combination ensures that traders are not just relying on the SMA's trend-following behavior but also factoring in the market's underlying momentum for more reliable entries and exits.
Why This Approach is Robust
Avoid False Signals:
The SMA alone can generate false signals in choppy or range-bound markets. By incorporating the RSI EMA, the script reduces the likelihood of acting on weak or non-committal trends.
Timing Entries and Exits:
When both the SMA and RSI EMA align (e.g., blue SMA and RSI EMA > 50), it provides a stronger case for entering trades. Similarly, misalignment (e.g., white SMA and RSI EMA ≤ 50) warns against entering during uncertain conditions.
Adapting to Market Conditions:
This dual approach captures both short-term momentum shifts (RSI EMA) and longer-term trend direction (SMA), making it useful across different market phases.
Practical Application
Bullish Setup:
RSI EMA > 50 + Blue SMA → Enter or stay in long positions.
Bearish Setup:
RSI EMA ≤ 50 + White SMA → Exit long positions or consider short opportunities.
This combination of indicators offers traders a balanced strategy that considers both the direction of the trend and the underlying momentum, resulting in more confident and timely decision-making.
Composite Oscillation Indicator Based on MACD and OthersThis indicator combines various technical analysis tools to create a composite oscillator that aims to capture multiple aspects of market behavior. Here's a breakdown of its components:
* Individual RSIs (xxoo1-xxoo15): The code calculates the RSI (Relative Strength Index) of numerous indicators, including volume-based indicators (NVI, PVI, OBV, etc.), price-based indicators (CCI, CMO, etc.), and moving averages (WMA, ALMA, etc.). It also includes the RSI of the MACD histogram (xxoo14).
* Composite RSI (xxoojht): The individual RSIs are then averaged to create a composite RSI, aiming to provide a more comprehensive view of market momentum and potential turning points.
* MACD Line RSI (xxoo14): The RSI of the MACD histogram incorporates the momentum aspect of the MACD indicator into the composite measure.
* Double EMA (co, coo): The code employs two Exponential Moving Averages (EMAs) of the composite RSI, with different lengths (9 and 18 periods).
* Difference (jo): The difference between the two EMAs (co and coo) is calculated, aiming to capture the rate of change in the composite RSI.
* Smoothed Difference (xxp): The difference (jo) is further smoothed using another EMA (9 periods) to reduce noise and enhance the signal.
* RSI of Smoothed Difference (cco): Finally, the RSI is applied to the smoothed difference (xxp) to create the core output of the indicator.
Market Applications and Trading Strategies:
* Overbought/Oversold: The indicator's central line (plotted at 50) acts as a reference for overbought/oversold conditions. Values above 50 suggest potential overbought zones, while values below 50 indicate oversold zones.
* Crossovers and Divergences: Crossovers of the cco line above or below its previous bar's value can signal potential trend changes. Divergences between the cco line and price action can also provide insights into potential trend reversals.
* Emoji Markers: The code adds emoji markers ("" for bullish and "" for bearish) based on the crossover direction of the cco line. These can provide a quick visual indication of potential trend shifts.
* Colored Fill: The area between the composite RSI line (xxoojht) and the central line (50) is filled with color to visually represent the prevailing market sentiment (green for above 50, red for below 50).
Trading Strategies (Examples):
* Long Entry: Consider a long entry (buying) signal when the cco line crosses above its previous bar's value and the composite RSI (xxoojht) is below 50, suggesting a potential reversal from oversold conditions.
* Short Entry: Conversely, consider a short entry (selling) signal when the cco line crosses below its previous bar's value and the composite RSI (xxoojht) is above 50, suggesting a potential reversal from overbought conditions.
* Confirmation: Always combine the indicator's signals with other technical analysis tools and price action confirmation for better trade validation.
Additional Notes:
* The indicator offers a complex combination of multiple indicators. Consider testing and optimizing the parameters (EMAs, RSI periods) to suit your trading style and market conditions.
* Backtesting with historical data can help assess the indicator's effectiveness and identify potential strengths and weaknesses in different market environments.
* Remember that no single indicator is perfect, and the cco indicator should be used in conjunction with other forms of analysis to make informed trading decisions.
By understanding the logic behind this composite oscillator and its potential applications, you can incorporate it into your trading strategy to potentially identify trends, gauge market sentiment, and generate trading signals.
Macros ICT KillZones [TradingFinder] Times & Price Trading Setup🔵 Introduction
ICT Macros, developed by Michael Huddleston, also known as ICT (Inner Circle Trader), is a powerful trading tool designed to help traders identify the best trading opportunities during key time intervals like the London and New York trading sessions.
For traders aiming to capitalize on market volatility, liquidity shifts, and Fair Value Gaps (FVG), understanding and using these critical time zones can significantly improve trading outcomes.
In today’s highly competitive financial markets, identifying the moments when the market is seeking buy-side or sell-side liquidity, or filling price imbalances, is essential for maximizing profitability.
The ICT Macros indicator is built on the renowned ICT time and price theory, which enables traders to track and leverage key market dynamics such as breaks of highs and lows, imbalances, and liquidity hunts.
This indicator automatically detects crucial market times and optimizes strategies for traders by highlighting the specific moments when price movements are most likely to occur. A standout feature of ICT Macros is its automatic adjustment for Daylight Saving Time (DST), ensuring that traders remain synced with the correct session times.
This means you can rely on accurate market timing without the need for manual updates, allowing you to focus on capturing profitable trades during critical timeframes.
🔵 How to Use
The ICT Macros indicator helps you capitalize on trading opportunities during key market moments, particularly when the market is breaking highs or lows, filling Fair Value Gaps (FVG), or addressing imbalances. This indicator is particularly beneficial for traders who seek to identify liquidity, market volatility, and price imbalances.
🟣 Sessions
London Sessions
London Macro 1 :
UTC Time : 06:33 to 07:00
New York Time : 02:33 to 03:00
London Macro 2 :
UTC Time : 08:03 to 08:30
New York Time : 04:03 to 04:30
New York Sessions
New York Macro AM 1 :
UTC Time : 12:50 to 13:10
New York Time : 08:50 to 09:10
New York Macro AM 2 :
UTC Time : 13:50 to 14:10
New York Time : 09:50 to 10:10
New York Macro AM 3 :
UTC Time : 14:50 to 15:10
New York Time : 10:50 to 11:10
New York Lunch Macro :
UTC Time : 15:50 to 16:10
New York Time : 11:50 to 12:10
New York PM Macro :
UTC Time : 17:10 to 17:40
New York Time : 13:10 to 13:40
New York Last Hour Macro :
UTC Time : 19:15 to 19:45
New York Time : 15:15 to 15:45
These time intervals adjust automatically based on Daylight Saving Time (DST), helping traders to enter or exit trades during key market moments when price volatility is high.
Below are the main applications of this tool and how to incorporate it into your trading strategies :
🟣 Combining ICT Macros with Trading Strategies
The ICT Macros indicator can easily be used in conjunction with various trading strategies. Two well-known strategies that can be combined with this indicator include:
ICT 2022 Trading Model : This model is designed based on identifying market liquidity, structural price changes, and Fair Value Gaps (FVG). By using ICT Macros, you can identify the key time intervals when the market is seeking liquidity, filling imbalances, or breaking through important highs and lows, allowing you to enter or exit trades at the right moment.
Silver Bullet Strategy : This strategy, which is built around liquidity hunting and rapid price movements, can work more accurately with the help of ICT Macros. The indicator pinpoints precise liquidity times, helping traders take advantage of market shifts caused by filling Fair Value Gaps or correcting imbalances.
🟣 Capitalizing on Price Volatility During Key Times
Large market algorithms often seek liquidity or fill Fair Value Gaps (FVG) during the intervals marked by ICT Macros. These periods are when price volatility increases, and traders can use these moments to enter or exit trades.
For example, if sell-side liquidity is drained and the market fills an imbalance, the price might move toward buy-side liquidity. By identifying these moments, which may also involve breaking a previous high or low, you can leverage rapid market fluctuations to your advantage.
🟣 Identifying Liquidity and Price Imbalances
One of the important uses of ICT Macros is identifying points where the market is seeking liquidity and correcting imbalances. You can determine high or low liquidity levels in the market before each ICT Macro, as well as Fair Value Gaps (FVG) and price imbalances that need to be filled, using them to adjust your trading strategy. This capability allows you to manage trades based on liquidity shifts or imbalance corrections without needing a bias toward a specific direction.
🔵 Settings
The ICT Macros indicator offers various customization options, allowing users to tailor it to their specific needs. Below are the main settings:
Time Zone Mode : You can select one of the following options to define how time is displayed:
UTC : For traders who need to work with Universal Time.
Session Local Time : The local time corresponding to the London or New York markets.
Your Time Zone : You can specify your own time zone (e.g., "UTC-4:00").
Your Time Zone : If you choose "Your Time Zone," you can set your specific time zone. By default, this is set to UTC-4:00.
Show Range Time : This option allows you to display the time range of each session on the chart. If enabled, the exact start and end times of each interval are shown.
Show or Hide Time Ranges : Toggle on/off for visual clarity depending on user preference.
Custom Colors : Set distinct colors for each session, allowing users to personalize their chart based on their trading style.These settings allow you to adjust the key time intervals of each trading session to your preference and customize the time format according to your own needs.
🔵 Conclusion
The ICT Macros indicator is a powerful tool for traders, helping them to identify key time intervals where the market seeks liquidity or fills Fair Value Gaps (FVG), corrects imbalances, and breaks highs or lows. This tool is especially valuable for traders using liquidity-based strategies such as ICT 2022 or Silver Bullet.
One of the key features of this indicator is its support for Daylight Saving Time (DST), ensuring you are always in sync with the correct trading session timings without manual adjustments. This is particularly beneficial for traders operating across different time zones.
With ICT Macros, you can capitalize on crucial market opportunities during sensitive times, take advantage of imbalances, and enhance your trading strategies based on market volatility, liquidity shifts, and Fair Value Gaps.
Multiple SMA, EMA, and VWAP CrossoversMultiple SMA, EMA, and VWAP Crossovers with Alerts
Overview : The "Multiple SMA, EMA, and VWAP Crossovers" script is designed for traders who want to monitor various simple moving averages (SMAs), exponential moving averages (EMAs), and the volume-weighted average price (VWAP) to identify potential buy and sell opportunities. This script allows you to visualize key moving averages on your chart and create custom alerts for specific crossover events.
Detail s: This script plots the following moving averages:
Simple Moving Averages (SMA): 5, 10, 20, 50, 100, 200, and 325 periods
Exponential Moving Average (EMA): 9 periods
Volume-Weighted Average Price (VWAP)
It includes options to display these moving averages and set alerts for their crossovers.
Available Crossovers:
20/50 SMA, 20/100 SMA, 20/200 SMA, 20/325 SMA
50/100 SMA, 50/200 SMA, 50/325 SMA
100/200 SMA, 100/325 SMA
200/325 SMA
VWAP/20 SMA, VWAP/50 SMA, VWAP/100 SMA, VWAP/200 SMA, VWAP/325 SMA
Optional Lines to Add to the Chart:
9 EMA, 5 SMA, 10 SMA, 20 SMA, 50 SMA, 100 SMA, 200 SMA, 325 SMA, VWAP
How to Use:
Enable Indicators: Use the input options to select which SMAs, EMA, and VWAP you want to display on your chart.
Set Alerts: Choose the specific crossover events you want to monitor. For example, you can set an alert for the 20/50 SMA crossover or the VWAP/100 SMA crossover.
Monitor the Chart: The script will plot the selected moving averages on your chart. When a selected crossover event occurs, an alert will be triggered, notifying you of the potential trade opportunity.
Usage Tips:
Trending Market: Use the buy and sell alerts in trending markets where the moving averages can help confirm the direction of the trend.
Key Support and Resistance Levels: Combine crossover alerts with key support and resistance levels for more reliable trading signals.
Volume Confirmation: Ensure there is sufficient volume to support the crossover signals, indicating stronger momentum behind the move.
When NOT to Use Buy and Sell Alerts:
Low Volume: Avoid using buy and sell alerts during periods of low trading volume, as the signals may be less reliable.
Market Noise: Be cautious in highly volatile markets where frequent crossovers might generate false signals.
Sideways Market: In a sideways or range-bound market, crossover signals can result in multiple whipsaws, leading to potential losses.
Why Use This Script? This script provides a comprehensive tool for traders to monitor multiple moving averages and VWAP crossovers efficiently. It allows you to customize alerts based on your trading strategy and helps you make informed decisions by visualizing key technical indicators on your chart.
Legal Disclaimer: The information provided by this script is for educational and informational purposes only and should not be considered financial advice. The developer of this script is not responsible for any financial losses incurred from using this script.
Gold Scalping Strategy with Precise EntriesThe Gold Scalping Strategy with Precise Entries is designed to take advantage of short-term price movements in the gold market (XAU/USD). This strategy uses a combination of technical indicators and chart patterns to identify precise buy and sell opportunities during times of consolidation and trend continuation.
Key Elements of the Strategy:
Exponential Moving Averages (EMAs):
50 EMA: Used as the shorter-term moving average to detect the recent price trend.
200 EMA: Used as the longer-term moving average to determine the overall market trend.
Trend Identification:
A bullish trend is identified when the 50 EMA is above the 200 EMA.
A bearish trend is identified when the 50 EMA is below the 200 EMA.
Average True Range (ATR):
ATR (14) is used to calculate the market's volatility and to set a dynamic stop loss based on recent price movements. Higher ATR values indicate higher volatility.
ATR helps define a suitable stop-loss distance from the entry point.
Relative Strength Index (RSI):
RSI (14) is used as a momentum oscillator to detect overbought or oversold conditions.
However, in this strategy, the RSI is primarily used as a consolidation filter to look for neutral zones (between 45 and 55), which may indicate a potential breakout or trend continuation after a consolidation phase.
Engulfing Patterns:
Bullish Engulfing: A bullish signal is generated when the current candle fully engulfs the previous bearish candle, indicating potential upward momentum.
Bearish Engulfing: A bearish signal is generated when the current candle fully engulfs the previous bullish candle, signaling potential downward momentum.
Precise Entry Conditions:
Long (Buy):
The 50 EMA is above the 200 EMA (bullish trend).
The RSI is between 45 and 55 (neutral/consolidation zone).
A bullish engulfing pattern occurs.
The price closes above the 50 EMA.
Short (Sell):
The 50 EMA is below the 200 EMA (bearish trend).
The RSI is between 45 and 55 (neutral/consolidation zone).
A bearish engulfing pattern occurs.
The price closes below the 50 EMA.
Take Profit and Stop Loss:
Take Profit: A fixed 20-pip target (where 1 pip = 0.10 movement in gold) is used for each trade.
Stop Loss: The stop-loss is dynamically set based on the ATR, ensuring that it adapts to current market volatility.
Visual Signals:
Buy and sell signals are visually plotted on the chart using green and red labels, indicating precise points of entry.
Advantages of This Strategy:
Trend Alignment: The strategy ensures that trades are taken in the direction of the overall trend, as indicated by the 50 and 200 EMAs.
Volatility Adaptation: The use of ATR allows the stop loss to adapt to the current market conditions, reducing the risk of premature exits in volatile markets.
Precise Entries: The combination of engulfing patterns and the neutral RSI zone provides a high-probability entry signal that captures momentum after consolidation.
Quick Scalping: With a fixed 20-pip profit target, the strategy is designed to capture small price movements quickly, which is ideal for scalping.
This strategy can be applied to lower timeframes (such as 1-minute, 5-minute, or 15-minute charts) for frequent trade opportunities in gold trading, making it suitable for day traders or scalpers. However, proper risk management should always be used due to the inherent volatility of gold.
IBD PowerTrendThis IBD PowerTrend indicator is designed to help traders identify strong market uptrends based on the IBD Market School's Power Trend methodology. It is intended to be added to daily charts on major indexes.
Concept and Methodology
The IBD PowerTrend helps traders identify strong market uptrends. Markets generally exist in three states: uptrends, downtrends, and rangebound motion. This methodology focuses on:
Downtrends: Stay out of the market.
Rangebound markets: Often frustrating, best avoided.
Uptrends: Identify the strongest uptrends early.
This indicator uses IBD's research on historical uptrends to help traders get in and stay in during robust market phases.
How It Works
A PowerTrend starts when the following four conditions are met simultaneously on a major index:
10-Day Low Above 21-Day EMA : The market's low must be above the 21-day exponential moving average (EMA) for at least 10 consecutive days.
21-Day EMA Above 50-Day SMA : The 21-day EMA must be above the 50-day simple moving average (SMA) for at least five consecutive days.
50-Day SMA Uptrend : The 50-day SMA must be in an uptrend (one day is sufficient).
Market Closes Up : The market must close higher than the previous day's close.
A PowerTrend typically ends when the 21-day EMA crosses back below the 50-day SMA. However, there are rare cases where a PowerTrend can end early due to a circuit breaker or a follow-through day failure. In this script, a circuit breaker is defined as a break of the 50-day line and being more than 10% below recent highs (interpreted as three months).
How to Use
When the PowerTrend is active, the indicator will plot green circles, signaling a strong market uptrend. During these periods, traders might observe opportunities in growth stocks breaking out of sound bases and consider the use of margin. Conversely, during downtrends, the indicator suggests a more defensive approach.
It is recommended to use on daily timeframe.
Chart Description
Main Chart:
- EMA 21 (blue): The 21-day exponential moving average.
- SMA 50 (red): The 50-day simple moving average.
First Panel:
- IBD PowerTrend Indicator: Plots the PowerTrend status with green circles indicating an active PowerTrend.
Second Panel:
- Volume Bars






















