Buy Sell SignalBuy Sell Signal - EMA Crossover with Dynamic Risk Management
OVERVIEW
This indicator combines a dual EMA crossover system with ATR-based dynamic stop loss and take profit levels to provide complete trade management signals. Unlike basic EMA crossover scripts, this tool automatically calculates and displays entry points, stop losses, and take profit targets based on market volatility, offering traders a complete trading framework in a single indicator.
HOW IT WORKS
The indicator uses three core components working together:
Trend Detection: A fast EMA (default 5) and slow EMA (default 13) identify trend direction. When the fast EMA crosses above the slow EMA, it signals bullish momentum; when it crosses below, it signals bearish momentum.
Entry Validation: Optional candle confirmation filter ensures the crossover is accompanied by a bullish/bearish candle close, reducing false signals in choppy markets.
Risk Management: Uses ATR (Average True Range, default 14 periods) to calculate:
Stop Loss: Positioned below/above recent swing low/high minus ATR multiplier (default 0.5x)
Take Profit: Calculated using customizable risk-reward ratio (default 3:1)
KEY FEATURES
✅ Automatic Position Tracking: Monitors active trades and displays current position status (LONG/SHORT/No position)
✅ Visual Trade Management: Shows entry price (white dashed line), stop loss (red line), and take profit (green line) in real-time
✅ Trade Outcome Signals: Displays clear markers when TP is hit (🎯), SL is triggered (❌), or position is invalidated by opposite signal
✅ Information Dashboard: Live table showing entry price, SL, TP, and actual R:R ratio
✅ Smart Position Invalidation: Automatically closes and invalidates previous positions when opposite trend signal appears
✅ Customizable Alerts: Five alert conditions for BUY/SELL signals, TP hits, SL triggers, and invalidations
INPUTS
Fast EMA Length (default 5): Responsive to recent price action
Slow EMA Length (default 13): Defines broader trend direction
ATR Period (default 14): Volatility measurement period
SL Multiplier (default 0.5): Distance from swing point to stop loss
Risk:Reward Ratio (default 3.0): Target profit relative to risk
Candle Confirmation (default ON): Requires bullish/bearish candle on crossover
HOW TO USE
Apply the indicator to your chart (works on all timeframes)
Adjust EMA periods based on your trading style (shorter for scalping, longer for swing trading)
Set your preferred risk-reward ratio
Enable alerts for automated notifications
When a BUY/SELL signal appears, the indicator automatically calculates and displays your complete trade plan
Monitor the information table for live position updates
Exit when TP is reached or SL is triggered
TRADING METHODOLOGY
This script implements a momentum-following strategy based on exponential moving average crossovers, enhanced with volatility-adjusted risk parameters. The ATR-based stop loss adapts to market conditions—wider stops in volatile markets, tighter stops in calm markets. The position invalidation feature prevents traders from holding outdated positions when market sentiment shifts.
BEST PRACTICES
Use on trending markets for best results
Higher timeframes (4H, Daily) produce fewer but more reliable signals.
For scalpe use 5 and 15 minutes(Risk).
Consider market context and fundamental factors alongside signals
Adjust ATR multiplier based on asset volatility
Test different EMA combinations for your preferred instruments
ORIGINALITY
While EMA crossover systems are common, this script's value lies in its complete integration of entry logic, dynamic risk management, position tracking, and automated invalidation—features typically requiring multiple separate indicators. The ATR-based stop loss calculation and automatic R:R visualization provide practical trade execution guidance that basic crossover indicators lack.
Important Notes:
This indicator does not guarantee profitable trades
Always practice proper risk management
Backtest settings on historical data before live trading
Past performance does not indicate future results
المتوسطات المتحركة
Madstrat Strategy - Dual TF# Madstrat Strategy - Dual TF: Complete User Guide
## Overview
The Madstrat Strategy indicator is a comprehensive forex trading system that identifies high-probability trade setups based on a day-counting methodology combined with multi-timeframe EMA alignment analysis. It generates two primary signal types:
1. **Day 3 Signals** - Based on the GSD/RSD (Green Setup Day/Red Setup Day) counting system
2. **Pure Price Action (PA) Signals** - Based on EMA alignment across multiple timeframes with EQ rejection
The indicator operates on **two timeframe combinations simultaneously**:
- **15-minute / 1-hour** combo
- **30-minute / 2-hour** combo
---
## Section 1: Timeframe Signals
### Settings
| Input | Default | Description |
|-------|---------|-------------|
| Show 15m/1hr Signals | ✓ Enabled | Displays signals from the 15-minute LTF with 1-hour HTF confirmation |
| Show 30m/2hr Signals | ✓ Enabled | Displays signals from the 30-minute LTF with 2-hour HTF confirmation |
| Trade Levels Source | Most Recent | Determines which combo draws SL/TP levels |
### How It Works
Each timeframe combination operates independently with its own:
- Signal spacing rules (4 bars for 15m, 2 bars for 30m = both equal ~1 hour)
- Daily signal limits (3 Day 3 signals + 3 Pure PA signals per combo per day)
- EMA alignment checks on both LTF and HTF
**Trade Levels Source Options:**
- **15m/1hr** - Only 15m/1hr signals draw trade levels
- **30m/2hr** - Only 30m/2hr signals draw trade levels
- **Most Recent** - Whichever signal fires most recently draws levels (15m/1hr takes priority if both fire simultaneously)
---
## Section 2: Signal Colors
Customize the appearance of each signal type for each timeframe combination:
### 15m/1hr Combo
| Signal Type | Default Color |
|-------------|---------------|
| Day 3 Buy | Blue |
| Day 3 Sell | Red |
| Pure PA Buy | Aqua |
| Pure PA Sell | Fuchsia |
### 30m/2hr Combo
| Signal Type | Default Color |
|-------------|---------------|
| Day 3 Buy | Teal |
| Day 3 Sell | Orange |
| Pure PA Buy | Lime |
| Pure PA Sell | Maroon |
---
## Section 3: Enhanced FBR Rules
### What is FBR?
**FBR (Failed Breakout Retest)** occurs when price breaks below the previous week's low (or above the previous week's high) but fails to close outside the range, closing back inside instead. This signals a potential reversal and resets the day count to "Day 1" of a new setup sequence.
### Settings
| Input | Default | Description |
|-------|---------|-------------|
| Enable Enhanced FBR Rule | ✓ Enabled | Prevents FBR detection after a clean breakout |
| Show Clean Breakout Labels | ✓ Enabled | Displays labels when clean breakouts occur |
| Bull Breakout Label Color | Blue (25% transparent) | Background color for bullish breakout labels |
| Bear Breakout Label Color | Red (25% transparent) | Background color for bearish breakout labels |
### How Enhanced FBR Works
1. **Clean Breakout Detection**: A clean breakout occurs when price breaks AND closes outside the previous week's range
2. **FBR Blocking**: Once a clean breakout occurs in a week, FBR detection is disabled for the remainder of that week
3. **Weekly Reset**: Both clean breakout and FBR flags reset at the start of each new trading week (Sunday rollover)
### Label Types
- **"CLEAN BULL BO"** - Price broke above previous week high and closed above it
- **"CLEAN BEAR BO"** - Price broke below previous week low and closed below it
- **"FBR Day 1"** - Failed breakout retest detected, count reset to Day 1
---
## Section 4: Real-Time Day Labels
### Purpose
The real-time label shows a **live projection** of what today's day classification will be, updating throughout the trading session as price action develops.
### Settings
| Input | Default | Description |
|-------|---------|-------------|
| Enable Real-Time Day Labels | ✓ Enabled | Shows dynamic label that updates during trading |
| Real-Time Label Position | Right | Position of label relative to current candle |
| Real-Time Label Background | Yellow (20% transparent) | Background color |
| Real-Time Label Text | White | Text color |
### Label Text Meanings
| Label | Meaning |
|-------|---------|
| LIVE: GSD Day X | Projected Green Setup Day (after 2+ red days) |
| LIVE: GD Day X | Projected Green Day (continuing green trend) |
| LIVE: RSD Day X | Projected Red Setup Day (after 2+ green days) |
| LIVE: RD Day X | Projected Red Day (continuing red trend) |
| LIVE: INSIDE DAY | Price range is entirely within previous day's range |
| LIVE: FBR - GSD Day 1 | Bullish failed breakout retest detected |
| LIVE: FBR - RSD Day 1 | Bearish failed breakout retest detected |
| LIVE: ... CLEAN BULL BO | Clean bullish breakout detected |
| LIVE: ... CLEAN BEAR BO | Clean bearish breakout detected |
---
## Section 5: Daily Session Definition
### Instrument Presets
| Preset | Sunday Open | Friday Close | Rollover | Use Case |
|--------|-------------|--------------|----------|----------|
| Forex (FX Pairs) | 17:05 ET | 16:59 ET | 17:00 ET | EUR/USD, GBP/USD, etc. |
| Metals (XAU/XAG) | 18:05 ET | 16:59 ET | 17:00 ET | Gold, Silver |
| Custom | User-defined | User-defined | User-defined | Other instruments |
### Why This Matters
The indicator uses **OANDA-style daily rollover** (5 PM Eastern) rather than UTC midnight. This ensures:
- Accurate day counting for forex markets
- Correct GSD/RSD classification
- Proper weekly level calculations
### Session Break Line
| Input | Default | Description |
|-------|---------|-------------|
| Show Session Break Line | ✓ Enabled | Draws vertical line at daily rollover |
| Session Break Line Color | Black | Line color |
| Width | 2 | Line thickness (1-5) |
| Style | Solid | Solid, dashed, or dotted |
---
## Section 6: Day Labels (GSD/RSD System)
### The Core Day Counting Methodology
This is the foundation of the Madstrat Strategy:
1. **Green Day (GD)**: Daily candle closes higher than it opened
2. **Red Day (RD)**: Daily candle closes lower than it opened
3. **Green Setup Day (GSD)**: A green day that follows 2 or more consecutive red days
4. **Red Setup Day (RSD)**: A red day that follows 2 or more consecutive green days
### The Day 3 Signal
**Day 3** is when the setup is "mature" and ready for a trade:
- **GSD Day 3**: Third consecutive green day after a red sequence of 2+ days
- **RSD Day 3**: Third consecutive red day after a green sequence of 2+ days
### Settings
| Input | Default | Description |
|-------|---------|-------------|
| Max Historical Labels | 60 | Number of day labels to retain on chart |
| Show Day of Week Labels | ✓ Enabled | Shows M O N, T U E, etc. |
| Label Position | Top | Top or bottom of chart |
| Label Hour | 6 | Hour (0-23) when day labels appear |
| GSD/GD Label Background | Blue (25% transparent) | Green day label color |
| RSD/RD Label Background | Red (25% transparent) | Red day label color |
| Inside Day Label Background | Gray (25% transparent) | Inside day label color |
### Important Notes
- **Inside Days** do not increment the count - they are neutral
- **FBR events** reset the count to Day 1 and establish a new trend direction
- **Clean Breakouts** also reset to Day 1 but block further FBR detection that week
---
## Section 7: Daily Levels
Displays the previous day's key price levels:
### Available Levels
| Level | Default | Description |
|-------|---------|-------------|
| Previous Day's High (PDH) | ✓ Enabled, Blue | Highest price of previous session |
| Previous Day's Low (PDL) | ✓ Enabled, Green | Lowest price of previous session |
| Previous Day's EQ | ✓ Enabled, Black | Equilibrium (midpoint of PDH/PDL) |
| 75% Level | ✗ Disabled | 75% of previous day's range |
| 25% Level | ✗ Disabled | 25% of previous day's range |
### EQ Rejection (Critical for Signals)
The **EQ (Equilibrium)** level is crucial for signal generation:
- **Bullish EQ Rejection**: Price wicks down to touch EQ, then closes above it
- **Bearish EQ Rejection**: Price wicks up to touch EQ, then closes below it
The indicator tracks these rejections throughout the day and uses them as a key filter for both Day 3 and Pure PA signals.
---
## Section 8: Weekly Levels
### Previous Week Levels
| Level | Description |
|-------|-------------|
| PWH (Previous Week High) | Highest price of the completed previous week |
| PWL (Previous Week Low) | Lowest price of the completed previous week |
| PWEQ (Previous Week EQ) | Midpoint of PWH and PWL |
### Current Week Levels
| Level | Description |
|-------|-------------|
| WH (Week High) | Running high of the current week |
| WL (Week Low) | Running low of the current week |
| WEQ (Week EQ) | Running midpoint of current week |
### Settings
| Input | Default | Description |
|-------|---------|-------------|
| Show Weekly Levels | ✓ Enabled | Master toggle for all weekly levels |
| Show Previous Week High/Low/EQ | ✓ Enabled | PWH, PWL, PWEQ lines |
| Previous Week Line Color | Black | Color for PW levels |
| Previous Week Line Width | 2 | Thickness of PW lines |
| Show Current Week High/Low | ✓ Enabled | WH, WL lines (dashed) |
| Current Week Line Color | Blue | Color for current week levels |
| Show Weekly Level Labels | ✓ Enabled | Text labels at line ends |
| Weekly Label Size | Normal | Tiny to Huge |
| Lines & Labels End Day | Friday | Extend lines to which day |
---
## Section 9: Session Overlays
Visual boxes showing major forex trading sessions:
### Available Sessions
| Session | Default Times (ET) | Default State |
|---------|-------------------|---------------|
| Sydney | 18:00 - 02:00 | ✗ Disabled |
| Asian | 19:00 - 04:15 | ✓ Enabled |
| London | 01:00 - 11:15 | ✓ Enabled |
| New York | 07:30 - 17:15 | ✓ Enabled |
### Customization Options
For each session:
- Start/End Hour and Minute
- Timezone
- Background color (with transparency)
- Border color
- Border style (solid, dashed, dotted)
- Border width
### General Session Settings
| Input | Default | Description |
|-------|---------|-------------|
| Show Session Overlays | ✓ Enabled | Master toggle |
| Show Session Names on Boxes | ✓ Enabled | Display "Sydney", "Asia", etc. |
| Session Box Border Width | 1 | Border thickness |
| Session Name Text Color | Black | Label text color |
| Session Name Size | Normal | Tiny to Huge |
---
## Section 10: Chart Visuals (Moving Averages)
### Available Moving Averages
| MA | Default | Default Color | Purpose |
|----|---------|---------------|---------|
| 9 EMA | ✓ Shown | Green | Fast trend |
| 18 EMA | ✓ Shown | Orange | Medium trend |
| 50 EMA | ✓ Shown | Blue | Slow trend |
| 50 SMA | ✓ Shown | Purple | Alternative slow trend |
| 200 EMA | ✗ Hidden | Red | Long-term trend |
### EMA Alignment Requirement
For signals to fire, the EMAs must be properly "stacked":
**Bullish Alignment:**
```
Price > 9 EMA > 18 EMA > 50 EMA
```
**Bearish Alignment:**
```
Price < 9 EMA < 18 EMA < 50 EMA
```
This alignment must be present on **both** the LTF (15m or 30m) **and** the HTF (1hr or 2hr) for a signal to generate.
---
## Section 11: Signal Filters
### EQ Rejection Recency
| Input | Default | Description |
|-------|---------|-------------|
| EQ Rejection Recency (bars) | 4 | EQ rejection must occur within this many bars |
On a 15-minute chart, 4 bars = 1 hour. This ensures the EQ rejection is "fresh" and relevant.
### Session Filter
| Input | Default | Description |
|-------|---------|-------------|
| Enable Session Filter | ✗ Disabled | Only allow signals during selected sessions |
| Allow Sydney Session Signals | ✓ Enabled | (Only applies if filter enabled) |
| Allow Asian Session Signals | ✓ Enabled | |
| Allow London Session Signals | ✓ Enabled | |
| Allow New York Session Signals | ✓ Enabled | |
### ADX Filter
| Input | Default | Description |
|-------|---------|-------------|
| Enable ADX Filter | ✓ Enabled | Require minimum trend strength |
| ADX Threshold | 20.0 | Minimum ADX value (5.0 - 50.0) |
The ADX (Average Directional Index) measures trend strength. Values above 20-25 indicate a trending market suitable for directional trades.
---
## Section 12: Signal Types Explained
### Day 3 Signals (Primary)
Day 3 signals come in two forms:
#### Day 3 Detected (Live)
Fires when the **current day is projected** to become Day 3 based on real-time price action. This is an early signal that may change if the daily candle reverses before close.
#### Day 3 Confirmed
Fires when Day 3 has been **officially confirmed** by the previous day's close. This is a more reliable signal as the day count is locked in.
**Requirements for Day 3 Buy:**
1. GSD Count = 3 (confirmed) OR Projected GSD Count = 3 (live)
2. Not an inside day (current or previous)
3. Recent bullish EQ rejection (within recency bars)
4. Bullish EMA alignment on LTF
5. Bullish EMA alignment on HTF
6. Adequate candle body (not all wick)
7. ADX above threshold (if enabled)
8. Within allowed session (if filter enabled)
9. Signal spacing requirement met
10. Less than 3 Day 3 signals already today for this combo
**Day 3 Sell** - Same requirements but bearish (RSD Count = 3, bearish alignment, bearish EQ rejection)
### Pure PA Signals (Secondary)
Pure PA signals also come in two forms:
#### Pure PA Detected (LTF Only)
Fires when the **lower timeframe conditions** are met but HTF confirmation is still pending. This is an early warning that a full signal may be imminent.
#### Pure PA Confirmed (LTF + HTF)
Fires when **both LTF and HTF** conditions are aligned. This is the full confirmation signal.
**Requirements for Pure PA Buy:**
1. Recent bullish EQ rejection
2. Bullish EMA alignment on LTF (Price > 9 > 18 > 50)
3. Bullish EMA alignment on HTF (Price > 9 > 18 > 50)
4. Adequate candle body ratio (≥30%)
5. ADX above threshold on LTF
6. Not currently an inside day
7. Signal spacing requirement met
8. Less than 3 Pure PA signals already today for this combo
9. Within allowed session (if filter enabled)
**Pure PA Sell** - Same requirements but bearish
---
## Section 13: Trade Levels
When a signal fires, the indicator can draw:
| Level | Style | Description |
|-------|-------|-------------|
| Stop Loss (SL) | Red dashed | Entry price ± (ATR × 1.5) |
| Take Profit 1 | Green dashed | 1:1 Risk/Reward |
| Take Profit 2 | Green dotted | 2:1 Risk/Reward |
| Take Profit 3 | Green dotted | 3:1 Risk/Reward |
These levels use a 14-period ATR for the stop loss calculation.
---
## Section 14: Debug Table
Enable **Show Debug Table** to display real-time diagnostic information:
### Information Displayed
| Category | Variables |
|----------|-----------|
| Day Counting | GSD Count, RSD Count, Projected GSD, Projected RSD |
| Day State | Is Projected D3?, Currently Inside?, Week Has FBR?, Clean Breakout (Week)? |
| 15m/1hr Combo | LTF Bull/Bear Positioning, HTF Bull/Bear Positioning, D3/PA Signals Today, Signal Spacing OK |
| 30m/2hr Combo | LTF Bull/Bear Positioning, HTF Bull/Bear Positioning, D3/PA Signals Today, Signal Spacing OK |
| Shared | EQ Rejection Recent (Bull/Bear), Session Filter OK, 15m ADX, 30m ADX, Trade Levels Source |
Green cells = condition met (true)
Red cells = condition not met (false)
Gray cells = informational values
---
## Section 15: Alert Settings
The indicator features a comprehensive **enhanced alert system** with granular control over when and how alerts fire.
### Alert Settings Inputs
| Input | Default | Description |
|-------|---------|-------------|
| Enable Dynamic Alerts | ✓ Enabled | Master toggle for all dynamic alerts with detailed messages |
| Day 3 Detected (Live) | ✓ Enabled | Alert when Day 3 is projected based on current price action |
| Day 3 Confirmed | ✓ Enabled | Alert when Day 3 is officially confirmed |
| Pure PA Detected (LTF) | ✓ Enabled | Alert when LTF conditions are met (early warning) |
| Pure PA Confirmed (LTF+HTF) | ✓ Enabled | Alert when both LTF and HTF conditions align |
### Alert Message Format
All dynamic alerts follow a standardized format for easy parsing:
```
TYPE | SYMBOL @ PRICE | DAY_CLASS | SESSION | DIRECTION | COMBO
```
**Example alerts:**
```
D3 DETECTED | EURUSD @ 1.08542 | GSD Day 3 | London | BUY | 15m/1hr
D3 CONFIRMED | GBPJPY @ 192.456 | RSD Day 3 | New York | SELL | 30m/2hr
PA DETECTED | XAUUSD @ 2345.67 | GSD Day 2 | Asian | BUY | 15m/1hr (LTF only)
PA CONFIRMED | EURJPY @ 164.123 | RSD Day 1 | London | SELL | 30m/2hr
```
### Alert Types Explained
| Alert Type | Meaning | Use Case |
|------------|---------|----------|
| **D3 DETECTED** | Day 3 projected based on current candle | Early entry opportunity; may invalidate if candle reverses |
| **D3 CONFIRMED** | Day 3 locked in from previous close | Higher confidence entry; day count is confirmed |
| **PA DETECTED** | LTF alignment met, waiting for HTF | Heads-up alert; prepare for potential entry |
| **PA CONFIRMED** | Both LTF and HTF aligned | Full confirmation; ready to execute |
### TradingView Alert Dialog Options
When creating an alert in TradingView, you'll see these condition options in the dropdown:
#### Day 3 Detected (Live Projection)
- D3 Detected: Buy 15m/1hr
- D3 Detected: Sell 15m/1hr
- D3 Detected: Buy 30m/2hr
- D3 Detected: Sell 30m/2hr
#### Day 3 Confirmed
- D3 Confirmed: Buy 15m/1hr
- D3 Confirmed: Sell 15m/1hr
- D3 Confirmed: Buy 30m/2hr
- D3 Confirmed: Sell 30m/2hr
#### Pure PA Detected (LTF Only)
- PA Detected: Buy 15m/1hr
- PA Detected: Sell 15m/1hr
- PA Detected: Buy 30m/2hr
- PA Detected: Sell 30m/2hr
#### Pure PA Confirmed (LTF + HTF)
- PA Confirmed: Buy 15m/1hr
- PA Confirmed: Sell 15m/1hr
- PA Confirmed: Buy 30m/2hr
- PA Confirmed: Sell 30m/2hr
#### Combined Alerts (Any Combo)
- D3 Detected: Any Buy
- D3 Detected: Any Sell
- D3 Confirmed: Any Buy
- D3 Confirmed: Any Sell
- PA Confirmed: Any Buy
- PA Confirmed: Any Sell
#### Master Alerts
- ALL Day 3: Any Buy
- ALL Day 3: Any Sell
- ALL PA: Any Buy
- ALL PA: Any Sell
### Setting Up Alerts
1. **Click the Alert icon** in TradingView (or press Alt+A)
2. **Select the indicator** "Madstrat Strategy - Dual TF"
3. **Choose the condition** from the dropdown (e.g., "D3 Confirmed: Any Buy")
4. **Configure notification options** (popup, email, webhook, etc.)
5. **Set alert name** and click "Create"
### Recommended Alert Configurations
**Conservative Approach:**
- Enable only "Day 3 Confirmed" and "PA Confirmed" alerts
- These fire after full confirmation on both timeframes
**Aggressive Approach:**
- Enable all alert types including "Detected" alerts
- Get early warnings but verify manually before entry
**Session-Specific:**
- Create separate alerts for each session you trade
- Use the session filter to limit when signals can fire
---
## Section 16: Signal Identification on Chart
| Shape | Text | Meaning |
|-------|------|---------|
| ▲ Triangle Up | D3-15 | Day 3 Buy from 15m/1hr combo |
| ▲ Triangle Up | D3-30 | Day 3 Buy from 30m/2hr combo |
| ▼ Triangle Down | D3-15 | Day 3 Sell from 15m/1hr combo |
| ▼ Triangle Down | D3-30 | Day 3 Sell from 30m/2hr combo |
| ◆ Diamond | PA-15 | Pure PA signal from 15m/1hr combo |
| ◆ Diamond | PA-30 | Pure PA signal from 30m/2hr combo |
---
## Quick Start Guide
### Recommended Setup for Forex
1. **Timeframe**: Apply indicator to a 15-minute chart
2. **Instrument Preset**: Select "Forex (FX Pairs)"
3. **Enable both** 15m/1hr and 30m/2hr signals initially
4. **Trade Levels Source**: "Most Recent"
5. **ADX Filter**: Enabled with threshold 20
6. **Alerts**: Enable "D3 Confirmed" and "PA Confirmed" for reliable signals
### Reading Signals
1. Look for **Day 3 signals** (triangles) as primary entries
2. Use **Pure PA signals** (diamonds) as supplementary entries
3. Check the debug table to understand why signals did/didn't fire
4. Reference the real-time day label to anticipate upcoming Day 3 opportunities
### Alert Strategy
**For active monitoring:**
- Enable "Detected" alerts as early warnings
- Manually verify conditions before entry
**For set-and-forget:**
- Enable only "Confirmed" alerts
- Trust the full confirmation system
---
## Troubleshooting
### No Signals Appearing?
Check the debug table for:
1. **EQ Rejection Recent** - Is there a recent EQ rejection?
2. **LTF/HTF Positioning** - Are EMAs properly aligned?
3. **GSD/RSD Count** - Is it actually Day 3?
4. **Currently Inside?** - Inside days block signals
5. **Signal Spacing OK** - Has enough time passed since last signal?
6. **ADX value** - Is it above the threshold?
### Day Labels Not Matching Expected Count?
- Verify **Instrument Preset** matches your trading instrument
- Check if an **FBR** or **Clean Breakout** reset the count
- **Inside days** don't increment the count
- Week resets occur at **Sunday 5 PM ET** for forex
### Alerts Not Firing?
1. Ensure **Enable Dynamic Alerts** is checked
2. Verify the specific alert type is enabled (D3 Detected, D3 Confirmed, etc.)
3. Check that the alert condition is properly set up in TradingView
4. Confirm signal filters (session, ADX) aren't blocking the signal
### Understanding Detected vs Confirmed
| Scenario | Detected Alert | Confirmed Alert |
|----------|----------------|-----------------|
| Current day projected to be Day 3, candle still open | ✓ Fires | ✗ Won't fire |
| Previous day closed as Day 3, conditions met today | ✓ May fire | ✓ Fires |
| LTF aligned, HTF not yet aligned | ✓ PA Detected fires | ✗ PA Confirmed won't fire |
| Both LTF and HTF aligned | ✓ May fire | ✓ PA Confirmed fires |
---
## Glossary
| Term | Definition |
|------|------------|
| **GSD** | Green Setup Day - Green day following 2+ red days |
| **RSD** | Red Setup Day - Red day following 2+ green days |
| **GD** | Green Day - Regular green day (not a setup) |
| **RD** | Red Day - Regular red day (not a setup) |
| **FBR** | Failed Breakout Retest - Price breaks weekly level but closes back inside |
| **EQ** | Equilibrium - Midpoint of previous day's range |
| **LTF** | Lower Timeframe (15m or 30m) |
| **HTF** | Higher Timeframe (1hr or 2hr) |
| **PWH/PWL** | Previous Week High/Low |
| **PDH/PDL** | Previous Day High/Low |
| **Clean Breakout** | Price breaks AND closes outside previous week's range |
---
This documentation covers the complete functionality of the Madstrat Strategy - Dual TF indicator including the enhanced alert system. For further assistance with specific scenarios or edge cases, enable the debug table and analyse the real-time variable states.
Ghost Universal Flow ® – PremiumGhost Universal Flow ® – Premium (Invite-only)
A high-performance trend-flow indicator delivering early confirmed entries and heavily filtered exits.
Features
• Dual-trigger entry system for faster reaction on strong momentum
• Built-in noise reduction and false-signal protection
• Ultra-smooth dynamic flow line with adaptive offset
• Clean, locked buy/sell alerts – no repainting
Proprietary momentum-based flow system with fully custom filtering, trend validation and visual smoothing – developed 2025.
Works on all markets • Particularly strong on 1h–daily timeframes.
Invite-only access.
Past performance is not indicative of future results.
To request access, send me a private message with the word “Ghost Flow”.
GardFx - Fusion - ORBFusion ORB & Bias Monitor
This indicator is a comprehensive toolkit designed for session-based traders. It combines an Opening Range Breakout (ORB) visualizer with a Multi-Timeframe (MTF) trend bias dashboard. It is designed to help traders identify key session levels while keeping track of the broader market trend.
How it Works
1. Opening Range Breakout (ORB) Lines The script identifies the High and Low prices established during the first 15 minutes of a specific session or a manually defined start time.
Calculation: The script tracks the high and low values of candles occurring within the 15-minute window defined by the user settings. It then projects these levels forward using line.new.
Reset Logic: The lines automatically reset at the start of a new session (London or New York) or at specific reset times to ensure the chart remains clean for the next trading opportunity.
2. Multi-Timeframe Bias Dashboard The dashboard provides a quick "Bullish" or "Bearish" sentiment check across four timeframes: Daily, 4-Hour, 1-Hour, and 15-Minute.
Methodology: The script uses request.security to fetch the closing price and a 50-period Exponential Moving Average (EMA) for each timeframe.
Signal:
Bullish: Current Close > 50 EMA
Bearish: Current Close < 50 EMA
3. Exchange Clock & Session Tracker A built-in clock displays the current Exchange Time and identifies the active trading session (Asia, London, or New York). This uses timenow and timezone-specific checks to account for Daylight Savings Time shifts between London and New York.
Settings
Automate Session Times: Toggles between automatic detection of London (08:00) and NY (09:30) opens, or a manual user-defined start time.
Manual Start Hour/Minute: Defines the start of the ORB calculation if automation is disabled.
Bias EMA Length: Adjustable length for the trend detection EMA (Default: 50).
Visuals: Users can customize line colors, width, and toggle the mid-line display.
Usage This tool is best used on lower timeframes (e.g., 1-minute or 5-minute) to visualize the 15-minute opening range boundaries. Traders often observe price action around these high/low lines to determine potential breakouts or reversals, using the MTF Dashboard to align trades with the higher timeframe momentum.
Displacement Intelligence Channel (DIC) @darshaksscThe Displacement Intelligence Channel (DIC) is a clean, minimal, non-repainting analytical tool designed to help traders observe how price behaves around its dynamic equilibrium.
It does not generate buy/sell signals, does not predict future price movement, and should not be interpreted as financial advice.
All calculations are based strictly on confirmed historical bars.
⭐ What This Indicator Does
Price constantly fluctuates between expansion (large moves) and compression (small moves).
The DIC analyzes these changes through:
Displacement (how far price moves per bar)
ATR response (how volatility reacts over time)
Dynamic width calculation (channel widens or tightens as volatility changes)
EMA-based core midline (a smooth equilibrium reference)
The result is a smart two-line channel that adapts to market conditions without cluttering the chart.
This is NOT a fair value gap, moving average ribbon, or premium/discount model.
It is a purely mathematical displacement-ATR engine.
⭐ How It Works
The indicator builds three elements:
1. Intelligence Midline
A smooth EMA that acts as the channel’s core “equilibrium.”
It gives a stable reference of where price is gravitating during the current session or trend.
2. Adaptive Upper Boundary
Calculated using displacement + ATR.
When volatility increases, the channel expands outward.
When volatility compresses, the channel tightens.
3. Adaptive Lower Boundary
Mirrors the upper boundary.
Also expands and contracts based on market conditions.
All lines update only on confirmed bar closes, keeping the script non-repainting.
⭐ What to Look For (Purely Analytical)
This indicator does not imply trend continuation, reversal, or breakout.
Instead, here’s what traders typically observe:
1. Price Reactions Around the Midline
Price often oscillates around the midline during equilibrium phases.
Strong deviation from the midline highlights expansion or momentum phases.
2. Channel Expansion / Contraction
Wider channel → increased volatility, displacement, and uncertainty
Tighter channel → compression and calm conditions
Traders may use this for context only — not for decision-making.
3. Respect of Channel Boundary
When market structure respects the upper/lower channel lines, it simply indicates volatility boundaries, not overbought/oversold conditions.
⭐ How to Add This Indicator
Open TradingView
Select any chart
Click Indicators → Invite-Only Scripts / My Scripts
Choose “Displacement Intelligence Channel (DIC)”
The channel will appear automatically on the chart
⭐ Recommended Settings (Optional)
These settings do not change signals (because the indicator has none).
They only adjust sensitivity:
Center EMA Length (default 34)
Smoother or faster midline
Displacement Lookback (default 21)
Controls how much recent displacement affects width
ATR Lookback (default 21)
Governs how volatility is interpreted
Min/Max Multipliers
Limits how tight or wide the channel can expand
Adjust them cautiously for different timeframes or asset classes.
⭐ Important Notes
This tool is non-repainting
It does not use future data
It does not repaint previous channel widths
It follows TradingView House Rules
It contains no signals, no alerts, and no predictions
The DIC is designed for visual context only and should be used as an analytical overlay, not as a stand-alone decision tool.
⭐ Disclaimer
This script is strictly for informational and educational purposes only.
It does not provide or imply any trading signals, financial advice, or expected outcomes.
Always do your own research and consult a licensed financial professional before making trading decisions.
Multi EMA and SMA with VWAP Indicator📊 Custom Multi-MA & VWAP Indicator
A comprehensive and fully customizable moving average indicator that combines 6 Exponential Moving Averages (EMAs), 3 Simple Moving Averages (SMAs), and VWAP in one clean, easy-to-use tool.
✨ Features:
6 Configurable EMAs:
• Default periods: 9, 21, 50, 100, 150, 200
• Fully adjustable lengths
• Individual color customization
• Show/hide toggles for each EMA
3 Configurable SMAs:
• Default periods: 20, 50, 100
• Fully adjustable lengths
• Individual color customization
• Show/hide toggles for each SMA
• Thicker lines for easy distinction from EMAs
VWAP (Volume Weighted Average Price):
• Toggle on/off
• Customizable color and line width
• Essential for intraday trading and institutional levels
🎯 Use Cases:
• Trend identification and confirmation
• Support and resistance levels
• Entry and exit signals
• Multi-timeframe analysis
• Day trading and swing trading strategies
• Institutional price levels (VWAP)
⚙️ Fully Customizable:
Every aspect of this indicator is configurable through the settings panel:
• Adjust any MA period to fit your trading strategy
• Choose your preferred colors for better chart visualization
• Enable/disable specific MAs to reduce chart clutter
• Customize VWAP line thickness
📈 Perfect For:
• Traders who use multiple moving averages in their strategy
• Those seeking an all-in-one MA solution
• Clean chart organization with one indicator instead of multiple
• Both beginners and experienced traders
💡 Tips:
• Use shorter EMAs (9, 21) for quick trend changes
• Longer EMAs (100, 150, 200) act as strong support/resistance
• VWAP is particularly useful for intraday trading
• Customize colors to match your chart theme
Version: Pine Script v6
Overlay: Yes (plots directly on price chart)
UM Nadaraya-Watson OscillatorDescription
This is a different take on the Nadaraya-Watson Estimator from both Jdhorty and LuxAlgo. Both great scripts, I encourage everyone to check them out. Think of this script as a measure of trend direction, direction change, and trend acceleration or deceleration. It is not a Moving Average, but you could think of it as loosely as an intelligent adaptive regression curve with the focus on trend direction. The Gaussian calculations prefer and add more weight to the most recent bars. The end result is the oscillator is more responsive with less lag and less prone to pure price noise.
How it Works
The indicator was added to the chart twice; once with an MA, once without. The oscillator indicates trend change by crossing up through the zero line or down through the zero line. Once the indicator turns positive, we are in a positive trend until it crosses below zero and then the trend turns negative. I implemented a Moving Average overlay for additional signal determination; if the configured MA (EMA, SMA, WMA, or Nadaraya-Watson Estimator) trends higher, it is green. When trending down, it is red. The indicator also changes the color of the price bars; when the indicator below zero and red, the price bars are red. When the indicator is above zero and green, the price bars are green.
I marked up the chart and indicator to identify LONG, SHORT, and divergences between price and oscillator.
Default Settings
The default settings are 16 for Bandwidth and a WMA with 110. This is shown in the chart example. There directional arrows, but they are off by default. The Price bars are colored green or red to match the oscillator and the bar coloring is on by default.
All settings are user-configurable including bandwidth, MA type, MA length, bar coloring, and arrows.
Suggested Settings and uses
I personally like the 30 min chart with a bandwidth of 16 and a WMA of 110. The bandwidth 8 and 8 period EMA or WMA also work well on 6 hour and daily charts. Add this to your chart arsenal and use your favorite indicators for confirmation. This indicator works well on the 30 minute chart for inverse ETFs as well (SQQQ, SOXS, TZA). Also, the oscillator is good for identifying divergences between price and and indicator. (see chart for illustration)
Experiment with settings and adapt them to your trading style.
Alerts
If you right click the indicator, and select add alert, I have configured 4 standard alerts: A bullish cross above zero, A bearish cross below zero, An MA bullish turned up to trend higher, (green), and an MA bearish turned down to trend lower (red).
TR-ATR-DATR+MAs shows the Range of selected Candle + 3 Moving Averages
True Range
Avg True Range
Daily Range
Negative & Positive Divergence Alert System by TWTA"Negative & Positive Divergence Alert System by TWTA" is an advanced TradingView Pine Script indicator that detects bullish (positive) and bearish (negative) divergences on MACD (both classic and hidden/advanced forms), draws automatic support/resistance zones (SRv2), shows nearest S/R levels, 27-period EMA, volume filters, and gives real-time alerts + on-chart labels A-PD(Advanced Pozitive Divergence), B-PD(Base Pozitive Divergence), A-ND(Avanced Negative Divergence), B-ND(Base Negative Divergence).
MA 9/21/50/100/200//@version=5
indicator("MA 9/21/50/100/200", overlay=true)
ma9 = ta.sma(close, 9)
ma21 = ta.sma(close, 21)
ma50 = ta.sma(close, 50)
ma100 = ta.sma(close, 100)
ma200 = ta.sma(close, 200)
plot(ma9, color=color.new(color.yellow, 0), title="MA 9")
plot(ma21, color=color.new(color.orange, 0), title="MA 21")
plot(ma50, color=color.new(color.blue, 0), title="MA 50")
plot(ma100, color=color.new(color.green, 0), title="MA 100")
plot(ma200, color=color.new(color.red, 0), title="MA 200")
EMA [Fax Academy]EMA is a refined, high-precision exponential moving average suite engineered for professional traders in Forex, metals (gold), indices, and crypto.
Built for clarity, reliability, and structural market insight — without unnecessary complexity.
Why This Indicator
Institution-grade trend detection
Dynamic support/resistance that adapts to volatility
Optimized for execution, pullback entries, and structural clarity
Zero repainting — all calculations use confirmed price data
Minimalist by design — only essential EMAs are enabled to keep your chart clean
Included EMA Levels
A complete set of strategic EMAs tailored for intraday, swing, and long-term analysis.
Toggle EMAs:
20 · 50 · 100 · 200 · 300 · 400 · 500 · 800 · 1000
Custom EMAs (4 Slots):
User-defined range (1–1000)
Individual ON/OFF switches
Fully customizable colors and styling
This design ensures flexibility for every strategy — from scalping to macro positioning.
How to Use
Add the indicator to your chart.
Enable only the EMA levels relevant to your trading style.
Use the custom EMA slots to tailor the indicator to your personal strategy.
Adjust colors and thickness under Style for maximum clarity.
The result: a clean, professional workspace tailored to your workflow.
Recommended Setups (Forex / Gold)
Intraday Momentum & Pullback
EMA 20 – Short-term directional strength
EMA 50 – Pullback structure and micro-trend filter
EMA 200 – Higher-timeframe trend bias (above = bullish, below = bearish)
Swing & Position Trading
EMA 50 + 200 – Classic trend structure
Add EMA 100 – Dynamic mid-term support/resistance
Macro Trend & Regime Analysis
EMA 300 / 400 / 500 / 800 / 1000
Reveal long-cycle trend behavior and institutional structure — ideal for gold and indices
How to Interpret EMAs
Trend Guidance: slope and price positioning
Dynamic Levels: reactions around EMA 20/50 indicate continuation or slowdown
Major Pullbacks: EMA 100/200 define deeper structural retests
Confluence Zones: clusters of EMAs highlight high-probability decision points
This indicator is built to help you see structure, not noise.
Default Settings
EMA 100 → Enabled (balanced mid-term anchor)
All other levels → Disabled (activate only what you need)
Colors optimized for clarity and easily editable
Additional Notes
Works seamlessly on all instruments and timeframes
Fast and lightweight, engineered for real-time decision-making
Non-repainting and built with efficient logic
Ideal for professional traders who prioritize structure and simplicity
Brand Statement
Designed by Fax Academy, this indicator reflects a commitment to precision, clarity, and professional-grade tools.
It is intended for educational and analytical use only — always combine with proven risk management.
Triple Moving Averages Daily on Timeframe (10/20/50 with LabelsUnlike other MA's this give me on daily time frame irrespective of chart time
Multi-Timeframe EMA & SMA Scanner - Price Level LabelsOverview
A powerful multi-timeframe moving average scanner that displays EMA and SMA levels from up to 8 different timeframes simultaneously on your chart. Perfect for identifying key support/resistance levels, confluence zones, and multi-timeframe trend analysis.
Key Features
📊 Multi-Timeframe Analysis
Monitor up to 8 different timeframes simultaneously (5m, 10m, 15m, 30m, 1H, 4H, 1D, 1W)
Each timeframe can be independently enabled/disabled
Fully customizable timeframe selection
📈 Comprehensive Moving Averages
5 configurable EMA periods (default: 8, 21, 50, 100, 200)
2 configurable SMA periods (default: 200, 400)
All periods are fully customizable to match your trading strategy
🎯 Smart Price Level Labels
Labels positioned at actual price levels (not in a list)
Color-coded labels for easy identification
Dynamic text color: Green when price is above, Red when below
Compact notation: E8-5m means EMA 8 on 5-minute timeframe
Adjustable label offset from current price
📉 Optional Horizontal Lines
Dotted reference lines at each MA level
Color-matched to corresponding MA type
Can be toggled on/off independently
📋 Comprehensive Data Table
Shows all MA values organized by timeframe
Displays percentage distance from current price
Trend indicator (Strong Up/Up/Neutral/Down/Strong Down)
EMA alignment status (Bullish/Bearish/Mixed)
Color-coded cells for quick visual analysis
🎨 Full Customization
Individual color settings for each MA type
Adjustable table size (Tiny/Small/Normal/Large)
Choose table position (Left/Right)
Toggle any MA or timeframe on/off
🔔 Built-in Alerts
Golden Cross detection (EMA 50 crosses above EMA 200)
Death Cross detection (EMA 50 crosses below EMA 200)
Price crossing major EMAs
Available for multiple timeframes
How to Use
For Day Traders:
Enable lower timeframes (5m, 10m, 15m, 30m)
Focus on faster EMAs (8, 21, 50)
Watch for confluence zones where multiple timeframe MAs cluster
For Swing Traders:
Enable higher timeframes (1H, 4H, 1D)
Use all EMAs plus SMAs for broader perspective
Look for alignment across timeframes for high-probability setups
For Position Traders:
Focus on daily and weekly timeframes
Emphasize 100, 200 EMAs and 200, 400 SMAs
Use for long-term trend confirmation
Understanding the Labels
Label Format: E8-5m 45250.50
E8 = EMA with period 8
5m = 5-minute timeframe
45250.50 = Current price level
Green text = Price is currently above this level (potential support)
Red text = Price is currently below this level (potential resistance)
For SMAs: S200-1D 44500.00
S200 = SMA with period 200
1D = Daily timeframe
Trading Applications
Support/Resistance Identification
MAs act as dynamic support and resistance levels
Multiple timeframe MAs create stronger zones
Confluence Trading
When multiple MAs from different timeframes cluster together, it creates high-probability zones
These areas often result in strong reactions
Trend Analysis
Check the Alignment column: Bullish alignment = all EMAs in ascending order
Trend column shows overall price position relative to all MAs
Entry/Exit Timing
Use lower timeframe MAs for precise entries
Use higher timeframe MAs for trend direction and exits
Settings Guide
Timeframes Section:
Select and enable/disable up to 8 timeframes
Default: 5m, 10m, 15m, 30m, 1H, 4H, 1D, 1W
MA Periods Section:
Customize all EMA and SMA periods
Default EMAs: 8, 21, 50, 100, 200
Default SMAs: 200, 400
Display Section:
Toggle price labels and horizontal lines
Adjust label offset (distance from right edge)
Show/hide data table
Choose table position and size
Colors Section:
Customize colors for each MA type
Each MA has independent color control
Pro Tips
✅ Start with default settings and adjust based on your trading style
✅ Disable timeframes/MAs you don't use to reduce chart clutter
✅ Use the data table for quick overview, labels for precise levels
✅ Look for "confluence clusters" where multiple MAs from different timeframes align
✅ Green labels = potential support, Red labels = potential resistance
✅ Set alerts on key crossovers for automated notifications
Technical Specifications
Pine Script v6
Overlay indicator (displays on main chart)
Maximum 500 labels supported
Real-time updates on each bar close
Compatible with all instruments and timeframes
Perfect For:
Day traders seeking multi-timeframe confirmation
Swing traders looking for high-probability setups
Position traders monitoring long-term trends
Anyone using moving averages as part of their strategy
Note: This indicator does not provide buy/sell signals. It's a tool for analysis and should be used in conjunction with your trading strategy and risk management rules.
PRO Triple+ Confirmation Overlay SignalsThis script uses the 200 SMA + RSI + MACD confirmations as buy and sell signals. It only give a signal if all three line up. works well for general market direction signals. It also has a higher time frame filter that will filter out 70%-90% of traps and counter trend signals. MACD momentum trigger times entries with momentum shifts. RSI confirmation as well as volume confirmation to remove entries in low volume dead markets.
EMA 7/21 + SuperTrend DEFINITIVOhe Ultimate 7/21 Signal: Trend-Filtered by Supertrend 🚀Tired of signals that trade against the main trend? This powerful indicator features the 7/21 EMA Crossover as its core signal, but with a massive upgrade in confirmation:Trend Alignment: Only signals that move in the direction of the Supertrend are confirmed, drastically reducing false entries.Momentum Filter: The ADX DI ensures the move has directional strength.Conviction Check: A Volume Filter validates the signal with market participation.This multi-stage filter provides clean, high-conviction signals for the $7/21$ strategy. The intuitive Informative Panel clearly shows when all conditions are met for a BUY or SELL.Trade with the trend. Trade with conviction.
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.
EMA Stack Background HighlighterThis is a simple script that highlights my backround when my criteria for my context timeframe is met, specifically, price is above the 10 EMA, the 10 is above the 20, and the 20 is above the 50 for green and vice versa for red. I use this in a multi timeframe approach similar to mentfx's EVC criteria
EMA 7/21 + SuperTrend INDICADOR CREADO PARA MI ESTRATEGIA That sounds like a complex and multi-layered trading indicator you've developed! Combining an Exponential Moving Average (EMA) crossover with an Average Directional Index (ADX) filter, a Volume filter, and a Supertrend for overall trend confirmation can certainly help to filter out false signals and potentially increase the reliability of your entry and exit points.Here's a breakdown of the components you're using and why this combination can be powerful:📊 Indicator Components and Their Roles1. 7/21 EMA Crossover (Signal Generator)The $7$-period EMA and $21$-period EMA crossover is a common strategy used to generate initial buy or sell signals.Buy Signal: The short-term EMA (7) crosses above the long-term EMA (21).Sell Signal: The short-term EMA (7) crosses below the long-term EMA (21).2. ADX DI Filter (Momentum and Direction)The Average Directional Index (ADX) and its directional indicators ($+DI$ and $-DI$) are key to confirming the strength and direction of the move.Directional Confirmation: The EMA crossover must be confirmed by the appropriate directional index. For a buy, the $+DI$ should be above the $-DI$. For a sell, the $-DI$ should be above the $+DI$.Trend Strength ( NYSE:ADX $): A rising NYSE:ADX $ (typically above 20 or 25) suggests the current trend has sufficient momentum, making the signal more reliable.3. Volume Filter (Conviction)Adding a Volume filter ensures that the price movement accompanying the EMA crossover is supported by significant trading activity.Confirmation: A strong signal (buy or sell) is often accompanied by above-average volume. This suggests that market participants are actively supporting the move, adding conviction to the trade.4. Supertrend (Overall Trend Confirmation)The Supertrend indicator is based on the Average True Range (ATR) and is excellent for identifying the dominant market trend.Trend Alignment: The EMA crossover signal should align with the Supertrend's current signal. For a buy signal, the price should be above the Supertrend line (green). For a sell signal, the price should be below the Supertrend line (red). This helps ensure you are trading with the prevailing trend.📈 Why This is a Powerful CombinationYour indicator is essentially a multi-stage confirmation system:Speed (7/21 EMA): Generates a fast, responsive signal.Momentum (ADX DI): Confirms the direction and strength of the signal.Conviction (Volume): Validates the signal with market participation.Safety/Trend (Supertrend): Ensures the trade is in the direction of the long-term trend.The Informative Panel is a great feature, as it simplifies the decision-making process by summarizing the findings of all these components—e.g., "BUY: EMA Crossover $\checkmark$, +DI > -DI $\checkmark$, High Volume $\checkmark$, Supertrend Green $\checkmark$."💡 Next Steps for RefinementTo finalize and test this indicator, you may want to consider:Parameter Optimization: The best settings for the ADX level (e.g., 20 vs. 25) and the Supertrend ATR parameters may need to be optimized for the specific asset (e.g., stocks, forex) and timeframe you are using.Exit Strategy: Since this primarily focuses on entries, define clear Stop-Loss (perhaps based on the Supertrend line or a recent swing low/high) and Take-Profit (e.g., a fixed Risk/Reward ratio or previous resistance/support levels) rules.Would you like to explore specific parameters for any of these components or look into ways to backtest your strategy?
paigep.llc - SuperMA
SuperMA 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.
QuantMotions - TPR Sentinel LineTPR Sentinel Line is an advanced adaptive Support/Resistance system that combines multi-layered trend analysis with a directional Time-Price Ratio (TPR) engine. The indicator dynamically builds a stabilized support or resistance line that adjusts to market volatility, trend strength, ATR expansion and contraction, and real-time slope changes.
This creates a high-precision, self-adjusting trend barrier that acts as support in uptrends, resistance in downtrends, and a neutral anchor during sideways phases.
Key Features
✔ Adaptive Trend Base
- A composite trend model blending:
- Kijun-style midpoint
- Donchian midline
- SMA & EMA smoothing
This creates a stable baseline that reacts smoothly but reliably to structural trend shifts.
✔ Directional TPR Calculation
The indicator measures slope across short, medium, and long trend windows, normalizes it with ATR, and determines:
- Trend direction
- Trend strength
- Momentum quality
✔ Dynamic Support/Resistance Line
Depending on trend direction:
- In uptrends → the line becomes adaptive support
- In downtrends → the line becomes adaptive resistance
- In neutral phases → the line centers around the smoothed trend base
A built-in lag factor prevents unrealistic jumps and keeps the level stable.
✔ Automatic Support/Resistance Zones
The indicator expands the main line into upper and lower zones based on ATR and trend strength, creating a dynamic volatility envelope around the trend structure.
✔ Signals & Alerts
- Support bounce
- Resistance rejection
- Breakouts above/below the dynamic line
These events help identify high-probability continuation or reversal moments.
✔ Information Panel
A real-time status table displays:
- Trend direction
- Trend strength
- Current S/R level
🎯 Ideal For
- Precision entries on pullbacks
- Detecting trend shifts earlier
- Identifying strong or weak trend phases
- Adaptive take-profit and stop-loss zones
- Filtering false breakouts
💡 Summary
TPR Sentinel Line gives you a living, breathing support/resistance structure that evolves with the market.
Instead of relying on static levels, you get a continuously adapting trend barrier that reflects real strength, real volatility, and real momentum.
A powerful tool for traders who want structure, clarity, and trend confidence.
[iQ]PRO Engineering42+🔬 PRO Engineering42+ ⚙️
The Next Evolution in Signal Processing for Precision Market Analysis
Introducing PRO Engineering42+, a proprietary, cutting-edge technical analysis tool engineered to distill meaningful market structure from the inherent noise of price action. This indicator is built upon a sophisticated, multi-stage signal processing framework, leveraging advanced mathematics to provide traders with a uniquely clarified view of the underlying market trend and momentum.
Hybrid Composite Signal Generation
At its core, PRO Engineering42+ begins with a Hybrid Base Signal. This signal is not a mere average but a intelligently weighted composite, harmonizing the strengths of multiple distinct, adaptive moving average techniques. This fusion is designed to achieve a superior balance of responsiveness to trend shifts and smoothness for noise rejection, establishing a foundation of dynamic market memory.
Adaptive Volatility Clamping
The initial Hybrid Base is then subjected to an innovative process we term Adaptive Volatility Clamping. This critical step dynamically adjusts the signal's sensitivity in real-time based on the market's current volatility profile (measured using True Range), ensuring the signal remains tightly coupled with price action during quiet periods while minimizing whipsaws and overshoots during high-volatility events. This is achieved through a precise, weighted mechanism that prioritizes price context.
Proprietary Spectral Filtration and Gating
The hallmark of PRO Engineering42+ is its final stage: Advanced Frequency Domain Analysis using a proprietary Fast Fourier Transform (FFT) filter.
Frequency Isolation: The tool mathematically decomposes the pre-processed (clamped) signal into its constituent frequencies (or periodic cycles). Traders can isolate and focus on a specific, tunable bandwidth (FFT Low/High Freq) that represents the most relevant market cycles for their trading style, effectively filtering out disruptive high-frequency noise and irrelevant, extremely low-frequency components.
Intelligent Spectral Gating: This feature introduces a proprietary, volatility-aware thresholding mechanism (Spectral Gating Level). The filter actively assesses the power spectrum of the decomposed signal, only allowing frequencies with power exceeding a dynamically calculated standard deviation level to pass through. This unique "gate" intelligently suppresses less significant cycles, leaving only the statistically dominant, market-driving components to form the final output, resulting in an exceptionally clean and responsive oscillator.
The result is a powerful, low-lag Hybrid FFT Oscillator that provides an unparalleled measure of directional bias and momentum.
Key Features for Exclusive Members
Closed Source & Invite Only: The underlying Pine Script logic, including the proprietary spectral gating calculation and hybrid weighting methodology, is intentionally obscured and available exclusively to a select group of paying members.
Maximum Data Efficiency: Optimized with a low max_bars_back and robust dependency structure to ensure maximum calculation efficiency.
Precision Control: Fine-tune the system's performance using controls like Hybrid Base Length, FFT Window Size, and the Spectral Gating Level to perfectly match any asset, timeframe, and trading strategy.
Experience the future of analytical precision. This is not just an indicator; it is a proprietary engineering solution for market mastery.
EMA CrossMoving averages based trend indicator
Plots
Hull Moving average 34
Simple MA 200
Exponential MA 5
Signals on crossing and turn around points.






















