Vacuum Candles [XrayAlgo]The Vacuum Candles indicator helps traders identify inefficient price movements—where the price moves significantly but lacks sufficient volume to support it. These inefficiencies may signal weak trends, potential reversals, or false breakouts/breakdowns.
Inefficient candles are visually marked with a darker / black body to indicate when the price movement is disproportionate to the volume.
1. Spotting Potential Reversals
When the indicator marks an inefficient candle, it signals that the price movement may be unsustainable.
In an uptrend: A inefficient bullish candle suggests that the uptrend is losing momentum, potentially leading to a downward reversal.
In a downtrend: A inefficient bearish candle signals that the downtrend may be weakening, with a potential bullish reversal.
2. Identifying Breakout and Breakdown Failures
This indicator is useful for recognizing false breakouts or false breakdowns.
If price breaks resistance but the candle is inefficient, the breakout may be weak and could fail quickly.
If price breaks support with an inefficient bearish candle, the breakdown could be a false signal, with price reverting back above support.
3. Recognizing Weak Trends
Inefficient candles help you spot when a trend is losing strength and could soon reverse or consolidate.
In an uptrend: A series of dark body bullish candles suggests that the uptrend may be weakening, signaling a potential correction or trend reversal.
In a downtrend: A series of dark body bearish candles suggests that the selling pressure is weakening, indicating a potential bullish reversal.
4. Fine-Tuning Entries and Exits
Inefficient candles offer an opportunity to fine-tune your entries and exits based on weak price moves.
Entering a trade: An inefficient candle near key support or resistance can indicate a reversal, making it a good entry point for a counter-trend position.
Exiting a trade: If you're already in a trend, and an inefficient candle appears, it suggests the trend is losing strength, indicating it may be a good time to exit before a potential reversal.
5. Fine-Tuning with Inputs
The Vacuum Candles indicator includes two key inputs:
Length: The number of candles used to calculate the average price movement and volume. A longer length (e.g., 20-30) smooths out the inefficiencies, while a shorter length (e.g., 10-15) makes the indicator more sensitive to recent price moves.
Multiplier: Controls the threshold for what is considered an inefficient candle:
A higher Multiplier (e.g., 1.5–3) filters out smaller inefficiencies and focuses on large discrepancies.
A lower Multiplier (e.g., 0.1–0.9) captures even smaller inefficiencies in highly efficient markets.
Candlestick analysis
Sweep After Rally w/ TP + Overnight High/Low (Unbiased)Rally into a sweeping candle with volume. Used for reversals - pair this with MacD Divergence after a sweep of a prior day value area high/low or overnight high/low
Bullish and Bearish Breakout Alert for Gold Futures PullbackBelow is a Pine Script (version 6) for TradingView that includes both bullish and bearish breakout conditions for my intraday trading strategy on micro gold futures (MGC). The strategy focuses on scalping two-legged pullbacks to the 20 EMA or key levels with breakout confirmation, tailored for the Apex Trader Funding $300K challenge. The script accounts for the Daily Sentiment Index (DSI) at 87 (overbought, favoring pullbacks). It generates alerts for placing stop-limit orders for 175 MGC contracts, ensuring compliance with Apex’s rules ($7,500 trailing threshold, $20,000 profit target, 4:59 PM ET close).
Script Requirements
Version: Pine Script v6 (latest for TradingView, April 2025).
Purpose:
Bullish: Alert when price breaks above a rejection candle’s high after a two-legged pullback to the 20 EMA in a bullish trend (price above 20 EMA, VWAP, higher highs/lows).
Bearish: Alert when price breaks below a rejection candle’s low after a two-legged pullback to the 20 EMA in a bearish trend (price below 20 EMA, VWAP, lower highs/lows).
Context: 5-minute MGC chart, U.S. session (8:30 AM–12:00 PM ET), avoiding overbought breakouts above $3,450 (DSI 87).
Output: Alerts for stop-limit orders (e.g., “Buy: Stop=$3,377, Limit=$3,377.10” or “Sell: Stop=$3,447, Limit=$3,446.90”), quantity 175 MGC.
Apex Compliance: 175-contract limit, stop-losses, one-directional news trading, close by 4:59 PM ET.
How to Use the Script in TradingView
1. Add Script:
Open TradingView (tradingview.com).
Go to “Pine Editor” (bottom panel).
Copy the script from the content.
Click “Add to Chart” to apply to your MGC 5-minute chart .
2. Configure Chart:
Symbol: MGC (Micro Gold Futures, CME, via Tradovate/Apex data feed).
Timeframe: 5-minute (entries), 15-minute (trend confirmation, manually check).
Indicators: Script plots 20 EMA and VWAP; add RSI (14) and volume manually if needed .
3. Set Alerts:
Click the “Alert” icon (bell).
Add two alerts:
Bullish Breakout: Condition = “Bullish Breakout Alert for Gold Futures Pullback,” trigger = “Once Per Bar Close.”
Bearish Breakout: Condition = “Bearish Breakout Alert for Gold Futures Pullback,” trigger = “Once Per Bar Close.”
Customize messages (default provided) and set notifications (e.g., TradingView app, SMS).
Example: Bullish alert at $3,377 prompts “Stop=$3,377, Limit=$3,377.10, Quantity=175 MGC” .
4. Execute Orders:
Bullish:
Alert triggers (e.g., stop $3,377, limit $3,377.10).
In TradingView’s “Order Panel,” select “Stop-Limit,” set:
Stop Price: $3,377.
Limit Price: $3,377.10.
Quantity: 175 MGC.
Direction: Buy.
Confirm via Tradovate.
Add bracket order (OCO):
Stop-loss: Sell 175 at $3,376.20 (8 ticks, $1,400 risk).
Take-profit: Sell 87 at $3,378 (1:1), 88 at $3,379 (2:1) .
Bearish:
Alert triggers (e.g., stop $3,447, limit $3,446.90).
Select “Stop-Limit,” set:
Stop Price: $3,447.
Limit Price: $3,446.90.
Quantity: 175 MGC.
Direction: Sell.
Confirm via Tradovate.
Add bracket order:
Stop-loss: Buy 175 at $3,447.80 (8 ticks, $1,400 risk).
Take-profit: Buy 87 at $3,446 (1:1), 88 at $3,445 (2:1) .
5. Monitor:
Green triangles (bullish) or red triangles (bearish) confirm signals.
Avoid bullish entries above $3,450 (DSI 87, overbought) or bearish entries below $3,296 (support) .
Close trades by 4:59 PM ET (set 4:50 PM alert) .
🐢 Turtle Soup Strategy v1.0 – TBS/TWS + OB/FVG + SL/TP🐢 Turtle Soup Strategy v1.0 – Backtest Edition
This document gives you everything you need to use, interpret, and optimize the Turtle Soup Strategy in TradingView.
🐢 What is Turtle Soup?
Turtle Soup is a reversal trading strategy based on false breakouts of recent highs or lows — often referred to as liquidity traps.
Popularized by Linda Raschke , it flips the logic of breakout trading on its head by betting against the breakout, especially when it occurs near key swing points or in range-bound markets.
The idea is simple:
"When the turtles come out, the smart money cooks them."
🧠 In practice, traders place buy orders after price dips below a recent low and reverses, or sell orders after a false breakout above a high.
These fakeouts are often stop hunts, where large players induce retail traders into breakout positions, only to reverse the market against them — providing high-probability entry points for contrarian traders.
🧪 Core Components of Turtle Soup:
✅ Donchian Channel (recent swing high/low)
✅ Wick or body breakout
✅ Fast reversal back into range
✅ (Optional) Order block or FVG confluence
🔥 Why It Works:
Exploits liquidity zones where retail stops are clustered
Aligns with smart money concepts
Highly effective in sideways markets or after exhaustion spikes
🔎 What This Strategy Does
This is a reversal-based price action strategy that identifies false breakouts of recent highs or lows (liquidity traps), using the popular Turtle Soup pattern.
It enters trades when:
Price fakes out past the Donchian high or low
Closes back into the range
Optionally confirms with:
✅ Order Block Confluence (institutional footprint)
✅ Fair Value Gap (FVG) Confluence (imbalance)
It then sets:
🛑 A Stop Loss (SL) below/above the signal candle
🎯 A Take Profit (TP1) at a customizable Risk-Reward Ratio (RR) (default 1.5x)
🎯 Core Concepts
1. TBS – Turtle Body Soup
Full-body breakout and close back inside range
Considered stronger and more reliable
2. TWS – Turtle Wick Soup
Wick only breaks the high/low, body closes back inside
Weaker but still valid in confluence
⚙️ Inputs & Settings
Setting Description
Donchian Lookback Period for high/low reference (default: 20 candles)
TP1 RR Risk-Reward ratio for take profit target 1 (default: 1.5)
Use Order Block Filter If ON, requires bullish/bearish OB to validate the entry
Use FVG Filter If ON, requires FVG confluence (gap in price action = imbalance)
You can adjust these in the strategy’s Settings panel (gear icon in TradingView).
📈 How Trades Are Triggered
🟢 Long Entry occurs when:
TBS or TWS long signal is detected
(optional) Bullish Order Block present
(optional) Bullish FVG present
→ Entry: Close of signal candle
→ SL: Below candle’s low
→ TP1: Calculated from RR (default: 1.5x distance to SL)
🔴 Short Entry occurs when:
TBS or TWS short signal is detected
(optional) Bearish Order Block present
(optional) Bearish FVG present
→ Entry: Close of signal candle
→ SL: Above candle’s high
→ TP1: Calculated from RR (default: 1.5x distance to SL)
📊 How to Backtest
1. Open script in TradingView
Paste the full script into the Pine Script editor and click "Add to Chart".
2. Open the Strategy Tester
Navigate to the “Strategy Tester” tab (bottom panel).
Click “Overview” to see:
Net Profit 💰
Win Rate 📈
Number of Trades 📊
Max Drawdown 🩸
3. Use "Performance Summary" and "List of Trades"
You can click on List of Trades to review every trade (entry, exit, profit, SL, TP).
Filter and export as needed.
📊 Turtle Soup – Chart Signals Explained
🟢 TBS Long
Symbol: Green label up, text “TBS 🔺”
Meaning:
Turtle Body Soup long setup:
The body of the candle breaks below the recent Donchian Low (liquidity grab),
Then price closes back above that low.
Interpretation:
Strong bullish reversal signal, especially if confirmed by order block or FVG.
🔴 TBS Short
Symbol: Red label down, text “TBS 🔻”
Meaning:
Turtle Body Soup short setup:
The body of the candle breaks above the recent Donchian High (liquidity grab),
Then price closes back below that high.
Interpretation:
Strong bearish reversal signal.
🔵 TWS Long
Symbol: Blue triangle up, text “TWS ⬆”
Meaning:
Turtle Wick Soup long setup:
The wick (not the body) breaks below the Donchian Low,
Candle closes back inside the range.
Interpretation:
Bullish reversal signal (less powerful than TBS but still valid).
🟠 TWS Short
Symbol: Orange triangle down, text “TWS ⬇”
Meaning:
Turtle Wick Soup short setup:
The wick breaks above the Donchian High,
Candle closes back inside the range.
Interpretation:
Bearish reversal signal.
🟩 Order Block Bullish
Symbol: Small green square under bar
Meaning:
Last bearish candle before a bullish impulse (institutional buying footprint).
Used as confluence for stronger long entries.
🟥 Order Block Bearish
Symbol: Small red square above bar
Meaning:
Last bullish candle before a bearish impulse (institutional selling footprint).
Used as confluence for stronger short entries.
🔷 FVG Up
Symbol: Navy blue X below bar
Meaning:
Fair Value Gap (FVG) up:
A gap/imbalance created by a strong move up,
Indicates potential support or bullish confluence.
🟪 FVG Down
Symbol: Fuchsia X above bar
Meaning:
Fair Value Gap (FVG) down:
A gap/imbalance created by a strong move down,
Indicates potential resistance or bearish confluence.
📏 Entry / SL / TP Lines
Entry: Gray dashed line
Stop Loss (SL): Red dashed line
Take Profit 1 (TP1): Green solid line
Take Profit 2 (TP2): Green thick solid line
Drawn whenever a trade is triggered.
SL and TPs are calculated automatically from entry based on RR.
💡 Optimization Tips
What to Test - Why It Matters
Donchian Lookback - 20 is default, but shorter (10) catches faster setups
TP1 RR - Try 1.2 to 2.5 for different market types
Use/Disable Order Block Filter - Adds precision, reduces trades
Use/Disable FVG Filter . Adds imbalance confirmation
Lower Timeframes (M15–H1) - Gives more trades for statistical testing
🧠 When It Works Best
This strategy shines in:
Choppy / range-bound markets (liquidity traps are frequent)
Smart money behavior areas: stop hunts before reversals
Near session opens, news volatility, and false breakouts
Avoid in:
Strong trending markets without reversal signals
Low liquidity / overnight hours (on low timeframes)
🛡️ Risk Disclaimer
⚠️ This is a backtesting tool and not financial advice. Use responsibly.
Past performance ≠ future results. Always validate on demo or forward test before going live.
Perfect MA Touch (EMA/SMA + Font Size) – ExtendedThis is an extension of the Perfect MA touch with 6 total spaces for the Moving Averages.
When the candle touches the MA for the first time it will have a 1, and then the 5 the time it will leave a 5. Make you trading decisions with help from the 5 candle high and low.
DUONG_EURWhat is the RSI indicator? Instructions on how to use RSI in stock trading
Currently, technical analysis indicators are widely used to confirm the strength or weakness of the market. In this article, let's learn more about the RSI indicator with DSC to easily confirm the current strength of the market.
What is the RSI indicator?
The RSI indicator, also known as the relative strength indicator, is widely used in the financial and stock markets. RSI is calculated by the price of the most recent previous closing sessions. Therefore, it is often considered normal when it moves in phase with the price line.
RSI calculation formula
In which:
RS = AvgU/AvgD
AvgU is the average of the closing price changes of the increasing sessions in 14 sessions.
Price Variation Percent (PVP) с таймфреймомA standard PVP indicator that has a multi-timeframe function added to it
Heikin Ashi Reversal AlertHeikin ashi reverseal bullish after three or more bearish heikin ashi candles
Profitable Hours EUR/USD
Profitable Hours: It identifies the most profitable hours, based on significant price movements and high volatility (higher than the highest price movement and volatility over the last 24 periods).
Hour Display in EET: The active hour is displayed in Eastern European Time (EET), which is adjusted based on the GMT offset you provide.
This version of the script should help you visualize profitable hours for trading EUR/USD based on price movement and volatility, as well as time zone adjustments.
RSI_KDJThis indicator is to combine RSI and KDJ with several features:
1. Mark it RED if RSI > 80, which shows extremely over-bought and signals the opportunity of selling
2. Mark it GREEN if RSI <20, which shows extremely over-sold and signals buying
3. only keep K line of KDJ: GREEN circle means D line up-crosses K line while RED circle means D line down-crosses it.
Market Sessions & Viewer Panel [By MUQWISHI]▋ INTRODUCTION :
The “Market Sessions & Viewer Panel” is a clean and intuitive visual indicator tool that highlights up to four trading sessions directly on the chart. Each session is fully customizable with its name, session time, and color. It also generates a panel that provides a quick-glance summary of each session’s candle/bar shape, helping traders gain insight into the volatility across all trading sessions.
_______________________
▋ OVERVIEW:
_______________________
▋ CREDIT:
This indicator utilizes the “ Timezone — Library ”. A huge thanks to @n00btraders for effort and well-organized work.
_______________________
▋ SESSION PANEL:
The Session Panel allows traders to visually compare session volatility using a candlestick/bar pattern.
Each bar represents the price action during a session and includes the session status, session name, closing price, change(%) from open, and a tooltip that reveals detailed OHLC and volume when hovered over.
Chart Type:
It offers two styles Bar or Candle to display based on traders’ preference
Sorting:
Allowing to arrange session candles/bars based on…
—Left to Right: The most recently opened on the left, moving backward in time to the right.
—Right to Left: The most recently opened on the right, moving backward in time to the left.
—Default: Arrange sessions in the user-defined input order.
_______________________
▋ CHART VISUALIZATION:
The chart visualization highlights each trading session using color-coded backgrounds in two selectable drawing styles that span their respective active timeframes. Each session block provides session’s name, close price, and change from open.
Chart Type: Candle
Chart Type: Box
Extra Drawing Feature:
This feature may not exist in other indicators within the same category, it extends the session block drawing to the projected end of the session. This's done through estimation based on historical data; however, it doesn’t function fully on seconds-based timeframes due to drawing limitations.
_______________________
▋ INDICATOR SETTINGS:
Section(1): Sessions
(1) Universal Timezone.
(2) Each Session: Enable/Disable, Name, Color, and Time.
Section(2): Session Panel
(1) Show/Hide Session Panel.
(2) Chart Type: Candle/Bar.
(3) Bar’s Up/Down color.
(4) Width and Height of the bar.
(5) Location of Session Panel on chat.
(6) Sort: Left to Right (most recent session is placed on the left), Right to Left (most recent session is placed on the right), and Default (as input arrangement).
Section(3): Chart Visualization
(1) Show/Hide Chart Block Visualization.
(2) Draw Shape: Box/Candle.
(3) Border Style and Size.
(4) Label Styling includes location, size, and some essential selectable infos.
Please let me know if you have any questions
🔺 P&F Patterns with SL/TP + ConfidenceSee signals (BUY/SELL) on the chart
See dashed TP/SL levels based on the pattern breakout
Have confidence scores for each pattern
Detect core P&F patterns (Double/Triple Top/Bottom, Catapults)
HL2 Moving Average with BandsThis indicator is designed to assist traders in identifying potential trade entries and exits for S&P 500 (ES) and Nasdaq-100 (NQ) futures. It calculates a Simple Moving Average (SMA) based on the HL2 value (average of high and low prices) of the current candle over a user-defined lookback period (default: 200 periods). The indicator plots this SMA as a blue line, providing a smoothed reference for price trends.
Additionally, it includes upper and lower bands calculated as a percentage (default: 0.5%) above and below the SMA, plotted as green and red lines, respectively. These bands act as dynamic thresholds to identify overbought or oversold conditions. The indicator generates trade signals based on price action relative to these bands:
Long Entry: A green upward triangle is plotted below the candle when the close crosses above the upper band, signaling a potential buy.
Close Long: A red square is plotted above the candle when the close crosses back below the upper band, indicating an exit for the long position.
Short Entry: A red downward triangle is plotted above the candle when the close crosses below the lower band, signaling a potential sell.
Close Short: A green square is plotted below the candle when the close crosses back above the lower band, indicating an exit for the short position.
The script is customizable, allowing users to adjust the SMA length and band percentage to suit their trading style or market conditions. It is plotted as an overlay on the price chart for easy integration with other technical analysis tools.
Recommended Time Frame and Settings for Trading S&P 500 and Nasdaq-100 Futures
Based on research and market dynamics for S&P 500 (ES) and Nasdaq-100 (NQ) futures, the 5-minute chart is recommended as the optimal time frame for day trading with this indicator. This time frame strikes a balance between capturing intraday trends and filtering out excessive noise, which is critical for futures trading due to their high volatility and leverage. The 5-minute chart aligns well with periods of high liquidity and volatility, such as the U.S. market open (9:30 AM–11:00 AM EST) and the afternoon session (2:00 PM–4:00 PM EST), when institutional traders are most active.
Why 5-minute? It allows traders to react to short-term price movements while avoiding the rapid fluctuations of 1-minute charts, which can be prone to false signals in choppy markets. It also provides enough data points to make the SMA and bands meaningful without the lag associated with longer time frames like 15-minute or hourly charts.
Recommended Settings
SMA Length: Set to 200 periods. This longer lookback period smooths the HL2 data, reducing noise and providing a reliable trend reference for the 5-minute chart. A 200-period SMA helps identify significant trend shifts without being overly sensitive to minor price fluctuations.
Band Percentage: 0.5% is more suitable for the volatility of ES and NQ futures on a 5-minute chart, as it generates fewer but higher-probability signals. Wider bands (e.g., 1%) may miss short-term opportunities, while narrower bands (e.g., 0.1%) may produce excessive false signals.
Trading Session Recommendations
Futures markets for ES and NQ are open nearly 24 hours (Sunday 6:00 PM EST to Friday 5:00 PM EST, with a daily break from 4:00 PM–5:00 PM EST), but not all hours are equally optimal due to varying liquidity and volatility. The best times to trade with this indicator are:
U.S. Market Open (9:30 AM–11:00 AM EST): This period is characterized by high volume and volatility, driven by the opening of U.S. equity markets and economic data releases (e.g., 8:30 AM EST reports like CPI or GDP). The indicator’s signals are more reliable during this window due to strong order flow and price momentum.
Afternoon Session (2:00 PM–4:00 PM EST): After the lunchtime lull, volume picks up as institutional traders return, and news or FOMC announcements often drive price action. The indicator can capture breakout moves as prices test the upper or lower bands.
Pre-Market (7:30 AM–9:30 AM EST): For traders comfortable with lower liquidity, this period can offer opportunities, especially around 8:30 AM EST economic releases. However, use tighter risk management due to wider spreads and potential volatility spikes.
Additional Tips
Avoid Low-Volume Periods: Steer clear of trading during low-liquidity hours, such as the overnight session (11:00 PM–3:00 AM EST), when spreads widen and price movements can be erratic, leading to false signals from the indicator.
Combine with Other Tools: Enhance the indicator’s effectiveness by pairing it with support/resistance levels, Fibonacci retracements, or volume analysis to confirm signals. For example, a long entry signal above the upper band is stronger if it coincides with a breakout above a key resistance level.
Risk Management: Given the leverage in futures (e.g., Micro E-mini contracts require ~$1,200 margin for ES), use tight stop-losses (e.g., below the lower band for longs or above the upper band for shorts) to manage risk. Aim for a risk-reward ratio of at least 1:2.
Test Settings: Backtest the indicator on a demo account to optimize the SMA length and band percentage for your specific trading style and risk tolerance. Micro E-mini contracts (MES for S&P 500, MNQ for Nasdaq-100) are ideal for testing due to their lower capital requirements.
Why These Settings and Time Frame?
The 5-minute chart with a 200-period SMA and 0.5% bands is tailored for the volatility and liquidity of ES and NQ futures during peak trading hours. The longer SMA period ensures the indicator captures meaningful trends, while the 0.5% bands are tight enough to signal actionable breakouts but wide enough to avoid excessive whipsaws. Trading during high-volume sessions maximizes the likelihood of valid signals, as institutional participation drives clearer price action.
By focusing on these settings and time frames, traders can leverage the indicator to capitalize on the dynamic price movements of S&P 500 and Nasdaq-100 futures while managing the inherent risks of these markets.
cc AJ Algo 2 - 3,59,17,11,47,29 This Indicator finds Specific "Time Based" values from the UTC+2 Time Zone.
cc AJ Algo 1 - 0,11,41,3,17,29 This Indicator finds specific candle values based on the UTC+2 Time Zone.
Fractal Lines (Configurable with Labels)Draws fractal lines with fractal range of 100 and shows last 5 fractals
Market Structure HH/LLThis script automatically plots basic market structure points: Higher Highs (HH) and Lower Lows (LL), based on 5-bar pivots.
Useful for identifying trends, reversals, and change of character (ChoCH) in price action setups.
🧠 Ideal for intraday traders using Smart Money Concepts (SMC) or Price Action on lower timeframes (1m–15m).
Combine with BOS/CHoCH and Order Blocks for full SMC strategy.
✅ Clean and lightweight – perfect for quick market structure visualization.
Developed by – customized for VN30F1M & scalping strategies.
HVC + levelsPersistent HVC Rays Across All Intraday
Identify and carry forward the open, close, high and low of the highest‑volume daily candle as true horizontal support/resistance levels across every intraday timeframe – including pre‑market and after‑hours.
Description
This indicator automatically detects the single highest‑volume daily bar over your specified lookback period and then plots four persistent horizontal rays at that candle’s open, close, high, and low. Rays are anchored precisely at the New York Stock Exchange’s 09:30 ET bar using IANA timezone timestamps and extend to the right edge of your chart viewport, ensuring they remain visible on 1 min, 5 min, 15 min, hourly, and daily timeframes alike. You can also color intraday high‑volume bars for quick visual context. Store up to Max HVCs of past levels and watch older lines fade, delivering a dynamic volume‑driven support/resistance framework that adapts as new high‑volume days emerge.
Key Inputs
Lookback Period (bars): Number of bars to search for the highest‑volume daily candle.
Max HVCs: Maximum number of past HVC days whose levels remain plotted.
Color Intraday HVC Bars: Toggle to highlight intraday bars that match the highest recent volume.
Plot Persistent Rays: Toggle the horizontal levels on/off for a clean chart.