Price Deviation from MA5 (%)This custom TradingView indicator calculates and displays the percentage deviation of the current closing price from its 5-day simple moving average (MA5).
Candlestick analysis
Flexible Reversal DetectorFlexible Reversal Detector
An advanced, fully customizable analytical tool designed to identify local trend reversal zones based on candlestick formations. Users have full control over all logic parameters, making it adaptable to different trading styles and preferences.
Key Features
Adjustable maximum pattern length (number of candles)
Customizable body size ratios for initial, middle, and final candles
Configurable minimum price movement (in %) required before a pattern is considered valid
Colored horizontal lines showing the full length of the pattern – helpful in identifying structure, potential support/resistance zones
Optional volume filter – the volume of the final candle is compared to a volume SMA; multiplier can be adjusted (e.g. 1 = equal to average, 0.8 = 80% of average)
Logic Overview
U Pattern
Each bearish candle is treated as a potential start of a reversal pattern.
Subsequent candles, if small enough and within defined thresholds, form the middle part of the structure.
When a bullish candle with a sufficiently large body appears, it is marked as the final candle of the pattern.
The pattern is considered valid if it was preceded by a defined percentage price drop and – optionally – if the volume condition was met.
∩ Pattern
Each bullish candle may act as the initial candle of a potential reversal pattern in the opposite direction.
Following smaller candles form the middle part, as long as they meet the defined criteria.
The appearance of a strong bearish candle marks the end of the formation.
If this pattern is preceded by a certain price increase (and optionally meets the volume filter), it is highlighted on the chart.
Note: On markets with low volatility or on lower timeframes, it is recommended to reduce the percentage thresholds for signal detection. For more dynamic price action or higher timeframes, consider increasing them accordingly.
Visualization
The final candle of the pattern is marked visually on the chart (depending on direction)
Colored horizontal lines indicate the full span of the pattern – from initial to final candle
PO3 Multi-Timeframe Strategy Framework🔴 4H Wick High & 🟢 4H Wick Low (Approximated)
Displays the high and low of the 4-hour wick range, calculated using the last 48 1-minute candles (approx. 4 hours).
Helps identify key liquidity zones for sweep setups.
📉 Fair Value Gaps (FVGs)
Marks standard FVGs where price moves with a visible gap between candles (momentum imbalances).
Gray label "FVG" appears below bars when triggered.
📈 Inverse Fair Value Gaps (IFVGs)
Highlights price candles that completely skip over the prior candle’s high or low — often leading to reversals.
Blue triangle appears above bars when detected.
🚀 Change in State of Delivery (CISD)
Indicates breakout moves where price closes above recent highs (used as entry confirmation).
Green triangle appears below bars to signal breakout intent.
⏰ Time Filter (Starts after 10AM EST)
All logic activates only after a 10AM EST session open to align with liquidity injections.
Weekly Signals Stochastic Oscillator 14, 1, 3 (Roman)This indicator shows Weekly Sell / Buy Signals based on Stochastic Oscillator curves (14, 1, 3) in the overpriced and underpriced zones. (You can also set Alarms with this Script). Feel free to use the script code :-).
Curves Stochastic Oscillator 14, 1, 3 (Roman)This indicator shows the Stochastic Oscillator curves (14, 1, 3) and the overpriced and underpriced zones. Feel free to use the script code :-).
ES 5-Min Confluence Strategy with Swing LevelsThe "ES 5-Minute Confluence Strategy" is designed for scalping the E-mini S&P 500 futures contract. It combines five key indicators—EMA, VWAP, MACD, RSI, and Volume—along with swing high/low levels to identify high-probability entry points within a specified trading session. The strategy enters long or short positions when all indicators align, confirming a strong trend or reversal. Stop-loss orders are placed based on ATR below swing lows (for longs) or above swing highs (for shorts), while take-profit orders are set at a fixed point value. All parameters are customizable, allowing traders to optimize the strategy for their individual risk tolerance and market conditions.
Trendline Breakouts With Volume Strength [TradeDots]Trendline Breakouts With Volume Strength is an innovative indicator designed to identify potential market turning points using pivot-based trendline detection and volume confirmation. By merging dynamic trendline analysis with multi-tiered volume filters, this tool helps traders quickly spot breakouts or breakdowns that may signal significant shifts in price action.
📝 HOW IT WORKS
1. Pivot-Based Trendline Detection
The script automatically scans for recent pivot highs and lows over a user-defined lookback period.
When it finds higher pivot lows, it plots green uptrend lines; when it finds lower pivot highs, it plots red downtrend lines.
These dynamic lines update as new pivots form, providing continuously refreshed trend guidance.
2. Volume Ratio Analysis
A moving average of volume is compared against the current bar’s volume to calculate a ratio (e.g., 1.5×, 2×).
Higher ratios suggest above-average volume, often interpreted as stronger participation.
The script applies color-coded cues to highlight the intensity of volume surges.
3. Breakout & Breakdown Detection
Each trendline is monitored for a defined “break threshold,” which helps avoid minor penetrations that can trigger premature signals.
When price closes beyond a threshold below an uptrend line, the indicator labels it a “BREAKDOWN.” If it closes above a threshold on a downtrend line, it labels it a “BREAKOUT.”
Volume surges accompanying these breaks are highlighted with contextual emojis and distinct color gradients for quick visual reference.
4. Trend Direction Table
A small on-chart table provides a snapshot of the current market trend—Uptrend, Downtrend, or Sideways—based on a simple moving average slope and the number of active uptrend or downtrend lines.
This table also displays quick stats on how many lines are actively tracked, helping traders assess the broader market posture at a glance.
🛠️ HOW TO USE
1. Choose a Timeframe
This script works on multiple timeframes. Intraday traders can monitor minute or hourly charts for frequent pivot updates, while swing and position traders may prefer daily or weekly intervals to reduce noise.
2. Observe Trendlines & Labels
Watch for newly drawn green/red lines connecting pivots.
When you see a “BREAKOUT” or “BREAKDOWN” label, confirm whether volume was abnormally high based on the ratio or color-coded bars.
3. Consult the Trend Table
Use the table in the bottom-right corner to quickly check if the market is trending or range-bound.
Look at the count of active uptrend vs. downtrend lines to gauge broader sentiment.
4. Employ Additional Analysis
Combine these signals with other tools (e.g., candlestick patterns, oscillators, or fundamental analysis).
Validate potential breakouts using standard techniques like retests or support/resistance checks.
❗️LIMITATIONS
Delayed Pivots: Trendlines only adjust once new pivot highs or lows form, which can introduce a slight lag in highly volatile environments.
Choppy Markets: Rapid, back-and-forth price moves may produce conflicting trendline signals and frequent breakouts/breakdowns.
Volume Data Reliability: Gaps in volume data or unusual market conditions (holidays, low-liquidity sessions) can skew ratio readings.
RISK DISCLAIMER
Trading any financial instrument involves substantial risk, and this indicator does not guarantee profits or prevent losses. All signals and visual cues are for educational and informational purposes only; past performance does not assure future outcomes. You retain full responsibility for your trading decisions, including proper risk management, position sizing, and the use of additional confirmation methods. Always consider the possibility of losing some or all of your original investment.
Previous Day High & Low)Previous Day High & Low (PDH/PDL)
This simple but essential tool plots the previous day's high and low as dynamic horizontal lines across the current trading session. Ideal for traders who rely on key support and resistance levels, this indicator automatically updates at the start of each new day and extends the levels across the chart.
🔹 Features:
Automatically tracks and draws the previous day’s high and low.
Lines update cleanly at each new session.
Helps identify breakout and reversal zones.
Perfect for scalpers, intraday traders, and anyone watching for reactions at key levels.
Sniper OB + FVG + BOS [GC/NQ/ES]📌 Indicator Name:
Sniper OB + FVG + BOS
🧠 Description:
The Sniper OB + FVG + BOS indicator is a precision trading tool built for traders who use Smart Money Concepts to catch high-probability setups across Gold (GC1), NASDAQ (NQ), and S&P 500 (ES).
This all-in-one script detects:
🔶 Fair Value Gaps (FVG) – Institutional imbalances based on price inefficiencies
🟥 Order Blocks (OB) – Bullish and bearish blocks based on engulfing structures
✅ Breaks of Structure (BOS) – Key confirmation of market direction
⏱️ Multi-Timeframe Compatible – Built to align setups across 4H, 1H, 15M, and 5M
Perfect for:
🟡 Gold Futures (GC1)
🔵 NASDAQ (NQ)
🔴 S&P 500 (ES)
And fully customizable via user-friendly toggles.
🎯 Use Cases:
Spot sniper entry zones with structure and imbalance confluence
Avoid low-probability trades in consolidation zones
Get visual confirmation for funded challenges or prop firm rules
Adapt to both swing and intraday strategies using clean, rule-based logic
🔧 Key Features:
Visual plot of FVGs, OBs, BOS directly on your chart
Works across any asset or timeframe
No repainting zones
Clean overlays that don’t clutter your chart
Built by a Topstep trader for precision execution
💡 Best For:
Funded account traders
SMC/ICT-inspired traders
Gold and index scalpers
Anyone who wants visual clarity and smart automation
GStrategy 1000Pepe 15mTrend Following Candlestick Strategy with EMA Filter and Exit Delay
Strategy Concept
This strategy combines candlestick patterns with EMA trend filtering to identify high-probability trade entries, featuring:
Entry Signals: Hammer and Engulfing patterns confirmed by EMA trend
Trend Filter: Fast EMA (20) vs Slow EMA (50) crossover system
Risk Management: 5% stop-loss + 1% trailing stop
Smart Exit: 2-bar delay after exit signals to avoid whipsaws
Key Components
Trend Identification:
Uptrend: Fast EMA > Slow EMA AND rising
Downtrend: Fast EMA < Slow EMA AND falling
Entry Conditions:
pinescript
// Bullish Entry (Long)
longCondition = (Hammer OR Bullish Engulfing)
AND Uptrend
AND no existing position
// Bearish Entry (Short)
shortCondition = Bearish Engulfing
AND Downtrend
AND no existing position
Exit Mechanics:
Primary Exit: EMA crossover (Fast crosses Slow)
Delayed Execution: Waits 2 full candles after signal
Emergency Exits:
5% fixed stop-loss
1% trailing stop
Visual Dashboard:
Colored EMA lines (Blue=Fast, Red=Slow)
Annotated candlestick patterns
Background highlighting for signals
Distinct markers for entries/exits
Unique Features
Pattern Recognition:
Enhanced Hammer detection (strict body/wick ratios)
Multi-candle engulfing confirmation
Trend-Confirmation:
Requires price and EMA alignment
Filters counter-trend patterns
Exit Optimization:
pinescript
// Delay implementation
if exit_signal_triggered
counter := 2 // Start countdown
else if counter > 0
counter -= 1 // Decrement each bar
exit_trade = (counter == 1) // Execute on final bar
Risk Parameters
Parameter Value Description
Stop Loss 5% Fixed risk per trade
Trailing Stop 1% Locks in profits
Exit Delay 2 bars Reduces false exits
Position Size 100% No pyramiding
Visualization Examples
🟢 Green Triangle: Bullish entry
🔴 Red Triangle: Bearish entry
⬇️ Blue X: Long exit (after delay)
⬆️ Green X: Short exit (after delay)
🎯 Pattern Labels: Identifies hammer/engulfing
Recommended Use
Timeframes: 1H-4H (reduces noise)
Markets: Trend-prone assets (FX, indices)
Best Conditions: Strong trending markets
Avoid: Choppy/Ranging markets
Smart CVD Exit Alert (Daily, Light Threshold)Smart Capital Exit Strategy Using Daily CVD (Smoothed)
🧠 Concept:
This strategy focuses on identifying significant capital outflows from an asset by analyzing smoothed Cumulative Volume Delta (CVD) data on the daily timeframe. The goal is not to catch every top, but to spot major distribution phases — when large players are quietly exiting positions.
🔍 Logic:
We calculate the daily CVD by comparing up-volume (on bullish candles) and down-volume (on bearish candles), then smooth the result using a simple moving average. A sell signal is triggered only when:
The smoothed CVD drops below a user-defined threshold (default: -100,000)
The day-over-day drop in CVD exceeds a defined amount (default: -50,000)
This dual condition helps reduce noise and avoids false signals during sideways or low-volume conditions.
🕒 Timeframes:
This script is designed to be used on the Daily (1D) chart, as it aggregates volume data per day to assess macro-level capital flow. You can customize the thresholds based on the asset's average volume.
⚙️ Settings:
CVD Threshold: Minimum CVD value required to consider it a strong outflow
Drop in CVD Threshold: Minimum change in smoothed CVD from the previous day
Smoothing Length: Length of the moving average applied to the CVD values
📍 Use Case:
Use this script as a profit-taking filter — not a blind exit trigger. It helps you step away from positions when real, meaningful selling starts to appear.
📌 Visuals:
Red “Sell” labels will appear at the top of candles when both exit conditions are met. You’ll also see a blue smoothed CVD line plotted below your chart for reference.
🔔 Alerts:
An alert is built-in and fires whenever an exit signal is triggered, letting you react instantly.
📜 Please remember to do your own research before making any investment decisions. Also, don’t forget to check the disclaimer at the bottom of each post for more details.
✨ Need a little love!
We put so much love and time into bringing you useful content & your support truly keeps us going. don’t be shy—drop a comment below. We’d love to hear from you! 💛
Big thanks,
Mad Whale 🐋
10-Period Simple Moving AverageSimple Moving Average 10 Period. Moving average 10 period. SMA. The SMA works on any timeframe (e.g., 1-minute, 1-hour, daily). The 10-period SMA will calculate based on the chart’s timeframe (e.g., 10 minutes on a 1-minute chart, 10 days on a daily chart). If you want to change the SMA period, edit the number in ta.sma(close, 10) to your desired period (e.g., ta.sma(close, 20) for a 20-period SMA).
Opening Range + Full-Day High/Low + Prev Day LevelsDraws a box around the first 15min range with horizontal lines extending throughout the day, with faded lines of the previous day's highs and lows, also draws arrows for 5m breakouts of those levels
DeltaStrike — Aggressive Candle Detector by Chaitu50cDeltaStrike — Aggressive Candle Detector
by Chaitu50c
DeltaStrike is a simple and effective tool designed to help traders identify the most aggressive candles on the chart in real time. It works purely on price action and internal candle dynamics, with no reliance on lagging indicators.
The indicator combines delta (directional strength), candle range, and volume to compute an overall aggressiveness score for each candle. When this score exceeds a dynamic threshold based on recent market behavior, the candle is marked as an aggressive move.
Aggressive bullish candles are plotted as green diamonds below the candle, while aggressive bearish candles are plotted as red diamonds above the candle. The goal is to help traders visually spot moments of strong directional pressure, where potential trends or reversals may emerge.
The detection logic adapts automatically to changing market volatility and volume, making it suitable for all instruments and timeframes, including index futures, equities, and forex.
An integrated dashboard on the chart displays live readings of the key components contributing to each candle’s aggressiveness score: delta ratio, range ratio, and volume ratio. This helps traders understand the internal structure of each aggressive move.
Features:
Dynamic aggressiveness detection based on delta, range, and volume
Adaptive threshold for consistent behavior across timeframes and instruments
Clean chart output with clear diamond markers only on selected candles
Live dashboard with internal metrics for advanced analysis
Simple, lightweight, and optimized for intraday and swing trading
Works with any instrument: index, equity, forex, commodity
DeltaStrike is intended as an objective visual aid to help traders focus on genuine moments of strong market intent, filtering out ordinary or passive price movement. It can be used standalone or in combination with your existing trading strategy.
Liquidity Engulfing (Nephew_Sam_)🔥 Liquidity Engulfing Multi-Timeframe Detector
This indicator finds engulfing bars which have swept liquidity from its previous candle. You can use it across 6 timeframes with fibonacci entries.
⚡ Key Features
6 Customizable Timeframes - Complete market structure analysis
Smart Liquidity Detection - Finds patterns that sweep liquidity then reverse
Real-Time Status Table - Confirmed vs unconfirmed patterns with color coding
Fibonacci Integration - 5 customizable fib levels for precise entries
HTF → LTF Strategy - Spot reversals on higher timeframes, enter on lower timeframe fibs
📈 Engulfing Rules
Bullish: Current candle bullish + previous bearish + current low < previous low + current close > previous open
Bearish: Current candle bearish + previous bullish + current high > previous high + current close < previous open
Candle Close Location MarkerThis script customizes the appearance of candlesticks by highlighting whether the candle closed in the upper, middle, or lower part of its range — using a small orange marker inside each candle.
It also includes a traditional volume histogram with two simple moving averages (SMA 20 and SMA 50), helping traders detect volume trends and potential reversals.
📌 Useful for identifying strength of momentum and visualizing market sentiment clearly.
Features:
• ✅ Colored candles: green for bullish, black for bearish
• ✅ Orange square shows the position of the close (top, middle, or bottom of the candle)
• ✅ Volume bars with SMA 20 (orange) and SMA 50 (blue)
• ✅ Works on all timeframes
Developed by:
Version: 1.0
Language: Pine Script v5
Smart Bar Counter with Alerts🚀 Smart Bar Counter with Alerts 🚀
-----------------------------------------------------
Overview
-----------------------------------------------------
Ever wanted to count a specific number of bars from a key point on your chart—such as after a Break of Structure (BOS), the start of a new trading session, or from any point of interest— without having to stare at the screen?
This "Smart Bar Counter" indicator was created to solve this exact problem. It's a simple yet powerful tool that allows you to define a custom "Start Point" and a "Target Bar Count." Once the target count is reached, it can trigger an Alert to notify you immediately.
-----------------------------------------------------
Key Features
-----------------------------------------------------
• Manual Start Point: Precisely select the date and time from which you want the count to begin, offering maximum flexibility in your analysis.
• Custom Bar Target: Define exactly how many bars you want to count, whether it's 50, 100, or 200 bars.
• On-Chart Display: A running count is displayed on each bar after the start time, allowing you to visually track the progress.
• Automatic Alerts: Set up alerts to be notified via TradingView's various channels (pop-up, mobile app, email) once the target count is reached.
-----------------------------------------------------
How to Use
-----------------------------------------------------
1. Add this indicator to your chart.
2. Go to the indicator's Settings (Gear Icon ⚙️).
- Select Start Time: Set the date and time you wish to begin counting.
- Number of Bars to Count: Input your target number.
3. Set up the Alert ( Very Important! ).
- Right-click on the chart > Select " Add alert ."
- In the " Condition " dropdown, select this indicator: Smart Bar Counter with Alerts .
- In the next dropdown, choose the available alert condition.
- Set " Options " to Once Per Bar Close .
- Choose your desired notification methods under " Alert Actions ."
- Click " Create ."
-----------------------------------------------------
Use Cases
-----------------------------------------------------
• Post-Event Analysis: Count bars after a key event like a Break of Structure (BOS) or Change of Character (CHoCH) to observe subsequent price action.
• Time-based Analysis: Use it to count bars after a market open for a specific session (e.g., London, New York).
• Strategy Backtesting: Useful for testing trading rules that are based on time or a specific number of bars.
-----------------------------------------------------
Final Words
-----------------------------------------------------
Hope you find this indicator useful for your analysis and trading strategies! Feel free to leave comments or suggestions below.
Candle Body Strength CounterThis indicator measures the total bullish and bearish candle body strength over a user-defined lookback period. For each bar, it sums the absolute body sizes of bullish candles (where close > open) and bearish candles (where close < open) within the lookback window. The result is two lines: one for bullish body strength and one for bearish body strength, making it easy to spot shifts in market momentum and bias.
Adjustable lookback period (default: 20 bars)
Green line: cumulative bullish body strength
Red line: cumulative bearish body strength
Use this tool to quickly assess which side (bulls or bears) has been stronger over your chosen timeframe.
Math by Thomas Liquidity PoolDescription
Math by Thomas Liquidity Pool is a TradingView indicator designed to visually identify potential liquidity pools on the chart by detecting areas where price forms clusters of equal highs or equal lows.
Bullish Liquidity Pools (Green Boxes): Marked below price where two adjacent candles have similar lows within a specified difference, indicating potential demand zones or stop loss clusters below support.
Bearish Liquidity Pools (Red Boxes): Marked above price where two adjacent candles have similar highs within the difference threshold, indicating potential supply zones or stop loss clusters above resistance.
This tool helps traders spot areas where smart money might hunt stop losses or where price is likely to react, providing valuable insight for trade entries, exits, and risk management.
Features:
Adjustable box height (vertical range) in points.
Adjustable maximum difference threshold between candle highs/lows to consider them equal.
Boxes automatically extend forward for visibility and delete when price sweeps through or after a defined lifetime.
Separate visual zones for bullish and bearish liquidity with customizable colors.
How to Use
Add the Indicator to your chart (preferably on instruments like Nifty where point-based thresholds are meaningful).
Adjust Inputs:
Box Height: Set the vertical size of the liquidity zones (default 15 points).
Max Difference Between Highs/Lows: Set the max price difference to consider two candle highs or lows as “equal” (default 10 points).
Box Lifetime: How many bars the box stays visible if not swept (default 120 bars).
Interpret Boxes:
Green Boxes (Bullish Liquidity Pools): Areas of potential demand and stop loss clusters below price. Watch for price bounces or accumulation near these zones.
Red Boxes (Bearish Liquidity Pools): Areas of potential supply and stop loss clusters above price. Watch for price rejections or distribution near these zones.
Trading Strategy Tips:
Use these zones to anticipate where stop loss hunting or liquidity sweeps may occur.
Combine with your Order Block, Fair Value Gap, and Market Structure tools for higher probability setups.
Manage risk by avoiding entries into price regions just before large liquidity pools get swept.
Automatic Cleanup:
Boxes delete automatically once price breaks above (for bearish zones) or below (for bullish zones) the zone or after the set lifetime.
Bounce Zone📘 Bounce Zone – Indicator Description
The "Bounce Zone" indicator is a custom tool designed to highlight potential reversal zones on the chart based on volume exhaustion and price structure. It identifies sequences of candles with low volume activity and marks key price levels that could act as "bounce zones", where price is likely to react.
🔍 How It Works
Volume Analysis:
The indicator calculates a Simple Moving Average (SMA) of volume (default: 20 periods).
It looks for at least 6 consecutive candles (configurable) where the volume is below this volume SMA.
Color Consistency:
The candles must all be of the same color:
Green candles (bullish) for potential downward bounce zones.
Red candles (bearish) for potential upward bounce zones.
Zone Detection:
When a valid sequence is found:
For green candles: it draws a horizontal line at the low of the last red candle before the sequence.
For red candles: it draws a horizontal line at the high of the last green candle before the sequence.
Bounce Tracking:
Each horizontal line remains on the chart until it is touched twice by price (high or low depending on direction).
After two touches, the line is automatically removed, indicating the zone has fulfilled its purpose.
📈 Use Cases
Identify areas of price exhaustion after strong directional pushes.
Spot liquidity zones where institutions might step in.
Combine with candlestick confirmation for reversal trades.
Useful in both trending and range-bound markets for entry or exit signals.
⚙️ Parameters
min_consecutive: Minimum number of consecutive low-volume candles of the same color (default: 6).
vol_ma_len: Length of the volume moving average (default: 20).
🧠 Notes
The indicator does not repaint and is based purely on historical candle and volume structure.
Designed for manual strategy confirmation or support for algorithmic setups.
Year/Quarter Open LevelsDeveloped by ADEL CEZAR and inspired by insights from ERDAL Y, this indicator is designed to give traders a clear edge by automatically plotting the Yearly Open and Quarterly Open levels — two of the most critical institutional reference points in price action.
These levels often act as magnets for liquidity, bias confirmation zones, and support/resistance pivots on higher timeframes. With customizable settings, you can display multiple past opens, fine-tune label positions, and align your strategy with high-timeframe structure — all in a lightweight, non-intrusive design.
If you follow Smart Money Concepts (SMC), ICT models, or build confluence using HTF structures and range theory, this script will integrate seamlessly into your workflow.
David_FairPriceCandlestick_calculatedDescription:
This indicator displays the "Typical Price" for each candle as a visual marker (cross) directly on the chart. The Typical Price is calculated as the average of the High, Low, and Close values of each bar:
(High + Low + Close) / 3
The marker provides a quick visual reference to the fair or average price level within every single candle.
Unlike a Point of Control (POC) or volume-based indicators, this script works purely with price data and is independent of volume or order flow.
Use cases:
Identify where most trading activity may have been concentrated within the candle (for price-based strategies)
Support as a reference line for mean-reversion or fair value concepts
Works on all timeframes and instruments
Customization:
You can easily change the marker style (cross, dot, triangle, etc.) and color within the script.