Análise de Tendência
Bitcoin & Ethereum Profitable Crypto Investor – FREE EditionBitcoin & Ethereum Profitable Crypto Investor – FREE Edition
by RustyTradingScripts
This is the free, simplified edition of my long-term crypto trend-following strategy designed for Bitcoin, Ethereum, and other major assets. It provides an accessible introduction to the core concepts behind the full version while remaining easy to use, transparent, and beginner-friendly.
This FREE edition focuses on a single technical component: a 102-period Simple Moving Average trend model. When price moves above the SMA, the script considers it a potential long trend environment. When the slope begins to turn down, the strategy exits the position. This creates a straightforward, rules-based framework for identifying trend shifts without emotional or discretionary decision-making.
The goal of this simplified version is to help users understand how a structured trend approach behaves during different market conditions. It demonstrates how using a slow, objective indicator can reduce noise and provide clearer long-term directional context on higher timeframes such as the 10-hour BTC chart shown in the backtest example.
What This FREE Version Includes
- Trend-based entries using a 102-period SMA
- Automatic exits when the SMA slope turns down
- Clean visual plot of the moving average
- No repainting — signals are based on confirmed bar data
- Works on BTC, ETH, and other major crypto assets
- User-adjustable SMA length for customization
What’s Not Included in This Version:
This edition intentionally focuses on the essential trend logic only.
It does NOT include the following components found in the full investor strategy:
- Linear regression smoothing
- Seasonal filters
- Price-extension filtering
- Volume-based protection
- Partial stop-loss and partial take-profit systems
- Cooldown logic after profitable trades
- RSI-based extended exits
- Multi-layered trade management modules
The purpose of this free version is to provide a clear, functional introduction to the underlying trend concept without the advanced filters and risk-management features that are part of the complete system.
How to Use It
Apply the script to your preferred asset and timeframe (commonly higher timeframes such as 4H, 8H, 10H, 12H, or 1D). The script will enter long positions when the market is trading above the SMA and exit when the slope of the average begins to point downward. Users may adjust the SMA length to match their preferred level of responsiveness.
Important Notes
This script is for educational and analytical purposes.
Historical results are not guarantees of future performance.
Always practice proper risk management and perform your own testing.
This script does not repaint.
This FREE version is meant as a helpful starting point for those exploring long-term crypto trend strategies. If you find it useful and wish to explore more advanced tools, feel free to reach out for additional information.
ORB w/ FVG Retest and Engulfing v001Opening Range Breakout with FVG Retest and Engulfing Indicator v001
Visual indicator implementing the "First Candle Rule" - shows entry signals for opening range breakouts with Fair Value Gap confirmation.
HOW IT WORKS:
1. Identifies first 5-minute candle at exchange open and marks high/low as key levels
2. Displays opening range lines (green high, red low)
3. Shows Fair Value Gap boxes when price breaks through levels
4. Displays entry labels when FVG retest and engulfing confirmation occur
FEATURES:
✓ Exchange-specific opening times (NYSE, NASDAQ, AMEX, TSX, LSE, ASX, Custom)
✓ Automatic opening range calculation
✓ FVG detection with visual boxes
✓ Entry signal labels at confirmation points
✓ Customizable FVG display options
✓ Toggle entry label visibility
Best used on 1-minute chart. Green FVG boxes = long opportunities, Red FVG boxes = short opportunities. Wait for entry labels to appear before considering trades.
Weekly Vertical Lines (Sunday 6 PM) Weekly BarsSimply a light blue vertical line at the beginning of each week at exactly Sunday at 6 pm.
indicator CalibrationIndicator Calibration - Multi-Indicator Consensus System
Overview
Indicator Calibration is a powerful consensus-based trading indicator that leverages the MyIndicatorLibrary (NormalizedIndicators) to combine multiple trend-following indicators into a single, actionable signal. By averaging the normalized outputs of up to 8 different trend indicators, this tool provides traders with a clear consensus view of market direction, reducing noise and false signals inherent in single-indicator approaches.
The indicator outputs a value between -1 (strong bearish) and +1 (strong bullish), with 0 representing a neutral market state. This creates an intuitive, easy-to-read oscillator that synthesizes multiple analytical perspectives into one coherent signal.
🎯 Core Concept
Consensus Trading Philosophy
Rather than relying on a single indicator that may give conflicting or premature signals, Indicator Calibration employs a democratic voting system where multiple indicators contribute their normalized opinion:
Each enabled indicator votes: +1 (bullish), -1 (bearish), or 0 (neutral)
The votes are averaged to create a consensus signal
Strong consensus (closer to ±1) indicates high agreement among indicators
Weak consensus (closer to 0) indicates market indecision or transition
Key Benefits
Reduced False Signals: Multiple indicators must agree before strong signals appear
Noise Filtering: Individual indicator quirks are smoothed out by averaging
Customizable: Enable/disable indicators and adjust parameters to suit your trading style
Universal Application: Works across all timeframes and asset classes
Clear Visualization: Simple line oscillator with clear bull/bear zones
📊 Included Indicators
The system can utilize up to 8 normalized trend-following indicators from the library:
1. BBPct - Bollinger Bands Percent
Parameters: Length (default: 20), Factor (default: 2)
Type: Stationary oscillator
Strength: Mean reversion and volatility detection
2. NorosTrendRibbonEMA
Parameters: Length (default: 20)
Type: Non-stationary trend follower
Strength: Breakout detection with momentum confirmation
3. RSI - Relative Strength Index
Parameters: Length (default: 9), SMA Length (default: 4)
Type: Stationary momentum oscillator
Strength: Overbought/oversold with smoothing
4. Vidya - Variable Index Dynamic Average
Parameters: Length (default: 30), History Length (default: 9)
Type: Adaptive moving average
Strength: Volatility-adjusted trend following
5. HullSuite
Parameters: Length (default: 55), Multiplier (default: 1)
Type: Fast-response moving average
Strength: Low-lag trend identification
6. TrendContinuation
Parameters: MA Length 1 (default: 50), MA Length 2 (default: 25)
Type: Dual HMA system
Strength: Trend quality assessment with neutral states
7. LeonidasTrendFollowingSystem
Parameters: Short Length (default: 21), Key Length (default: 10)
Type: Dual EMA crossover
Strength: Simple, reliable trend tracking
8. TRAMA - Trend Regularity Adaptive Moving Average
Parameters: Length (default: 50)
Type: Adaptive trend follower
Strength: Adjusts to trend stability
⚙️ Input Parameters
Source Settings
Source: Choose your price input (default: close)
Can be modified to: open, high, low, close, hl2, hlc3, ohlc4, hlcc4
Indicator Selection
Each indicator can be enabled or disabled via checkboxes:
use_bbpct: Enable/disable Bollinger Bands Percent
use_noros: Enable/disable Noro's Trend Ribbon
use_rsi: Enable/disable RSI
use_vidya: Enable/disable VIDYA
use_hull: Enable/disable Hull Suite
use_trendcon: Enable/disable Trend Continuation
use_leonidas: Enable/disable Leonidas System
use_trama: Enable/disable TRAMA
Parameter Customization
Each indicator has its own parameter group where you can fine-tune:
val 1: Primary period/length parameter
val 2: Secondary parameter (multiplier, smoothing, etc.)
📈 Signal Interpretation
Output Line (Orange)
The main output oscillates between -1 and +1:
+1.0 to +0.5: Strong bullish consensus (all or most indicators agree on uptrend)
+0.5 to +0.2: Moderate bullish bias (bullish indicators outnumber bearish)
+0.2 to -0.2: Neutral zone (mixed signals or transition phase)
-0.2 to -0.5: Moderate bearish bias (bearish indicators outnumber bullish)
-0.5 to -1.0: Strong bearish consensus (all or most indicators agree on downtrend)
Reference Lines
Green line (+1): Maximum bullish consensus
Red line (-1): Maximum bearish consensus
Gray line (0): Neutral midpoint
💡 Trading Strategies
Strategy 1: Consensus Threshold Trading
Entry Rules:
- Long: Output crosses above +0.5 (strong bullish consensus)
- Short: Output crosses below -0.5 (strong bearish consensus)
Exit Rules:
- Exit Long: Output crosses below 0 (consensus lost)
- Exit Short: Output crosses above 0 (consensus lost)
Strategy 2: Zero-Line Crossover
Entry Rules:
- Long: Output crosses above 0 (bullish shift in consensus)
- Short: Output crosses below 0 (bearish shift in consensus)
Exit Rules:
- Exit on opposite crossover
Strategy 3: Divergence Trading
Look for divergences between:
- Price making higher highs while indicator makes lower highs (bearish divergence)
- Price making lower lows while indicator makes higher lows (bullish divergence)
Strategy 4: Extreme Reading Reversal
Entry Rules:
- Long: Output reaches -0.8 or below (extreme bearish consensus = potential reversal)
- Short: Output reaches +0.8 or above (extreme bullish consensus = potential reversal)
Use with caution - best combined with other reversal signals
🔧 Optimization Tips
For Trending Markets
Enable trend-following indicators: Noro's, VIDYA, Hull Suite, Leonidas
Use higher threshold levels (±0.6) to filter out minor retracements
Increase indicator periods for smoother signals
For Range-Bound Markets
Enable oscillators: BBPct, RSI
Use zero-line crossovers for entries
Decrease indicator periods for faster response
For Volatile Markets
Enable adaptive indicators: VIDYA, TRAMA
Use wider threshold levels to avoid whipsaws
Consider disabling fast indicators that may overreact
Custom Calibration Process
Start with all indicators enabled using default parameters
Backtest on your chosen timeframe and asset
Identify which indicators produce the most false signals
Disable or adjust parameters for problematic indicators
Test different threshold levels for entry/exit
Validate on out-of-sample data
📊 Visual Guide
Color Scheme
Orange Line: Main consensus output
Green Horizontal: Bullish extreme (+1)
Red Horizontal: Bearish extreme (-1)
Gray Horizontal: Neutral zone (0)
Reading the Chart
Line above 0: Net bullish sentiment
Line below 0: Net bearish sentiment
Line near extremes: Strong consensus
Line fluctuating near 0: Indecision or transition
Smooth line movement: Stable consensus
Erratic line movement: Conflicting signals
⚠️ Important Considerations
Lag Characteristics
This is a lagging indicator by design (consensus takes time to form)
Best used for trend confirmation rather than early entry
May miss the first portion of strong moves
Reduces false entries at the cost of delayed entries
Number of Active Indicators
More indicators = smoother but slower signals
Fewer indicators = faster but potentially noisier signals
Minimum recommended: 4 indicators for reliable consensus
Optimal: 6-8 indicators for balanced performance
Market Conditions
Best: Strong trending markets (up or down)
Good: Volatile markets with clear directional moves
Poor: Choppy, sideways markets with no clear trend
Worst: Low-volume, range-bound conditions
Complementary Tools
Consider combining with:
Volume analysis for confirmation
Support/resistance levels for entry/exit points
Market structure analysis (higher timeframe trends)
Risk management tools (ATR-based stops)
🎓 Example Use Cases
Swing Trading
Timeframe: Daily or 4H
Enable: All 8 indicators with default parameters
Entry: Consensus > +0.5 or < -0.5
Hold: Until consensus reverses to opposite extreme
Day Trading
Timeframe: 15m or 1H
Enable: Faster indicators (RSI, BBPct, Noro's, Hull Suite)
Entry: Zero-line crossover with volume confirmation
Exit: Opposite crossover or profit target
Position Trading
Timeframe: Weekly or Daily
Enable: Slower indicators (TRAMA, VIDYA, Trend Continuation)
Entry: Strong consensus (±0.7) with higher timeframe confirmation
Hold: Months until consensus weakens significantly
🔬 Technical Details
Calculation Method
1. Each enabled indicator calculates its normalized signal (-1, 0, or +1)
2. All active signals are stored in an array
3. Array.avg() computes the arithmetic mean
4. Result is plotted as a continuous line
Output Range
Theoretical: -1.0 to +1.0
Practical: Typically ranges between -0.8 to +0.8
Rare: All indicators perfectly aligned at ±1.0
Performance
Lightweight calculation (simple averaging)
No repainting (all indicators are non-repainting)
Compatible with all Pine Script features
Works on all TradingView plans
📋 License
This code is subject to the Mozilla Public License 2.0 at mozilla.org
🚀 Quick Start Guide
Add to Chart: Apply indicator to your chart
Choose Timeframe: Select appropriate timeframe for your trading style
Enable Indicators: Start with all 8 enabled
Observe Behavior: Watch how consensus forms during different market conditions
Calibrate: Adjust parameters and indicator selection based on observations
Backtest: Validate your settings on historical data
Trade: Apply with proper risk management
🎯 Key Takeaways
✅ Consensus beats individual indicators - Multiple perspectives reduce errors
✅ Customizable to your style - Enable/disable and tune to preference
✅ Simple interpretation - One line tells the story
✅ Works across markets - Stocks, crypto, forex, commodities
✅ Reduces emotional trading - Clear, objective signal generation
✅ Professional-grade - Built on proven technical analysis principles
Indicator Calibration transforms complex multi-indicator analysis into a single, actionable signal. By harnessing the collective wisdom of multiple proven trend-following systems, traders gain a powerful edge in identifying high-probability trade setups while filtering out market noise.
X Trend ProOverview
X Trend Pro is a price-action–based study designed to help users observe potential trend shifts and breakout-related conditions on the chart.
The indicator analyzes market structure, volatility phases, and breakout behavior to highlight moments where momentum may be increasing in a specific direction.
This script does not generate trading signals or provide any financial advice.
Its purpose is strictly analytical and educational.
Core Concept
The indicator combines three main components:
Breakout Detection
Identifies price behavior when exiting consolidation zones or tight ranges.
Trend Alignment
Internal filters verify whether the breakout aligns with the broader directional bias.
Confirmation Logic
Multiple internal conditions must agree before a visual marker appears.
These include momentum shifts, volatility expansion, and structural validation.
All logic is built using TradingView’s internal data only.
Signal Markers
X Trend Pro may display Buy and Sell markers when the required internal conditions are met.
These markers represent technical observations, not trade entries or signals.
Markers appear when:
A breakout structure is detected
Trend filters support the direction
Additional confirmations validate the scenario
They are visual aids for studying price behavior.
Target Levels (Visual Only)
The script includes optional, visually displayed reference levels:
Reference Stop Level
Reference Target 1
Reference Target 2
Reference Target 3
These levels are derived from the breakout structure and can assist users in analyzing potential expansion areas.
They are not recommended targets or investment guidance.
Integrated Version
This version merges two previous confirmation modules into a unified tool in order to:
Reduce chart clutter
Improve clarity and consistency
Provide a cleaner visual presentation
Maintain efficiency across different markets and timeframes
This integration does not turn the script into a trading system.
Inputs
Users can customize various settings, including:
Breakout sensitivity
Trend filter adjustments
Marker visibility
Target-level visibility
Display and visual preferences
All input fields are optional and customizable.
How to Use
X Trend Pro can help users with:
Studying breakout conditions
Exploring trend continuation or reversal contexts
Observing momentum expansion
Enhancing general technical chart analysis
Entering trades when a breakout signal appears, using the indicator's Buy or Sell markers as potential entry points
It should always be combined with broader analysis and not used as a standalone decision tool.
Limitations
Breakouts behave differently across markets and timeframes
No confirmation system is fully accurate
Visual levels are approximations, not predictions
The script relies solely on TradingView’s available price data
Disclaimer
This script does not offer trading advice or guarantee any outcomes.
It is intended solely for technical study and educational purposes.
MTF Checklist DashboardMTF Checklist Dashboard
Overview
The MTF Checklist Dashboard is an advanced multi-timeframe analysis tool that provides traders with a comprehensive visual dashboard to analyze market conditions across six customizable timeframes simultaneously. This indicator combines multiple technical analysis methods, including Opening Range Breakouts (ORB), VWAP, EMAs, and daily price levels, to generate high-probability confluence-based trading signals.
Unlike traditional single-timeframe indicators, this dashboard displays all critical information in one organized table, allowing traders to instantly identify when multiple timeframes align for optimal entry and exit opportunities.
Key Features
Multi-Timeframe Analysis
Analyzes up to 6 timeframes simultaneously (default: 1m, 5m, 15m, 30m, 1h, 4h)
Fully customizable timeframe selection via comma-separated input
Color-coded cells for instant visual recognition (green=bullish, red=bearish, yellow=neutral)
Technical Indicators Tracked
Current and previous candle direction
Opening Range Breakout (ORB) positioning with custom period
VWAP relationship (above/below)
200 EMA positioning
Daily and previous day high/low proximity
EMA crossovers (9 vs 21, both vs 200)
Advanced Signal Filtering System
Confluence scoring: Requires multiple timeframes to align (3-6 timeframes)
Higher timeframe confirmation: Ensures 30m/1h/4h agreement
Volume filter: Confirms signals with above-average volume (1.5x default)
ATR volatility filter: Validates sufficient market movement
Session timing: Restricts signals to optimal trading hours (EST)
Momentum confirmation: Requires recent directional strength
Range positioning: Blocks signals near daily extremes
Candle strength: Validates strong directional candles (60%+ body ratio)
Visual Signals
Optional entry arrows (above/below bars)
Background color highlighting
Organized dashboard with real-time price levels
ORB range, current day, and previous day summary rows
Alert Conditions
JSON-formatted alerts for automated trading integration
Separate alerts for long entry, short entry, long exit, and short exit
Compatible with webhook automation systems
How To Use
Dashboard Interpretation
The dashboard displays a color-coded table with the following columns:
TF: Timeframe being analyzed
C: Current candle (Green=bullish, Red=bearish)
P: Previous candle (Green=bullish, Red=bearish)
ORB: Opening Range Breakout position (A=Above, B=Below, W=Within)
VWAP: Price vs VWAP (A=Above, B=Below)
E200: Price vs 200 EMA (A=Above, B=Below)
D Hi/Lo: Proximity to current day high/low (Hi/Lo/Mid)
PD Hi/Lo: Proximity to previous day high/low (Hi/Lo/Mid)
9 vs 21: EMA 9 vs EMA 21 relationship (A=9 above 21, B=9 below 21)
9&21 v200: Both EMAs vs 200 EMA (>>=both above, <<=both below, <>=mixed)
Signal Generation
Long Entry Signal triggers when:
Minimum number of timeframes show bullish alignment (default: 5 of 6)
Higher timeframes (30m/1h/4h) confirm direction (default: 2 of 3)
Price breaks above ORB high with sufficient distance
Volume exceeds average by specified multiplier
ATR shows adequate volatility
Trade occurs during optimal session hours
Recent momentum is upward
Price not too close to daily high
Strong bullish candle forms
Short Entry Signal uses opposite conditions
Exit Signals trigger when opposing timeframe confluence reaches threshold (default: 3 timeframes)
Recommended Workflow
Select your asset and primary trading timeframe
Observe the dashboard - Look for rows showing mostly green (bullish) or red (bearish)
Wait for alignment - The indicator will show arrows when confluence requirements are met
Check the bottom rows - Review ORB levels and daily ranges for context
Set alerts - Enable TradingView alerts using the built-in alert conditions
Manage risk - Use appropriate position sizing and stop losses based on ORB range or daily ATR
Settings Guide
Basic Settings
Timeframes: Enter comma-separated values (e.g., "1,5,15,30,60,240")
Show Header: Toggle column headers on/off
ORB Minutes: Set opening range period (default: 15 minutes)
Near % for daily highs/lows: Define proximity threshold (default: 0.20%)
Use close for comparisons: Compare using close vs current price
Dashboard Position: Choose from 9 screen positions
Confluence Filters
Minimum Timeframes Aligned: Set required confluence (3-6, default: 5)
Require Higher Timeframe Confirmation: Toggle HTF requirement on/off
Min Higher Timeframes: Specify HTF agreement needed (1-3, default: 2)
Volume Filter
Volume Confirmation: Enable/disable volume filtering
Volume vs Average: Set multiplier threshold (default: 1.5x)
Volume Average Length: Period for volume average (default: 20 bars)
Volatility Filter (ATR)
Volatility Filter: Enable/disable ATR confirmation
ATR Length: Calculation period (default: 14)
Min ATR vs Average: Required ATR level (default: 0.5x = 50%)
ORB Filters
ORB Breakout Distance Required: Toggle distance requirement
Min Breakout % Beyond ORB: Additional breakout threshold (default: 0.10%)
Session Filter
Trade Only During Best Hours: Enable time-based filtering
Session 1: First trading window (default: 0930-1130 EST)
Session 2: Second trading window (default: 1400-1530 EST)
Momentum Filter
Recent Momentum Required: Enable directional momentum check
Lookback Bars: Period for momentum comparison (default: 3 bars)
Daily Range Filter
Block Signals Near Daily Extremes: Prevent entries at extremes
Distance from High/Low %: Minimum distance required (default: 2.0%)
Candle Filter
Strong Directional Candle: Require candle strength
Min Candle Body %: Body-to-range ratio threshold (default: 60%)
Visual Signals
Show Entry Signals: Master toggle for visual signals
Show Arrows: Display entry arrows on chart
Background Color: Enable background highlighting
Best Practices
Start with default settings and adjust based on your trading style and asset volatility
Higher confluence requirements (5-6 timeframes) produce fewer but higher-quality signals
Enable all filters for conservative trading; disable some for more frequent signals
Use the dashboard as confirmation alongside your existing trading strategy
Backtest on your specific instruments before live trading
Consider market conditions—trending vs ranging markets may require different settings
Alerts
This indicator includes four alert conditions with JSON formatting for webhook integration:
Long Entry Signal: Triggers when all long conditions are met
Short Entry Signal: Triggers when all short conditions are met
Long Exit Signal: Triggers when opposing confluence reaches exit threshold
Short Exit Signal: Triggers when opposing confluence reaches exit threshold
Alert messages include ticker symbol, action (buy/sell), price, and quantity for automated trading systems.
Important Notes
This indicator works best on liquid instruments with clear price action
Highly volatile markets may require adjusted ATR and ORB distance settings
Session times are in EST timezone—adjust if trading non-US markets
The ORB calculation requires sufficient price history for the day
Signals are generated in real-time but should be confirmed at candle close
Limitations
Maximum of 6 timeframes can be analyzed due to TradingView's security call limits
ORB calculations may not work correctly on instruments with gaps or irregular sessions
The indicator is most effective during regular market hours when volume and volatility are adequate
Lower timeframes (1m, 5m) may produce more false signals in choppy conditions
License
Mozilla Public License 2.0 (MPL-2.0)
This indicator is licensed under the Mozilla Public License 2.0. You are free to use, modify, and distribute this code under the terms of the MPL-2.0. The full license text is available at mozilla.org
Key license provisions:
You may use this code commercially
You may modify and distribute modified versions
Modified versions must be released under the same license
You must include the original license notice in any distributions
No trademark rights are granted
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, and past performance does not guarantee future results. Trading involves substantial risk of loss. Always:
Practice proper risk management
Test thoroughly on paper/demo accounts before live trading
Use appropriate position sizing
Never risk more than you can afford to lose
Consult with a financial advisor for personalized advice
The creator assumes no liability for trading losses incurred using this indicator.
Version: 2.0
Pine Script Version: v6
Author: © EliasVictor
Previous Day & Week Highs and Lows 1.3Overlay indicator that plots horizontal lines for the previous day’s and previous week’s highs and lows. Lines extend until the next period starts, so you can see these levels throughout the current day or week.
The indicator detects new daily and weekly sessions and draws lines at the previous period’s high and low. Daily levels use green (high) and red (low); weekly levels use blue (high) and magenta (low). You can toggle daily/weekly independently, customize colors, and adjust line width. It works on intraday timeframes and helps identify support/resistance and track breakouts relative to prior periods.
Trade The Matric / MACD-RSI Hybrid Candles**"MACD-RSI Hybrid Candles"** is a **custom TradingView Pine Script (v6)** indicator that **replaces your chart’s default candles** with **dynamically colored, intensity-adjusted candles** based on **combined MACD and RSI signals**.
It’s a **visual fusion** of:
- **MACD Histogram** → Momentum & Trend Strength
- **RSI** → Overbought/Oversold & Trend Confirmation
- **Dynamic Transparency** → Visualizes **signal strength**
The result? **At-a-glance confirmation of bullish/bearish phases** — no need to check subcharts.
---
## OVERVIEW: What This Indicator Does
| Feature | Purpose |
|-------|--------|
| **Replaces price candles** | Entire chart becomes a **live MACD-RSI signal map** |
| **Colors based on dual confirmation** | Only strong when **both** MACD and RSI agree |
| **Transparency = momentum intensity** | Brighter = stronger signal |
| **Labels & Alerts** | Highlights **phase changes** (bullish/bearish shifts) |
---
## USER INPUTS (Customizable)
| Input | Default | Description |
|------|--------|-----------|
| `fastLen` | 12 | MACD Fast EMA |
| `slowLen` | 26 | MACD Slow EMA |
| `signalLen` | 9 | MACD Signal Line |
| `rsiLen` | 14 | RSI Period |
| `showLabels` | true | Show "Bullish Phase" / "Bearish Phase" labels |
> Standard settings — tweak for sensitivity.
---
## CORE CALCULATIONS
### 1. **MACD**
```pinescript
macdLine = ta.ema(close, fastLen) - ta.ema(close, slowLen)
signalLine = ta.ema(macdLine, signalLen)
hist = macdLine - signalLine
```
- `hist > 0` → **Bullish momentum**
- `hist < 0` → **Bearish momentum**
### 2. **RSI**
```pinescript
rsi = ta.rsi(close, rsiLen)
```
- `rsi > 50` → **Bullish bias**
- `rsi < 50` → **Bearish bias**
---
## DUAL CONFIRMATION LOGIC
| Condition | Meaning |
|--------|--------|
| `bullCond = macdBull and rsiBull` | **MACD hist > 0** AND **RSI > 50** → **Confirmed Bullish** |
| `bearCond = macdBear and rsiBear` | **MACD hist < 0** AND **RSI < 50** → **Confirmed Bearish** |
| Otherwise | **Neutral / Conflicted** |
> Only **strong, aligned signals** get bright colors.
---
## DYNAMIC INTENSITY & TRANSPARENCY (Key Feature)
```pinescript
maxHist = ta.highest(math.abs(hist), 100)
intensity = math.abs(hist) / maxHist
transp = 90 - (intensity * 80)
```
### How It Works:
1. Finds **strongest MACD histogram value** in last 100 bars
2. Compares **current histogram** to that peak → `intensity` (0 to 1)
3. **Transparency scales from 90 (faint) → 10 (bright)**
| Intensity | Transparency | Visual Effect |
|---------|--------------|-------------|
| 0% (weak) | 90 | Almost transparent |
| 50% | 50 | Medium |
| 100% | 10 | **Vivid, bold candle** |
> **Brighter candle = stronger momentum relative to recent history**
---
## CANDLE COLOR LOGIC
| Condition | Candle & Wick Color | Transparency |
|--------|---------------------|------------|
| **Confirmed Bullish** (`bullCond`) | **Lime Green** | Dynamic (10–90) |
| **Confirmed Bearish** (`bearCond`) | **Red** | Dynamic (10–90) |
| **Neutral / Conflicted** | **Gray** | Fixed 80 (faint) |
> **Wicks and borders match body** → full candle takeover
---
## VISUAL OUTPUT
### 1. **Custom Candles**
```pinescript
plotcandle(open, high, low, close, color=barColor, wickcolor=barColor, bordercolor=barColor)
```
- **Replaces default chart candles**
- **No original candles visible**
### 2. **Labels (Optional)**
- **"Bullish Phase"** → Green label **below low** when:
- MACD histogram **crosses above zero**
- AND RSI **> 50**
- **"Bearish Phase"** → Red label **above high** when:
- MACD histogram **crosses below zero**
- AND RSI **< 50**
> Up to **500 labels** (`max_labels_count=500`)
---
## ALERTS (Built-In)
| Alert | Trigger |
|------|--------|
| **Bullish MACD-RSI Signal** | `ta.crossover(hist, 0) and rsi > 50` |
| **Bearish MACD-RSI Signal** | `ta.crossunder(hist, 0) and rsi < 50` |
> Message: *"MACD crossed above zero with RSI > 50 — Bullish phase."*
---
## HOW TO READ THE CHART
| Visual | Market State | Interpretation |
|-------|-------------|----------------|
| **Bright Lime Candles** | **Strong Bullish Momentum** | High conviction — trend accelerating |
| **Faint Lime Candles** | **Weak Bullish** | Momentum present but not strong |
| **Bright Red Candles** | **Strong Bearish Momentum** | Downtrend with power |
| **Faint Red Candles** | **Weak Bearish** | Selling pressure, but fading |
| **Gray Candles** | **Conflicted / Choppy** | MACD and RSI disagree — avoid |
| **"Bullish Phase" Label** | **New Uptrend Starting** | Entry signal |
| **"Bearish Phase" Label** | **New Downtrend Starting** | Short signal |
---
## TRADING STRATEGY (Example)
### **Long Entry**
1. Wait for **"Bullish Phase" label**
2. Confirm **bright lime candles** (intensity > 50%)
3. Enter on **pullback to support** or **breakout**
4. **Stop Loss**: Below recent swing low
5. **Take Profit**: Trail with EMA or at resistance
### **Short Entry**
1. Wait for **"Bearish Phase" label**
2. Confirm **bright red candles**
3. Enter on **rally to resistance**
> **Best in trending markets** — avoid choppy ranges.
---
## UNIQUE FEATURES
| Feature | Benefit |
|-------|--------|
| **Dual Confirmation** | Avoids false MACD signals in overbought/oversold zones |
| **Dynamic Transparency** | Shows **relative strength** — not just direction |
| **Full Candle Replacement** | Clean, uncluttered chart |
| **Phase Labels** | Marks **exact trend change points** |
| **Built-in Alerts** | No extra setup needed |
---
## LIMITATIONS
| Issue | Note |
|------|------|
| **Lagging by design** | MACD & RSI are reactive |
| **Repainting?** | **No** — all on close |
| **No volume filter** | Add separately for better accuracy |
| **Labels can clutter** | Toggle off in choppy markets |
| **Intensity uses 100-bar lookback** | May lag in very long trends |
---
## BEST USE CASES
| Market | Timeframe | Style |
|-------|----------|------|
| Stocks, Forex, Crypto | 15m, 1H, 4H | Swing / Trend Following |
| **Avoid**: Sideways markets | Yes | High noise = many gray candles |
---
## COMPARISON TO STANDARD MACD/RSI
| Feature | This Indicator | Standard MACD + RSI |
|-------|----------------|---------------------|
| Visual | **Candles = signal** | Subchart lines |
| Confirmation | Built-in dual logic | Manual |
| Strength | Dynamic brightness | Histogram height |
| Alerts | Phase changes | Need custom |
| Chart Clutter | Low | High (two panels) |
> **This is a "one-panel" momentum dashboard**
---
## SUMMARY: What This Indicator Does
> **"MACD-RSI Hybrid Candles"** turns your **entire price chart into a live momentum heatmap** where:
>
> 1. **Candle color** = **MACD + RSI agreement** (Bullish / Bearish / Neutral)
> 2. **Brightness** = **Momentum strength** vs. recent 100 bars
> 3. **Labels & Alerts** = **Trend phase changes** (zero-line crosses with RSI filter)
>
> It **eliminates subcharts** and gives **instant visual confirmation** of:
> - **Trend direction**
> - **Momentum power**
> - **High-probability entries**
---
**Ideal for traders who want:**
- **No indicator panels**
- **Clear, color-coded signals**
- **Strength at a glance**
- **Automated alerts on trend shifts**
---
**Pro Tip**: Use with **volume** or **support/resistance** for **higher win rate**.
Previous Day & Week Highs and LowsOverlay indicator that plots horizontal lines for the previous day’s and previous week’s highs and lows. Lines extend until the next period starts, so you can see these levels throughout the current day or week.
The indicator detects new daily and weekly sessions and draws lines at the previous period’s high and low. Daily levels use green (high) and red (low); weekly levels use blue (high) and magenta (low). You can toggle daily/weekly independently, customize colors, and adjust line width. It works on intraday timeframes and helps identify support/resistance and track breakouts relative to prior periods.
RED-E Market Structure (Pro V2)RED-E Market Structure - Comprehensive Technical Analysis System
⚠️ EDUCATIONAL TOOL - NO GUARANTEES
This indicator is designed for educational purposes to help traders learn technical analysis concepts. It does not predict future price movements or guarantee profitable trades. Trading involves substantial risk of loss.
═══════════════════════════════════════════════════════════════
📊 WHAT THIS INDICATOR DOES
This indicator combines multiple standard technical analysis methods into a unified system for analyzing market structure, momentum, volume dynamics, and key price levels. Rather than adding 10 separate indicators to your chart, this consolidates related information into one cohesive interface where each component informs the others.
═══════════════════════════════════════════════════════════════
🔧 TECHNICAL METHODOLOGY - HOW IT WORKS
1️⃣ MOMENTUM CANDLE COLORING (6 Levels)
Calculation Method:
- Compares close vs EMA(9) and EMA(21)
- Applies RSI(14) thresholds for strength
- Color codes: Royal Blue (strongest bull) → Cyan → Green → Yellow → Orange → Red (strongest bear) → White (neutral)
Formula Logic:
IF close > EMA(9) AND close > EMA(21) AND close > open:
RSI > 70 = Level 3 Bull (Royal Blue)
RSI 60-70 = Level 2 Bull (Cyan)
RSI < 60 = Level 1 Bull (Green)
Purpose: Visualizes momentum strength by combining trend (EMAs), candle direction, and overbought/oversold conditions (RSI).
2️⃣ ENTRY SIGNAL LABELS
Calculation Method:
- Uses EMA alignment: EMA(9) > EMA(21) > EMA(50) for bullish
- Filters RSI to avoid extremes
- Requires confirming candle
BUY Signal Logic:
IF close > EMA(9) AND RSI between 40-70 AND EMA(9) > EMA(21) > EMA(50) AND close > open
THEN: Display "BUY" label
Purpose: Identifies potential entries when multiple trend and momentum conditions align. This is standard multi-confirmation technical analysis.
3️⃣ VOLUME DELTA PERCENTAGE
Calculation Method:
FOR each bar in lookback period (default 20):
IF close > open: add volume to bullish_volume
IF close < open: add volume to bearish_volume
bullish_percent = (bullish_volume / total_volume) × 100
Purpose: Quantifies buying vs selling pressure as percentages. Shows if volume supports the current trend.
Display: "🟢65.3% | 🔴34.7%" in dashboard
4️⃣ PRE-MARKET HIGH/LOW TRACKING
Calculation Method:
1. Detect pre-market session (4:00-9:30 AM ET)
2. Track highest high during pre-market
3. Track lowest low during pre-market
4. Draw horizontal lines when market opens
Purpose: Pre-market levels often act as support/resistance during regular hours. This automates their tracking and visualization.
5️⃣ OPENING RANGE BREAKOUT (ORB)
Calculation Method:
1. User sets start time (default 9:30 AM) and duration (default 15 min)
2. Track highest high and lowest low during this period
3. Draw box and extend lines
Purpose: The opening range breakout is a well-documented day trading strategy. First X minutes establish a range, and breakouts often signal directional moves.
6️⃣ SUPPORT/RESISTANCE TRENDLINES
Calculation Method:
1. Identify pivot highs: ta.pivothigh(high, 5, 5)
2. Identify pivot lows: ta.pivotlow(low, 5, 5)
3. Connect last two pivot highs = Resistance (red)
4. Connect last two pivot lows = Support (blue)
Purpose: Automatically connects significant pivot points. Based on standard pivot analysis where price respects these levels.
7️⃣ GAMMA ZONE DETECTION
Calculation Method:
1. Calculate 30-min range: (high - low)
2. Calculate 10-period SMA of range
3. Calculate ratio: current_range / average_range
IF ratio < (1.0 / sensitivity): HIGH GAMMA = Low volatility
IF ratio > (1.0 × sensitivity): LOW GAMMA = High volatility
Purpose: Approximates options gamma effects. High gamma = dealers hedge more = suppressed volatility. Low gamma = less hedging = potential explosive moves.
8️⃣ TAKE PROFIT LEVELS (5 Levels + ATR Stop Loss)
Calculation Method:
LONG: TP = entry_price × (1 + percentage/100)
SHORT: TP = entry_price × (1 - percentage/100)
Stop Loss (ATR): entry ± (ATR(14) × multiplier)
Purpose: Automatically calculates percentage-based targets and volatility-adjusted stops. ATR adapts stop to current market conditions.
9️⃣ THE STRAT PATTERN RECOGNITION
Calculation Method:
Compare current bar to previous:
- Strat 3 (outside bar): high > high AND low < low
- Strat 1 (inside bar): high ≤ high AND low ≥ low
- Strat 2 (directional): All others
Purpose: The Strat is a price action system categorizing bars by relationship to previous bars. This automates classification.
🔟 FIBONACCI RETRACEMENTS
Calculation Method:
1. Find highest high in lookback (default 30 bars)
2. Find lowest low in lookback
3. Calculate: 0.0, 0.382, 0.5, 0.618, 1.0 levels
Purpose: Standard Fibonacci tool. These ratios are commonly used support/resistance in technical analysis.
1️⃣1️⃣ MULTI-TIMEFRAME ANALYSIS
Calculation Method:
FOR each timeframe (default 15m, 1H, 4H):
Check if close > EMA(9) on that timeframe
IF true: "BULLISH", else: "BEARISH"
Purpose: Shows trend alignment across timeframes using Pine's request.security(). Common confirmation technique.
═══════════════════════════════════════════════════════════════
💡 WHY THESE COMPONENTS WORK TOGETHER
This indicator's originality lies in its unified system approach:
1. TREND IDENTIFICATION (EMAs, MTF) - Shows direction
2. MOMENTUM MEASUREMENT (RSI, candles) - Shows strength
3. VOLUME CONFIRMATION (Volume Delta) - Shows conviction
4. KEY LEVELS (PM, ORB, Fib, S/R) - Shows decision points
5. RISK MANAGEMENT (TP levels, ATR stops) - Shows exits
VALUE OF INTEGRATION:
Rather than 10 separate indicators creating chart clutter, this consolidates related concepts where each component provides different information that, when viewed together, gives a more complete market picture.
Example Integration:
- Entry signal appears (EMA + RSI aligned)
- Volume Delta confirms (more buying than selling)
- MTF shows higher timeframes agree
- TP levels auto-calculate with good risk:reward
- Support trendline nearby provides stop reference
═══════════════════════════════════════════════════════════════
⚙️ CUSTOMIZATION OPTIONS
All features independently toggleable:
- EMAs: Adjust lengths (9, 21, 50, 200), colors, widths
- RSI: Change overbought/oversold levels (70/30)
- Volume Delta: Adjust lookback period (20)
- ORB: Set custom start time, duration, timezone
- Gamma: Adjust sensitivity (1-10)
- TP Levels: Customize all 5 percentages
- Dashboard: Reposition, resize, recolor
═══════════════════════════════════════════════════════════════
📖 HOW TO USE
Step 1 - Assess Context:
- Check MTF Dashboard for alignment
- Check EMA indicator for trend
- Check Gamma Zone for volatility expectation
Step 2 - Identify Setups:
- Wait for BUY/SELL signal
- Check Volume Delta matches direction
- Verify RSI not extreme (30-70)
- Look for support/resistance confluence
Step 3 - Evaluate Risk:Reward:
- Review TP3 R:R ratio (target 2:1+)
- Check stop loss placement
- Ensure risk acceptable
Step 4 - Monitor:
- Track P&L % in real-time
- Use TP levels as potential exits
- Adjust stops based on S/R
═══════════════════════════════════════════════════════════════
⚠️ LIMITATIONS & REALISTIC EXPECTATIONS
This indicator does NOT:
- Predict future price movements
- Guarantee profitable trades
- Work in all market conditions
- Replace proper education and practice
This indicator CAN:
- Display standard technical indicators in organized way
- Automate common calculations
- Visualize multiple analysis methods simultaneously
- Help learn how different indicators relate
Key Understanding:
All technical indicators use historical data. They help identify patterns and conditions but cannot predict the future. Successful trading requires risk management, psychology, and experience—not just indicators.
═══════════════════════════════════════════════════════════════
📚 EDUCATIONAL CONCEPTS TAUGHT
- How EMAs show trend direction and alignment
- How RSI identifies momentum extremes
- How volume confirms or diverges from price
- How support/resistance levels form
- How multiple timeframes provide context
- How ATR adapts stops to volatility
- How risk:reward ratios work
═══════════════════════════════════════════════════════════════
📊 BEST SUITED FOR
- Scalping: 1m-5m charts with quick entries/exits
- Day Trading: 15m-1H focusing on ORB and PM levels
- Swing Trading: 4H-D following major trends
═══════════════════════════════════════════════════════════════
⚠️ RISK DISCLAIMER
Trading involves substantial risk of loss. This educational tool:
- Does NOT guarantee profits
- Cannot predict future performance
- Requires proper risk management
- Should be practiced on demo accounts first
Always use stop losses, risk only 1-2% per trade, and consult licensed financial professionals before trading with real capital.
═══════════════════════════════════════════════════════════════
Educational tool for learning technical analysis. Not financial advice. Past results do not indicate future performance.
Liquidity Hunt Detector PDH/PDL [SmartFoxy]Liquidity Hunt Detector PDH/PDL
The Liquidity Hunt Detector (LHD) is designed to identify and anticipate liquidity grabs around the:
• Previous Day High (PDH);
• Previous Day Low (PDL).
It builds dynamic trigger levels that highlight where price may deliver its first impulse before reaching PDH/PDL.
The Liquidity Hunt Detector (LHD) identifies high-probability reversals and continuations around the Previous Day High (PDH) and Previous Day Low (PDL).
It dynamically tracks the market’s move from the session open, builds trigger levels toward PDH/PDL, and highlights where liquidity is most likely to be taken.
When price taps a Trigger Up/Down level, the indicator generates Long/Short signals with optional confirmation from the integrated MA Ribbon , ensuring only high-quality, trend-aligned setups are shown.
When price interacts with these trigger levels, the indicator generates signals that help traders evaluate the market structure and prepare for potential entries.
Designed for Forex, Crypto, Indices, Stocks , the LHD provides a clean and intuitive structure for navigating intraday liquidity grabs, session impulses, and directional bias shifts.
The indicator is built from three fully independent modules, each of which can be used separately:
Liquidity Hunt Detector (LHD)
Moving Average Ribbon (MA Ribbon)
Previous Day High/Low (PDH/PDL) levels
Liquidity Hunt Detector (LHD) Logic
1.1 Display LHD – Enables or disables the entire Liquidity Hunt Detector module.
1.2 Max Days – Number of previous days used to generate PDH/PDL levels.
1.3 GMT – Corrects all time-based calculations based on your broker/session timezone.
1.4 Calculation Method (Point A Logic)
1) Static Method
Point A = the session’s opening price.
Trigger lines are calculated strictly as a percentage of the move A → PDH or A → PDL.
Intraday fluctuations do not affect the calculation.
2) Dynamic Method
Point A updates using the current intraday high/low:
• If price forms a new low, Point A updates for the PDH-side calculations;
• If price forms a new high, Point A updates for the PDL-side calculations.
This produces trigger lines that reflect the true live market structure rather than a fixed opening reference.
1.5 Main OTT Time (Operational Trading Time)
This is the core time window during which the indicator:
• updates Point A;
• calculates trigger levels;
• validates PDH/PDL;
• draws AB / AC movement structure;
• generates entry signals.
Outside this window, no new signals or recalculations occur.
⚠ If your broker’s first candle opens at a non-standard time (e.g., 00:08), adjust the OTT start time to avoid visual artifacts.
1.6 Show Line A – Displays the opening price level (Point A) until the end of the OTT window.
Style, width, and color are customizable.
1.7 Show Line AB — Price Movement Toward PDH.
Static Method – Single line: A → PDH
Dynamic Method – Two segments:
• A → Daily Low;
• Daily Low → PDH.
If PDH is swept, the “B” label switches to Sweep PDH.
1.8 Show Line AC – Price Movement Toward PDL.
Static Method – Single line: A → PDL
Dynamic Method – Two segments:
• A → Daily High;
• Daily High → PDL.
If PDL is swept, the “C” label switches to Sweep PDL.
1.9 Show Trigger Up Line (LONG Trigger) – Defines the level where the Long signal can activate.
By default, at 50% of the A → PDH movement.
When price touches this line, the script may:
• show a LONG label;
• trigger an alert.
All visual parameters are customizable.
1.10 Show Trigger Up Line (LONG Trigger)
Same logic as Trigger Up, but based on A → PDL.
1.11 Show Main Zone (OTT Zone) – Visual background highlighting of the active OTT window.
Helps instantly see:
• whether signals are allowed;
• how much time remains in the trading window?
Color and opacity are adjustable.
1.12 Upper Zone (toward PDH) – Tracks the protected area towards PDH.
Updates dynamically with new highs.
1.13 Lower Zone (toward PDL) – Tracks the zone toward PDL.
Updates dynamically with new lows.
1.14 Show Labels – Displays reference labels (A, B, C, Trigger Up, Trigger Down).
Label size is customizable.
1.15 Add Price – Adds the exact price value to each label.
1.16 Change Color after Sweep PDH or PDL – After PDH or PDL is broken, the indicator automatically recolors lines and labels to visually confirm the sweep.
1.17 Show SHORT Label – Displays the SHORT entry label when all conditions for a bearish signal are met.
Style parameters are set in the previous blocks.
1.18 Alert on Bearish Trigger Down – Triggers an alert when the price activates the bearish trigger.
1.19 Show LONG Label – Displays the LONG entry label when bullish conditions are met.
Style parameters are set in the previous blocks.
1.20 Alert on Bullish Trigger Up – Triggers an alert when the price activates the bullish trigger.
1.21 Alerts Active Time – Defines a custom time interval during which trigger signals are allowed.
Even if price touches a trigger level,
❗ signals will NOT be generated outside this allowed time.
Useful for:
• avoiding Asian session signals;
• reducing noise in low-liquidity periods.
1.22 Labels and Alerts Display Mode
Two settings modes:
• On Trigger (Instant Mode) – Signals appear immediately when price touches the trigger.
• On Candle Close (Conservative Mode) – Signals form only after the candle closes beyond the trigger level.
A more conservative option.
1.23 Delay LHD Signal Until MA Ribbon Confirms Direction – If enabled, LHD signals will NOT fire until the MA Ribbon produces a matching directional signal.
Logic:
• Price hits the trigger → LHD conditions become “armed”;
• The indicator waits;
• When MA Ribbon confirms trend direction (Long/Short);
• The final LHD label + alert is generated.
This ensures LHD trades are filtered and aligned with MA-based trend confirmation.
⚠ Works only when the MA Ribbon module is active.
TTM (Trade The Matrix) Squeeze EMA Cloud
Another way to simply visualize the TTM squeeze but this time with a simpe 2 EMA cloud representation. Fully customizable - change EMA, color, & squeeze to your liking
The **"TTM Squeeze EMA Cloud"** is a **custom TradingView Pine Script (v6)** indicator that **combines the classic TTM Squeeze volatility logic** with a **colored EMA cloud** to visually represent **market state**:
- **Consolidation (Squeeze ON)**
- **Bullish Breakout (Squeeze OFF + Uptrend)**
- **Bearish Breakout (Squeeze OFF + Downtrend)**
It overlays directly on the price chart (`overlay=true`) and uses **color-coded cloud shading** between two EMAs to make the current regime **immediately visible**.
---
## CORE COMPONENTS
| Component | Purpose |
|--------|--------|
| **TTM Squeeze** | Detects low-volatility consolidation (Squeeze ON) vs. volatility expansion (Squeeze OFF) |
| **EMA Cloud** | Fast EMA (8) vs. Slow EMA (21) → determines trend direction |
| **Cloud Fill** | Colors the area between EMAs based on **Squeeze + Trend** |
| **Visual Cues** | Tiny yellow dots below bars when Squeeze is ON |
---
## USER INPUTS (Customizable)
| Input | Default | Description |
|------|--------|-----------|
| `length` | 20 | Period for Bollinger Bands & SMA basis |
| `mult` | 2.0 | Bollinger Band multiplier |
| `lengthKC` | 20 | Period for ATR in Keltner Channels |
| `multKC` | 1.5 | Keltner Channel multiplier |
| `fastLength` | 8 | Fast EMA length |
| `slowLength` | 21 | Slow EMA length |
> These are standard settings — tweak for sensitivity.
---
## CALCULATIONS (Step-by-Step)
### 1. **Bollinger Bands (BB)**
```pinescript
ma = ta.sma(close, length)
stdDev = ta.stdev(close, length)
upperBB = ma + stdDev * mult
lowerBB = ma - stdDev * mult
```
- Measures **statistical volatility**
### 2. **Keltner Channels (KC) – ATR-based**
```pinescript
atrValue = ta.atr(lengthKC)
upperKC = ma + atrValue * multKC
lowerKC = ma - atrValue * multKC
```
- Measures **true range volatility** (more adaptive than stdev)
### 3. **TTM Squeeze Condition**
```pinescript
squeezeOn = (lowerBB > lowerKC) and (upperBB < upperKC)
```
- **True** when **BB is completely inside KC** → **Low volatility = Consolidation**
- **False** → **Volatility expanding = Breakout phase**
---
### 4. **EMA Cloud (Trend Filter)**
```pinescript
fastEma = ta.ema(close, fastLength) // 8-period
slowEma = ta.ema(close, slowLength) // 21-period
```
- Fast EMA reacts quickly, Slow EMA is smoother
- **Trend = fastEma > slowEma → Bullish**, otherwise Bearish
---
### 5. **Cloud Coloring Logic**
| Condition | Cloud Color | Meaning |
|--------|------------|--------|
| `squeezeOn == true` | **Bright Green-Yellow** (`#00ff59`) | **Squeeze ON** → Consolidation |
| `squeezeOn == false` AND `fastEma > slowEma` | **Cyan** (`#00fff7`) | **Squeeze OFF + Bullish** |
| `squeezeOn == false` AND `fastEma < slowEma` | **Red** (`#ff0000`) | **Squeeze OFF + Bearish** |
> The **cloud fills the space between fast and slow EMA** with the appropriate color.
---
## PLOTS & VISUALS
| Element | Description |
|-------|-----------|
| `fill(p1, p2, color=cloudColor)` | **Main EMA Cloud** – colored by regime |
| `plot(fastEma)` | Thin **blue line** (Fast EMA) |
| `plot(slowEma)` | Thin **orange line** (Slow EMA) |
| `plotshape(squeezeOn)` | **Tiny yellow circles below bar** when Squeeze is ON |
> Clean, minimal overlay — no histogram or candles
---
## HOW TO READ THE INDICATOR
| Visual | Market State | Interpretation |
|-------|-------------|----------------|
| **Yellow-Green Cloud** + **Yellow Dots** | **Squeeze ON** | Price is consolidating. **Prepare for breakout** |
| **Cyan Cloud** | **Squeeze OFF + Uptrend** | **Bullish momentum building** → Potential long entry |
| **Red Cloud** | **Squeeze OFF + Downtrend** | **Bearish momentum building** → Potential short entry |
| **Cloud narrowing** | EMAs converging | Trend weakening or reversal possible |
| **Cloud widening** | EMAs diverging | Trend strengthening |
---
## TRADING STRATEGY (Example)
### **Long Setup**
1. Wait for **Yellow-Green Cloud + Yellow Dots** → Squeeze ON
2. Watch for **cloud to turn Cyan**
3. Enter **long** when:
- Price breaks above recent high
- Volume increases (optional)
4. **Stop Loss**: Below slow EMA or recent swing low
5. **Take Profit**: Next resistance or trailing stop
### **Short Setup**
1. Wait for **Yellow-Green Cloud**
2. Enter **short** when cloud turns **Red**
3. Confirm with price breaking lower
> **Best used as a regime filter** — combine with price action, support/resistance, or volume.
---
## KEY ADVANTAGES
| Feature | Benefit |
|-------|--------|
| **One-glance regime detection** | No need to interpret multiple indicators |
| **Cloud = Trend + Volatility** | Combines momentum and consolidation |
| **Clean visuals** | Doesn’t clutter the chart |
| **Adaptive to volatility** | KC uses ATR → better in trending markets |
| **Early breakout signal** | Squeeze OFF often precedes big moves |
---
## LIMITATIONS
| Issue | Note |
|------|------|
| **Lagging EMAs** | 8/21 are reactive, not predictive |
| **No momentum strength** | Unlike histogram versions, no intensity measure |
| **False breakouts** | Squeeze OFF doesn’t guarantee follow-through |
| **Repainting?** | No — all calculations are bar-close based |
| **No alerts built-in** | You’d need to add `alertcondition()` manually |
---
## BEST USE CASES
| Market | Timeframe | Pair With |
|-------|----------|----------|
| Stocks, Crypto, Forex | 1H, 4H, Daily | Volume, RSI, Support/Resistance |
| Swing Trading | Yes | Breakout strategies |
| Scalping | No | Too slow |
---
## COMPARISON TO OTHER TTM VERSIONS
| Feature | This Version | Typical TTM Squeeze |
|-------|-------------|-------------------|
| Visual Output | EMA Cloud | Histogram + Dots |
| Trend Filter | EMA Crossover | Momentum Oscillator |
| Colors | 3-state cloud | 4–5 candle colors |
| Clutter | Low | Medium–High |
| Focus | Regime + Trend | Momentum + Squeeze |
> This version is **cleaner and more trend-focused**.
---
## SUMMARY: What This Indicator Does
> **"TTM Squeeze EMA Cloud"** is a **visual market regime detector** that:
> 1. **Identifies low-volatility consolidation** (Squeeze ON → Yellow-Green cloud)
> 2. **Signals volatility expansion** (Squeeze OFF)
> 3. **Colors the EMA cloud** to show **bullish or bearish breakout direction**
> 4. **Overlays clean trend lines** (8 & 21 EMA) for context
---
**Perfect for traders who want a simple, colorful way to:**
- Spot **consolidations before breakouts**
- Confirm **trend direction** during volatility expansion
- Avoid trading **choppy, low-momentum ranges**
---
**Pro Tip**: Add this to your chart and **watch for cloud color changes** — they often precede **high-probability breakout trades**.
Weekly Institutional Fib PivotsThese Fibonacci levels act as institutional order zones, meaning price reacts more powerfully when it originates from them. Use them as a weekly roadmap to anticipate where price is likely to travel each day, including during overnight or automated trading sessions.
How to trade them:
• Take the previous weeks levels and use those levels to trade the current week.
• Enter and exit around the major fib levels
• Use the 50% midpoint between levels as your first take-profit or stop-loss zone
These levels provide structure, targets, and precision for both intraday and multi-session trading.
Strategy:
Place your order at one level, and exit before it reaches the next level or at the 50% area of the zone
NEW PRICE ACTION ALGO (v2)Updated price action indicator for day trading QQQ,SPY & IWM on the 5-6min chart















