IB + MAG7 + EMA + ATR [midsu]IB + MAG7 + EMA + ATR - Multi-Method Analysis Dashboard
═════════════════════════════════════════════════════════════
OVERVIEW
Combines four proven methodologies: Initial Balance (auction theory), Magnificent 7 sector momentum, dual EMA trend analysis, and ATR trailing stops. Visual reference tool for confluence-based analysis.
═════════════════════════════════════════════════════════════
1. INITIAL BALANCE (IB) - AUCTION MARKET THEORY
Concept: First hour of trading (default 9:30-10:30 AM EST) establishes institutional value area. Based on J. Peter Steidlmayer's Market Profile theory.
Calculations:
• ib_range = ib_high - ib_low
• ib_range_pct = (ib_range / ib_low) × 100
• Extensions: ib_high/low ± (ib_range × percentage / 100)
• Default extensions: 25%, 50%, 100%
Range Day Detection (10:00-11:00 AM confirmation):
• tolerance = ib_range × 5%
• high > (ib_high + tolerance) → Trend Day (Bullish)
• low < (ib_low - tolerance) → Trend Day (Bearish)
• Otherwise → Range Day
Analysis Thresholds:
• <0.3% = Narrow IB (trend likely)
• >1.0% = Wide IB (range likely)
• 0.3-1.0% = Moderate
Why it works: First hour captures institutional price acceptance. Price either respects this area (80%) or breaks out and trends (20%).
═════════════════════════════════════════════════════════════
2. MAG7 DASHBOARD - WEIGHTED SECTOR MOMENTUM
Stocks: NVDA, AAPL, GOOGL, MSFT, AMZN, META, TSLA (~30% of S&P 500, >50% of Nasdaq 100)
Calculation Method:
1. Individual % change: pct_change = ((current - previous) / previous) × 100
2. Noise filter: If |pct_change| < 0.1% → signal = 0, else signal = pct_change
3. Weighted aggregation: weighted_bias = Σ(signal × weight) / Σ(weights)
4. Bias classification:
• >+0.70% = Strong Bull
• +0.30 to +0.70% = Mild Bull
• -0.30 to +0.30% = Neutral
• -0.70 to -0.30% = Mild Bear
• <-0.70% = Strong Bear
Current Weights (12/7/2024):
NVDA 20.03%, AAPL 19.36%, GOOGL 17.64%, MSFT 16.75%, AMZN 11.39%, META 7.65%, TSLA 7.19%
Update monthly from any magnificent7 sites
Price & OI Gauge:
• price_rising = close > SMA(close, 14)
• oi_proxy = volume × (high - low)
• oi_rising = oi_proxy > SMA(oi_proxy, 14) × sensitivity
Four states:
1. Price UP + OI UP = STRONG LONG
2. Price UP + OI DOWN = CAUTION LONG
3. Price DOWN + OI UP = STRONG SHORT
4. Price DOWN + OI DOWN = CAUTION SHORT
Why it works: Market cap weighting matches index calculations. Individual stocks lead index futures by seconds/minutes. When 6-7 stocks align, probability of sustained index movement increases.
═════════════════════════════════════════════════════════════
3. DUAL EMA - EXPONENTIAL TREND ANALYSIS
Formula: EMA = (Close × multiplier) + (EMA × (1 - multiplier))
Where: multiplier = 2 / (period + 1)
Defaults:
• EMA 1: 21-period (intermediate trend, ~1 month)
• EMA 2: 50-period (longer-term trend, ~2.5 months)
Color Logic:
• close ≥ EMA → green (bullish)
• close < EMA → red (bearish)
Why it works: Exponential weighting reduces lag vs SMA. EMAs act as dynamic support/resistance. 21/50 periods capture intermediate and long-term trends.
═════════════════════════════════════════════════════════════
4. ATR TRAILING STOP - VOLATILITY-ADAPTIVE REFERENCE
Calculation:
• xATR = ta.atr(10)
• nLoss = key_value × xATR (default key_value = 1.0)
• If trending up: stop = max(previous_stop, close - nLoss)
• If trending down: stop = min(previous_stop, close + nLoss)
Color: Green (bullish) | Red (bearish) | Blue (transitional)
Why it works: ATR adapts to volatility. Wide stops in volatile markets (fewer whipsaws), tight stops in calm markets (earlier signals).
═════════════════════════════════════════════════════════════
5. SMART MONEY CONCEPTS (OPTIONAL)
Premium/Discount Zones:
Divides swing high/low range into Premium (top 5%), Equilibrium (middle 5%), Discount (bottom 5%)
Fair Value Gaps:
• Bullish FVG: current_low > high
• Bearish FVG: current_high < low
Why it works: Identifies institutional imbalances and value zones.
═════════════════════════════════════════════════════════════
CONFLUENCE ANALYSIS
Example High-Probability Setup:
✓ IB breakout (price > IB high)
✓ MAG7: 6/7 green, +0.6% bias
✓ Price above both EMAs
✓ ATR trailing stop green
→ All methods confirm bullish
Example Divergence Warning:
✓ IB breakout bullish
✗ MAG7: 5/7 red, -0.4% bias
✗ Price below EMAs
✗ ATR stop red
→ False breakout risk
═════════════════════════════════════════════════════════════
KEY SETTINGS
IB: Time (start/duration), extensions (%), confirmation period, tolerance %
MAG7: Movement filter (0.1%), weights (user-adjustable), text size
EMA: Periods (21, 50), bar coloring toggle
ATR: Period (10), sensitivity (1.0)
SMC: Toggle zones/gaps, colors
═════════════════════════════════════════════════════════════
LIMITATIONS
IB: Best on liquid instruments (ES, NQ, SPY, QQQ), intraday timeframes, clear market opens
MAG7: Requires monthly weight updates, most relevant for tech/Nasdaq
EMA: Lagging indicator, can whipsaw in sideways markets
ATR: Best in trending markets, needs volatility
General: Visual reference only, requires user interpretation, no automation
═════════════════════════════════════════════════════════════
RECOMMENDED USAGE
Day Traders: 3/5/15min charts, IB breakouts + MAG7 confirmation + EMA entries
Swing Traders: 1H/Daily charts, MAG7 bias + IB levels + EMA trend
Educational: Study institutional behavior, sector correlation, market structure
═════════════════════════════════════════════════════════════
ALERTS
• IB Range Day Detection
• IB Bullish/Bearish Breakout
• Price & OI Strong Long/Short
═════════════════════════════════════════════════════════════
IMPORTANT NOTES
⚠️ Visual reference only - NO automated signals
⚠️ MAG7 weights need monthly updates
⚠️ No repainting - calculations on closed bars
⚠️ Best during US market hours (9:30 AM - 4:00 PM ET)
⚠️ Use confluence of multiple components for best results
═════════════════════════════════════════════════════════════
UNIQUE VALUE
Unlike single-method indicators, this combines:
• Auction theory (40+ years institutional use)
• Market cap momentum (matches real index composition)
• Exponential trend analysis (standard technical tool)
• Volatility adaptation (dynamic vs fixed levels)
Provides three layers: value areas (IB), sector conviction (MAG7), trend direction (EMAs/ATR). Make informed decisions based on confluence of proven methodologies, not single indicators or black-box algorithms.
═════════════════════════════════════════════════════════════
NEXT UPDATE:
BUY & SELL signals (coming soon)
Requirements: Pine Script v6, real-time data, works on all plans, all timeframes, all chart types
EMAS
IB + MAG7 + EMA [midsu]# IB + MAG7 + EMA Indicator - Technical Documentation
## Overview
This indicator combines three distinct analytical methodologies: Market Profile's Initial Balance concept for institutional-level price acceptance zones, weighted sector momentum tracking based on market capitalization, and exponential moving average trend analysis. It provides visual reference data without generating automated trading signals.
---
## 1. Initial Balance (IB) - Auction Market Theory Implementation
### Underlying Concept
Initial Balance is derived from Market Profile theory, developed by J. Peter Steidlmayer and the Chicago Board of Trade. The concept recognizes that the first hour of trading establishes a value area that represents price acceptance by the majority of market participants.
### Calculation Methodology
**IB Formation (Default: 9:30-10:30 AM EST)**
```
ib_high = highest(high) during IB period
ib_low = lowest(low) during IB period
ib_range = ib_high - ib_low
ib_midpoint = (ib_high + ib_low) / 2
```
**Extension Levels (Fibonacci-style projections)**
```
extension_up = ib_high + (ib_range × extension_percentage / 100)
extension_down = ib_low - (ib_range × extension_percentage / 100)
```
Default extensions: 25%, 50%, 100% above and below IB
**Range Day vs Trend Day Classification**
The indicator uses a tolerance-based detection system:
```
tolerance = ib_range × (tolerance_percentage / 100) // Default: 5%
During confirmation period (default 10:00-11:00 AM):
- If high > (ib_high + tolerance): Classified as "Trend Day (Bullish)"
- If low < (ib_low - tolerance): Classified as "Trend Day (Bearish)"
- Otherwise: Classified as "Range Day"
```
**Statistical Analysis**
The indicator calculates IB range as a percentage of price:
```
ib_range_pct = (ib_range / ib_low) × 100
```
Classification thresholds:
- < 0.3% = Narrow IB (trend day likely)
- > 1.0% = Wide IB (range day likely)
- 0.3% - 1.0% = Moderate (wait for confirmation)
### Why This Works
- **First Hour Significance**: Institutional traders, market makers, and informed participants are most active during the opening hour, establishing the "true" value area
- **Value Area Theory**: Price tends to either remain within the accepted value (80% of the time) or break out and continue trending (20% of the time)
- **Extensions as Targets**: When breakouts occur, extensions based on IB range provide probabilistic targets based on volatility expansion
---
## 2. MAG7 Dashboard - Weighted Sector Momentum Analysis
### Underlying Concept
The Magnificent 7 stocks (NVDA, AAPL, GOOGL, MSFT, AMZN, META, TSLA) represent approximately 30% of the S&P 500 and over 50% of the Nasdaq 100 by market capitalization. Their collective movement is a leading indicator for index direction due to their outsized influence on index calculations.
### Calculation Methodology
**Step 1: Individual Stock % Change**
For each stock on the current timeframe:
```
pct_change = ((current_close - previous_close) / previous_close) × 100
```
**Step 2: Movement Filter (Signal Extraction)**
```
If pct_change > threshold (default 0.1%):
signal = pct_change // Bullish contribution
Else if pct_change < -threshold:
signal = pct_change // Bearish contribution
Else:
signal = 0 // Neutral (noise filtered out)
```
**Step 3: Weighted Aggregation**
Each stock is weighted by its current market cap percentage:
```
weights =
weighted_bias = Σ(signal × weight ) / Σ(weights)
```
This produces a single value ranging typically from -2% to +2%, representing net sector momentum.
**Step 4: Bias Strength Classification**
```
If weighted_bias > 0.70%: "Strong Bull"
Else if weighted_bias > 0.30%: "Mild Bull"
Else if weighted_bias < -0.70%: "Strong Bear"
Else if weighted_bias < -0.30%: "Mild Bear"
Else: "Neutral"
```
**Step 5: Consensus Counting**
```
bull_count = number of stocks where pct_change > threshold
bear_count = number of stocks where pct_change < -threshold
neutral_count = 7 - bull_count - bear_count
```
### Why This Works
- **Market Cap Weighting**: Matches how indexes are actually calculated, making this a proxy for index movement
- **Leading vs Lagging**: Individual stock movements often lead index futures by seconds to minutes due to arbitrage lag
- **Noise Filtering**: The threshold removes insignificant moves, focusing only on meaningful momentum
- **Consensus Strength**: When 6-7 stocks align directionally, probability of sustained index movement increases significantly
### Price & Open Interest Gauge Sub-Component
**Calculation Logic:**
```
price_ma = SMA(close, lookback_period) // Default: 14 bars
price_rising = close > price_ma
oi_proxy = volume × (high - low) // Volatility-weighted volume
oi_ma = SMA(oi_proxy, lookback_period)
oi_rising = oi_proxy > (oi_ma × sensitivity) // Default sensitivity: 1.0
```
**Four-State Classification:**
1. Price UP + OI UP = Strong Long (new money entering long positions)
2. Price UP + OI DOWN = Caution Long (short covering, not new longs)
3. Price DOWN + OI UP = Strong Short (new money entering short positions)
4. Price DOWN + OI DOWN = Caution Short (long liquidation, not new shorts)
**Why This Works:**
- Based on commodity futures analysis principles
- Rising OI with price confirms directional conviction
- Falling OI with price suggests temporary/weak move
- Helps distinguish sustainable moves from noise
---
## 3. Dual EMA System - Exponential Trend Analysis
### Underlying Concept
Exponential Moving Averages weight recent price action more heavily than older data, making them more responsive to trend changes than Simple Moving Averages while still filtering noise.
### Calculation Methodology
**EMA Formula:**
```
EMA(today) = (Close(today) × multiplier) + (EMA(yesterday) × (1 - multiplier))
Where: multiplier = 2 / (period + 1)
```
**Default Settings:**
- EMA 1 (Fast): 21-period
- EMA 2 (Slow): 50-period
**Color Logic:**
```
For each EMA:
If close >= EMA: color = green (bullish regime)
If close < EMA: color = red (bearish regime)
```
**Bar Coloring (Optional):**
Uses EMA 1 as the reference:
```
If close >= EMA1: bar_color = lime
If close < EMA1: bar_color = red
```
### Why This Works
- **21-Period**: Represents approximately 1 month of trading (21 trading days), capturing intermediate-term trend
- **50-Period**: Represents approximately 2.5 months of trading, capturing longer-term trend
- **Dynamic Support/Resistance**: EMAs act as dynamic support in uptrends and resistance in downtrends
- **Crossovers**: When fast EMA crosses slow EMA, it signals potential trend change (though this indicator doesn't generate signals, users can observe these manually)
- **Exponential Weighting**: Recent price action matters more, making EMAs more responsive to emerging trends than SMAs
### Mathematical Advantage of EMAs
The exponential smoothing reduces lag while maintaining smoothness:
- SMA gives equal weight to all periods (lag = period / 2)
- EMA gives 86% weight to most recent 2/3 of the period (lag ≈ (period - 1) / 2)
- Result: 21 EMA responds almost as fast as 14 SMA but with smoother line
---
## Integration & Synergy
### How Components Work Together
**1. IB Provides Context**
- Establishes key price levels (support/resistance)
- Identifies day type (range vs trend)
- Sets volatility expectations via IB range
**2. MAG7 Provides Directional Bias**
- Confirms or contradicts IB breakout attempts
- Shows sector-level conviction
- Indicates index futures direction
**3. EMAs Provide Trend Confirmation**
- Shows if current move aligns with intermediate/longer-term trend
- Provides dynamic entry/exit reference points
- Confirms or contradicts IB/MAG7 signals
**Example of Confluence:**
- IB breaks out bullishly (price > IB high)
- MAG7 shows 6/7 stocks green with +0.6% weighted bias
- Price is above both EMAs (EMA 1 > EMA 2, both green)
- This confluence suggests high-probability bullish continuation
**Example of Divergence (Warning Sign):**
- IB breaks out bullishly
- MAG7 shows 5/7 stocks red with -0.4% weighted bias
- Price below EMA 1, attempting to cross EMA 2
- This divergence suggests false breakout risk
---
## Limitations & Considerations
### Initial Balance Limitations
- Most effective on liquid instruments (ES, NQ, SPY, QQQ)
- Requires clear market open (less effective on 24-hour markets like crypto)
- IB may be less meaningful on very low or very high volatility days
- Works best on intraday timeframes (1min - 60min)
### MAG7 Limitations
- Weights become outdated as market caps change (requires monthly manual updates)
- Most relevant for tech-focused traders (Nasdaq, QQQ)
- Less relevant if trading unrelated sectors (energy, financials)
- Relies on correlation between individual stocks and indexes remaining stable
### EMA Limitations
- Lagging indicator by nature (responds to price, doesn't predict)
- Can produce whipsaws in sideways/choppy markets
- Fixed periods may not suit all market conditions
- Crossovers can be delayed in fast-moving markets
### General Limitations
- **Visual Reference Only**: Does not generate automated entry/exit signals
- **Requires User Interpretation**: Confluence of indicators requires trader judgment
- **Historical Data**: All calculations based on closed bars (no predictive element)
- **Market Hours Dependent**: IB designed for standard US market hours
---
## Unique Value Proposition
### What Makes This Different
**1. Multi-Method Confluence**
Most indicators use a single methodology. This combines three proven, independent methods:
- Auction theory (IB)
- Market cap-weighted momentum (MAG7)
- Exponential trend analysis (EMAs)
**2. Institutional-Level Data**
- IB used by professional floor traders for decades
- MAG7 weights match actual index composition
- Not arbitrary or curve-fitted parameters
**3. Adaptable Without Optimization**
- Works on any timeframe without parameter changes
- IB adapts to current day's volatility
- MAG7 reflects current market structure
- EMAs scale with timeframe
---
## Recommended Usage
### For Day Traders
- Use on 3min, 5min or 15min charts
- Focus on IB breakouts confirmed by MAG7
- Use EMAs for entry timing within IB-defined moves
### For Swing Traders
- Use on 30min, 1H or Daily charts
- Focus on MAG7 weighted bias for overall direction
- Use IB as key support/resistance zones
- Use EMAs for trend confirmation
### For Educational Purposes
- Study how IB forms and how market respects/rejects these levels
- Observe correlation between MAG7 bias and index movement
- Learn dynamic support/resistance concepts via EMAs
- Understand market structure and institutional behavior
---
**Summary**: This indicator provides three layers of market analysis—institutional price acceptance zones (IB), sector momentum (MAG7), and trend direction (EMAs)—allowing traders to make informed decisions based on confluence of multiple proven methodologies rather than relying on a single indicator.
MultiTimeFrame SMA/EMA & clouds [PACHI]This will allow you to plot multiple moving averages and clouds for the current timeframe and also up to 5 from different timeframes
Trend Fusion Indicator🎯 Trend Fusion Indicator🎯
Professional trading indicator combining EMA momentum with Supertrend volatility for high-probability signals.
📊KEY FEATURES:
• 9 EMA & Supertrend (10,3) crossover signals
• Visual trend direction with colored fills
• Buy/Sell arrows at crossover points
• Real-time trend tracking
• Clean, professional interface
⚡SIGNAL LOGIC:
✅ BUY: When EMA crosses ABOVE Supertrend
✅ SELL: When EMA crosses BELOW Supertrend
🎨VISUAL INDICATORS:
• Green Zone/Fill: Bullish trend (EMA > Supertrend)
• Red Zone/Fill: Bearish trend (EMA < Supertrend)
• Triangle Arrows: Entry signals
• Background Colors: Trend confirmation
⚙️CUSTOMIZABLE SETTINGS:
• EMA Length (Default: 9)
• Supertrend ATR Length (Default: 10)
• Supertrend Factor (Default: 3.0)
🔔ALERTS INCLUDED:
• Buy Alert: EMA crosses above Supertrend
• Sell Alert: EMA crosses below Supertrend
📈 BEST FOR:
• Swing Trading
• Day Trading
• Trend Following
• Market Reversals
⚠️ DISCLAIMER: This indicator is for educational purposes only.
Trading involves risk. Not financial advice. Use at your own risk.
NeoChartLabs EMAsOne of our Favorite Indicators - the NeoChart Labs 20/50/100/200 EMAs
20 = Blue and very thin
50 = Orange and thin
100 = Purple and thick
200 = White and very thick
When 20 Crosses above and below any other expect action.
50 crossing 200 on the 1D is the death cross.
Shout out to drsweets for the original script
EMAs [TrendRider.io]Dynamic Trend Indicator
A dual EMA indicator with dynamic color coding to show trend direction and strength.
Features:
Two customizable EMAs (default: 12 and 21) with fill between them
Color changes based on trend:
Green : Bullish trend (small EMA above big EMA)
Red : Bearish trend (small EMA below big EMA)
Gray : Neutral/consolidation
Multi-timeframe support
Customizable colors
Usage:
Watch for color changes to identify trend shifts and gauge trend strength through the fill area.
DeM Trend Bias Strength with Alerts (RB Trading)This tool is built to help users understand trend direction, exhaustion, and momentum shifts on the daily timeframe. It highlights when a market is transitioning from weakness to strength or strength to weakness by displaying color-coded bias bars. The script does not forecast future outcomes and should be used as an analytical aid.
Intended Usage
• Timeframe: Daily
• Instruments: Works on most FX pairs and liquid markets
• Style: Trend and bias evaluation
• Purpose: Identify early signs of momentum recovery within ongoing trends
How It Works
Bias Rotation Engine
The script measures directional pressure and smooths it into a bar display that changes color as conditions shift.
• Green bars show rising strength conditions
• Red bars show declining strength conditions
• Transitional periods often appear near market turning points and consolidation zones
This helps users visually separate healthy directional trends from weakening phases.
Trend Alignment Filter
The bars are designed to be interpreted alongside moving averages or broader trend tools. When the bars turn higher while price respects an upward structure, it often supports continuation themes. When the bars weaken during downward phases, it highlights potential areas where the trend retains control.
Identifying Exhaustion and Recovery
Repeated cycles in the bar display can highlight areas where:
• Downside pressure is fading before an upswing
• Upside pressure is fading before a pullback
• Consolidation is forming before a breakout
These transitions tend to align with moments shown in the image where the arrows mark bias shifts occurring before price acceleration.
How to Use It
• Wait for a clear color rotation before making any decisions
• Confirm with the daily trend and price structure
• Avoid using the tool by itself for entries
• Combine with support and resistance, moving averages, and candle structure
• Not intended for scalping or intraday signals
Why Daily Chart Works Best
The daily timeframe smooths out noise and gives the strength bars enough data to reveal genuine trend transitions. Higher timeframes also reduce false rotations that are common in lower timeframes.
Notes
The script does not predict or guarantee price movement. It processes historical inputs to help the user understand directional conditions. Each trader should apply their own risk plan and confirm levels before acting on any idea.
Multi EMA (10)Allows you to add and configure up to 10 EMAs to your chart with a single indicator. Enjoy.
AMS Adaptive Supertrend Lite – ORB + VWAP 1.0AMS Adaptive Supertrend Lite – ORB + VWAP
This indicator focuses on providing a clean read of trend, structure, and opening range context without unnecessary complexity. It’s designed for traders who prefer straightforward visual tools that support their own decision-making process.
Consider this a small multi-tool for your basic ORB needs.
Included:
-Supertrend
A simple ATR-based Supertrend for directional context.
You can edit colors, line width, ATR settings, etc.
No signals or automation, just a clear trend reference.
-EMAs
Optional fast and slow EMAs for structural context.
Useful for gauging short-term momentum and slope.
-VWAP
A standard session VWAP.
You can style it however you like (solid, dashed, colored) in the Style tab.
-Opening Range (ORB)
Configurable ORB band including:
ORB duration (in minutes)
Optional RTH-only logic
Adjustable session window
Choice of timeframe used to build the ORB
Automatic hiding on higher timeframes (optional)
The ORB high/low are built on the selected lower timeframe and then displayed on the active chart.
-HTF Bias Shading (Optional)
A simple background tint based on EMA structure on a higher timeframe.
Meant to give gentle context, not trading signals.
Alerts
Two alerts are included:
Supertrend flipping bullish
Supertrend flipping bearish
These are notifications, not calls to action.
Intended Use
This is a visual tool for traders who want clear structure and context on their chart.
It does not provide entries, exits, strategies, or automated logic.
Disclaimer
This script is for educational and informational purposes only.
It is not financial advice, and no performance is guaranteed.
Always test tools for yourself and use proper risk management.
Multi-TF EMA(20) — JcsatasiyaOverview
This indicator plots 7 multi-timeframe EMA(20) lines on any chart and displays a clean dynamic label for each EMA showing:
Full timeframe name (Yearly, Half-Yearly, Quarterly, Monthly, Weekly, etc.)
EMA(20) value formatted with exactly 2 decimals
A label that is positioned automatically to the right of the latest candle
White text for maximum readability
Color-coded lines for each timeframe
All EMA lines extend horizontally and update in real-time when new candles form on the selected timeframes.
✅ Key Features
• 7 Custom Timeframes
Choose any timeframe for each EMA (Yearly, 6-Month, 3-Month, Monthly, Weekly, Daily, 4H, etc.)
• Horizontal EMA Levels
Each EMA is drawn as a fixed horizontal level, making structure and bias easier to analyze.
• Dynamic Label Placement
Labels automatically position:
Horizontally: Left, Middle, or Right of the right-side future area
Vertically: Above, Middle, or Below the EMA line
• Clean Readable Labels
Always white text
Shows: EMA (20) – Timeframe Price: 123.45
Price always displays with 2 decimals
Label style auto-adjusts based on position
• Color Customization
Each timeframe EMA has its own color picker.
• All EMA Thickness Unified
Set one line thickness for all EMA lines.
• Reliable Multi-TF Accuracy
Uses request.security() with proper lookahead handling.
⭐ Why This Indicator Is Useful
This tool makes it extremely easy to visualize where your chart sits relative to major multi-timeframe EMA levels.
You immediately see:
Higher-timeframe trend direction
Bias zones
Key support/resistance EMA levels
Long-term vs short-term trend alignment
Price interaction with institutional EMAs
Perfect for day traders, swing traders, and position traders.
📘 HOW TO USE
1️⃣ Add to Chart
After adding the indicator, open the Settings → Inputs panel.
2️⃣ Choose the 7 Timeframes
For each slot, select your desired timeframe (example setup):
Yearly
Half Yearly
Quarterly
Monthly
Weekly
Daily
4H
3️⃣ Customize Colors
Pick a different color for each EMA for clarity.
4️⃣ Choose Label Placement
Use the label position controls:
Vertical: Upper / Middle / Below
Horizontal: Left / Middle / Right (relative to right-side future space)
5️⃣ Adjust Line Thickness (Optional)
A single slider controls the thickness of all 7 EMAs.
📝 NOTES
The indicator places labels 2–50 bars into the future depending on chosen position.
Labels are always visible and readable due to white text.
EMA values always show exactly two decimals, even for crypto, indices, and forex.
Works on any market and any chart timeframe.
AMS Adaptive Supertrend - v1.0The ATMOS MARKET SUITE (AMS) Adaptive Supertrend is a volatility-responsive trend framework designed to keep structural context clear across changing market conditions. It expands on the traditional Supertrend by incorporating ATR percentiles, regime detection, and optional higher-timeframe and VWAP overlays.
Instead of issuing buy/sell signals, this tool helps traders understand trend direction, structural stability, volatility environment, and potential transitions. Its adaptive architecture allows the Supertrend to remain steady during chop while responding more dynamically during strong expansions.
Best Uses
• Identifying clear structural trend during intraday trading
• Filtering for aligned conditions before trend continuation setups
• Understanding volatility regimes (compressed vs expanding)
• Monitoring HTF structural influence on lower-timeframe trades
• Using as a standalone trend backbone or as part of the full ATMOS MARKET SUITE suite
This indicator provides context, not predictions. It is fully functional on its own and also integrates naturally with the Momentum Engine, Consensus Strip, and Cx3 ORB system.
BT MA BandsThe BT MA Bands indicator is built around a central moving average (MA) with upper and lower bands derived from it, similar to Bollinger Bands but focused on exponential moving averages (EMAs) for smoother responsiveness.
The core idea is to visualize trend strength, volatility squeezes, and potential reversal points through dynamic bands that expand/contract based on price deviation. It includes trend-based color fills, entry/exit signals, an optional ATR (Average True Range) overlay for additional volatility bands, and flexible MA source options to adapt to different market conditions.
Inputs
MA Type and Length: Choose from EMA (default), SMA, WMA, or HMA. Default length is 20 periods, but adjustable (e.g., 10-50) for short-term scalping or longer swings.
Deviation Multiplier: Sets the band width as a multiple of the standard deviation from the MA (default: 2.0). Higher values create wider bands for trending markets; lower for ranging ones.
Source Data: Select price source for the MA calculation—close (default), open, high, low, (high+low)/2, or weighted (hlc3/hlcc4) to emphasize different aspects of price action.
ATR Toggle and Multiplier: Optional ATR-based outer bands (default off). When enabled, multiplier (default: 1.5) adds volatility sensitivity, helping filter noise in choppy conditions.
Signal Sensitivity: Threshold for generating buy/sell alerts (e.g., 0-100 scale; default 50) based on band crossovers or squeezes.
Style Options: Enable/disable fills, signals, and colors for personalization.
Visual Elements
Central MA Line: A solid line (e.g., blue by default) representing the chosen moving average, acting as the baseline.
Upper and Lower Bands: Dotted or dashed lines (green/red defaults) that flank the MA, widening during volatility and narrowing in consolidations.
Color-Changing Fills: The area between bands fills with color shifts—bullish (green) when price is above the MA and bands are expanding, bearish (red) when below and contracting, or neutral (gray) during flat trends.
Entry Signals: Arrow plots (up green for bullish, down red for bearish) appear on the chart when price crosses the bands or a squeeze resolves, with optional text labels like "Buy" or "Sell."
ATR Overlay (if enabled): Additional dashed outer bands in a lighter color (e.g., purple) to highlight extreme volatility zones.
How to Use It in Trading
Trend Identification: Use the central MA and band fills to gauge direction—price above the MA with green fills signals an uptrend (favor longs); below with red indicates downtrends (favor shorts). Narrow bands suggest a "squeeze" setup, often preceding big moves.
Entry Points:
Bullish Entries: Enter long when price breaks above the upper band on a bullish signal arrow, especially after a squeeze. Confirm with volume spike or RSI >50 on timeframes like 5m-1h for quick trades.
Bearish Entries: Enter short on a break below the lower band with a bearish arrow, post-squeeze. Ideal on 4h+ frames for swings, paired with MACD crossovers.
Exits and Risk Management: Exit longs when price hits the lower band or a bearish signal fires; vice versa for shorts. Set stops just beyond the opposite band (e.g., below lower for longs). Target 1.5-3x risk-reward, using ATR bands for trailing stops in volatile markets.
General Tips: Best in trending environments; avoid during news events causing false breakouts. Backtest parameters on historical data, and combine with other indicators like RSI or volume for confluence. It's great for spotting reversals but not infallible—always apply position sizing and monitor for band "walks" (price hugging one band) as continuation signals.
BT LigmaThe BT Ligma indicator combines momentum-based signals with volatility filters to identify potential trend reversals and high-probability entry points.
It uses a set of Exponential Moving Averages (EMAs) – typically a fast EMA (e.g., 9-period) crossing over a slower one (e.g., 21-period) – to generate baseline buy/sell signals. These are enhanced by a proprietary "Ligma Spread" filter, which measures the dynamic spread between short-term price action and a volatility envelope (similar to Bollinger Bands but customized with ATR multipliers). This filter helps weed out false signals in choppy markets by requiring a minimum spread threshold before confirming a trade alert.
BT Ligma allows a user to select up to 3 EMAs, the MA calculation method, and signal individual candles that cross EMA 1 & 2, or all 3 bands in the same bar.
Version 1.4, includes refined alert logic, including audio/visual notifications and optional trailing stops based on EMA alignments.
To use it effectively for trade entries:
Long (Buy) Entries: Look for a bullish EMA crossover (fast EMA above slow) combined with a positive Ligma Spread expansion (indicating increasing momentum). Enter when the signal fires on a close above the recent swing high, ideally on a timeframe like 15m or 1h for scalping/day trading. Pair this with volume confirmation or RSI above 50 to avoid overbought traps.
Short (Sell) Entries: Wait for a bearish EMA crossover (fast below slow) with a contracting or negative Ligma Spread (signaling potential downside volatility). Enter on a close below the recent swing low, using higher timeframes (e.g., 4h) for swing trades to capture larger moves.
General Tips: Always apply risk management – set stops below/above the slow EMA, target 2-3x risk-reward ratios, and avoid trading during low-liquidity periods. Backtest on historical data to tweak parameters, and combine with fundamentals like news events for better context.
Renko ScalperWhat it is-
A lightweight Renko Scalper that combines Renko brick direction with an internal EMA trend filter and MACD confirmation to signal high-probability short-term entries. EMAs are used internally (hidden from the chart) so the visual remains uncluttered.
Signals-
Buy arrow: Renko direction turns bullish AND EMA trend up AND MACD histogram positive.
Sell arrow: Renko direction turns bearish AND EMA trend down AND MACD histogram negative.
Consecutive same-direction signals are suppressed (only one arrow per direction until opposite signal).
Visuals-
Buy / Sell arrows (large) above/below bars.
Chart background tints green/red after the respective signal for easy glance recognition.
Inputs:-
Renko Box Size (points)
EMA Fast / EMA Slow
MACD fast/slow/signal lengths
How to use-
Add to chart
Use smaller Renko box sizes for scalping, larger for swing-like entries.
Confirm signal with price action and volume—this indicator is a signal generator, not a full automated system.
Use alerts (built in) to receive Buy / Sell arrow notifications.
Alerts-
Buy Arrow — buySignal
Sell Arrow — sellSignal
Buy Background / Sell Background — background-color state alerts
Recommended settings-
Timeframes: 1m–15m for scalping, 5m for balanced intraday.
Symbols: liquid futures/currency pairs/major crypto.
Disclaimer
This script is educational and not financial advice. Backtest and forward test on a demo account before live use. Past performance is not indicative of future results. Use proper risk management.
EMA/SMA 350 & 111 (Day Settings) by JayEMA/SMA 350 & 111 (Day Settings) by J
Übergeordneter Trendwechsel erkennen auf High Time Frames
All-in-One (PHT)All-in-One (PHT) — Modular Multi-Tool Market Analyzer (Pine Script v6)
All-in-One (PHT) is a complete, modular market-analysis toolkit designed for traders who want clean, reliable, and professional-grade charting - in a single indicator.
Built using Pine Script® v6 and structured with reusable PHT-Libraries (EMA Band, Bollinger Band, Fractal, Session), this indicator delivers clarity, precision, and consistent performance across all markets and timeframes.
Unlike traditional indicators that mix logic and visuals, AIO (PHT) uses a fully modular architecture. All calculations come from dedicated libraries, and this main script focuses purely on visual output and clean plotting.
This ensures:
Stable plot references
Zero repainting in all included modules
High performance even with complex overlays
Easy extensibility for future upgrades
🔥 Included Modules
1. EMA Band (PHT Library)
A triple-EMA band designed for trend clarity and structure.
Provides:
EMA of High
EMA of Close
EMA of Low
Band fill visualization
Ideal for identifying trend strength, momentum pockets, and mean-reversion zones.
2. Bollinger Band Suite
A complete Bollinger framework with:
SMA / EMA / WMA midline options
Dual standard-deviation envelopes
Multi-zone band fills (upper, middle, lower)
User-controlled visibility for each layer
Perfect for volatility detection, squeeze identification, and precision envelope trading.
3. Fractal Engine (High/Low Pivots)
Fast, reliable fractal detection using user-defined left/right periods.
Features:
Pivot Highs & Pivot Lows
Multiple marker sizes (Tiny → Large)
Zero-lag plotting with proper offset handling
Useful for swing structure, breakout confirmation, and automated level marking.
4. Market Session Tracker
A powerful session-mapping module that visually highlights market sessions with:
Dynamic session boxes
High & Low markers
Persistent historical sessions
Auto-managed labels, lines, and live updates
Timezone-aware session boundaries (supports IANA zones)
Designed for identifying daily ranges, session liquidity, volatility pockets, and market timing.
🧠 Why This Indicator Is Different
Most “all-in-one” tools mix plotting, logic, and calculations in a single heavy script, causing lag, reference instability, and repainting issues.
All-in-One (PHT) solves this by using a Pine v6 library architecture:
Each component is computed in its own library
The main script handles only visuals
No hidden code, no repainting tricks
Maximum clarity and maintainability
This design mirrors professional software architecture:
clear separation of logic, visuals, and user interface.
🎯 Ideal For
Trend traders
Scalpers & intraday traders
Swing and positional traders
Volatility analysts
Structure-based price action traders
Anyone who wants multiple high-quality tools in one clean indicator
Whether you analyze markets manually or build algorithmic systems, AIO (PHT) provides a solid foundation.
⚙️ Features at a Glance
Fully modular Pine v6 design
Complete EMA band engine
Advanced Bollinger band system (multi-deviation, multi-fill)
Configurable fractal high/low markers
Smart session boxing with history
Clean visuals and transparent settings
No repainting
Fully customizable colors & visibility
Optimized for performance
💡 How to Use
Choose the modules you want to display (EMA, BB, Fractals, Sessions).
Adjust lengths, deviations, or fractal periods as per your trading style.
Use session boxes to understand volatility timing.
Combine bands + fractals for advanced structure-based decisions.
The indicator is designed to overlay on price for maximum clarity.
🚀 Future Upgrades
The PHT framework supports smooth future expansion. Planned modules include:
ATR/volatility engines
Trend switches
Supertrend/Donchian plugins
Volume profile extensions
Updates will remain backward compatible across all modules.
⭐ Summary
All-in-One (PHT) is not just another overlay — it’s a complete multi-tool trading framework built using professional engineering practices in Pine Script v6.
If you want cleaner charts, smarter signals, and a high-performance modular system, this indicator gives you everything in one reliable package.
Magic Swing Suite: Trend, Pullback & Risk DashboardMagic Swing Suite: Trend, Pullback & Risk Dashboard
This indicator is a complete Swing Trading System designed to identify high-probability trend continuation setups. It combines classic trend-following principles with a unique "3-Bar Retest" logic and provides a real-time Strategy Dashboard to help you manage positions without needing a separate strategy script.
How it Works:
The system looks for a "Confluence" of factors before generating a signal. It scores every bar out of 140 points based on the following criteria:
Trend Alignment: Price must be above EMA 10, and EMA 10 must be above EMA 20.
Momentum (RSI): RSI must be in the "Bullish Control Zone" (60-80) and above its SMA.
Volume: Volume must be significantly higher than the average (1.5x by default).
The "Magic" Retest: The script checks the last 2-5 bars to see if the price has pulled back to "kiss" the EMA 10. This ensures we are buying a dip in a trend, not chasing a top.
Breakout Confirmation: Checks for Darvas Box breakouts and price position relative to Pivot R1.
Features:
🎯 Virtual Strategy Dashboard: A table that mimics a strategy tester. It tracks Entry, Stop Loss (Trailing), Target 1, and Target 2 in real-time.
📊 Confluence Scorecard: A detailed table showing exactly why a signal was (or wasn't) generated (Trend, Retest, RSI, Volume, etc.).
🛡️ Risk Management: automatically calculates a Trailing Stop (EMA 10) and fixed Risk:Reward targets based on recent highs.
📉 Multi-Layered Overlays: Includes Auto-Pivots (Traditional, Fib, Woodie, etc.) and Darvas Boxes to identify support/resistance levels.
How to Use:
Wait for a Signal:
"FULL BUY SIGNAL" (Green): All conditions are met, including a recent retest of the EMA. This is the highest probability setup.
"BUY - NO RETEST" (Orange): Trend and momentum are strong, but price hasn't pulled back recently. Use caution, as this may be a breakout trade.
Monitor the Dashboard: Once a trade is active, the dashboard will change to "IN POSITION." Follow the "Action" row.
If the trend weakens, the Trailing Stop (EMA 10) will move up to protect profits.
Targets:
T1: Previous Swing High (or 5% if no high found).
T2: 1:1.6 Risk/Reward extension.
Settings:
Volume Spike Factor: Adjust how much volume is needed to confirm a move. Default is 1.2.
Retest Tolerance: Adjust how close the price needs to get to the EMA 10 to count as a "retest."
Dashboard Toggles: You can hide the tables if you prefer a clean chart.
Pivot Timeframes: customizable lookback for S/R levels.
FAQ:
Does this repaint?
No. All signals trigger only on confirmed bars.
Can I use this intraday?
Yes. Works great from 5m to 1D.
Are exits manual or automated?
The indicator tracks SL, T1, and T2, and marks them on the chart.
Does retest affect the buy signal?
Retest is optional. The buy logic does not require it, but adds weight to the score.
Disclaimer: This tool is for educational purposes only. The "Strategy Dashboard" is a simulation based on script calculations and does not execute real trades. Always manage your own risk.
APEX TREND: Macro & Hard Stop SystemAPEX TREND: Macro & Hard Stop System
The APEX TREND System is a composite trend-following strategy engineered to solve the "Whipsaw" problem inherent in standard breakout systems. It orchestrates four distinct technical theories—Macro Trend Filtering, Volatility Squeeze, Momentum, and Volatility Stop-Loss—into a single, hierarchical decision-making engine.
This script is not merely a collection of indicators; it is a rules-based trading system designed for Swing Traders (Day/Week timeframes) who aim to capture major trend extensions while strictly managing downside risk through a "Hard Stop" mechanism.
🧠 Underlying Concepts & Originality
Many trend indicators fail because they treat all price movements equally. The APEX TREND differentiates itself by applying an "Institutional Filter" logic derived from classic Dow Theory and Modern Volatility Analysis.
1. The Macro Hard Stop (The 200 EMA Logic)
Origin: Based on the institutional mandate that “Nothing good happens below the 200-day moving average.”
Function: Unlike standard super trends that flip constantly in sideways markets, this system integrates a 200-period Exponential Moving Average (EMA) as a non-negotiable "Hard Stop."
Synergy: This acts as the primary gatekeeper. Even if the volatility engine signals a "Buy," the system suppresses the signal if the price is below the Macro Baseline, effectively filtering out counter-trend traps.
2. The Volatility Engine (Squeeze Theory)
Origin: Derived from John Carter’s TTM Squeeze concept.
Function: The script identifies periods where Bollinger Bands (Standard Deviation) contract inside Keltner Channels (ATR). This indicates a period of potential energy build-up.
Synergy: The system only triggers an entry when this energy is released (Breakout) AND coincides with Linear Regression Momentum, ensuring the breakout is genuine.
3. Anti-Chop Filter (ADX Integration)
Origin: J. Welles Wilder’s Directional Movement Theory.
Function: A common failure point for trend systems is low-volatility chop. This script utilizes the Average Directional Index (ADX).
Synergy: If the ADX is below the threshold (Default: 20), the market is deemed "Choppy." The script visually represents this by painting candles GRAY, signaling a "No-Trade Zone" regardless of price action.
4. The "Run Trend" Stop Loss (Factor 4.0 ATR)
Origin: Adapted from the Turtle Trading rules regarding volatility-based stops.
Function: Standard Trailing Stops (usually Factor 3.0) are too tight for crypto or volatile equities on daily timeframes.
Optimization: This system employs a wider ATR Multiplier of 4.0. This allows the asset to fluctuate naturally within a trend without triggering a premature exit, maximizing the "Run Trend" potential.
🛠 How It Works (The Algorithm)
The script processes data in a specific order to generate a signal:
Check Macro Trend: Is Price > EMA 200? (If No, Longs are disabled).
Check Volatility: Is ADX > 20? (If No, all signals are disabled).
Check Volume: Is Current Volume > 1.2x Average Volume? (Confirmation of institutional participation).
Trigger: Has a Volatility Breakout occurred in the direction of the Macro Trend?
Execution: If ALL above are true -> Generate Signal.
🎯 Strategy Guide
1. Long Setup (Bullish)
Signal: Look for the Green "APEX LONG" Label.
Condition: The price must be ABOVE the White Line (EMA 200).
Execution: Enter at the close of the signal candle.
Stop Loss: Initial stop at the Green Trailing Line.
2. Short Setup (Bearish)
Signal: Look for the Red "APEX SHORT" Label.
Condition: The price must be BELOW the White Line (EMA 200).
Execution: Enter at the close of the signal candle.
Stop Loss: Initial stop at the Red Trailing Line.
3. Exit Rules (Crucial)
This system employs a Dual-Exit Mechanism:
Soft Exit (Profit Taking): Close the position if the price crosses the Trailing Stop Line (Green/Red line). This locks in profits during a trend reversal.
Hard Exit (Emergency): Close the position IMMEDIATELY if the price crosses the White EMA 200 Line against your trade. This prevents holding a position during a major market regime change.
⚙️ Settings
Momentum Engine: Adjust Bollinger Band/Keltner Channel lengths to tune breakout sensitivity.
Apex Filters: Toggle the EMA 200 or ADX filters on/off to adapt to different asset classes.
Risk Management: The ATR Multiplier (Default 4.0) controls the width of the trailing stop. Lower values = Tighter stops (Scalping); Higher values = Looser stops (Swing).
Disclaimer: This script is designed for trend-following on higher timeframes (4H, 1D, 1W). Please backtest on your specific asset before live trading.
Multi EMA (up to 6) - JamilThis indicator plots six customizable Exponential Moving Averages (EMA 1 to EMA 6) designed to help traders quickly identify market direction, trend strength, and dynamic support/resistance levels.
🔹 Key Features
Plots six EMAs simultaneously for multi-timeframe trend clarity
Helps detect trend reversals, pullbacks, and continuation setups
Ideal for scalping, intraday, swing trading, and funded challenges
Works on all markets (Gold, Forex, Crypto, Indices)
Customizable lengths and colors
Clean and lightweight — doesn’t affect chart performance
🔹 How to Use
When all EMAs are aligned and fanning out → Strong Trend
EMA compression → Low volatility / possible breakout setup
Price above all EMAs → Bullish zone
Price below all EMAs → Bearish zone
Perfect for traders who want a simple yet powerful trend-reading tool.
OG INDICATORTrade Legacy All-in-One Institutional Indicator
Unlock institutional-grade trading with this comprehensive Pine Script indicator. Seamlessly integrates multiple EMAs, SMAs, VWAPs, and ORB displays into one effortless panel—mimicking pro standards for quick, intuitive analysis.
Per Trade Legacy (Jackie): "This is the only indicator you need for profitability." Pair it with your strategy for powerful confluence, boosting edge and profits.
Simple setup, zero clutter. Premium access via invite-only.
Daily 12/21 EMA OverlayDaily 12/21 EMA Overlay
This indicator projects the daily 12 and 21 EMAs onto any timeframe as a soft, semi-transparent band. It is designed to give a constant higher-timeframe bias and dynamic support/resistance reference while you execute your systems on lower timeframes (4H, 1H, 15m, etc.).
The script uses request.security() to calculate the 12/21 EMAs on the daily chart only, then overlays those values on your current timeframe without recalculating them locally. This means the band always represents the true daily 12/21 EMAs, regardless of the chart you are viewing.
Key Features:
Fixed daily 12/21 EMA band, visible on all timeframes
Faded lines and fill to keep focus on your active intraday tools
Simple, minimal inputs (fast length, slow length, colors, band visibility)
Ideal as a higher-timeframe “backdrop” for systems built around EMA trend, rejections, or liquidity sweeps
How to Use
Add the indicator on any symbol and timeframe
Keep your normal intraday EMAs (e.g., EMA 12/21) for execution
Note: You can change the bands to not just be 12 or 21, you can change them if needed for your own systems or emas that you use.
This tool is intentionally lightweight: it does one job—showing the true daily EMA structure across all timeframes—and leaves trade execution logic to your primary system.
paigep.llc - SuperMASuperMA is a multi-layered moving-average and candle-coloring system that combines SMA, EMA, and optional HMA logic to help traders visualize trend shifts, pullbacks, and momentum changes in a clean, structured way.
The script includes multiple modules: trend-based moving averages, pullback signals, exit logic, and an optional HMA cross engine.
📌 Core Features
1. Full SMA + EMA Framework
The indicator plots multiple moving averages (8, 9, 13, 20, 50, 200) using both SMA and EMA calculations. Each line automatically colors bullish or bearish based on its relationship to the 200-period baseline.Users can toggle SMAs and EMAs independently for clearer chart control.
2. Main Trend Entry & Exit Logic (8×200 and 8×20)
Built-in crossover logic detects:
Main Entry: SMA 8 crossing above/below EMA 200
Main Exit: SMA 8 and SMA 20 cross (with an option to choose which SMA is treated as the “fast” leg)
A “first exit only” option allows the script to ignore additional exit signals until a new trend regime begins.
3. Pullback Module (20 SMA Interaction)
Pullback entries and exits occur when price crosses the 20 SMA during existing trend conditions.
This includes:
Pullback entries through the 20 SMA
Pullback exits back across the 20 SMA
Labels and candle colors are available for all pullback events.
4. Optional HMA Cross Module
A separate module allows traders to use two Hull Moving Averages (HMA) with customizable:
Lengths
Independent timeframes
Line colors
Cross-based entries and exits
This module has its own events, labels, and optional candle coloring.
5. Advanced Candle Coloring System
Candle coloring is layered in priority order, based on:
Main trend entries
Main exits
HMA entries
HMA exits
Pullback entries
Pullback exits
Trend-only candles (based on SMA 8 relative to EMA 200)
Users may also independently color wicks and borders.
6. Configurable Alerts (Fully Decoupled from Visuals)
Alerts are available for all major events, including:
Main Entries (8×200)
Main Exits (8×20)
Pullback Entries and Exits
HMA Entries and Exits
Bull or Bear Trend candles
Any colored candle event
Alerts can fire on bar close only or intrabar, depending on user preference.
📌 Use Cases
SuperMA helps traders visualize:
Trend direction using SMA/EMA structure
Momentum shifts through HMA crosses
Pullback zones around the 20 SMA
Early regime transitions based on the 8×200 relationship
Candle-level context through color-coded bars
The indicator works across all markets and timeframes.
⚠️ Note
This tool is for visual and analytical assistance only. It does not guarantee future performance and should be combined with additional analysis and risk management.






















