Hourly High-Low BoxesDraws a shaded box for each hourly period.
The top of the box is the highest price during that hour.
The bottom is the lowest price during that hour.
The left side starts at the first bar of the hour.
The right side ends just before the last bar of the hour — creating a small gap at the end.
The fill color and opacity of the boxes can be customized.
No border is shown (fully transparent border).
Candlestick analysis
Advanced EMA's with True Range SignalsThis indicator combines multiple layers of exponential moving averages (EMAs) with a dynamic True Range Filter (TRF) to help traders identify trends and potential entry signals. Designed with clarity and flexibility in mind, the tool features both fixed and adjustable EMAs alongside a custom-built volatility filter.
**Key Features:**
• **Multi-Timeframe Trend Analysis:**
- **Fixed EMAs:**
- **EMA 200 (White):** Serves as the long-term trend indicator, providing overall market context and acting as a dynamic support/resistance level.
- **EMA 9 (Red):** Captures short-term momentum for rapid entry/exit decisions.
These EMAs are hard-coded (with visibility toggles enabled by default) to ensure consistency in trend analysis.
• **Customizable EMAs:**
- Two adjustable EMAs are included for further personalization—one defaulting to a 21-period and the other to a 50-period. Their visibility toggles are off by default, allowing the user to activate them as needed for fine-tuned signal confirmation.
• **Dynamic True Range Filter (TRF):**
- The TRF adapts to market volatility by smoothing price fluctuations using a dual (fast and slow) period approach. This filter generates a dynamic threshold that helps differentiate genuine trend changes from price noise.
- In this version, the TRF is plotted in blue by default, providing a clear visual reference for the trend filter.
• **Signal Generation:**
- **Long Entry:** Occurs when the price is above the TRF combined with upward momentum, with a long signal label (displaying white text) marking potential buying opportunities.
- **Short Entry:** Occurs when the price drops below the TRF with accompanying downward momentum, with a short signal label displayed above the bar.
Alerts for both long and short entries are built in, allowing for timely notifications.
**User Experience:**
The indicator’s Inputs tab is streamlined by grouping all Exponential Moving Averages settings at the top, where fixed EMAs are always active and adjustable EMAs can be toggled on per user preference. The True Range Filter settings follow in their own group, enabling easy customization of its source and smoothing parameters. In the Styles tab, only the fixed EMAs (200 and 9) and the signal labels are enabled by default, while the adjustable EMAs and the TRF line are initially hidden—allowing the user to opt-in to additional overlays as desired.
This sophisticated blend of trend analysis and dynamic volatility filtering offers traders a robust tool for capturing market direction and timing entries. Whether you’re using it as a primary signal generator or a supplemental filter, it provides clarity in fast-moving markets.
AlgoRanger FlowState//@version=5
indicator("AlgoRanger FlowState", overlay=true)
// === INPUTS ===
atrPeriod = input.int(10, title="ATR Period")
factor = input.float(3.0, title="Multiplier")
// === ATR & BASIC BANDS ===
atr = ta.atr(atrPeriod)
hl2 = (high + low) / 2
upperBand = hl2 + factor * atr
lowerBand = hl2 - factor * atr
// === SUPER TREND LOGIC ===
var float supertrend = na
var bool isUpTrend = true
if na(supertrend)
supertrend := hl2
else
if close > supertrend
supertrend := math.max(lowerBand, supertrend)
isUpTrend := true
else
supertrend := math.min(upperBand, supertrend)
isUpTrend := false
// === TREND REVERSAL SIGNALS ===
buySignal = isUpTrend and not isUpTrend
sellSignal = not isUpTrend and isUpTrend
// === PLOT SUPER TREND ===
plot(supertrend, title="Supertrend", color=isUpTrend ? color.green : color.red, linewidth=2)
// === PLOT COLOR-CODED BARS ===
barcolor(isUpTrend ? color.new(color.green, 0) : color.new(color.red, 0))
Whale Zones (Accumulation & Distribution)Zone d'accumulation - Défendue / Zone de Distribution - Zone d'achat impulsive
Buying vs Selling Pressure **Buying vs Selling Pressure**
This indicator measures and visualizes intrabar buying and selling pressure using a normalized ATR-based formula. It helps identify which side—buyers or sellers—is currently in control.
🔍 How it works:
Buying Pressure: Calculated from the distance between the close and low, adjusted by ATR.
Selling Pressure: Calculated from the distance between the high and close, also adjusted by ATR.
Histogram bars change color based on which side is stronger:
🟢 Green = Buying pressure dominant
🔴 Red = Selling pressure dominant
🔵 Blue = Potential transition or imbalance
Includes a zero line for easy reference.
This script is useful for spotting intraday momentum shifts and understanding market behavior beyond just candlestick patterns.
Time-Based Fair Value Gaps (FVG) with Inversions (iFVG)Overview
The Time-Based Fair Value Gaps (FVG) with Inversions (iFVG) (ICT/SMT) indicator is a specialized tool designed for traders using Inner Circle Trader (ICT) methodologies. Inspired by LuxAlgo's Fair Value Gap indicator, this script introduces significant enhancements by integrating ICT principles, focusing on precise time-based FVG detection, inversion tracking, and retest signals tailored for institutional trading strategies. Unlike LuxAlgo’s general FVG approach, this indicator filters FVGs within customizable 10-minute windows aligned with ICT’s macro timeframes and incorporates ICT-specific concepts like mitigation, liquidity grabs, and session-based gap prioritization.
This tool is optimized for 1–5 minute charts, though probably best for 1 minute charts, identifying bullish and bearish FVGs, tracking their mitigation into inverted FVGs (iFVGs) as key support/resistance zones, and generating retest signals with customizable “Close” or “Wick” confirmation. Features like ATR-based filtering, optional FVG labels, mitigation removal, and session-specific FVG detection (e.g., first FVG in AM/PM sessions) make it a powerful tool for ICT traders.
Originality and Improvements
While inspired by LuxAlgo’s FVG indicator (credit to LuxAlgo for their foundational work), this script significantly extends the original concept by:
1. Time-Based FVG Detection: Unlike LuxAlgo’s continuous FVG identification, this script filters FVGs within user-defined 10-minute windows each hour (:00–:10, :10–:20, etc.), aligning with ICT’s emphasis on specific periods of institutional activity, such as hourly opens/closes or kill zones (e.g., New York 7:00–11:00 AM EST). This ensures FVGs are relevant to high-probability ICT setups.
2. Session-Specific First FVG Option: A unique feature allows traders to display only the first FVG in ICT-defined AM (9:30–10:00 AM EST) or PM (1:30–2:00 PM EST) sessions, reflecting ICT’s focus on initial market imbalances during key liquidity events.
3. ICT-Driven Mitigation and Inversion Logic: The script tracks FVG mitigation (when price closes through a gap) and converts mitigated FVGs into iFVGs, which serve as ICT-style support/resistance zones. This aligns with ICT’s view that mitigated gaps become critical reversal points, unlike LuxAlgo’s simpler gap display.
4. Customizable Retest Signals: Retest signals for iFVGs are configurable for “Close” (conservative, requiring candle body confirmation) or “Wick” (faster, using highs/lows), catering to ICT traders’ need for precise entry timing during liquidity grabs or Judas swings.
5. ATR Filtering and Mitigation Removal: An optional ATR filter ensures only significant FVGs are displayed, reducing noise, while mitigation removal declutters the chart by removing filled gaps, aligning with ICT’s principle that mitigated gaps lose relevance unless inverted.
6. Timezone and Timeframe Safeguards: A timezone offset setting aligns FVG detection with EST for ICT’s New York-centric strategies, and a timeframe warning alerts users to avoid ≥1-hour charts, ensuring accuracy in time-based filtering.
These enhancements make the script a distinct tool that builds on LuxAlgo’s foundation while offering ICT traders a tailored, high-precision solution.
How It Works
FVG Detection
FVGs are identified when a candle’s low is higher than the high of two candles prior (bullish FVG) or a candle’s high is lower than the low of two candles prior (bearish FVG). Detection is restricted to:
• User-selected 10-minute windows (e.g., :00–:10, :50–:60) to capture ICT-relevant periods like hourly transitions.
• AM/PM session first FVGs (if enabled), focusing on 9:30–10:00 AM or 1:30–2:00 PM EST for key market opens.
An optional ATR filter (default: 0.25× ATR) ensures only gaps larger than the threshold are displayed, prioritizing significant imbalances.
Mitigation and Inversion
When price closes through an FVG (e.g., below a bullish FVG’s bottom), the FVG is mitigated and becomes an iFVG, plotted as a support/resistance zone. iFVGs are critical in ICT for identifying reversal points where institutional orders accumulate.
Retest Signals
The script generates signals when price retests an iFVG:
• Close: Triggers when the candle body confirms the retest (conservative, lower noise).
• Wick: Triggers when the candle’s high/low touches the iFVG (faster, higher sensitivity). Signals are visualized with triangular markers (▲ for bullish, ▼ for bearish) and can trigger alerts.
Visualization
• FVGs: Displayed as colored boxes (green for bullish, red for bearish) with optional “Bull FVG”/“Bear FVG” labels.
• iFVGs: Shown as extended boxes with dashed midlines, limited to the user-defined number of recent zones (default: 5).
• Mitigation Removal: Mitigated FVGs/iFVGs are removed (if enabled) to keep the chart clean.
How to Use
Recommended Settings
• Timeframe: Use 1–5 minute charts for precision, avoiding ≥1-hour timeframes (a warning label appears if misconfigured).
• Time Windows: Enable :00–:10 and :50–:60 for hourly open/close FVGs, or use the “Show only 1st presented FVG” option for AM/PM session focus.
• ATR Filter: Keep enabled (multiplier 0.25–0.5) for significant gaps; disable on 1-minute charts for more FVGs during volatility.
• Signal Preference: Use “Close” for conservative entries, “Wick” for aggressive setups.
• Timezone Offset: Set to -5 for EST (or -4 for EDT) to align with ICT’s New York session.
Trading Strategy
1. Macro Timeframes: Focus on New York (7:00–11:00 AM EST) or London (2:00–5:00 AM EST) kill zones for high institutional activity.
2. FVG Entries: Trade bullish FVGs as support in uptrends or bearish FVGs as resistance in downtrends, especially in :00–:10 or :50–:60 windows.
3. iFVG Retests: Enter on retest signals (▲/▼) during liquidity grabs or Judas swings, using “Close” for confirmation or “Wick” for speed.
4. Session FVGs: Use the “Show only 1st presented FVG” option to target the first gap in AM/PM sessions, often tied to ICT’s market maker algorithms.
5. Risk Management: Combine with ICT concepts like order blocks or breaker blocks for confluence, and set stops beyond FVG/iFVG boundaries.
Alerts
Set alerts for:
• “Bullish FVG Detected”/“Bearish FVG Detected”: New FVGs in selected windows.
• “Bullish Signal”/“Bearish Signal”: iFVG retest confirmations.
Settings Description
• Show Last (1–100, default: 5): Number of recent iFVGs to display. Lower values reduce clutter.
• Show only 1st presented FVG : Limits FVGs to the first in 9:30–10:00 AM or 1:30–2:00 PM EST sessions (overrides time window checkboxes).
• Time Window Checkboxes: Enable/disable FVG detection in 10-minute windows (:00–:10, :10–:20, etc.). All enabled by default.
• Signal Preference: “Close” (default) or “Wick” for iFVG retest signals.
• Use ATR Filter: Enables ATR-based size filtering (default: true).
• ATR Multiplier (0–∞, default: 0.25): Sets FVG size threshold (higher values = larger gaps).
• Remove Mitigated FVGs: Removes filled FVGs/iFVGs (default: true).
• Show FVG Labels: Displays “Bull FVG”/“Bear FVG” labels (default: true).
• Timezone Offset (-12 to 12, default: -5): Aligns time windows with EST.
• Colors: Customize bullish (green), bearish (red), and midline (gray) colors.
Why Use This Indicator?
This indicator empowers ICT traders with a tool that goes beyond generic FVG detection, offering precise, time-filtered gaps and inversion tracking aligned with institutional trading principles. By focusing on ICT’s macro timeframes, session-specific imbalances, and customizable signal logic, it provides a clear edge for scalping, swing trading, or reversal setups in high-liquidity markets.
Strong Trend Bars (ATR-based)This is a ChatGPT pinescript meant as an indicator for detecting strength in the market. The primary function I use it for is to decide which bars to trail a stop loss beneath.
💥 Explanation of adjustable inputs:
Bull Close Threshold (default 0.6):
If set to 0.6, bull bars must close above 60% of bar height → low + 0.6 * barHeight
Bear Close Threshold (default 0.6):
If set to 0.6, bear bars must close below 40% of bar height → high - 0.6 * barHeight
This lets you experiment with tighter or looser filters. For example:
0.7 → only bars closing near the extremes will light up
0.5 → about midpoint
0.8 → very demanding, “almost full body” bars
BURR Orb Signal Lines9 and 26 EMA. Can be used to confirm identify trend change or confirm breakout from S&R zones.
MC High/LowMC High/Low is a minimalist precision tool designed to show traders the most critical price levels — the High and Low of the current Day and Week — in real-time, without any visual clutter or historical trails.
It automatically tracks:
🔼 HOD – High of Day
🔽 LOD – Low of Day
📈 HOW – High of Week
📉 LOW – Low of Week
Each level is plotted using simple black horizontal lines, updated dynamically as the session evolves. Labels are clearly marked and positioned to the right of the screen for easy reference.
There’s no trailing history, no background colors, and no distractions — just pure price structure for clean confluence.
Perfect for:
Intraday scalpers
Swing traders
Liquidity & range traders
This is a tool built for sniper-level execution — straight from the MadCharts mindset.
🛠 Created by:
🔒 Version: Public Release
🎯 Use this with your favorite price action, liquidity, or market structure strategies.
✅ 10 Monday's 1H Avg Range + 30-Day Daily RangeThis script is particularly useful for traders who need to measure the range of the first four 15-minute candles of the week . It provides three key values:
🕒 Highlights the First 4 Candles
It marks the first four 15-minute candles of the week and displays the total range between their high and low.
📊 10-Week Average (Yellow Line)
Shows the average range of those candles over the last 10 weeks , allowing you to compare the current week with historical patterns.
📈 30-Day Daily Candle Average (Green Line)
Displays the a verage range of the last 30 daily candles. This is especially useful for defining Stop Loss levels , since a range greater than one-third of the daily average may reduce the likelihood of the trade closing the same day.
Feel free to contact me for upgrades or corrections.
– Bernardo Ramirez
🇵🇹 Versão em Português
Este script é especialmente útil para traders que precisam medir o intervalo das quatro primeiras velas de 15 minutos da semana.
Ele oferece três informações principais :
🕒 Destaque das 4 Primeiras Velas
Marca as primeiras quatro velas de 15 minutos da semana e exibe o intervalo total entre a máxima e a mínima.
📊 Média de 10 Semanas (Linha Amarela)
Mostra a média do intervalo dessas velas nas últimas 10 semanas, permitindo comparar a semana atual com padrões anteriores.
📈 Média dos Últimos 30 Candles Diários (Linha Verde)
Exibe a média do intervalo das últimas 30 velas diárias.
Isso é especialmente útil para definir o Stop Loss, já que um valor maior que 1/3 da média diária pode dificultar que a operação feche no mesmo dia.
Sinta-se à vontade para me contactar para atualizações ou correções.
– Bernardo Ramirez
🇪🇸 Versión en Español
Este script es especialmente útil para traders que necesitan medir el rango de las primeras cuatro velas de 15 minutos de la semana.
Proporciona tres datos clave :
🕒 Resalta las Primeras 4 Velas
Señala las primeras cuatro velas de 15 minutos de la semana y muestra el rango total entre su máximo y mínimo.
📊 Promedio de 10 Semanas (Línea Amarilla)
Muestra el promedio del rango de esas velas durante las últimas 10 semanas, lo que permite comparar la semana actual con patrones anteriores.
📈 Promedio Diario de 30 Días (Línea Verde)
Muestra el rango promedio de las últimas 30 velas diarias.
Esto es especialmente útil al definir un Stop Loss, ya que un rango mayor a un tercio del promedio diario puede dificultar que la operación se cierre el mismo día.
No dudes en contactarme para mejoras o correcciones.
– Bernardo Ramirez
Sq9 Gold Scaping Chiem Tinh FX 88"This tool allows users to interactively drag and drop significant high and low price levels on the 1-minute timeframe. Based on the selected five key levels, the script automatically identifies potential entry points and suggests reasonable take-profit zones to support short-term trading strategies."
Gann Fan with Buy/Sell SignalsThis Pine Script indicator is based on W.D. Gann's theory, specifically using Gann Fan lines to identify key relationships between price and time. It automatically detects a recent pivot low and draws multiple fan lines—such as 1x1 (45°), 2x1, 1x2, and others—from that point. These angles act as dynamic support and resistance levels. The script also provides buy and sell signals based on the 1x1 angle: a buy signal is triggered when price crosses above the 1x1 line, and a sell signal when it crosses below. For the most accurate results, this indicator works best on higher timeframes such as the 1-hour, 4-hour, or daily charts, where price movements are more stable and Gann's time-price relationships have better significance. This tool is ideal for swing traders and those looking to combine price action with geometric analysis.
Gaps EnhancedThis advanced gap detection tool identifies and visualizes price gaps on trading charts, helping traders spot potential support/resistance levels and trading opportunities.
🔲 Components and Features
Visual gap boxes with directional coloring
Dynamic labels showing key price levels
Smart sorting of nearest gaps
Customizable appearance
Key Features
Gap Visualization
Colored boxes (orange for support, green for resistance)
Dashed lines marking gap boundaries
Right-aligned price labels
Smart Gap Table
Shows 5 most relevant open gaps
Sorted by proximity to current price
Displays required move percentage to fill each gap
Customization Options
Adjustable gap size threshold
Color customization
Label positioning controls
Table location settings
How To Use
Basic Interpretation
Orange boxes: Price gaped up might come back (support zones)
Green boxes: Price gaped down price might come back to close the gap (resistance zones)
The table shows how much the price needs to move to fill each gap (as percentage)
Trading Applications
Look for price reactions near gap levels
Trade bounces off support/resistance gaps
Watch for gap fills as potential trend continuation signals
Use nearest gaps as profit targets
Settings Guide
Minimal Deviation: Set minimum gap size
Max Number of Gaps: Limits how many gaps are tracked
Visual Settings: Customize colors and label positions
Table Position: Choose where the info table appears
Pro Tips
Combine with other indicators for confirmation
Watch for volume spikes at gap levels
Larger gaps often act as stronger S/R
FVG Finder [VM]FVG Finder
Overview
The FVG Finder is a powerful Pine Script indicator designed for TradingView to identify and visualize Fair Value Gaps (FVG) on price charts. Fair Value Gaps are areas where price moves quickly, leaving gaps between candles that represent potential areas of interest for traders. This indicator highlights both bullish and bearish FVGs with customizable visual elements, including shaded zones, middle lines, and boundary lines, to assist traders in spotting key levels for potential reversals or continuations.
Created by Vlad_Mind (Telegram: @Dreamer528), this indicator is highly configurable and optimized for clarity and performance, with a maximum of 500 boxes and lines to ensure smooth operation on any chart.
Features
Bullish and Bearish FVG Detection: Automatically identifies bullish (green) and bearish (red) Fair Value Gaps based on specific candlestick patterns.
Customizable Display: Option to toggle FVG zones on or off via the input settings.
Dynamic Visualization:
Shaded Zones: Highlights FVG areas with semi-transparent boxes (green for bullish, red for bearish).
Middle Lines: Draws dashed lines at the midpoint of each FVG zone for reference.
Boundary Lines: Tracks the upper (bearish) or lower (bullish) boundaries of FVGs, updating dynamically as price interacts with these levels.
Automatic Cleanup: Removes FVGs when price fully closes the gap, keeping the chart clean and relevant.
Performance Optimized: Limits the number of displayed boxes and lines to 500, ensuring smooth performance even on large datasets.
How It Works
The indicator scans for FVGs based on the following conditions:
Bearish FVG: Occurs when three consecutive bearish candles create a gap where the low of the third candle is higher than the high of the first candle.
Bullish FVG: Occurs when three consecutive bullish candles create a gap where the high of the third candle is lower than the low of the first candle.
Once detected, the indicator:
Draws a shaded box representing the FVG zone.
Adds a dashed middle line at the midpoint of the gap.
Tracks the boundary of the gap with a line that updates as price approaches or crosses it.
Deletes the FVG zone when price fully closes the gap (i.e., when the high/low of a new candle surpasses the gap's boundary).
Settings
Show FVG: Toggle to enable or disable the display of FVG zones (default: enabled).
Visual Customization
Bullish FVG Colors:
Zone: Light green (80% transparency).
Middle Line: Green (50% transparency).
Boundary Line: Blue when price interacts with the gap.
Bearish FVG Colors:
Zone: Light red (80% transparency).
Middle Line: Red (50% transparency).
Boundary Line: Blue when price interacts with the gap.
Text Labels: Each FVG zone is labeled with "FVG" in white, with adjustable text size (small by default, tiny when price interacts with the gap).
Usage
Add the FVG Finder to your TradingView chart.
Adjust the Show FVG setting to enable or disable FVG zones as needed.
Use the highlighted zones to identify potential support/resistance levels, breakout opportunities, or areas where price may return to fill the gap.
Combine with other technical analysis tools (e.g., trendlines, volume, or indicators) to confirm trading decisions.
Notes
The indicator is designed to work on any timeframe and market, but its effectiveness may vary depending on volatility and trading style.
For best performance, avoid applying the indicator to extremely large historical datasets, as it is capped at 500 boxes and lines.
Contact Vlad_Mind (Telegram: @Dreamer528) for support or feedback.
Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Always conduct your own research and consult with a professional before making trading decisions.
Happy trading!
INDICATOR RENKO LONG/SHORT Fair Value Gap (FVG) Zones • Auto Entry & Exit Signals • Built-in Risk Management
Overview
This Pine Script® indicator automatically identifies and highlights Fair Value Gaps—price imbalances created when consecutive bars leave a “gap” between them—and offers on-chart mock entries, stop-losses, take-profits, and customizable alerts. Use it to visually spot high-probability imbalance zones, refine your entries, and maintain disciplined risk management, all without cluttering your chart.
🔍 Key Features
Dynamic FVG Detection
Scans for bullish and bearish gaps based on your lookback period and minimum size.
Automatically plots filled zones in semi-transparent green (bullish) or red (bearish).
Automated Entry & Exit Labels
BUY / SELL markers trigger when price re-enters an active FVG.
Long Exit / Short Exit markers show when your mock stop-loss or take-profit is hit.
Risk-Reward Management
Define your preferred Risk : Reward ratio (e.g. 1 : 2) and watch the script calculate targets.
Optional “Mid-Gap” entry: choose to fill at the midpoint of the gap for better average price.
Configurable Alerts
Four built-in alertconditions let you hook into TradingView alerts for:
FVG Buy
FVG Sell
Exit Long
Exit Short
⚙️ Inputs & Parameters
Setting Default Description
FVG gap lookback (bars) 2 Bars to look back when measuring gaps (min 2, max 5)
Min FVG Size (points) 2.0 Minimum gap size in price units (step 0.25)
Risk : Reward Ratio 2.0 Multiplier for target distance vs. stop-loss distance
Use Mid-Gap Entry? false If enabled, entry price = midpoint of the FVG rather than edge
📈 How to Use
Add to Chart
Copy & paste the script into TradingView’s Pine Editor (Version 6).
Adjust the inputs to match your trading style and instrument volatility.
Interpret the Zones
Green rectangles mark bullish FVGs—potential demand areas.
Red rectangles mark bearish FVGs—potential supply areas.
Follow the Labels
When price re-enters an active gap, a BUY or SELL label appears.
A Long Exit or Short Exit label appears once your mock stop or target is reached.
Set Alerts
Create alerts on any of the four conditions to receive real-time notifications.
🔔 Alerts & Automation
Use the built-in alert conditions to automate your monitoring:
FVG Buy Signal: "Fair Value Gap Buy Triggered"
FVG Sell Signal: "Fair Value Gap Sell Triggered"
FVG Exit Long: "Fair Value Gap – Long Position Exited"
FVG Exit Short: "Fair Value Gap – Short Position Exited"
⚠️ Disclaimer
This indicator is provided “as is” under the Mozilla Public License 2.0. It is intended for educational purposes and to aid in technical analysis. It is not financial advice. Always backtest and paper-trade before applying to live capital, and never risk more than you can afford to lose.
my scriptMy personal script that shows an alert if any candlestick touch or bounce up or down from 13EMA on all major tickers.
AlgoRanger TrendFlow BB//@version=5
indicator("AlgoRanger TrendFlow BB", overlay=true)
// === Input ===
length = input.int(20, title="BB Length")
src = input(close, title="Source")
mult = input.float(2.0, title="StdDev Multiplier")
// === Bollinger Bands Calculation ===
basis = ta.sma(src, length)
dev = ta.stdev(src, length)
// === Additional Lines (6 Lines Total) ===
upper2 = basis + (2 * dev)
upper1 = basis + dev
lower1 = basis - dev
lower2 = basis - (2 * dev)
// === Trend Detection ===
isUptrend = close > basis
isDowntrend = close < basis
isSideway = not isUptrend and not isDowntrend
// === Color Based on Trend ===
upperBandColor = isUptrend ? color.rgb(106, 249, 111) : isDowntrend ? color.red : color.rgb(0, 140, 255)
lowerBandColor = isUptrend ? color.green : isDowntrend ? color.red : color.rgb(0, 140, 255)
basisColor = isUptrend ? color.green : isDowntrend ? color.red : color.rgb(0, 140, 255)
upper2Color = isUptrend ? color.green : color.rgb(0, 139, 253)
upper1Color = isUptrend ? color.green : color.rgb(0, 140, 255)
lower1Color = isDowntrend ? color.red : color.rgb(0, 140, 255)
lower2Color = isDowntrend ? color.red : color.rgb(0, 140, 255)
// === Plot Bollinger Bands with 6 Lines ===
plot(upper2, title="Upper 2", color=upper2Color, linewidth=1, style=plot.style_line)
plot(upper1, title="Upper 1", color=upper1Color, linewidth=1, style=plot.style_line)
plot(basis, title="Basis", color=basisColor, linewidth=3, style=plot.style_line)
plot(lower1, title="Lower 1", color=lower1Color, linewidth=1, style=plot.style_line)
plot(lower2, title="Lower 2", color=lower2Color, linewidth=1, style=plot.style_line)
CANDLE SCRUTINY | GSK-VIZAG-AP-INDIAIndicator: CANDLE SCRUTINY | GSK-VIZAG-AP-INDIA
1. Overview
The CANDLE SCRUTINY indicator is a candle-by-candle analytical tool designed to dissect and visually represent the behavior of recent candles on a chart. It presents a concise table overlay that summarizes critical candlestick data including price movement, directional trend, volume dynamics, and strength of price sequences — all updated in real time.
2. Purpose / Trading Use Case
This tool is ideal for:
Scalpers and intraday traders needing quick real-time candle insights.
Trend analyzers who want to observe evolving price momentum.
Volume-based decision makers monitoring buyer-seller imbalance.
Traders who scrutinize candles for confirmations before entries or exits.
3. Key Features & Logic Breakdown
Candle Classification: Each candle is categorized as Bullish, Bearish, or Doji based on open-close comparison.
Move Calculation: Calculates and displays net candle move (Close - Open) for each bar.
Trend Count: Tracks the number of consecutive candles of the same type (bullish or bearish).
Sequential Move (Total SM): Aggregates move values when candles of the same type form a sequence.
Volume Breakdown: Approximates buy/sell volume ratio using candle type logic.
Delta Volume: Measures buy-sell imbalance to gauge intrabar strength.
Time Localization: Candle timestamps are shown in the user-selected timezone.
4. User Inputs / Settings
Number of Candles (numCandles): Choose how many recent candles to analyze (1–10).
Table Position (tablePos): Set to top_right by default.
Timezone Selector (tzOption): Choose from multiple global timezones (e.g., IST, UTC, NY, London) to view local candle times.
These settings let traders customize the scope and perspective of candle analysis to fit their trading region and strategy focus.
5. Visual & Plotting Elements
A floating data table appears on the chart (top-right by default), showing:
Time of candle (localized)
Type (Bullish/Bearish/Doji)
Move value with green/red background
Total SM (sequential movement) with trend-based color shading
Trend Count
Buy Volume, Sell Volume, Total Volume
Delta (volume imbalance) with color-coded strength indicator
Color coding makes it visually intuitive to quickly assess strength, direction, and sequence.
6. Effective Usage Tips
Use in 1-minute to 15-minute timeframes for scalping or momentum breakout confirmation.
Monitor Delta and Sequential Move (SM) to confirm strength behind price action.
Trend Count helps gauge sustained direction—useful for short-term trend continuation strategies.
Combine with support/resistance zones or volume profile for stronger confluence.
Great for detecting early signs of exhaustion or continuation.
7. What Makes It Unique
Combines price action + volume behavior + trend memory into one compact visual table.
Allows user-defined timezone adjustment, a rare feature in similar indicators.
Designed to give a story of the last N candles from a momentum and participation viewpoint.
Fully non-intrusive overlay—doesn't clutter chart space.
8. Alerts / Additional Features
Currently no alerts, but future versions may include:
Alert when trend count exceeds a threshold
Alert on strong delta volume shifts
Alert on back-to-back Dojis (sign of indecision)
9. Technical Concepts Used
Candlestick Logic: Bullish, Bearish, Doji classification
Volume Analysis: Approximate buy/sell split based on candle type
Color Coding: For intuitive interpretation of move, trend, and delta
Arrays & Looping Logic: Efficient tracking of trends and sequences
Timezone Handling: Uses hour(time, timezone) and minute(time, timezone) for local display
10. Disclaimer
This script is provided for educational and informational purposes only. It does not constitute financial advice. Always backtest thoroughly and use appropriate risk management when applying this or any indicator in live markets. The author is not responsible for any financial losses incurred.