ICT SMC Liquidity Grabs and OBsICT SMC Liquidity Grabs + OB + Fibonacci OTE Levels
Smart Money Concepts Trading Assistant
This script is built for traders who follow ICT (Inner Circle Trader) and Smart Money Concepts. It intelligently combines three critical components of SMC trading: Liquidity Grabs, Order Blocks, and Fibonacci-based Optimal Trade Entry (OTE) zones — giving traders visual cues for potential high-probability reversals and entry points.
🔍 What This Script Does:
Detects Liquidity Grabs
Identifies swing highs/lows where price sweeps liquidity, then immediately reverses.
Labels them with orange markers when price takes out previous highs/lows but closes back inside.
Draws Order Blocks
After a liquidity grab, the script looks for strong bullish or bearish candles and automatically highlights the OB zone.
These OB zones are visualized with transparent colored boxes extending several bars forward.
Plots Fibonacci OTE Levels
Uses recent swing high/low pivots to dynamically draw customizable OTE retracement levels (e.g., 62% and 75%) for both long and short setups.
Highlights Optimal Entry Zones
Marks valid OTE-based buy/sell opportunities only when:
Liquidity has been taken,
Price enters the OTE zone,
And a strong confirming candle appears.
Adds visual zones, trade labels, and optional alerts for each qualified entry.
Includes Take Profit Targets
Automatically calculates take-profit levels based on previous structure and risk-reward ratios.
TP1 is the previous swing, and TP2 is an extended R-multiple (customizable by user).
⚙️ Customization Options:
Toggle each feature (Liquidity Grabs, OBs, Fibonacci Levels)
Adjust Fibonacci levels (default: 62% and 75%)
Set lookback period for liquidity checks
Customize the R-multiple for TP2 levels
💡 How to Use:
Enable desired features from the input panel.
Watch for Buy/Sell OTE zones highlighted in green/red.
Confirm with liquidity sweep and OB support for stronger signals.
Use the automatically generated TP levels to manage risk.
🚀 What Makes It Unique:
Unlike other open-source mashups, this script synchronizes multiple SMC concepts into a single tool that:
Waits for high-confidence conditions (not just blind fib or OB detection)
Validates entries using multiple confluences
Visually marks actionable setups
Automates trade management zones
Whether you're trend-trading, scalping, or swing trading ICT-style, this tool offers a streamlined, smart-money-aligned workflow directly on your chart.
Indicadores e estratégias
GIGANEVA V6.61 PublicThis enhanced Fibonacci script for TradingView is a powerful, all-in-one tool that calculates Fibonacci Levels, Fans, Time Pivots, and Golden Pivots on both logarithmic and linear scales. Its ability to compute time pivots via fan intersections and Range interactions, combined with user-friendly features like Bool Fib Right, sets it apart. The script maximizes TradingView’s plotting capabilities, making it a unique and versatile tool for technical analysis across various markets.
1. Overview of the Script
The script appears to be a custom technical analysis tool built for TradingView, improving upon an existing script from TradingView’s Community Scripts. It calculates and plots:
Fibonacci Levels: Standard retracement levels (e.g., 0.236, 0.382, 0.5, 0.618, etc.) based on a user-defined price range.
Fibonacci Fans: Trendlines drawn from a high or low point, radiating at Fibonacci ratios to project potential support/resistance zones.
Time Pivots: Points in time where significant price action is expected, determined by the intersection of Fibonacci Fans or their interaction with key price levels.
Golden Pivots: Specific time pivots calculated when the 0.5 Fibonacci Fan (on a logarithmic or linear scale) intersects with its counterpart.
The script supports both logarithmic and linear price scales, ensuring versatility across different charting preferences. It also includes a feature to extend Fibonacci Fans to the right, regardless of whether the user selects the top or bottom of the range first.
2. Key Components Explained
a) Fibonacci Levels and Fans from Top and Bottom of the "Range"
Fibonacci Levels: These are horizontal lines plotted at standard Fibonacci retracement ratios (e.g., 0.236, 0.382, 0.5, 0.618, etc.) based on a user-defined price range (the "Range"). The Range is typically the distance between a significant high (top) and low (bottom) on the chart.
Example: If the high is $100 and the low is $50, the 0.618 retracement level would be at $80.90 ($50 + 0.618 × $50).
Fibonacci Fans: These are diagonal lines drawn from either the top or bottom of the Range, radiating at Fibonacci ratios (e.g., 0.382, 0.5, 0.618). They project potential dynamic support or resistance zones as price evolves over time.
From Top: Fans drawn downward from the high of the Range.
From Bottom: Fans drawn upward from the low of the Range.
Log and Linear Scale:
Logarithmic Scale: Adjusts price intervals to account for percentage changes, which is useful for assets with large price ranges (e.g., cryptocurrencies or stocks with exponential growth). Fibonacci calculations on a log scale ensure ratios are proportional to percentage moves.
Linear Scale: Uses absolute price differences, suitable for assets with smaller, more stable price ranges.
The script’s ability to plot on both scales makes it adaptable to different markets and user preferences.
b) Time Pivots
Time pivots are points in time where significant price action (e.g., reversals, breakouts) is anticipated. The script calculates these in two ways:
Fans Crossing Each Other:
When two Fibonacci Fans (e.g., one from the top and one from the bottom) intersect, their crossing point represents a potential time pivot. This is because the intersection indicates a convergence of dynamic support/resistance zones, increasing the likelihood of a price reaction.
Example: A 0.618 fan from the top crosses a 0.382 fan from the bottom at a specific bar on the chart, marking that bar as a time pivot.
Fans Crossing Top and Bottom of the Range:
A fan line (e.g., 0.5 fan from the bottom) may intersect the top or bottom price level of the Range at a specific time. This intersection highlights a moment where the fan’s projected support/resistance aligns with a key price level, signaling a potential pivot.
Example: The 0.618 fan from the bottom reaches the top of the Range ($100) at bar 50, marking bar 50 as a time pivot.
c) Golden Pivots
Definition: Golden pivots are a special type of time pivot calculated when the 0.5 Fibonacci Fan on one scale (logarithmic or linear) intersects with the 0.5 fan on the opposite scale (or vice versa).
Significance: The 0.5 level is the midpoint of the Fibonacci sequence and often acts as a critical balance point in price action. When fans at this level cross, it suggests a high-probability moment for a price reversal or significant move.
Example: If the 0.5 fan on a logarithmic scale (drawn from the bottom) crosses the 0.5 fan on a linear scale (drawn from the top) at bar 100, this intersection is labeled a "Golden Pivot" due to its confluence of key Fibonacci levels.
d) Bool Fib Right
This is a user-configurable setting (a boolean input in the script) that extends Fibonacci Fans to the right side of the chart.
Functionality: When enabled, the fans project forward in time, regardless of whether the user selected the top or bottom of the Range first. This ensures consistency in visualization, as the direction of the Range selection (top-to-bottom or bottom-to-top) does not affect the fan’s extension.
Use Case: Traders can use this to project future support/resistance zones without worrying about how they defined the Range, improving usability.
3. Why Is This Code Unique?
Original calculation of Log levels were taken from zekicanozkanli code. Thank you for giving me great Foundation, later modified and applied to Fib fans. The script’s uniqueness stems from its comprehensive integration of Fibonacci-based tools and its optimization for TradingView’s plotting capabilities. Here’s a detailed breakdown:
All-in-One Fibonacci Tool:
Most Fibonacci scripts on TradingView focus on either retracement levels, extensions, or fans.
This script combines:
Fibonacci Levels: Static horizontal lines for retracement and extension.
Fibonacci Fans: Dynamic trendlines for projecting support/resistance.
Time Pivots: Temporal analysis based on fan intersections and Range interactions.
Golden Pivots: Specialized pivots based on 0.5 fan confluences.
By integrating these functions, the script provides a holistic Fibonacci analysis tool, reducing the need for multiple scripts.
Log and Linear Scale Support:
Many Fibonacci tools are designed for linear scales only, which can distort projections for assets with exponential price movements. By supporting both logarithmic and linear scales, the script caters to a wider range of markets (e.g., stocks, forex, crypto) and user preferences.
Time Pivot Calculations:
Calculating time pivots based on fan intersections and Range interactions is a novel feature. Most TradingView scripts focus on price-based Fibonacci levels, not temporal analysis. This adds a predictive element, helping traders anticipate when significant price action might occur.
Golden Pivot Innovation:
The concept of "Golden Pivots" (0.5 fan intersections across scales) is a unique addition. It leverages the symmetry of the 0.5 level and the differences between log and linear scales to identify high-probability pivot points.
Maximized Plot Capabilities:
TradingView imposes limits on the number of plots (lines, labels, etc.) a script can render. This script is coded to fully utilize these limits, ensuring that all Fibonacci levels, fans, pivots, and labels are plotted without exceeding TradingView’s constraints.
This optimization likely involves efficient use of arrays, loops, and conditional plotting to manage resources while delivering a rich visual output.
User-Friendly Features:
The Bool Fib Right option simplifies fan projection, making the tool intuitive even for users who may not consistently select the Range in the same order.
The script’s flexibility in handling top/bottom Range selection enhances usability.
4. Potential Use Cases
Trend Analysis: Traders can use Fibonacci Fans to identify dynamic support/resistance zones in trending markets.
Reversal Trading: Time pivots and Golden Pivots help pinpoint moments for potential price reversals.
Range Trading: Fibonacci Levels provide key price zones for trading within a defined range.
Cross-Market Application: Log/linear scale support makes the script suitable for stocks, forex, commodities, and cryptocurrencies.
The original code was from zekicanozkanli . Thank you for giving me great Foundation.
COT3 - Flip Strength Index - Invincible3This indicator uses the TradingView COT library to visualize institutional positioning and potential sentiment or trend shifts. It compares the long% vs short% of commercial and non-commercial traders for both Pair A and Pair B, helping traders identify trend strength, market overextension, and early reversal signals.
🔷 COT RSI
The COT RSI normalizes the net positioning difference between non-commercial and commercial traders over (N=13, 26, and 52)-week periods. It ranges from 0 to 100, highlighting when sentiment is at bullish or bearish extremes.
COT RSI (N)= ((NC - C)−min)/(max-min) x100
🟡 COT Index
The COT Index tracks where the current non-commercial net position lies within its 1-year and 3-year historical range. It reflects institutional accumulation or distribution phases.
Strength represents the magnitude of that positioning bias, visualized through normalized RSI-style metrics.
COT Index (N)= (NC net)/(max-min) x100
🔁 Flip Detection
Flip refers to the crossovers between long% and short%, indicating a change in directional bias among trader groups. When long positions exceed shorts (or vice versa), it signals a possible market flip in sentiment or trend.
For example, Pair B commercial flip is calculated as:
Long% = (Long/Open Interest)×100
Short% = (Short/Open Interest)×100
Flip = Long%−Short%
A bullish flip occurs when long% overtakes short%, and vice versa for a bearish flip. These flips often precede price trend changes or confirm sentiment breakouts.
Flip captures how far current positioning deviates from historical norms — highlighting periods of institutional overconfidence or exhaustion, often leading to significant market turns.
This combination offers a multi-layered edge for identifying when smart money is flipping direction, and whether that flip has strong conviction or is likely to fade.
..........................................................................................................................................................
🔗 Connect & Learn More
📌 Discord:https://discord.gg/EjrsAjH8F5
▶️ YouTube: www.youtube.com
🌐 Website: www.invincible3.org
Multi TF table by marci04This indicator analyzes the relationship between price and multiple EMAs (12, 21, 50, 100, 200) across several timeframes to determine trend direction. It displays the trend on each timeframe as "STRONG UP", "UP", "DOWN", or "STRONG DOWN" in a color-coded table. At the bottom, a "Magic Number" summarizes the overall trend strength by assigning weighted values to each trend and calculating their total.
First 5-Min Candle Targetssquare root of first five minute candle closing price and target of 45 deg
📈 MACD Histogram + Momentum Signal@name 📈 MACD Histogram + Momentum Signal
* @version 1.0
* @author YourNameHere
* @description
* This indicator visualizes momentum using the MACD oscillator. It shows:
* - MACD line
* - Signal line (EMA of MACD)
* - MACD Histogram (MACD - Signal)
*
* The histogram bars are color-coded:
* - Green: Momentum increasing
* - Red: Momentum decreasing
*
* ──────────────
* 🔍 Features:
* - Standard MACD calculation (12/26/9 by default)
* - Momentum visualization through histogram
* - Zero line crossover alerts (bullish/bearish momentum shifts)
* - Clean color-coded layout
*
* ──────────────
* ⚙️ Inputs:
* - Fast EMA Length (default: 12)
* - Slow EMA Length (default: 26)
* - Signal EMA Length (default: 9)
* - Source (default: close)
*
* ──────────────
* 📈 How It Works:
* 1. MACD = EMA(fast) - EMA(slow)
* 2. Signal = EMA of MACD
* 3. Histogram = MACD - Signal
* 4. Histogram color changes depending on momentum change
* 5. Alerts fire when histogram crosses the zero line
*
* ──────────────
* 🚨 Alerts:
* - Histogram crossing above zero → Bullish momentum shift
* - Histogram crossing below zero → Bearish momentum shift
*
* ──────────────
* ⚠️ Notes:
* - MACD is a lagging indicator; best used with trend confirmation tools.
* - This version focuses on histogram-based momentum signals.
* - Works best in trending markets; can give false signals in choppy conditions.
*
* Default Settings:
* - Fast EMA: 12
* - Slow EMA: 26
* - Signal EMA: 9
* - Source: Close
Renko Compression Index (RCI)Renko Compression Index
The Renko Compression Index (RCI) is a unique market structure indicator designed to detect price compression zones on Renko-based charts. It measures the frequency of directional changes in Renko bricks over a specific period, identifying moments of trend indecision or consolidation that may precede major breakouts.
M2 Global Liquidity (FX-Neutral)This indicator visualizes the global M2 money supply across major economies (China, USA, Eurozone, Japan, UK), converted into a common USD basis using fixed exchange rates as of January 31, 2020.
By applying constant FX rates, the indicator eliminates the influence of currency fluctuations, providing a "foreign exchange-neutral" view of global liquidity trends.
EMA‑Based Trend Detector v1EMA cross over based trend detection. It uses 50, 90, and 200 EMAs, the current price. By taking into account their relative positions, it determines current trend using predetermined rules.
EMA Oscillating Trend📈 EMA Oscillating Trend by AI-123
The EMA Oscillating Trend indicator is a dynamic trend visualizer that enhances traditional EMA behavior by offsetting the line based on trend direction, providing a more intuitive and visually distinct representation of market momentum.
🔍 Key Features:
🔵 Bullish Color Customization – Define your preferred color for bullish trends
🔴 Bearish Color Customization – Set a different tone for bearish phases
🪄 Adjustable Line Thickness – Tailor the EMA's appearance to your chart style
📐 Offset Multiplier Input – Automatically pushes the EMA above price in a downtrend and below price in an uptrend for enhanced clarity
⚙️ User-Friendly Inputs – No coding knowledge required; full customization in the settings panel
🧠 How It Works:
Calculates a primary EMA line (OV) and a sub-component to compare against (OV2)
Determines the trend based on whether OV is above or below OV2
Shifts the EMA line above price during bearish trends and below price during bullish trends
The offset is percentage-based and scales dynamically with the price for optimal readability
✅ Ideal For:
Trend-followers seeking visual clarity
Discretionary traders who want less clutter and more signal
Anyone who likes their EMAs with a little more flair and insight
🛠️ Author: @alphainvestor123
This tool was crafted with simplicity and clarity in mind. If you enjoy the indicator, consider dropping feedback or sharing your use case!
Jack's ADX Entry V5Updated Jack's ADX Entry Indicator to show entry for long/short positions based on:
1. Order of the short, medium and long EMAs.
2. ADX Trend strength momentum value increasing from previous value.
VWAP Bounce & SqueezeIt includes:
VWAP
20/50 EMA
Volume spike and candle body simulating Bookmap/DOM
custom confluence detection for VWAP, EMA, candle structure
15 minute Opening Range
signals for long and short opportunities
automated risk/reward boxes
automated trailing stop suggestions
ICT SMC Liquidity Grabs and OBsICT SMC Liquidity Grabs + OB + Fibonacci OTE Levels
Smart Money Concepts Trading Assistant
This script is built for traders who follow ICT (Inner Circle Trader) and Smart Money Concepts. It intelligently combines three critical components of SMC trading: Liquidity Grabs, Order Blocks, and Fibonacci-based Optimal Trade Entry (OTE) zones — giving traders visual cues for potential high-probability reversals and entry points.
🔍 What This Script Does:
Detects Liquidity Grabs
Identifies swing highs/lows where price sweeps liquidity, then immediately reverses.
Labels them with orange markers when price takes out previous highs/lows but closes back inside.
Draws Order Blocks
After a liquidity grab, the script looks for strong bullish or bearish candles and automatically highlights the OB zone.
These OB zones are visualized with transparent colored boxes extending several bars forward.
Plots Fibonacci OTE Levels
Uses recent swing high/low pivots to dynamically draw customizable OTE retracement levels (e.g., 62% and 75%) for both long and short setups.
Highlights Optimal Entry Zones
Marks valid OTE-based buy/sell opportunities only when:
Liquidity has been taken,
Price enters the OTE zone,
And a strong confirming candle appears.
Adds visual zones, trade labels, and optional alerts for each qualified entry.
Includes Take Profit Targets
Automatically calculates take-profit levels based on previous structure and risk-reward ratios.
TP1 is the previous swing, and TP2 is an extended R-multiple (customizable by user).
⚙️ Customization Options:
Toggle each feature (Liquidity Grabs, OBs, Fibonacci Levels)
Adjust Fibonacci levels (default: 62% and 75%)
Set lookback period for liquidity checks
Customize the R-multiple for TP2 levels
💡 How to Use:
Enable desired features from the input panel.
Watch for Buy/Sell OTE zones highlighted in green/red.
Confirm with liquidity sweep and OB support for stronger signals.
Use the automatically generated TP levels to manage risk.
🚀 What Makes It Unique:
Unlike other open-source mashups, this script synchronizes multiple SMC concepts into a single tool that:
Waits for high-confidence conditions (not just blind fib or OB detection)
Validates entries using multiple confluences
Visually marks actionable setups
Automates trade management zones
Whether you're trend-trading, scalping, or swing trading ICT-style, this tool offers a streamlined, smart-money-aligned workflow directly on your chart.
QuantumFlowX™ - Özgün Momentum Algoritması + NUPUGoals:
Momentum Analysis: The primary goal of the momentum indicator is to assess the speed and strength of a price move. We will conduct independent analyses of price and momentum to detect momentum movements.
Divergence Detection: By identifying discrepancies (divergences) between price movements and momentum indicators, we will generate buy and sell signals.
Visualization: The momentum indicator’s visual representation will be clearly shown on the chart either as a line or histogram. Divergences and buy/sell signals will also be marked using shapes.
Steps:
Calculating the Momentum Indicator:
We will calculate the momentum indicator based on price changes over a specified period.
Detecting Divergences Between Price and Momentum:
Divergences will be identified when the price moves in one direction, while the momentum indicator moves in the opposite direction.
Marking Divergences Visually on the Chart:
Divergences will be clearly marked with shapes (arrows or labels) to indicate buy and sell opportunities.
Displaying Momentum Lines and Histograms:
Momentum will be displayed on the chart using lines or histograms, clearly showing the strength and direction of the price move.
MACD [AlchimistOfCrypto]🌠 MACD Optimized with Python – Decoding the Chaos of Markets 🌠
Category: Trend Analysis 📈
"Like the dynamic systems studied in chaos theory, financial markets appear unpredictable at first glance. Yet, as Edward Lorenz demonstrated, even in apparent chaos reside harmonious mathematical structures. The MACD (Moving Average Convergence Divergence) represents this quest for order within disorder—a mathematical formulation that extracts coherent signals from price noise. By combining moving averages of different periods, this indicator reveals hidden cycles and precise moments when market energy shifts, like a pendulum obeying the immutable laws of physics."
📊 Technical Overview
The MACD Optimized with Python is a revolutionary take on the classic Moving Average Convergence Divergence indicator. Powered by Python-driven optimizations 🐍, it adapts to specific timeframes, delivering razor-sharp signals for traders seeking to navigate the market’s chaos with precision.
⚙️ How It Works
- Python-Optimized Parameters 🔧: Unlike the standard MACD (12,26,9), our version uses mathematically tailored parameters for each timeframe:
- 1H: 11/38/27
- 4H: 9/98/27
- 1D: 45/90/29
- 1W: 9/16/3
- 2W: 5/20/5
- Intuitive Visuals 🎨:
- Crossovers marked by colored dots 🟢🔴 for clear entry/exit signals.
- Histogram with a color gradient 🌈 to show direction and momentum intensity.
- Customizable Signals 🎯: Choose to display long, short, or both signals to match your trading style.
🚀 How to Use This Indicator
1. Select Your Timeframe ⏰: Choose the timeframe aligned with your trading horizon (1H, 4H, 1D, 1W, or 2W).
2. Spot Crossovers 🔍: Watch for the MACD line (green) crossing the signal line (red) to identify potential trend changes.
3. Confirm with Divergence ✅: Combine crossovers with price-MACD divergence for high-probability trend reversal signals.
📅 Release Notes
Unlock the hidden order of markets with this Python-optimized MACD. Stay tuned for future enhancements! ✨
🏷️ Tags
#Trading #TechnicalAnalysis #MACD #TrendAnalysis #Python #MultiTimeframe #Divergence #Momentum #TradingStrategy #RiskManagement #Forex #Stocks #Crypto #ChaosTheory #OptimizedTrading
Prior Day HL MidPlots the High, Low and Midpoint of any prior daily candle right on your chart.
Just pick “Days Back” (1, 2, 3, etc.), customize your colors, and see yesterday’s (or n‑days‑ago) range and midpoint in real time.
Enhanced VWAP Breakout StrategyBreakout. Retest. Confirm. Trade.
What This Strategy Does
This script tracks and trades VWAP breakouts, but adds a layer of discipline through retest confirmation logic.
Instead of entering the moment price breaks VWAP, it:
Waits for a breakout candle (close above VWAP for longs, below for shorts)
Monitors the retest, the next candle must dip into VWAP but hold its direction
Enters only on confirmation, a clean close above (or below) that retest high/low
Calculates your stop loss from the retest low/high
Plots target profit using your selected risk:reward ratio
Optionally manages trades with trailing stops
Everything is visualized:
Breakout candles = 🟡
Retest candles = 🟠
Entry triggers = 🟢
SL/TP levels plotted automatically
VWAP line adjustable in width and color
It keeps track of every step of the setup using arrays, so you’ll always know what phase the pattern is in, and where your trade came from.
How to Use It
Apply it to any timeframe (1h or 15m tends to work well with decent liquidity)
VWAP is built-in — no need to add a separate indicator
Configure your risk:reward in the settings (default = 3:1)
Use the session control to limit trades to specific hours or days (default = last 6 months)
Decide whether to enable shorts, or keep it long-only
Optionally enable trailing stops if you're managing runners
Once configured, the strategy will:
Highlight each phase of the pattern
Execute entries and exits for you
Track and display performance via TradingView’s built-in strategy tester
Perfect for those who want structure in their intraday or swing trades.
Why I Built It
I’ve seen too many breakouts fail because the entry was too early.
This strategy doesn’t jump the gun — it waits for the market to show its hand.
VWAP gives the bias, the retest gives the validation, and the trigger confirms momentum.
You can test it across markets, pairs, or even layer it into your own logic.
Try it out and share your thoughts. Feedback helps refine this even more.
More upgrades coming soon!
Compare Strength with SLOPE Description
This indicator compares the relative strength between the current asset and a benchmark (e.g., BTC vs. ETH or AAPL vs. SPY) using a linear regression slope of their ratio over time.
The ratio is calculated as: close / benchmark
A linear regression slope is computed over a user-defined window
The slope represents trend strength: if it’s rising, the current asset is outperforming the benchmark
Plots
Gray Line: The raw ratio between the asset and benchmark
Orange Line: The slope of the ratio (shows momentum)
Background Color :
Green: The asset is significantly stronger than the benchmark
Red: The asset is significantly weaker than the benchmark
No color: No clear trend
Settings
Slope Window Length: Number of candles used in the regression (default = 10)
Slope Threshold: Sensitivity of trend detection. Smaller values detect weaker trends.
Example Use Cases
Style Rotation Strategy: Use the slope to determine whether "Growth" or "Value" style is leading.
Pair Trading / Relative Performance: Track which asset is leading in a pair (e.g., BTC vs ETH).
Factor Timing: Serve as a timing model to allocate between different sectors or factors.
Happy trading!
Breakout with Retest Confirmation//@version=5
indicator("Breakout with Retest Confirmation", overlay=true)
// Parameters
lookback = input.int(20, title="Lookback Period")
retestTolerance = input.float(0.005, title="Retest Tolerance (%)")
// Identify support and resistance
resistance = ta.highest(high, lookback)
support = ta.lowest(low, lookback)
// Detect breakout
bullishBreakout = close > resistance
bearishBreakout = close < support
// Store breakout levels
var float breakoutLevel = na
if (bullishBreakout)
breakoutLevel := resistance
if (bearishBreakout)
breakoutLevel := support
// Detect retest
retest = false
if (not na(breakoutLevel))
priceDiff = math.abs(close - breakoutLevel)
retest := priceDiff / breakoutLevel <= retestTolerance
// Confirm retest and signal entry
entrySignal = false
if (retest)
if (bullishBreakout and close > breakoutLevel)
entrySignal := true
if (bearishBreakout and close < breakoutLevel)
entrySignal := true
// Plot signals
plotshape(entrySignal and bullishBreakout, title="Bullish Entry", location=location.belowbar, color=color.green, style=shape.arrowup)
plotshape(entrySignal and bearishBreakout, title="Bearish Entry", location=location.abovebar, color=color.red, style=shape.arrowdown)
London ORB + Session High/Low + FVGLondon ORB + Session High/Low + FVG
📘 Script Description: London ORB + Session High/Low + Fair Value Gap
This script is designed to assist intraday traders during the London session open by combining:
🕒 1. Opening Range Breakout (ORB)
Captures the high and low of the first 15-minute candle after the London open (08:00–08:15 GMT).
Draws lines and labels for the ORB High and Low levels.
Detects breakouts above or below the ORB and plots a triangle signal at the breakout bar.
🌐 2. Asian & US Session Levels
Automatically marks the highs and lows of the Asian (00:00–06:00 GMT) and US (13:30–20:00 GMT) sessions.
Useful for identifying prior session liquidity zones, key support/resistance levels, and potential reaction areas.
📉 3. Fair Value Gaps (FVG)
Highlights imbalances in price action between non-overlapping candles (also known as FVGs or inefficiencies).
Draws a shaded box between candles where gaps exist:
Green for bullish FVGs
Red for bearish FVGs
🔔 4. Alert Support
Optional alerts are built in for:
Long breakout (price breaks above ORB)
Short breakout (price breaks below ORB)
🎯 Use Case
Perfect for:
Day traders looking to capitalize on early volatility at the London open
Traders using liquidity-based strategies, retests, or gap-fills
Visualizing and aligning with prior session highs/lows for structure and context
Exponential Regression Log ResidualThis custom indicator measures the logarithmic residual between the current price and an exponential regression line, offering insights into relative overbought and oversold conditions on a logarithmic scale. It can be especially useful when analyzing assets that move exponentially over time, such as growth stocks or cryptocurrencies.