AI-Enhanced MSS HunterAI-Enhanced MSS Hunter
This indicator is a hybrid trading system that merges Mechanical Price Action (ICT Concepts) with Statistical Machine Learning (K-Nearest Neighbors). It is designed to assist traders in identifying high-probability reversals after liquidity sweeps, as well as trend-continuation entries during specific "Kill Zone" sessions.
How It Works
The script operates on a strict 3-step validation process to filter out false signals during choppy market conditions.
1. Liquidity Sweep (The Trigger) The system automatically plots the Previous Day High (PDH) and Previous Day Low (PDL).
The logic begins only when price "sweeps" (breaks) one of these key levels.
State Persistence: Once a level is swept, the system remembers this event for the remainder of the session (or until a signal fires), waiting for the market to reverse.
2. Market Structure Shift (The Setup) After a sweep, the indicator hunts for a Market Structure Shift (MSS).
It tracks dynamic Swing Highs and Swing Lows.
A signal is prepared only if price breaks a recent structural swing point in the opposite direction of the sweep (e.g., Sweep PDL -> Break Swing High).
3. AI / Machine Learning Filter (The Confirmation) To reduce false positives, the signal must be confirmed by a K-Nearest Neighbors (KNN) algorithm.
The Logic: The script analyzes the current values of RSI (14), CCI (14), and ROC (10).
The Comparison: It looks back at the last ~1,000 bars of history to find similar market conditions (neighbors).
The Prediction: If the majority of those historical "neighbors" resulted in a favorable move, the AI confirms the trade. If historical data suggests chop or reversal, the signal is blocked.
Key Features
🎯 Primary Reversal Signals (Circles)
Green Circle: Price swept PDL + Bullish MSS + AI Confirmation.
Red Circle: Price swept PDH + Bearish MSS + AI Confirmation.
♻️ Golden Zone Re-Entries (Triangles) Once a Primary Signal is active, the script tracks the new trend leg.
It automatically draws a dynamic Golden Zone (0.5 – 0.618 Fibonacci Retracement).
If price pulls back into this zone and forms a new MSS, a Re-Entry Triangle is plotted.
Invalidation: If the pullback breaks the original setup's low/high, the zone is removed to prevent bad trades.
⏰ Kill Zone Time Filters Signals are filtered by time to ensure you are trading during high-volume sessions.
Default AM Session: 08:30 – 10:00 (New York Time)
Default PM Session: 14:00 – 15:00 (New York Time)
Fully customizable in settings.
Settings Guide
Key Levels: Toggle PDH/PDL lines and customize colors.
Kill Zones: Enable/Disable time filtering and highlight background colors.
AI Settings:
K-Nearest Neighbors (k): Number of historical neighbors to compare (Default: 5).
Training Window: How far back the AI looks for patterns (Default: 1000 bars).
Visuals: Turn on/off the Golden Zone fib clouds or text labels.
Disclaimer
This tool is for educational purposes only. The "AI" component is a statistical classification algorithm based on historical momentum and does not guarantee future results. Always manage risk and use this indicator as part of a comprehensive trading plan.
ניתוח מגמה
P/E Ratio (TTM)This indicator plots the trailing P/E ratio (TTM) using GAAP EPS (TTM) sourced directly from TradingView’s fundamental data. It includes valuation‑zone color coding, yearly labels, and a clean, compressed visual layout suitable for most equities.
The goal is to provide a fast, intuitive view of how expensive or cheap a stock is relative to its historical earnings power.
Note:
The indicator caps P/E values around 120 for visual clarity.
Negative P/E ratios are intentionally excluded, since P/E is undefined when EPS is negative.
You can adjust the cap or remove it entirely if you prefer a full‑range view.
This tool is especially useful for identifying periods when a company is trading at historically elevated or discounted valuation levels.
Evil MACD Trading System (Pine Script v6)Indicator Overview
The Evil MACD Trading System is an enhanced version of the classic MACD indicator, optimized for TradingView with Pine Script v6. It integrates trend filtering, volume confirmation, and precision signal positioning to reduce false signals and improve trading decision accuracy—distinguishing itself from the traditional 12/26/9 MACD by focusing on trend-aligned entries and exits.
Core Logic & Features
1. Enhanced MACD Calculation
Departing from the standard MACD parameters, this system uses customizable fast (default:14), slow (default:28), and signal (default:8) periods to adapt to different market volatility and asset types (stocks, futures, cryptos). The core DIF, DEA, and histogram are retained while optimized for better sensitivity to medium-term trends.
2. Trend Filtering Mechanism
A 60-period EMA (adjustable) acts as the primary trend filter, ensuring buy signals only trigger in uptrends (price above EMA) and sell signals in downtrends (price below EMA). This avoids counter-trend trades and minimizes exposure to sideways market noise.
3. Volume Confirmation (Toggleable)
The optional volume filter validates signals by requiring trading volume to exceed 120% of the 20-period average volume. This ensures entries/exits are supported by capital flow, reducing false breakouts/breakdowns.
4. Precision Signal Positioning
Signals are overlaid directly on the price chart (not the subwindow) for intuitive price correlation. Buy signals (green upward triangles + "Buy" label) attach to the bottom of candlesticks, while sell signals (red downward triangles + "Sell" label) align with candlestick highs—adjustable offset parameters let users fine-tune signal proximity to price.
Usage Guidelines
- Buy Signal: Triggered when DIF crosses above DEA, price stays above the 60-period EMA, and volume (if enabled) meets the 120% threshold.
- Sell Signal: Triggered when DIF crosses below DEA, price stays below the 60-period EMA, and volume (if enabled) meets the 120% threshold.
- Customization: Adjust MACD periods, trend filter length, volume sensitivity, and signal offset to match your trading style (scalping, swing trading) and target assets.
Compatibility & Notes
Built for Pine Script v6 (latest TradingView version) with no syntax errors. The indicator supports all timeframes and asset classes. For best results, combine with additional technical tools (support/resistance, RSI) for multi-factor confirmation. Disable the volume filter in low-liquidity markets to avoid missing valid signals.
x5-smooth-ema[t90]Overview
The x5 Smoothed EMA Flow is a trend-visualization tool designed to filter out market "noise" by applying a secondary smoothing layer to a base Exponential Moving Average (EMA).
How to Use
Trend Filtering: The "Flow" helps identify the true trend. When the ribbon is expanding and colored for a bullish trend, it signals strong, sustained momentum.
Noise Reduction: Unlike a standard EMA which can "whipsaw" during consolidation, the double-smoothed layers stay smoother for longer, helping traders stay in a position during minor pullbacks.
Trend Confirmation: Use the alignment of all smoothing layers to confirm a trend. When all layers transition to the same color, it indicates a high-probability trend shift.
Dynamic Support/Resistance: The ribbon acts as a depth-based support or resistance zone. Price often reacts to the "core" of the flow before continuing its primary move.
Settings
Source: Choose the price source (Close, HL2, etc.) for the initial calculation.
Base Length: Adjust the sensitivity. Shorter lengths are better for scalping; longer lengths are optimized for swing trading.
Color Settings: Fully customizable Bull and Bear colors to match your chart theme.
Disclaimer: This indicator is for educational purposes only. Moving averages are lagging indicators and should be used in conjunction with other forms of analysis. Past performance is not indicative of future results.
The Bitterroot Trader Checklist//@version=5
indicator("Syntax-Safe Confluence Gauge", overlay=true)
// --- 1. INPUTS ---
col_ema9 = input.color(#00bcd4, "9 EMA Color")
col_ema20 = input.color(#ff9800, "20 EMA Color")
col_ema60 = input.color(#f44336, "60 EMA Color")
col_vwap = input.color(color.gray, "VWAP Color")
// --- 2. 48-HOUR DATA ---
h48 = ta.highest(high, 100)
l48 = ta.lowest(low, 100)
v48_avg = ta.sma(volume, 100)
// --- 3. CALCULATIONS ---
= ta.macd(close, 12, 26, 9)
e9 = ta.ema(close, 9), e20 = ta.ema(close, 20), e60 = ta.ema(close, 60)
v_wap = ta.vwap(close)
// --- 4. SCORING & CHECKLIST LOGIC ---
bool c1 = macdLine > signalLine
bool c2_bull = (volume > v48_avg and close > open)
bool c2_bear = (volume > v48_avg and close < open)
bool c3 = (e9 > e20 and e20 > e60)
bool c4_bull = close > h48
bool c4_bear = close < l48
bool c5 = close > v_wap
// Final Scoring
float s2 = c2_bull ? 1.0 : c2_bear ? -1.0 : 0.0
float s4 = c4_bull ? 1.0 : c4_bear ? -1.0 : 0.0
float live_mean = ((c1 ? 1 : -1) + s2 + (c3 ? 1 : -1) + s4 + (c5 ? 1 : -1)) / 5.0
// Count active checks for Alerts
int bull_checks = (c1 ? 1 : 0) + (c2_bull ? 1 : 0) + (c3 ? 1 : 0) + (c4_bull ? 1 : 0) + (c5 ? 1 : 0)
int bear_checks = (macdLine < signalLine ? 1 : 0) + (c2_bear ? 1 : 0) + (e9 < e20 and e20 < e60 ? 1 : 0) + (c4_bear ? 1 : 0) + (close < v_wap ? 1 : 0)
// --- 5. ALERTS ---
alertcondition(bull_checks >= 4, title="Strong Bullish Confluence", message="4+ Bullish Checks Aligned!")
alertcondition(bear_checks >= 4, title="Strong Bearish Confluence", message="4+ Bearish Checks Aligned!")
// --- 6. COLOR ENGINE ---
bool macd_curling_up = hist > hist
bool macd_curling_down = hist < hist
color final_c = #808080
if live_mean <= -0.1
final_c := (live_mean <= -0.8) ? #ff0000 : #8b0000
if macd_curling_up
final_c := #d84315
else if live_mean >= 0.1
final_c := (live_mean >= 0.8) ? #00ff00 : #006400
if macd_curling_down
final_c := #9e9d24
else
final_c := #808080
// --- 7. REWRITTEN NEEDLE LOGIC (Fixes the Mismatched Input Error) ---
string needle = switch
live_mean <= -1.0 => "┃ "
live_mean <= -0.6 => " ┃ "
live_mean <= -0.2 => " ┃ "
live_mean == 0.0 => " ┃ "
live_mean <= 0.4 => " ┃ "
live_mean <= 0.8 => " ┃ "
=> " ┃"
// --- 8. TABLE DISPLAY ---
var table gauge = table.new(position.top_right, 1, 1)
if barstate.islast
string check1 = "MACD: " + (c1 ? "✅" : "❌")
string check2 = "VOL: " + (s2 > 0 ? "✅" : s2 < 0 ? "❌" : "➖")
string check3 = "EMA: " + (c3 ? "✅" : "❌")
string check4 = "48H: " + (s4 > 0 ? "✅" : s4 < 0 ? "❌" : "➖")
string check5 = "VWAP: " + (c5 ? "✅" : "❌")
string display_text = "48H MEAN: " + str.tostring(live_mean, "#.#") + " " +
" " +
" " + needle + " " +
"------------------ " +
check1 + " | " + check2 + " " +
check3 + " | " + check4 + " " +
check5 + " | CURL: " + (macd_curling_up ? "UP" : "DN")
table.cell(gauge, 0, 0, display_text, bgcolor=color.new(final_c, 85), text_color=final_c, text_size=size.large)
// --- 9. PLOTS ---
plot(h48, "48H High", color=color.new(#00ff00, 50), style=plot.style_stepline)
plot(l48, "48H Low", color=color.new(#ff0000, 50), style=plot.style_stepline)
Median TR SuperTrend | RakoQuantMedian TR SuperTrend | RakoQuant
A Robust Trend-Following Regime Indicator for Daily Crypto Markets
The Median TR SuperTrend is a modern trend-following indicator designed to help students and traders clearly identify the dominant market regime on higher timeframes (especially 1D crypto).
This tool is inspired by the classic SuperTrend framework, but enhanced with a more robust volatility engine, making it better suited for the extreme wick behavior and noise typical in cryptocurrency markets.
What This Indicator Does:
The Median TR SuperTrend answers one simple question:
Are we currently in a bullish trend regime or a bearish trend regime?
It is not meant for rapid scalping or frequent signals.
Instead, it is built to provide:
Clear directional context
Trend continuation bias
Regime-based positioning
Noise reduction on higher timeframes
This makes it ideal for students learning disciplined trend-following.
Core Concept: Trend Following, Not Prediction
This indicator does not attempt to predict tops or bottoms.
It follows trends by reacting only when price establishes a true breakout beyond a volatility-adjusted band.
That means:
Strong trends are captured early
Choppy markets are filtered
Signals are based on regime shifts, not candle-to-candle noise
What Makes It “Robust”?
Traditional SuperTrend systems use ATR (Average True Range) to define volatility.
Crypto markets, however, often produce outlier candles (wicks, liquidations, spikes) that distort ATR.
This version replaces ATR with:
Median True Range (MTR)
Median TR is more resistant to extreme one-off candles, providing:
Smoother volatility estimates
More stable trend bands
Less sensitivity to random spikes
This creates a more reliable trend structure in high-volatility environments.
How It Works (Simple Breakdown)
1. Median Baseline
The indicator begins by calculating a rolling median of price, forming a stable central trend reference.
2. Robust Volatility Bands
A volatility envelope is created using Median True Range:
Upper band = baseline + multiplier × MTR
Lower band = baseline − multiplier × MTR
3. SuperTrend Regime Logic
Only one band is active at a time:
Bull regime → trailing lower band
Bear regime → trailing upper band
Trend flips occur only when price breaks beyond the active band.
Visual Interpretation
Neon Aqua Band
Bullish regime
Trend-following long environment
Neon Magenta Band
Bearish regime
Defensive or short environment
Filled Trend Zone
Shows the active trend space clearly without clutter.
This indicator is designed for learning:
Market structure
Regime trading
Patience and higher timeframe discipline
Recommended workflow:
Use Median TR SuperTrend on 1D
Trade only in the direction of the active regime
Combine with a trigger tool if needed (RSI, momentum, breakout)
Ideal Markets
BTC, ETH, SOL
Daily swing trend environments
Portfolio regime filtering (RSPS / LTPI-style frameworks)
Disclaimer
This indicator is a regime and trend-following tool, not a complete trading system.
It should be used as part of a broader strategy with:
Risk management
Position sizing
Confirmation logic
Larry Williams Qualified Trend Break Signals [tradeviZion]Larry Williams Qualified Trend Break Signals - Description
📖 Introduction
Welcome to the Larry Williams Qualified Trend Break Signals indicator. This description explains how the indicator works, its settings, and how to use it.
This indicator demonstrates Larry Williams' Qualified Trend Line Break technique - his preferred method for timing precise entries on daily charts when you already have a confirmed market setup.
---
🎯 About This Script
This indicator implements the Qualified Trend Line Break system - an entry technique that qualifies trend line breaks for better timing.
Important: This is NOT a signal generator. It's an entry timing tool for traders who already have a market setup and confirmation. Use it only after establishing weekly bias and daily confirmation.
Why We Made This Indicator:
This indicator demonstrates Larry Williams' favorite entry technique for daily timeframe trading. It's designed to be used as part of his complete methodology:
How To Use It Properly:
First, establish your setup: Check weekly chart for overall market bias (bullish/bearish)
Then confirm on daily: Look for confirmation signals on daily timeframe
Finally, use trend breaks: Enter trades only when trend breaks align with your setup direction
Important Warning: This is NOT a standalone buy/sell signal indicator. Using trend breaks without proper setup and confirmation will likely produce poor results. It's a timing tool for entries, not a signal generator.
---
About The Qualification Rules
The system improves on qualification methodology with these key changes:
For BUY signals (breaking above downtrend lines):
Break is usually bad if previous bar closed higher
But can still be good if:
Previous bar was inside the prior bar AND that prior bar closed lower
Price gaps above trend line and moves up at least one tick
Previous bar closed below its own opening price
For SELL signals (breaking below uptrend lines):
Break is usually bad if previous bar closed lower
But can still be good if:
Previous bar was inside the prior bar AND that prior bar closed higher
Price gaps below trend line and moves down at least one tick
Previous bar closed above its own opening price
---
📐 How The Qualification System Works
The trend break system is based on qualification methodology as developed by Larry Williams . It solves the problem where trend line breaks often fail and price goes back.
Trend Line Setup:
For BUY signals: Connect the two most recent declining swing highs to make a downtrend line
For SELL signals: Connect the two most recent rising swing lows to make an uptrend line
Inside Bar Rule:
A key principle: Trend breaks that occur on inside bars are completely ignored. The system only evaluates breaks that occur on regular bars, making signals more reliable.
How It Works In The Code
The indicator follows these steps:
Finds swing points: Identifies highs and lows in the price action
Draws trend lines: Connects 2 recent swing points to make trend lines
Checks inside bars: Ignores breaks that happen on inside bars
Qualifies signals: Uses the rules to check if breaks are good or bad
Shows signals: Only displays qualified BUY/SELL signals
Optional feature: Can show disqualified signals
⚙️ Settings
The indicator has 3 groups of settings to customize how it works.
---
📊 Signal Settings
Show Signals
Default: ON
ON: Displays green/red labels when trend breaks qualify for entry
OFF: Hides entry labels (trend lines still show for analysis)
Remember: These are entry TIMING signals, not standalone buy/sell signals
Signal Selection
Default: Both | Options: Buy Only, Sell Only, Both
Buy Only: Shows only BUY signals
Sell Only: Shows only SELL signals
Both: Shows both BUY and SELL signals
Break Validation
Default: Close | Options: Break Level, Close
Break Level: Signal when price touches the trend line (more signals)
Close: Signal when bar closes beyond trend line (fewer signals)
Tip: Try "Close" first for better signals
Show Disqualified
Default: OFF | Options: ON/OFF
What it does: Shows bad breaks
ON: Shows gray ❌ labels with explanations
OFF: Hides bad signals
👁️ Display Settings
Show Trend Lines
Default: ON
What it does: Shows trend lines on the chart
Looks like: Dashed blue lines connecting swing points
Goes to: Extends into future bars
Why: Shows where breakouts are expected
Show Swing Points
Default: ON
What it does: Marks highs/lows used for trend lines
Looks like: Shape markers at swing locations
Shows: How trend lines are constructed
Marker Style
Default: Circle | Options: Circle, Triangle, Square, Diamond, Cross
What it does: Choose shape for swing markers
Options: Circle, Triangle, Square, Diamond, Cross
Best choice: Circle is clear without being busy
Marker Size
Default: 3 | Range: 1-10
What it does: Controls marker size
Range: 1 (tiny) to 10 (large)
Show Inside Bars
Default: ON
What it does: Highlights inside bars
Looks like: Light orange background on inside bars
Note: These bars are ignored for break qualification
Important: Inside bars are ignored for break qualification
🎨 Colors
Signal Colors
Buy Signal (Default: Green) - Color for good BUY signals
Sell Signal (Default: Red) - Color for good SELL signals
Disqualified (Default: Gray) - Color for bad signals
Display Colors
Trend Line (Default: Blue) - Color for trend lines and markers
Inside Bar (Default: Light Orange) - Background for inside bars
💡 How To Use It In Larry Williams Methodology
Step 1 - Weekly Setup: Identify market bias on weekly chart (clear bullish/bearish trend)
Step 2 - Daily Confirmation: Find confirmation signals on daily timeframe
Step 3 - Trend Break Entry: Use qualified trend breaks only in setup direction
Important: Never enter based on trend breaks alone - always require setup + confirmation first
⚠️ Important Notice
This indicator implements Larry Williams' trend break entry technique. It should NOT be used as standalone buy/sell signals. Only use trend breaks for entry timing after you have established a proper market setup and confirmation. Poor results will occur if using signals without the complete Larry Williams methodology.
Credits: Based on Larry Williams' trading approach and qualification methodology. Swing detection logic adapted from "Larry Williams: Market Structure" by Smollet.
Pro RSI Mean-Deviation Sigmoid Oscillator (Z-Score Normalized)# Pro RSI Mean-Deviation Sigmoid Oscillator (Z-Score Normalized)
## 🧮 Core Mathematical Concept
**The Key Formula**: This indicator subtracts RSI's own EMA from the RSI value, divides the result by its standard deviation to create a Z-score, then applies sigmoid normalization to map it into a 0-1 range (displayed as 0-100).
**In Simple Terms**:
```
Z-Score = (RSI - RSI_EMA) / Standard_Deviation
Sigmoid = 1 / (1 + e^(-k × Z-Score))
Final Output = Sigmoid × 100
```
This mathematical approach transforms raw RSI momentum into a statistically normalized oscillator that better identifies genuine trend changes while filtering out noise.
---
## 📊 What This Indicator Does
This advanced momentum oscillator combines RSI analysis with statistical normalization to identify overbought/oversold conditions and momentum shifts with greater precision than traditional RSI alone.
**Core Innovation**: Uses Z-score normalization and sigmoid transformation to convert RSI deviations into a smooth 0-100 scale, reducing noise while maintaining sensitivity to genuine market movements.
---
## 🔧 How It Works
### 1. **RSI Foundation**
- Calculates standard RSI over your chosen period (default: 14)
- Applies an EMA smoothing line to identify the RSI trend
### 2. **Statistical Normalization**
- Measures deviation between RSI and its EMA
- Calculates Z-score (standard deviations from mean)
- Normalizes extreme values while preserving relative strength
### 3. **Sigmoid Transformation**
- Maps Z-scores to a 0-100 scale using sigmoid function
- Creates smooth transitions between bullish/bearish zones
- Reduces false signals from RSI whipsaws
### 4. **RSI Bollinger Bands**
- Adds dynamic overbought/oversold bands around RSI
- Adapts to market volatility automatically
- Confirms extreme conditions when RSI breaches bands
### 5. **Momentum Histogram**
- Visualizes rate of change in normalized momentum
- Green bars = strengthening bullish momentum
- Red bars = strengthening bearish momentum
---
## 📈 How to Use
### **Primary Signals**
**Sigmoid Oscillator (Thick Line)**
- **Above 50** = Bullish momentum dominant
- **Below 50** = Bearish momentum dominant
- **Crossing 50** = Potential trend change
**Extreme Zones**
- **Above 70** = Overbought (green background) - Consider taking profits or preparing for reversal
- **Below 30** = Oversold (red background) - Watch for potential bounce or reversal
### **Confirmation Signals**
**RSI Bollinger Band Breaches** (Purple background)
- RSI above upper band = Extremely overbought
- RSI below lower band = Extremely oversold
- Strong confirmation when paired with sigmoid extremes
**RSI vs RSI EMA Crossovers**
- Purple line (RSI) crossing above orange line (EMA) = Early bullish signal
- Purple line crossing below orange line = Early bearish signal
**Momentum Histogram**
- Growing green bars = Accelerating bullish momentum
- Growing red bars = Accelerating bearish momentum
- Shrinking bars = Momentum weakening (potential reversal warning)
---
## ⚙️ Parameter Settings
### **RSI Period** (Default: 14)
- Lower (7-10) = More responsive, more signals
- Higher (20-30) = Smoother, fewer false signals
- Recommended: Keep at 14 for most timeframes
### **RSI EMA Period** (Default: 14)
- Controls smoothness of RSI trend line
- Match to RSI period for standard behavior
- Increase for longer-term trend identification
### **Standard Deviation Period** (Default: 20)
- Lookback window for Z-score calculation
- Lower = More sensitive to recent changes
- Higher = More stable, slower to react
### **Sigmoid Sensitivity (k)** (Default: 1.0)
- **0.5-0.8** = Smoother, less extreme readings
- **1.0-1.5** = Balanced sensitivity
- **2.0+** = More aggressive, reaches extremes faster
- Adjust based on asset volatility
### **Bollinger Band Multiplier** (Default: 2.0)
- Standard deviation multiplier for RSI bands
- **1.5** = Tighter bands, more frequent signals
- **2.5-3.0** = Wider bands, only extreme moves
---
## 💡 Trading Strategies
### **Strategy 1: Momentum Continuation**
1. Wait for sigmoid to break and hold above 70 (bullish) or below 30 (bearish)
2. Confirm with growing momentum histogram in same direction
3. Enter in direction of momentum when RSI breaks Bollinger bands
4. Ride the trend until sigmoid crosses back through 50 or momentum histogram shrinks
5. This indicator excels at catching strong, sustainable momentum moves
### **Strategy 2: Momentum Breakout**
1. Identify sigmoid consolidation near 50
2. Watch for strong break above 70 or below 30
3. Confirm with growing momentum histogram
4. Enter in direction of break, exit when momentum weakens
### **Strategy 3: Divergence Detection**
1. Compare price action to sigmoid oscillator
2. Bullish divergence: Price makes lower low, sigmoid makes higher low
3. Bearish divergence: Price makes higher high, sigmoid makes lower high
4. Enter when sigmoid confirms with 50-line cross
### **Strategy 4: Multi-Timeframe Confluence**
1. Use on higher timeframe (4H/Daily) for trend direction
2. Use on lower timeframe (15M/1H) for entry timing
3. Only take trades when both timeframes align
4. Increases win rate significantly
---
## ⚠️ What to Watch For
### **Best Conditions**
- ✅ Trending markets with clear momentum
- ✅ Assets with decent volatility (not too choppy)
- ✅ When multiple signals align (sigmoid + bands + histogram)
- ✅ Confirmed with price action or volume
### **Difficult Conditions**
- ❌ Sideways, choppy markets (generates false signals)
- ❌ Low volatility periods (sigmoid may not reach extremes)
- ❌ Major news events (can cause extreme whipsaws)
- ❌ Very low timeframes (<5min) - too much noise
### **Common Pitfalls**
- Don't trade sigmoid extremes blindly - wait for reversal confirmation
- Don't ignore the momentum histogram - it shows strength of moves
- Don't use in isolation - combine with support/resistance, volume, etc.
- Don't over-optimize parameters - default settings work well for most assets
---
## 📋 Risk Disclaimers
**IMPORTANT:** This indicator is for educational purposes only and is NOT financial advice. All trading involves substantial risk of loss. Past performance does not guarantee future results. Always use proper risk management, backtest thoroughly, and consult a licensed financial advisor before making trading decisions. The creator assumes no liability for your trading results. **Trade at your own risk.**
---
## 🔍 Additional Considerations
### **Combine With:**
- Support and resistance levels
- Volume analysis
- Trend indicators (moving averages)
- Price action patterns
- Market structure analysis
### **Timeframe Recommendations:**
- **Scalping (1-5min)**: Lower RSI period (7-10), higher sigmoid sensitivity
- **Day Trading (15min-1H)**: Default settings work well
- **Swing Trading (4H-Daily)**: Increase all periods by 50-100%
- **Position Trading (Weekly)**: Double all default periods
### **Asset-Specific Tips:**
- **Crypto**: Often more volatile - consider k=0.8 for smoother signals
- **Forex**: Works well on major pairs with default settings
- **Stocks**: May need slight adjustments per stock volatility
- **Indices**: Very effective with standard parameters
---
## 📝 Credits & Sharing
Feel free to share this indicator! If you make modifications or improvements, consider sharing back with the community.
**Version**: 5
**Created for**: TradingView Pine Script
**Category**: Oscillators / Momentum
---
*Happy Trading! Remember: The best indicator is the one between your ears. Always think critically and trade responsibly.* 📊✨
MARKET REGIME INDICATOR The indicator’s main function is to apply a moving average (MA) from a different symbol. It can be used to identify the broader trend in crypto or stocks.
For the selected symbol, the chart turns:
Green when price is above the MA
Red when price is below the MA
You can choose:
The type of MA
The length (period)
The indicator also plots the highest and lowest levels on the selected symbol to help identify potential turning points.
It also includes an optional trend confirmation feature:
Off
On
Trend Pulse Oscillator█ OVERVIEW
Trend Pulse Oscillator is a momentum oscillator that combines short-term trend strength analysis (price deviation from a dynamic trend line) with optional reference to a higher timeframe trend context. It visualizes market pulse through smoothed oscillator waves, fixed overbought/oversold levels, and zero-line cross signals indicating momentum shifts.
The indicator assists in identifying potential entry points after strong moves, early signs of exhaustion or direction change, and supports decision-making by providing longer-period trend awareness
█ CONCEPT
Built upon the SwiftTrend logic. The core idea is to measure how far price deviates from the adaptive trend line (margin line). Greater deviation in the direction of the trend indicates stronger momentum. When price returns toward the trend line — especially from overbought or oversold zones — it often signals a correction or potential reversal.
- The oscillator displays the deviation of price from the trend line and applies user-selected smoothing (EMA, SMA, RMA, WMA).
- The longer-period trend controls candle coloring (SwiftTrend candles) and can be used discretionarily as a directional bias/filter for signals.
- The color of the oscillator itself depends solely on whether the smoothed value is above or below zero (green above, red below).
Fixed OB/OS levels and the zero line help visually evaluate the strength of the deviation. Areas significantly above the OB level or below the OS level indicate extreme price stretch away from the trend line and increased probability of mean reversion.
█ FEATURES
Calculations
- Average candle body size — calculated separately for oscillator and longer-period trend
- Dynamic trend line (adaptive margin line) + fixed OB / OS threshold levels
- Multiple oscillator smoothing options
- Momentum expressed as oscillating waves
- Detection of OB/OS crossovers and zero-line breaks
Visualization
- Oscillator waves colored according to sign (green above zero, red below zero)
- Fixed OS level (oversold) — gray, dashed line
- OB level (overbought) — color reflects the current longer-period trend direction (green when price is above the longer-period trend line, red when below)
- OB and OS levels frequently displayed with light gradient fill for readability (OB gradient inherits HTF trend color; OS gradient remains neutral/gray)
- Optional SwiftTrend candle coloring — candles colored according to longer-term trend direction and strength (gradient intensity)
- Transparent, layered fill under oscillator waves (stronger near the wave, fading toward zero)
Signals
- Long / Short — triggered on crossover/crossunder of OB/OS levels (with anti-duplication logic per wave)
- Zero Line Long / Zero Line Short — zero-line break confirmed by candle color direction
- Longer-period trend change — visual and alert when longer-term trend flips
- Important: There is no automatic filtering of OB/OS or zero-line signals by the longer-period trend — traders should apply longer-period trend bias manually
Alerts
- Long Signal
- Short Signal
- Zero Line Long
- Zero Line Short
- Longer-Period Trend Change
█ HOW TO USE
Add the indicator via Pine Editor (paste the code) or search for “Trend Pulse Oscillator” in the TradingView public library.
Main settings
- Osc Average Body Periods – averaging period for oscillator body size
- Osc Band Multiplier / Tolerance Multiplier – controls width and sensitivity of oscillator bands
- Smoothing Type / Length – smoothing method and period for the oscillator wave
- Trend Average Body Periods / Band / Tolerance – parameters for the longer-period trend line
- Overbought Level / Oversold Level – fixed threshold values
- Enable Candle Coloring – turns on SwiftTrend-style candle coloring based on the longer-period trend
- Gradient & fill options – control visibility and transparency of gradients and wave fills
Trend & candle coloring logic
- Price above trend line → bullish (green tones)
- Price below trend line → bearish (red tones)
█ APPLICATION
Momentum trading
- Direction and slope of oscillator waves indicate current impulse strength
- Return toward zero or zero-line cross can serve as an early warning of correction or reversal
Trend following
- The longer-period trend acts as a discretionary directional filter
- Highest-probability approach: take signals primarily in the direction of the longer-period trend
Overbought / Oversold
- Fixed OB/OS levels mark zones of extreme deviation from the trend line
- Large extensions away from the trend line increase the likelihood of pullback or reversal
█ NOTES
- This is a supporting tool — never use it as a standalone trading system
- Best results are achieved when combined with key support/resistance levels, market structure analysis, and longer-period trend context
- OB/OS crosses and zero-line breaks are orientation points only — always validate them against the broader trend picture
MTF EMA Trend Table (50/100/200)Using the MTF EMA Trend Table for Supply & Demand Trading
This document explains how to use the Multi‑Timeframe EMA Trend Table as part of a supply and demand trading strategy.
The indicator displays the trend direction (Bullish or Bearish) for EMA 50, 100, and 200 across the following timeframes: 5m, 15m, 30m, 1h, 4h, 1d, and 1w.
---------------------------------------------
1. What the Indicator Shows
---------------------------------------------
The EMA Trend Table instantly reveals whether price is trading above or below the EMA 50/100/200 on multiple timeframes.
• Price above EMA = Bullish trend
• Price below EMA = Bearish trend
This allows you to identify trend alignment across all key timeframes.
---------------------------------------------
2. Why EMAs Matter in Supply & Demand Trading
---------------------------------------------
Supply & Demand zones show where institutions previously bought or sold aggressively. To trade these zones effectively, you must confirm higher‑timeframe trend direction.
The EMA table prevents low‑probability trades by keeping you aligned with institutional flow.
---------------------------------------------
3. How to Use the Indicator for Supply & Demand Trading
---------------------------------------------
Step 1 — Identify Higher‑Timeframe Bias (4H, 1D, 1W)
• Bullish alignment (all green) → Trade demand zones only.
• Bearish alignment (all red) → Trade supply zones only.
Step 2 — Use 1H, 30M, 15M for Setup Timing
These mid‑timeframes help you determine when a pullback is nearing completion.
Step 3 — Trigger Entry on the 5M EMA Flip
Once price enters a supply or demand zone, wait for the 5m EMA trend to flip in your direction before entering.
---------------------------------------------
4. How to Judge Zone Strength Using EMAs
---------------------------------------------
Strong Demand Zone Characteristics:
• Price above EMA200 on 1H+
• Zone forms above EMA200
• Pullback touches EMA50 or EMA100
Strong Supply Zone Characteristics:
• Price below EMA200 on 1H+
• Zone forms below EMA200
• Pullback touches EMA50 or EMA100
---------------------------------------------
5. Full Trade Example
---------------------------------------------
Higher timeframes are bullish: 1W, 1D, 4H all green.
Price pulls back into a 15m demand zone.
5m flips from Bearish → Bullish.
This is the entry confirmation.
---------------------------------------------
6. Why This Indicator Improves Your Trading
---------------------------------------------
• Confirms trend direction
• Shows alignment across timeframes
• Helps avoid counter‑trend traps
• Improves zone accuracy and confidence
• Enhances timing using the 5m EMA flip
This combination is ideal for institutional‑style supply and demand trading.
Breaker Blocks Signals [AlgoAlpha]🟠 OVERVIEW
This script automates the detection of Breaker Blocks, a popular smart money concept used to identify high-probability reversal zones. It monitors price action for aggressive impulses—measured through a normalized Z-Score—to identify Orderblocks. When these blocks are "broken" or invalidated by price moving through them, they transform into Breaker Blocks. These zones act as "flipped" support or resistance, offering traders specific areas to look for retests and trend continuations. By handling the complex management of zone life-cycles and mitigation, this script provides a clean, real-time map of institutional supply and demand shifts.
🟠 CONCEPTS
The indicator relies on the relationship between price momentum and structural invalidation. It first identifies "impulsive" candles by calculating a Z-Score of price distance covered over a specific window. A Z-Score above 4 marks an "Algorithmically Significant" move. When such a move occurs, the script identifies the last opposite-colored candle (the Orderblock) and draws a gray zone. The transformation happens when price closes entirely through one of these gray zones. This "mitigation" is what triggers the creation of a Breaker Block: an old bearish supply zone becomes a bullish demand zone, and vice versa. This transition reflects a shift in market regime where previous trapped participants are forced to exit, often leading to price rejections at these newly formed levels.
🟠 FEATURES
Automated Breaker Transformation : Instantly flips mitigated Orderblocks into colored Breaker Blocks (Bullish/Bearish).
Rejection Markers : Small arrow icons appear when price enters a Breaker Block and shows signs of respect/reversal.
Comprehensive Alerts : Notifications for both the formation of new breakers and real-time price rejections.
🟠 USAGE
Setup : Add the script to your chart. It is effective on most timeframes, but many traders prefer the 15m or 1h for intraday structure. Use the "Z-Score Window" to adjust sensitivity; 100 is standard, but lower values (e.g., 50) will find more frequent, smaller impulses.
Read the chart : Gray boxes are "Pending" blocks. If price closes above a gray bearish box, it turns into a Bullish Breaker (Green). If price closes below a gray bullish box, it turns into a Bearish Breaker (Red). Look for price to return to these colored zones; the "▲" and "▼" symbols indicate the script has detected a rejection from that level.
Settings that matter : Prevent Overlap is useful for avoiding "cluttered" zones in ranging markets. Max Box Age is critical; it ensures that very old, irrelevant zones are removed from your chart after a set number of bars, keeping your technical analysis current and focused on recent price action.
SilverHawk Pattern + Trend ScannerSilverHawk Pattern + Trend Scanner
This indicator scans for common candle patterns (Evening/Morning Star, Engulfing, Kicker) and displays adaptive trend channels (short/long) with strength metrics.
Features:
- Candle patterns with reversal/continuation % heuristic
- Adaptive trend channels (best short/long length selected by Pearson R)
- ADX trend power and channel alignment note
Settings:
- Show specific patterns: toggle visibility
- Channel lengths: auto-selected based on best correlation
- Alerts on pattern detection
Best used on H1 to D1 timeframes in Forex or indices for pattern confirmation and trend analysis. Use with proper risk management and confirmation.
Educational tool only. Not financial advice. Trading involves risk.
Open Near High or Low : AlertsOpen=Low :Buy
Open=High : Sell
Buffer adjustment available.
Suggested buffer 0.1%
Alerts on Trading view available
SilverHawk SmoothHA DuoSilverHawk SmoothHA Duo
This indicator plots dual smoothed Heiken Ashi candles (10/10 fast + 20/20 slow) for trend confirmation.
Features:
- Fast (10/10) smoothed HA candles (lime/red)
- Slow (20/20) smoothed HA candles (lighter lime/red)
- Alignment note (middle-left): shows if 10/10 and 20/20 match (bull/bear/not aligned)
- Alerts on trend flips (bullish/bearish for each layer or any flip)
Settings:
- Show 10/10 or 20/20 candles: toggle visibility
- Len / Len2: smoothing periods (default 10/10 and 20/20)
- Colors: customize bullish/bearish gradients
- Show Alignment Note: toggle status text
- Enable Alerts: toggle flip alerts
- Trigger On Bar Close Only: non-repainting alerts
Best used on H1 to D1 timeframes in Forex or indices for confirming trend direction and alignment. Use with proper risk management and confirmation.
Educational tool only. Not financial advice. Trading involves risk.
SilverHawk Structure Coach (Lite)SilverHawk Structure Coach (Lite)
This indicator identifies market structure breaks (BOS/CHoCH) and strong FVGs for potential reversal or continuation zones.
Features:
- BOS (Break of Structure) and CHoCH (Change of Character) lines with labels
- Optional HH/HL/LH/LL swing labels
- Strong FVG detection (gap between candles, size filter, extension, mitigation)
Settings:
- Pivot Length: lookback for highs/lows (default 12)
- Show BOS/CHoCH Labels: toggle structure breaks
- Show HH/HL/LH/LL Labels: toggle swing points
- Show Strong FVGs: toggle gap detection
- Min FVG size (ticks): minimum gap for validity
- Require gap between candle bodies: stronger filter
- Extend FVG boxes (bars): how far to project FVGs
- Hide mitigated FVGs: remove when price closes through 50%
Best used on H1 to D1 timeframes in Forex or indices for structure analysis. Use with proper risk management and confirmation.
Educational tool only. Not financial advice. Trading involves risk.
Pittillo A+ Scanner (Move + Volume + VWAP/EMA + No-Chop)Pittillo A+ Scanner — Move + Volume + VWAP/EMA + No-Chop
Pittillo A+ Scanner is a high-selectivity intraday scanner designed to surface A+ trade conditions only — filtering out chop, low-volume noise, and random price action that destroys consistency.
This indicator is built for traders who value patience, structure, and confirmation, not constant signals.
🔍 What It Looks For
An A+ signal will only appear when ALL of the following are present:
• Market Movement
• ATR expansion vs baseline (no dead tape)
• Real Participation
• Relative volume above average
• Trend Alignment
• 8/20 EMA structure
• VWAP confirmation (above for longs, below for shorts)
• Strength Confirmation
• ADX filter to avoid range-bound chop
• Price Structure
• Clean candles (filters dojis / overlapping garbage)
• Valid Trigger
• Breakout continuation or
• VWAP rejection with strong candle close
• Session Awareness
• Optional time-window filter to avoid low-quality hours
If conditions are not objectively favorable, the scanner stays quiet by design.
⸻
🎯 A+ Scoring System
Each setup is graded with an internal A+ score (0–100) based on:
• ATR expansion
• Relative volume
• ADX strength
• Bollinger Band expansion
• Candle quality
• Trend alignment
Signals only trigger when the score meets or exceeds the user-defined A+ threshold, ensuring quality over quantity.
⸻
🟢 Visual Signals
• A+ LONG → Triangle up + green background
• A+ SHORT → Triangle down + red background
• EMAs (8/20) and VWAP plotted for full context
No signal = no trade.
⸻
🧠 Philosophy
This indicator is intentionally conservative.
It is designed to:
• Protect capital during chop
• Reduce overtrading
• Encourage discipline
If you’re looking for constant alerts, this is not for you.
If you’re looking for clean, repeatable opportunities, this is exactly that.
⸻
📌 Best Use Cases
• Index futures (ES, NQ, MNQ, MES)
• SPX / SPY / QQQ intraday trading
• Traders who already respect VWAP + EMA structure
Works best on 2m–15m timeframes during active market hours.
⸻
⚠️ Disclaimer
This indicator does not predict markets or guarantee profits.
It is a filtering and confirmation tool, not a substitute for risk management or a trading plan.
Kijun-Sen with Buy / Sell Labels & Alerts - Ichimoku simplifiedI built this indicator for my own scalping style. Maybe it fits yours, too?
Happy scalping!
IA-12 ScreenerIA-12 Screener is a table-based, multi-asset indicator designed to help traders quickly identify potential buying and shorting opportunities across up to 12 instruments simultaneously.
The indicator combines Fibonacci-based price levels, trend context, momentum, and volatility-adjusted risk metrics into a single, easy-to-scan dashboard. It is intended as a decision-support tool, allowing you to evaluate multiple assets at a glance without cluttering your chart.
Key Features
Supports up to 12 user-defined assets
Uses All-Time High (ATH) as the Fibonacci anchor
Automatically identifies Nearest Buy Fib (support) and Nearest Sell Fib (resistance) levels
Highlights potential opportunities when price is close to a Fib level
Normalizes distance using ATR for volatility-aware risk assessment
Includes trend and momentum filters to improve signal quality
Column Overview
Column | Description
Ticker | Asset symbol
Price | Current / live price on the chart timeframe
ATH (D) | All-time high calculated from daily data
Dist ATH % | Percentage distance below ATH
Trend | Daily trend regime using 50/200 MA (Bull / Bear / Neutral)
RSI | Momentum regime (OB = Overbought, OS = Oversold, N = Neutral)
Buy Fib | Nearest Fibonacci level below price (support)
Buy % | Percentage distance to Buy Fib
Buy ATR | Distance to Buy Fib expressed in ATR units
Sell Fib | Nearest Fibonacci level above price (resistance)
Sell % | Percentage distance to Sell Fib
Sell ATR | Distance to Sell Fib expressed in ATR units
Band % | Width between Buy and Sell Fib (compression measure)
Last Chg | Bars since the nearest Fib side changed
Visual Highlights
Green cells indicate the price is closest to that Fib side (Buy or Sell) and within a user-defined distance threshold.
“Tight” Band % highlights Fibonacci compression zones, which often precede volatility expansion.
How to Use the Screener
For Long (Buy) Ideas
Trend = Bull
Buy Fib highlighted (green)
Buy ATR < ~1.0
RSI = Neutral or Oversold
For Short (Sell) Ideas
Trend = Bear or Neutral
Sell Fib highlighted (green)
Sell ATR < ~1.0
Price close to ATH (low Dist ATH %)
For Watchlist Priority
Look for Tight Band % values
Signals with low “Last Chg” are fresher
Customization
Assets are fully user-configurable (defaults are provided)
Thresholds for highlighting and compression can be adjusted
Designed to work on any chart timeframe
⚠️ Disclaimer
This indicator is not a trading system and does not generate buy or sell orders. It is intended for analysis and screening purposes only. Always confirm signals with your own risk management and additional analysis.
Ghost (Hide System)Ghost System - Gold Specialized Edition
High-Volatility Trend Following System for XAUUSD
🇬🇧 English Description
1. Overview
Ghost System is a high-performance trading indicator engineered specifically for Gold (XAUUSD). Gold is known for its explosive volatility and long-running trends, but also for its "choppy" consolidation periods that destroy accounts. Ghost System is designed to filter out these dangerous ranging markets and pinpoint the exact moment a massive trend begins, utilizing a fusion of Smart Money Concepts (SMC) and advanced volatility analysis.
2. Key Features
🛡️ Gold-Tuned Range Filter (Slope Logic)
Gold often creates "traps" in flat markets. The system calculates the angle (slope) of the Moving Average. If the slope is below a specific threshold (optimized for Gold at 0.3), it effectively blocks all signals, preventing losses during consolidation.
🧠 SMC & Order Block Integration
It automatically identifies institutional trading zones (Order Blocks) and "Change of Character" (CHOCH) patterns. Entries are not random; they align with where smart money enters the market.
🚀 "Ghost" Trailing Exit
Fixed take-profits limit your potential in Gold. This system uses a Dynamic 20-EMA Trailing Stop.
Benefit: As long as the price respects the 20-EMA, the trade stays open. This allows you to capture 100+ pips in a single strong move while automatically closing the position the moment the trend breaks.
💎 Visual Trade Management
Trade Lines: Solid lines connect your entry to your exit point (Blue = Win, Red = Loss), visualizing the trade history directly on the chart.
Result Labels: Displays the exact Pips gained or lost at the closing point (e.g., +50.5 pips), making it easy to review performance.
📊 Real-Time Performance Dashboard
A professional dashboard displays Win Rate, Profit Factor (PF), Total Pips, and Floating Pips (unrealized profit from open positions). It accounts for pyramiding (additional entries), giving you a complete view of your account health.
🇯🇵 日本語解説
1. 概要
Ghost System (ゴースト・システム) は、ゴールド(XAUUSD) 特有の「激しい値動き」を利益に変えるために開発された、完全特化型のトレンドフォロー・インジケーターです。 ゴールド相場で多くのトレーダーが退場する原因となる「レンジ相場(往復ビンタ)」を徹底的に排除し、機関投資家の資金が入る「初動」と「トレンドの伸び」だけを狙い撃ちするよう設計されています。
2. 主な特徴
🛡️ ゴールド専用レンジ・フィルター (傾き判定)
ゴールドのチャートは、動かない時は全く動きません。このシステムは移動平均線の「傾き(Slope)」を常に監視し、傾きが規定値(ゴールドに最適化された0.3)以下の時は、一切のエントリーサインを出しません。 これにより、無駄な損失を劇的に減らします。
🧠 SMC(スマートマネーコンセプト)搭載
機関投資家が意識する**オーダーブロック(OB)**やトレンド転換点(CHOCH)を自動で分析。単なるインジケーターの数値だけでなく、「大口投資家の痕跡」を根拠にサインを点灯させます。
🚀 利益を無限に伸ばす「ゴースト・トレーリング」
チキン利食い(早すぎる利確)を防ぐため、固定利確ではなく**「20EMA追従型」**の決済ロジックを採用しています。
メリット: トレンドが続いている限り、どれだけ価格が伸びてもポジションをホールドし続けます。これにより、ゴールド特有の数百pips級のビッグウェーブを根こそぎ獲得します。逆に、トレンドが崩れた(20EMAを割った)瞬間に即座に撤退し、利益を守ります。
💎 トレードの「見える化」機能
トレードライン: エントリーから決済までを実線(勝ち=青、負け=赤)で結びます。「どこで入り、どこで逃げたか」がチャート上で一目瞭然になります。
結果ラベル: 決済地点に +85.4 pips のように獲得pips数を表示するため、検証作業が非常にスムーズになります。
📊 リアルタイム成績ダッシュボード
チャート右上に**「勝率」「プロフィットファクター(PF)」「獲得Pips総数」**を表示。
さらに、ポジション保有中は**「現在の含み益Pips」**もリアルタイムで変動表示されるため、今どれくらい儲かっているかが瞬時に分かります。
推奨設定 (Recommended Settings)
通貨ペア: XAUUSD (Gold) 専用
時間足: 15分足 (M15) または 1時間足 (H1)
損切り: 固定 20.0 pips(ボラティリティが高い場合は調整可)
High-Probability Trendline (Breakout & Retest)High-Probability Trendline (Breakout & Retest) trend breakout and retest
Multi-cycle EMA50 + MACD divergence detectionThis tool uses a multi-period EMA50 + MACD divergence detection system. Divergence levels are indicated by dashed lines, while those without are indicated by solid lines. However, this tool cannot detect 1:1 divergence, so it is for reference only. Do not use this as a basis for opening trades; the specific trend must be analyzed based on the specific time frame.
Leswin Ribbon + Levels + Hybrid (Stocks/Crypto) v1Leswin Ribbon Signals
A trend-based momentum indicator built for day traders and scalpers. Uses an EMA ribbon, higher-timeframe trend filtering, and volatility conditions to highlight high-probability BUY and SELL zones while avoiding choppy markets.
Optimized for 5m & 15m entries, especially for SPY, QQQ, DIA, IWM, and large-cap stocks, but works on all markets including crypto and forex.
Non-repainting. Best used as a confirmation tool alongside your own levels and risk management.






















