BWTS Return ZonesThis indicator automatically shows the points where the price can turn (support and resistance) and provides additional confirmation for traders. It is designed for 4-hour and 1-day charts, but can also be operated on lower timeframes. It is suitable for spot trading or futures trading.
Candlestick analysis
Mark the last 20th candleThis Pine Script indicator, titled "Mark last 20 candle" (short name: "Last 20"), was designed to visually highlight a specific candle on your TradingView chart.
What the indicator does:
The main function of this script is to exclusively mark the first candle within the most recent window of 20 candles on your chart . Instead of coloring all 20 candles, it precisely identifies and highlights only the beginning of this 20-candle sequence.
How the indicator works:
Number of candles: The script uses a user-defined variable, num_candles_to_mark , set to 20 , to specify the size of the relevant candle window.
Dynamic Identification: The indicator uses the built-in Pine Script variables:
bar_index: Represents the index of the currently processed candle (starting at 0).
last_bar_index: Represents the index of the very last available candle in your chart (the most recent).
Precise Marking: The core logic bar_index == last_bar_index - num_candles_to_mark + 1 calculates the exact index of the candle that is 20 bars before the last_bar_index . If the bar_index of the currently processed candle matches this calculated position, that specific candle is colored blue with 80% transparency.
Automatic Shift: As new candles appear on your chart (and last_bar_index increases accordingly), the calculated target index ( last_bar_index - num_candles_to_mark + 1 ) also automatically shifts one bar to the right. This ensures that the marked candle automatically "moves along" and always highlights the first candle of the current 20-candle window.
Usage:
This indicator is useful for traders who want to visually track the starting point of a fixed window of recent price action. It can help identify patterns or apply strategies relative to that specific candle.
To use it, simply copy the provided Pine Script code into your TradingView Pine Editor and add it to your chart. The marked candle will dynamically update as new data arrives.
Mark last 20 CandleThis Pine Script indicator, titled "Mark last 20 candle" (short name: "Last 20"), was designed to visually highlight a specific candle on your TradingView chart.
What the indicator does:
The main function of this script is to exclusively mark the first candle within the most recent window of 20 candles on your chart . Instead of coloring all 20 candles, it precisely identifies and highlights only the beginning of this 20-candle sequence.
How the indicator works:
Number of candles: The script uses a user-defined variable, num_candles_to_mark , set to 20 , to specify the size of the relevant candle window.
Dynamic Identification: The indicator uses the built-in Pine Script variables:
bar_index: Represents the index of the currently processed candle (starting at 0).
last_bar_index: Represents the index of the very last available candle in your chart (the most recent).
Precise Marking: The core logic bar_index == last_bar_index - num_candles_to_mark + 1 calculates the exact index of the candle that is 20 bars before the last_bar_index . If the bar_index of the currently processed candle matches this calculated position, that specific candle is colored blue with 80% transparency.
Automatic Shift: As new candles appear on your chart (and last_bar_index increases accordingly), the calculated target index ( last_bar_index - num_candles_to_mark + 1 ) also automatically shifts one bar to the right. This ensures that the marked candle automatically "moves along" and always highlights the first candle of the current 20-candle window.
Usage:
This indicator is useful for traders who want to visually track the starting point of a fixed window of recent price action. It can help identify patterns or apply strategies relative to that specific candle.
To use it, simply copy the provided Pine Script code into your TradingView Pine Editor and add it to your chart. The marked candle will dynamically update as new data arrives.
Multi-Timeframe Price Action AnalysisMulti-Timeframe Price Action Analysis
This indicator analyzes price action across multiple timeframes to determine bullish and bearish signals. It creates a dashboard showing how price interacts with previous candles' highs and lows.
Features
- Analyzes 4 customizable timeframes simultaneously
- Detects when price:
-- Grabs lows and comes back inside (bullish)
-- Grabs highs and comes back inside (bearish)
-- Grabs both highs and lows
-- Moves above previous high
-- Moves below previous low
-- Calculates bullish/bearish percentages for each timeframe
-- Visual dashboard with color-coded signals
Adjustable confirmation settings
-- Settings
-- Customize timeframes (default: 15min, 1H, 4H, D)
-- Toggle confirmation waiting
-- Set number of confirmation candles
This is a very rudimentary version.. I will make a more robust version soon
For it to be considered a "grab" the current price must be within the previous candle's range..
This also does not focus on candle closures just highs and lows
Also note that this is a little aggressive in that it does not require a bullish close for example to be considered bullish, a bearish close inside the previous candle is considered valid, this is to handle the morning stars that have a slightly bearish close in middle candle etc.. obviously do not rely on this indicator.. look at the price action and determine if you think its worth taking..
Same goes for bullish closes inside previous candle after grabbing highs..
SMA Strategy with Re-Entry Signal (v6 Style)*SMA Trend Strategy with Re-Entry Signal (v6 Edition)*
This indicator is based on a classic moving average trend-following system, enhanced with re-entry signals designed for medium to short-term traders.
---
### 📈 Key Features:
1. *Trend Detection Logic:*
- The 30-period SMA (SMA30) is used as the trend filter.
- When the closing price is above the SMA30, the market is considered to be in an uptrend.
2. *Re-Entry Signal:*
- While in an uptrend, if the closing price crosses above the SMA20, a re-entry (add position) signal is triggered.
- These signals are shown with green upward arrows below the bars.
3. *Background Highlighting:*
- Green background: indicates an uptrend.
- Red background: indicates a break below SMA30, suggesting weakening momentum.
4. *Multi-SMA Visualization:*
- Five SMAs are displayed: SMA10, SMA20, SMA30, SMA60, and SMA250.
- This helps visualize both short-term and long-term trend structures.
---
### 🔍 Usage Tips:
- Use this script directly on your main chart to monitor trend direction and wait for re-entry signals during pullbacks.
- Combine with other tools like volume, price action, or candlestick patterns to confirm entries.
---
### ⚠️ Disclaimer:
- This indicator is for educational and informational purposes only. It does not constitute financial advice or a buy/sell signal.
- Avoid relying solely on this script for trading decisions. Always manage your own risk.
---
👨💻 *Developer’s Note:*
This script is 100% manually developed, not copied or auto-generated. It is an original implementation based on my personal trading logic. Suggestions and feedback are welcome!
Candle Ribbon [UkutaLabs]The Candle Ribbon is a powerful trading tool that creates a strong ribbon that indicates market strength. This ribbon is created using three moving averages that use the candle values (high, low, open and close) as its input values.
The center most MA will also be colored green, red or grey depending on whether or not its direction aligns with current market strength.
The outer band lines act as range indicators, plotted above and below the center ribbon, which represent volatility boundaries for price action.
█ USAGE
The Candle Ribbon is created using a series of three moving averages that uses values from the candle as its inputs. The user has the ability to select whether the moving averages are EMAs or SMAs, as well as the ability to control the period of the moving averages.
If the moving average calculated using the Candle Open is below the moving average calculated using the Candle Close, the ribbon will be colored green, indicating a bullish trend. If the moving average calculated using the Candle Open is above the moving average calculated using the Candle Open, the ribbon will be colored red, indicating a bearish trend.
This indicator also uses a series of hidden EMAs to determine market strength. If these EMAs do not align with the direction of the Candle Ribbon, the middle MA will instead be colored grey, indicating uncertainty in the market, as well as a possible reversal.
█ SETTINGS
Configuration
• Moving Average Type: Determines whether or not the Candle Moving Averages will be drawn as EMAs or SMAs.
• Moving Average Period: Determines the period of the Candle Moving Averages.
Moving Average
• Moving Average Input: Determines the input values for the hidden EMAs.
RSI + Bollinger Reversal AlertRSI + Bollinger Reversal Alert
Good win rate backtest on this strategy allow you to find nice entry with RSI + Bollinger Reversal Alert confluence
CHoCH + BOS Detector (con líneas)este indicador sirve para simplificar las entrada scalper en el oro
Candle Overlap DegreeThis indicator gives the ratio of max(0, min High - max Low) to (max High - min Low) over n-day.
Letzte Open Rays (18:00, 00:00, 10:00 UTC-4)super diese gute opening ray, opening rays bei den 10,18 und 0 open nur die letzten möglichen
Engulfing Candles (ATR-Based) with Volume SpikeOverview:
This script is designed to detect high-probability bullish and bearish engulfing patterns — but with a twist: it filters them through ATR-based volatility and confirms strength with volume spikes, all while offering optional trend filtering. It's built for traders who want more than just surface-level candle patterns — it's for those who want contextual confirmation before entering a trade.
What Makes It Different:
Most engulfing candle indicators simply match two candle shapes. This script goes deeper by:
Measuring candle body size relative to recent volatility (via ATR).
Checking for volume confirmation using a dynamic spike threshold.
Filtering based on trend context using SMA-based structure detection.
This tri-layered logic aims to avoid false positives and give traders cleaner, more actionable entries that align with momentum.
Core Concepts:
1. Trend Detection (Optional)
You can choose between two structural filters:
SMA50 only: Looks for price above or below the 50-period SMA to define trend direction.
SMA50 + SMA200 alignment: A stricter rule requiring both fast and slow SMAs to confirm a trend.
Or turn off trend filtering entirely (No detection).
This helps ensure engulfing setups appear in line with the broader trend, increasing the likelihood of continuation.
2. ATR-Filtered Candle Bodies
To eliminate noise:
A candle is only considered a valid engulfing candle if it has a body larger than 1.5× ATR(14).
The previous candle must be a small-bodied candle (less than 0.5× ATR), creating a clear visual engulfing structure.
This method dynamically adjusts for market volatility, so setups are meaningful even during periods of compression or expansion.
3. Volume Spike Confirmation
Not all engulfing candles lead to follow-through. That’s why this script includes a volume confirmation filter:
A 20-period moving average of volume is calculated.
A spike is flagged if the current bar’s volume exceeds 1.5× this average (adjustable).
Patterns with this confirmation are marked with a “*” label (e.g., BU* or BE*) to distinguish volume-backed setups from weaker ones.
Visuals & Alerts:
BU = Bullish engulfing without volume spike
BU* = Bullish engulfing with volume spike
BE = Bearish engulfing without volume spike
BE* = Bearish engulfing with volume spike
A white background highlight is shown behind candles with volume-confirmed engulfing patterns.
Alerts are available for BU* and BE* so you can automate your edge.
How to Use:
Add the indicator to any chart.
Choose your trend filter from the settings panel.
Watch for BU* and BE* labels — these are your highest-conviction signals.
Optional: Combine with support/resistance, Fibonacci zones, or MTF confirmation to refine entries.
Use the included alerts to receive real-time push/email notifications when patterns emerge.
Performance Note:
I’ve found this script to be fairly good when applied to the 1-hour charts of the companies in the US100. The combination of ATR-based filtering and volume confirmation appears to provide clear, high-quality setups with good follow-through potential.
By blending candle patterns, volatility filtering, volume confirmation, and trend context, this script aims to filter out weak signals and highlight the most statistically significant engulfing opportunities.
XAUUSD Scalping Strategy - FVG + CISD📈 XAUUSD Scalping Strategy – FVG + CISD (3M/5M)
This strategy is designed for high-probability scalping on gold (XAU/USD) using a blend of Smart Money Concepts (SMC) and momentum-based price action. It works best on the 3-minute and 5-minute charts with bias from the 15M or 1H timeframe.
🔍 Core Concepts:
Fair Value Gaps (FVGs): Price inefficiencies created when strong displacement candles leave behind imbalanced zones. Used as retracement entry points.
CISD (Change in State of Delivery): Detects momentum shifts using strong displacement candles following a liquidity sweep or market structure break.
Liquidity Sweeps: Identifies stops being taken above recent highs or below recent lows, often leading to a reversal.
Market Structure Break (MSB): Confirms the change in directional bias after a liquidity sweep and displacement.
🧠 Strategy Logic:
Buy Conditions:
Bias is set to “Bullish”
Price sweeps a recent swing low (liquidity grab)
A strong bullish displacement candle confirms momentum (CISD)
A bullish Fair Value Gap forms
A bullish Market Structure Break occurs
Sell Conditions:
Bias is set to “Bearish”
Price sweeps a recent swing high
A strong bearish displacement candle confirms reversal
A bearish Fair Value Gap forms
A bearish Market Structure Break occurs
🎯 Entry & Risk Management:
Entry: Upon retracement into the Fair Value Gap (FVG)
Stop-Loss: Below swing low (for buys) or above swing high (for sells)
Take-Profit: 2x Reward-to-Risk ratio (adjustable)
Alerts: Configurable alerts notify you of qualified trade setups in real time
✅ Best Use Practices:
Use only during high-volume sessions (London/NY open)
Confirm direction using M15 or H1 bias
Avoid ranging markets or choppy sessions
Combine with liquidity zones or higher timeframe supply/demand for stronger confluence
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).
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