Chart patterns
Bearish Pennant DetectorHere’s a simple Pine Script that attempts to identify bearish pennant patterns and plot a clear visual on TradingView. This version uses:
A downtrend check using moving averages.
A tight consolidation (pennant body) via narrowing Bollinger Bands.
A bearish breakout trigger.
A red triangle visual on the chart when a bearish pennant is detected.
Dynamic Candle rating by Nikhil DoshiThis custom TradingView indicator assigns a rating from 1 to 5 to each candlestick on the chart based on the relative position of the close within its high-low range. It provides an at-a-glance visual assessment of candle strength or weakness, which can be useful for gauging intrabar sentiment.
Label colors provide intuitive visual cues:
🟩 1 (Green) – Strong bullish
🟢 2 (Lime) – Mild bullish
⚪ 3 (Gray) – Neutral
🟠 4 (Orange) – Mild bearish
🔴 5 (Red) – Strong bearish
IU Three Line Strike Candlestick PatternIU Three Line Strike Candlestick Pattern
This indicator identifies the Three Line Strike candlestick pattern — a rare yet powerful 4-bar reversal setup that captures exhaustion and momentum shifts at the end of strong trends.
Pattern Logic:
The Three Line Strike is a 4-candle pattern that typically signals a sharp reversal after a sustained directional move. This script detects both bullish and bearish variations using strict criteria to ensure accuracy.
Bullish Three Line Strike:
* Previous three candles must be bearish (red)
* Each of these candles must close progressively lower (indicating a strong downtrend)
* The current candle must:
* Be bullish (green)
* Open below the prior close
* Completely engulf the previous three candles by closing above the first candle's open
* And make a higher high than the last 3 bars — confirming a strong reversal
* Once confirmed, a green shaded box is drawn around the 4-bar zone to highlight the pattern
Bearish Three Line Strike:
* Previous three candles must be bullish (green)
* Each must close progressively higher (indicating a strong uptrend)
* The current candle must:
* Be bearish (red)
* Open above the prior close
* Completely engulf the prior three candles by closing below the first candle's open
* And make a lower low than the last 3 bars — confirming downside strength
* A red shaded box is plotted around the 4-bar formation to emphasize the reversal zone
Why this is unique:
Most candlestick tools focus on 1–2 bar patterns. The Three Line Strike goes a step further by combining trend exhaustion (3 same-colored candles) with a full reversal engulfing candle. This pattern is both rare and highly expressive of sentiment shift, making it a standout signal for discretionary and algorithmic traders alike.
How users can benefit:
* High-probability setups: Filters out weak signals using multi-bar confirmation logic
* Clear visual cues: Dynamic shaded boxes and labels make spotting reversals effortless
* Cross-timeframe compatible: Works on intraday and higher timeframes across all markets
* Real-time alerts: Get notified instantly when a bullish or bearish setup forms
This indicator is a valuable addition for traders who want to capture key reversals backed by strong multi-bar price action logic. Whether you are a price action purist or a pattern-based strategist, the IU Three Line Strike gives you a reliable edge.
Disclaimer:
This script is for educational purposes only and does not constitute financial advice. Trading involves risk, and past performance is not indicative of future results. Always do your own research and consult with a licensed financial advisor before making trading decisions.
Inside Bar (Body-based) Ind/AlertDescription:
This indicator detects Inside Bar patterns based strictly on the candle body (open/close range) of the mother candle, rather than the traditional high/low wick method. An inside bar is highlighted when the current candle’s entire body is contained within the body of the previous candle.
It can be useful for traders who want a more conservative and reliable definition of inside bars, focusing on true consolidation periods and filtering out signals caused by extended wicks.
Features:
Body-based Inside Bar detection:
The indicator colors and marks candles where the current bar’s body is fully within the previous bar’s body.
Bullish/Bearish identification:
Bullish inside bars are marked in green, bearish in red.
Double Inside Bar Detection:
An optional feature marks when two consecutive candles’ bodies are inside the same mother bar body—potentially indicating stronger consolidation.
Alerts:
Set alerts for single or double inside bars for automated monitoring.
How to Use:
Add the indicator to your chart.
Look for colored bars or plotted shapes for inside bar signals based on candle bodies.
Use alerts to get notified in real time when inside bar patterns appear.
Note:
This script uses only the candle body (open and close) for inside bar calculations, which may help filter out less reliable signals found with wick-based approaches.
Multi-Pair MTF Crypto Scanner (Advanced Dashboard)This advanced TradingView indicator is designed for crypto traders seeking precise, risk-filtered signals across multiple pairs and timeframes. It combines institutional-grade signal logic with customizable risk management and clean visual labeling.
🔍 Core Features:
✅ Multi-Pair & Multi-Timeframe Scanning
Scans assets like BTC, ETH, SOL across timeframes (15m, 1H, 4H)
✅ Buy/Sell Signal Engine
Based on EMA 50/200 crossover, RSI, and volume spikes
✅ Dynamic Risk Management
Calculates Stop Loss (SL), Take Profit (TP), and Risk-Reward Ratio (RRR) using ATR
✅ RRR Filter
Signals only shown if RRR meets your defined minimum (default 1.5)
✅ Confirmation Mode
Optional setting to avoid premature signals by requiring bar-close confirmation
✅ Visual Trade Zones
Entry, SL, and TP levels plotted directly on chart
✅ Debug Mode
Shows labels when trades are rejected due to RRR filters
🧠 Ideal For:
Crypto scalpers, swing traders, and algorithmic signal testers
Traders focused on high probability entries with defined risk
📣 Alerts:
Real-time alerts for qualified BUY and SHORT signals
Configurable for automated webhook systems or mobile push
Would you like me to embed this as a comment block at the top of your Pine Script?
Crypto Scalping Dashboard [Dubic] - 15mThis indicator is designed for high-precision crypto scalping on the 15-minute chart, providing reliable trend-based BUY and SELL signals backed by multiple confirmations.
✅ Features:
🔄 EMA Trend Filter (Fast vs. Slow)
🔰 SuperTrend Confirmation
📈 CCI Momentum Signal
📊 Range Filter Volatility Detection
📍 VWAP Institutional Bias
🧠 Smart Entry Control – Only one trade per trend!
♻️ Pullback Re-entries when RSI confirms
📡 Real-time Alerts & Labels
🧩 Interactive Dashboard shows all condition statuses
📉 How It Works:
A BUY is signaled when all filters align in the bullish direction.
A SELL is signaled when all filters align in the bearish direction.
No repeated signals during a trend to avoid false entries.
Re-entry signals appear on pullbacks validated by RSI.
Built-in filters avoid signals near recent highs/lows for safer entries.
Whether you're scalping BTC, ETH, or altcoins, this tool helps you stay in sync with short-term momentum shifts.
%MAThis indicator is designed to plot a Simple Moving Average (SMA) along with customizable upper and lower bands (% up/down) on a TradingView chart. Here's a brief but thorough explanation of its functionality:
TL;DR: This script shows percentages above and below customizable moving average timeframes & legnths. It's unique in the sense that it isn't on a separate pane & gives visual clarity against the price in real time HLOC.
1. Main SMA Plot
The script calculates a Simple Moving Average (SMA) based on user-defined inputs:
Timeframe: E.g., daily ("Daily") by default.
Length: E.g., 50 periods by default.
Color: Customizable by the user.
This SMA acts as the central reference line and can be toggled on or off using a "Show" option.
2. Upper and Lower Bands
The script generates two upper bands and two lower bands around the main SMA.
Each band is derived from an SMA (calculated similarly to the main SMA) and offset by a percentage:
Upper Bands: SMA × (1 + distance percentage / 100), e.g., SMA × 1.05 for a 5% offset.
Lower Bands: SMA × (1 - distance percentage / 100), e.g., SMA × 0.95 for a 5% offset.
These bands can indicate potential support, resistance, or volatility ranges.
3. Customization
Users can independently configure:
Visibility: Toggle each band and the main SMA on or off.
Timeframe: Set the timeframe for each SMA calculation.
Length: Define the SMA period.
Distance Percentage: Adjust the offset for each band.
Color: Choose colors for all plotted lines.
This flexibility allows tailored analysis for different trading strategies or timeframes.
4. Plotting
The main SMA and each band are plotted using TradingView’s plot function, but only if their respective "Show" options are enabled.
Lines are displayed with user-specified colors and styles (e.g., the main SMA has a linewidth of 2).
Purpose
This script provides a versatile tool for technical analysis, enabling traders to visualize an SMA with percentage-based bands to identify key price levels or ranges, such as support/resistance, volatility zones, and trends, with extensive customization options.
Candle Rating (1–5)This custom TradingView indicator assigns a rating from 1 to 5 to each candlestick on the chart based on the relative position of the close within its high-low range. It provides an at-a-glance visual assessment of candle strength or weakness, which can be useful for gauging intrabar sentiment.
Plotting the Rating
The rating value is displayed above each candle using a label.
Label colors provide intuitive visual cues:
🟩 1 (Green) – Strong bullish
🟢 2 (Lime) – Mild bullish
⚪ 3 (Gray) – Neutral
🟠 4 (Orange) – Mild bearish
🔴 5 (Red) – Strong bearish
Períodos Macros com Ajuste de Horárioindicator in TradingView that marks the macro periods on the chart with colored background bands, at the following times:
09:45 – 10:15
10:45 – 11:15
11:45 – 12:15
12:45 – 13:15
13:45 – 14:15
14:45 – 15:15
Chattes-SwingCount Chattes-SwingCount
// This indicator detects swings using a custom ZigZag algorithm and calculates:
// - Average pip movement per swing
// - Standard deviation of pip movement
// - Average number of candles per swing
// - Standard deviation of candle count
//
// The stats are displayed in a compact box at the top-right corner of the chart.
//
// An alert is triggered when a swing's pip size exceeds 1.5× the standard deviation,
// helping identify unusual volatility or significant market moves.
//
// Inputs allow customization of ZigZag detection parameters and swing sample size.
1m EMA Background ColorEntry Color background indicator where when the 5 ema 1 min timeframe is above the 21 ema 1 min timeframe background is green and when 5 is below the 21 it is red. this can be used for long or short trading
ROC Spike Alert by Jaani//@version=5
indicator("ROC Spike Alert by Jaani", overlay=true)
// === Inputs ===
rocLength = input.int(9, title="ROC Length")
spikeThreshold = input.float(2.0, title="Spike Threshold (%)")
// === ROC Calculation ===
roc = 100 * (close - close ) / close
// === Spike Conditions ===
bullishSpike = roc > spikeThreshold
bearishSpike = roc < -spikeThreshold
// === Plot ROC on Separate Scale
plot(roc, title="ROC", color=color.blue, linewidth=1, display=display.none)
// === Signal Plotting on Chart ===
plotshape(bullishSpike, title="Bullish Spike", location=location.belowbar,
color=color.green, style=shape.triangleup, size=size.small, text="BUY")
plotshape(bearishSpike, title="Bearish Spike", location=location.abovebar,
color=color.red, style=shape.triangledown, size=size.small, text="SELL")
// === Alerts ===
alertcondition(bullishSpike, title="ROC Bullish Spike", message="ROC UP Spike Detected - BUY Signal")
alertcondition(bearishSpike, title="ROC Bearish Spike", message="ROC DOWN Spike Detected - SELL Signal")
Supply Demand - Price Action Forecast ( ERJUANSTURK )1 - Supply Demand: Shows support and resistance based on past purchase and sale volumes. The price is written in the support and resistance boxes.
2 - Price Action Forecast: Situations that have been similar in the past (candlesticks) are possible to occur in the future.
Enhanced Market Structure & Trading SignalsEnhanced Market Structure & Trading Signals
A Smart Support/Resistance Indicator with Buy/Sell Alerts
This indicator identifies key support & resistance levels and generates high-probability buy/sell signals based on price action and candle structure. It helps traders spot potential reversals at critical levels, just like manual analysis but with algorithmic precision.
🔹 Key Features
✅ Clean Support/Resistance Lines – Draws horizontal levels like manual charting
✅ Smart Buy/Sell Signals – Detects reversals at key levels with confirmation
✅ Price Action Filter – Only triggers signals on strong bullish/bearish candles
✅ ATR-Based Proximity Check – Ensures signals occur near valid S/R zones
✅ Customizable Settings – Adjust sensitivity, confirmation bars, and visibility
🔹 How It Works
Support/Resistance Detection – Uses pivot highs/lows to mark key levels
Bullish Signals (Green ▲) – Triggers near support after a strong bullish candle + confirmation
Bearish Signals (Red ▼) – Triggers near resistance after a strong bearish candle + confirmation
🔹 Recommended Settings
Timeframe: 1H or higher (works best on swing trading)
Confirmation Bars: 2-3 (for stricter signals)
Left/Right Bars: 10-20 (adjust based on market volatility)
🔹 How to Trade with This Indicator
Go Long when a green ▲ appears near support
Go Short when a red ▼ appears near resistance
Combine with: Trend analysis, volume confirmation, or RSI for higher accuracy
📌 Note: Works best in trending or ranging markets. Avoid using in choppy/low-liquidity conditions.
First 15-Min Candle High/Low### 📘 Description of the Script
This Pine Script indicator draws **horizontal lines** at the **high and low of the first 15-minute candle after the market opens at 9:30 AM (New York time)**. It is designed for use on **intraday charts** (e.g., 1m, 5m) for U.S. stock markets.
---
### 🔍 What the Script Does
* **Fetches 15-minute candle data** using `request.security()` from the `"15"` timeframe.
* **Detects the first 15-minute candle starting at 9:30 AM** (i.e., the 9:30–9:45 candle).
* **Saves the high and low** of that first 15-minute candle.
* **Plots horizontal lines** at those high/low levels for the rest of the trading day.
* **Resets at the start of each new day**, so the levels are updated fresh each morning.
---
### 🕒 When It Updates
* At exactly 9:45 AM (when the first 15-minute candle closes), it captures the high/low.
* Lines remain plotted for the rest of the day until the script resets on a new day.
---
### 🧠 Why This Is Useful
Traders often watch the **initial 15-minute range** as a key zone for:
* Breakouts or breakdowns
* Trend direction confirmation
* Entry or exit signals
This script helps visualize that range clearly and automatically.
---
Let me know if you want to:
* Extend the line beyond today
* Add alerts for breakouts
* Support different market open times (e.g., futures or forex markets)
Candle Eraser (New York Time, Dropdown)If you want to focus on first 3 hours of Asia, London> and New York, inspired by Stacey Burke Trading 12 Candle Window Concept
- Set your time to UTC-4 New York
EMA MAs 7EMA(ERJUANSTURK)All ema mas values are entered. 20, 50, 100,150,200,300,400. The indicator is designed simply and elegantly.
MACD First Bullish Histogram (Momentum Signal)//@version=5
indicator("MACD First Bullish Histogram (Momentum Signal)", overlay=true)
// MACD Settings
fastLen = 12
slowLen = 26
signalLen = 9
// MACD Calculation
= ta.macd(close, fastLen, slowLen, signalLen)
// First green histogram bar (was red before)
firstGreenHist = hist > 0 and hist <= 0
// Confirm MACD line is above signal (bullish)
macdIsBullish = macdLine > signalLine
// Final signal condition
firstMomentumCandle = firstGreenHist and macdIsBullish
// Plot signal
plotshape(firstMomentumCandle, location=location.belowbar, color=color.lime, style=shape.labelup, size=size.small, text="MACD⇧")
// Alert condition
alertcondition(firstMomentumCandle, title="MACD Bullish Momentum Candle", message="MACD Momentum Signal on {{ticker}} at {{close}}")
MACD Bullish Crossover Signal//@version=5
indicator("MACD Bullish Crossover Signal", overlay=true)
// MACD Calculation
fastLength = 12
slowLength = 26
signalSmoothing = 9
= ta.macd(close, fastLength, slowLength, signalSmoothing)
// Detect Bullish Crossover
bullishCross = ta.crossover(macdLine, signalLine)
// Plot signal on chart
plotshape(bullishCross, title="MACD Bullish Crossover", location=location.belowbar, color=color.green, style=shape.labelup, text="MACD+", textcolor=color.white, size=size.small)
// Create alert condition
alertcondition(bullishCross, title="Alert: MACD Bullish Crossover", message="MACD Bullish Crossover on {{ticker}} at {{close}}")
Trading Time Highlighter v2Check boxes for days of week.
Set the time you want to trade or backtest.
Adjust for UTC time.
GM
Dynamic Candle rating by Nikhil DoshiThis custom TradingView indicator assigns a rating from 1 to 5 to each candlestick on the chart based on the relative position of the close within its high-low range. It provides an at-a-glance visual assessment of candle strength or weakness, which can be useful for gauging intrabar sentiment.
Label colors provide intuitive visual cues:
🟩 1 (Green) – Strong bullish
🟢 2 (Lime) – Mild bullish
⚪ 3 (Gray) – Neutral
🟠 4 (Orange) – Mild bearish
🔴 5 (Red) – Strong bearish
Enigma Sniper 369The "Enigma Sniper 369" is a custom-built Pine Script indicator designed for TradingView, tailored specifically for forex traders seeking high-probability entries during high-volatility market sessions.
Unlike generic trend-following or scalping tools, this indicator uniquely combines session-based "kill zones" (London and US sessions), momentum-based candle analysis, and an optional EMA trend filter to pinpoint liquidity grabs and reversal opportunities.
Its originality lies in its focus on liquidity hunting—identifying levels where stop losses are likely clustered (around swing highs/lows and wick midpoints)—and providing visual entry zones that are dynamically removed once price breaches them, reducing clutter and focusing on actionable signals.
The name "369" reflects the structured approach of three key components (session timing, candle logic, and trend filter) working in harmony to snipe precise entries.
What It Does
"Enigma Sniper 369" identifies potential buy and sell opportunities by drawing two types of horizontal lines on the chart during user-defined London and US
session kill zones:
Solid Lines: Mark the swing low (for buys) or swing high (for sells) of a trigger candle, indicating a potential entry point where stop losses might be clustered.
Dotted Lines: Mark the 50% level of the candle’s wick (lower wick for buys, upper wick for sells), serving as a secondary confirmation zone for entries or tighter stop-loss placement.
These lines are plotted only when specific candle conditions are met within the kill zones, and they are automatically deleted once the price crosses them, signaling that the liquidity at that level has likely been grabbed. The indicator also includes an optional EMA filter to ensure trades align with the broader trend, reducing false signals in choppy markets.
How It Works
The indicator’s logic is built on a multi-layered approach:
Kill Zone Timing: Trades are only considered during user-defined London and US session hours (e.g., London from 02:00 to 12:00 UTC, as seen in the screenshots). These sessions are known for high volatility and liquidity, making them ideal for capturing institutional moves.
Candle-Based Momentum Logic:
Buy Signal: A candle must close above its midpoint (indicating bullish momentum) and have a lower low than the previous candle (suggesting a potential liquidity grab below the previous swing low). This is expressed as close > (high + low) / 2 and low < low .
Sell Signal: A candle must close below its midpoint (bearish momentum) and have a higher high than the previous candle (indicating a potential liquidity grab above the previous swing high), expressed as close < (high + low) / 2 and high > high .
These conditions ensure the indicator targets candles that break recent structure to hunt stop losses while showing directional momentum.
Optional EMA Filter: A 50-period EMA (customizable) can be enabled to filter signals based on trend direction.
Buy signals are only generated if the EMA is trending upward (ema_value > ema_value ), and sell signals require a downward EMA trend (ema_value < ema_value ). This reduces noise by aligning entries with the broader market trend.
Liquidity Levels and Deletion Logic:
For a buy signal, a solid green line is drawn at the candle’s low, and a dotted green line at the 50% level of the lower wick (from the candle body’s bottom to the low).
For a sell signal, a solid red line is drawn at the candle’s high, and a dotted red line at the 50% level of the upper wick (from the body’s top to the high).
These lines extend to the right until the price crosses them, at which point they are deleted, indicating the liquidity at that level has been taken (e.g., stop losses triggered).
Alerts: The indicator includes alert conditions for buy and sell signals, notifying traders when a new setup is identified.
Underlying Concepts
The indicator is grounded in the concept of liquidity hunting, a strategy often employed by institutional traders. Markets frequently move to levels where stop losses are clustered—typically just beyond swing highs or lows—before reversing in the opposite direction. The "Enigma Sniper 369" targets these moves by identifying candles that break structure (e.g., a lower low or higher high) during high-volatility sessions, suggesting a potential sweep of stop losses. The 50% wick level acts as a secondary confirmation, as this midpoint often represents a zone where tighter stop losses are placed by retail traders. The optional EMA filter adds a trend-following element, ensuring entries are taken in the direction of the broader market momentum, which is particularly useful on lower timeframes like the 15-minute chart shown in the screenshots.
How to Use It
Here’s a step-by-step guide based on the provided usage example on the GBP/USD 15-minute chart:
Setup the Indicator: Add "Enigma Sniper 369" to your TradingView chart. Adjust the London and US session hours to match your timezone (e.g., London from 02:00 to 12:00 UTC, US from 13:00 to 22:00 UTC). Customize the EMA period (default 50) and line styles/colors if desired.
Identify Kill Zones: The indicator highlights the London session in light green and the US session in light purple, as seen in the screenshots. Focus on these periods for signals, as they are the most volatile and likely to produce liquidity grabs.
Wait for a Signal: Look for solid and dotted lines to appear during the kill zones:
Buy Setup: A solid green line at the swing low and a dotted green line at the 50% lower wick level indicate a potential buy. This suggests the market may have grabbed liquidity below the swing low and is now poised to move higher.
Sell Setup: A solid red line at the swing high and a dotted red line at the 50% upper wick level indicate a potential sell, suggesting liquidity was taken above the swing high.
Place Your Trade:
For a buy, set a buy limit order at the dotted green line (50% wick level), as this is a more conservative entry point. Place your stop loss just below the solid green line (swing low) to cover the full swing. For example, in the screenshots, the market retraces to the dotted line at 1.32980 after a liquidity grab below the swing low, triggering a buy limit order.
For a sell, set a sell limit order at the dotted red line, with a stop loss just above the solid red line.
Monitor Price Action: Once the price crosses a line, it is deleted, indicating the liquidity at that level has been taken. In the screenshots, after the buy limit is triggered, the market moves higher, confirming the setup. The caption notes, “The market returns and tags us in long with a buy limit,” highlighting this retracement strategy.
Additional Context: Use the indicator to identify liquidity levels that may be targeted later. For example, the screenshot notes, “If a new session is about to open I will wait for the grab liquidity to go long,” showing how the indicator can be used to anticipate future moves at session opens (e.g., London open at 1.32980).
Risk Management: Always set a stop loss below the swing low (for buys) or above the swing high (for sells) to protect against adverse moves. The 50% wick level helps tighten entries, improving the risk-reward ratio.
Practical Example
On the GBP/USD 15-minute chart, during the London session (02:00 UTC), the indicator identifies a buy setup with a solid green line at 1.32901 (swing low) and a dotted green line at 1.32980 (50% wick level). The market initially dips below the swing low, grabbing liquidity, then retraces to the dotted line, triggering a buy limit order. The price subsequently rises to 1.33404, yielding a profitable trade. The user notes, “The logic is in the last candle it provides new level to go long,” emphasizing the indicator’s ability to identify fresh levels after a liquidity sweep.
Customization Tips
Adjust the EMA period to suit your timeframe (e.g., a shorter period like 20 for faster signals on lower timeframes).
Modify the session hours to align with your broker’s timezone or specific market conditions.
Use the alert feature to get notified of new setups without constantly monitoring the chart.
Why It’s Useful for Traders
The "Enigma Sniper 369" stands out by combining session timing, momentum-based candle analysis, and liquidity hunting into a single tool. It provides clear, actionable levels for entries and stop losses, removes invalid signals dynamically, and aligns trades with high-probability market conditions. Whether you’re a scalper looking for quick moves during London open or a swing trader targeting session-based reversals, this indicator offers a structured, data-driven approach to trading.