OHLC_DayLibrary "OHLC_Day"
TODO: add library description here
openD(x)
Parameters:
x (int)
highD(x)
Parameters:
x (int)
lowD(x)
Parameters:
x (int)
closeD(x)
Parameters:
x (int)
Göstergeler ve stratejiler
Horizontal Grid from Base PriceSupport & Resistance Indicator function
This inductor is designed to analyze the "resistance line" according to the principle of mother fish technique, with the main purpose of:
• Measure the price swing cycle (Price Swing Cycle)
• analyze the standings of a candle to catch the tempo of the trade
• Used as a decision sponsor in conjunction with Price Action and key zones.
⸻
🛠️ Main features
1. Create Automatic Resistance Boundary
• Based on the open price level of the Day (Initial Session Open) bar.
• It's the main reference point for building a price framework.
2. Set the distance around the resistance line.
• like 100 dots/200 dots/custom
• Provides systematic price tracking (Cycle).
3. Number of lines can be set.
• For example, show 3 lines or more of the top-bottom lines as needed.
4. Customize the color and style of the line.
• The line color can be changed, the line will be in dotted line format according to the user's style.
• Day/night support (Dark/Light Theme)
5. Support for use in conjunction with mother fish techniques.
• Use the line as a base to observe whether the "candle stand above or below the line".
• It is used to help see the behavior of "standing", "loosing", or "flow" of prices on the defensive/resistance line.
6. The default is available immediately.
• The default is based on the current Day bar opening price.
• Round distance, e.g. 200 points, top and bottom, with 3 levels of performance
Vanguard ProVanguard Pro by TPFX
Overview
This is a technical analysis tool designed to help identify the current market trend and high-probability momentum opportunities. It combines a unique core engine with a multi-stage confirmation framework and an at-a-glance dashboard to assist with your chart analysis.
Technical Features
The indicator is built on these main ideas:
1. The Vanguard Momentum Core (VMC) Engine:
The VMC is a proprietary oscillator that generates the initial signals. It doesn't just look at price; it combines two key factors into a single momentum reading:
* Price Extension: It first calculates how far the current price has stretched from its recent average. This helps measure if a move is statistically significant.
* Volume Conviction: It then measures the power behind each price move by analyzing the volume. Moves supported by strong volume are given more weight, indicating higher conviction from market participants.
2. The Multi-Stage Confirmation Framework:
A raw signal from the VMC engine is not enough. To be valid, it must pass through a logical sequence of filters to confirm it aligns with the broader market structure:
* ADX "Gatekeeper" Filter: Checks if the market has enough directional energy to support a trend. This helps avoid signals in choppy, sideways conditions.
* Multi-MA "Structure" Filter: Ensures the signal is aligned with the long-term market structure by checking the price's position relative to key moving averages (e.g., 20, 50, 200).
* EMA "Momentum Stack" Filter: Confirms immediate, short-term momentum by ensuring the price is breaking away decisively across a stack of faster exponential moving averages (8, 21, 50).
* Volume & Candle Body Filter: The final check requires the signal candle itself to show conviction with an above-average body size and supporting volume.
3. How it Grades Signal Quality (Star Rating):
Every "BUY" or "SELL" signal receives a star rating from one (★☆☆☆☆) to five (★★★★★). This rating is calculated instantly based on Higher-Timeframe (HTF) confluence:
* The system checks the trend on the current timeframe plus the 1H, 2H, 4H, 8H, and Daily charts.
* The more timeframes that are aligned with the signal's direction, the higher the star rating. A 5-star signal indicates perfect alignment across the board, representing the highest probability setup according to the framework's logic.
4. How it Adapts to Different Markets:
The settings include "Market Presets" for different asset classes (Forex, Indices, Crypto, etc.). Choosing a preset automatically adjusts the VMC engine's internal parameters to better fit that market's typical volatility and behavior.
5. Vanguard Trend Cloud:
This feature adds a dynamic, color-coded cloud to the chart, similar in concept to the Ichimoku cloud. Its purpose is to provide an immediate visual understanding of the market's underlying trend and momentum.
* Bullish Cloud (Teal): When price is trading above the cloud, it suggests a bullish environment where long positions are generally favored.
* Bearish Cloud (Red): When price is trading below the cloud, it suggests a bearish environment where short positions are generally favored.
* The cloud itself is constructed from two unique components: a fast-moving momentum line (Hull Moving Average) and a slower, structural core trend line (based on the period's highest high and lowest low). The interaction between these two lines creates the cloud and determines its color.
6. Multi-Timeframe Trend Dashboard:
The indicator includes an on-screen dashboard in the bottom-right corner that provides an at-a-glance view of the trend across multiple timeframes (1H, 2H, 4H, 8H, and Daily). This allows you to quickly assess the broader market alignment without switching charts.
How to Use This Indicator
1. Use the Feature Control Panel to Customize Your View: At the very top of the settings, you will find a control panel with checkboxes. This allows you to easily turn major visual components on or off to declutter your chart, including the Core Signals, Risk Management Box, Trend Cloud, and Dashboard.
2. Choose Your Market Preset: In the settings, select a preset that matches the asset you are trading. This is the most important first step for optimal performance.
3. Identify the Market Regime: Use the on-chart ADX Status table (top-right) and the candle coloring to understand the current trend conditions.
4. Watch for "BUY" or "SELL" Signals: When a signal appears, check its star rating below the text. A higher rating suggests a stronger, more confirmed setup.
5. Assess Broader Confluence: Use the Multi-Timeframe Trend Dashboard to confirm if the signal is aligned with the higher-timeframe trends.
6. Use the Trend Cloud for Context: If enabled, observe the price's relationship to the Vanguard Trend Cloud. A "BUY" signal that appears while the price is above a bullish (teal) cloud is considered to have stronger contextual support. Conversely, a "SELL" signal below a bearish (red) cloud is more confirmed.
7. Manage Your Trade: If enabled, the automatically drawn Risk Management Box provides a visual reference for potential Stop Loss and Take Profit levels based on current market volatility (ATR).
Intended Use & Limitations
* Recommended Assets: Designed for use on various assets. Performance will differ between markets. Presets for Forex, Indices, Crypto, Commodities, and Stocks are provided as starting points.
* Timeframes: Can be used on all timeframes. The default settings are primarily tuned for intraday charts.
Limitations:
* This is a tool to support analysis. It does not generate automatic buy or sell advice.
* The indicator is not a standalone strategy and does not guarantee results. Users are responsible for their own trading decisions.
* Past performance is not indicative of future results.
* Always use this tool in combination with your own analysis and a robust risk management plan.
We believe that no indicator is a magic solution. Technical analysis tools provide value through their convenience, adaptability, and unique logic. Combining these elements can help a trader make more educated and planned decisions, hopefully contributing to their overall success.
Market Structure HH, HL, LH and LLit calculates zig zag.This indicator identifies key market structure points — Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) — using a configurable Zigzag approach. When a new HL or LH forms, it generates:
A suggested Entry level
A calculated Stop Loss (SL)
Three Take Profit (TP1, TP2, TP3) levels based on user-defined risk-reward ratios
The script shows only the most recent trade setup to keep the chart clean, and includes visual labels and alert options for both buy and sell conditions.
Structural Volatility Breakout (SVB)Structural Volatility Breakout (SVB) by TPFX
Overview
This is a technical analysis tool that helps identify the current market trend and looks for potential breakout opportunities. It combines several calculations into one indicator to assist with chart analysis.
Technical Features
The indicator is built on these main ideas:
1. How it Identifies the Market Trend:
* First, it checks for a clear trend by looking for a pattern of higher highs and higher lows (for an uptrend) or lower highs and lower lows (for a downtrend).
* Next, it measures the steepness of the recent trend to see if the price is moving with real momentum.
* Finally, it uses a "choppiness filter" to decide if the market is too messy and unpredictable. If the market is choppy, the indicator stays neutral to avoid unclear conditions.
2. How it Generates Breakout Signals:
* The indicator draws upper and lower bands around the price. These bands are designed to be stable and ignore sudden, random price spikes.
* A "Long+" signal appears if the price closes above the upper band while the indicator has identified an uptrend.
* A "Short+" signal appears if the price closes below the lower band while the indicator has identified a downtrend.
3. How it Grades Signal Quality:
* Every signal gets a star rating (from one to three stars). This rating is based on three factors:
1. Volume: Is there strong volume supporting the move?
2. Location: Did the breakout happen close to the central trend line?
3. HTF Agreement: Does the trend on a higher timeframe agree with the signal?
4. How it Adapts to Different Markets:
* The settings include presets for different markets (like Forex, Crypto, or Stocks). Choosing a preset automatically adjusts the indicator's internal math to better fit that market's typical behavior.
5. Multi-Timeframe Trend Dashboard:
* The indicator includes an on-screen dashboard that provides an at-a-glance view of the trend across multiple timeframes (1H, 2H, 4H, 8H, and Daily).
* It uses a robust engine combining a baseline moving average and momentum (MACD) to determine the trend for each timeframe, showing either Bullish, Bearish, or Neutral. This allows you to quickly assess broader market alignment without switching charts.
How to Use This Indicator
1. Use the Feature Control Panel to Customize Your View:
* At the very top of the settings, you will find a control panel with checkboxes. This allows you to easily turn major visual components on or off to declutter your chart. You can toggle the Core Algorithm, Risk Management boxes, Trend MA, Dashboard, and more.
2. In the settings, choose a "Market Preset" that matches the asset you are viewing. For manual control, turn "Auto-Configure" off.
3. Look at the background color to understand the trend: Green suggests an uptrend, Red suggests a downtrend, and Gray suggests a choppy/ranging market.
4. Watch for "Long+" or "Short+" labels. The star rating next to them provides extra context on the signal's conditions.
5. If enabled, the on-chart Stop Loss and Take Profit boxes can be used as a visual reference.
Intended Use & Limitations
* Recommended Assets: Designed for use on various assets. Performance will differ between markets. Presets for Forex, Indices, Crypto, Commodities, and Stocks are provided as starting points.
* Timeframes: Can be used on all timeframes. The default settings are primarily tuned for intraday charts.
Limitations:
* This is a tool to support analysis. It does not generate automatic buy or sell advice.
* The indicator is not a strategy and does not guarantee results. Users are responsible for their own trading decisions.
* Past performance shown in the statistics table does not predict future results.
* Always use this tool in combination with your own analysis and risk management plan.
SVB believe that there is no magic indicator that is able to print money. Indicator toolkits provide value via their convinience, adaptibility and uniqueness. Combining these items can help a trader make more educated; less messy, more planned trades and in turn hopefully help them succeed.
Destek/Direnç + EMA + Trend Algılama yasar pamukdestek direnç trend algılama
Long short
Yaşar pamuk özel olarak açılmıştır.
Matt Klemczak 15 M breakout v6.1Matt Klemczak breakout strategy. This is a strategy with high profit potential and significant result fluctuations, requiring patience and mental resilience. It relies on rare but substantial wins that offset long series of losing trades. It works best when applied consistently and with strict risk management. The key to success is perseverance through difficult periods and the ability to “wait for” the moments when the market is favorable.
DXTRADE//@version=5
indicator(title="DXTRADE", shorttitle="", overlay=true)
// التأكد من أن السوق هو XAUUSD فقط
isGold = syminfo.ticker == "XAUUSD"
// حساب شموع الهايكن آشي
haClose = (open + high + low + close) / 4
var float haOpen = na
haOpen := na(haOpen ) ? open : (haOpen + haClose ) / 2
haHigh = math.max(high, math.max(haOpen, haClose))
haLow = math.min(low, math.min(haOpen, haClose))
// إعداد المعلمات
atr_len = input.int(3, "ATR Length", group="SuperTrend Settings")
fact = input.float(4, "SuperTrend Factor", group="SuperTrend Settings")
adxPeriod = input(2, title="ADX Filter Period", group="Filtering Settings")
adxThreshold = input(2, title="ADX Minimum Strength", group="Filtering Settings")
// حساب ATR
volatility = ta.atr(atr_len)
// حساب ADX يدويًا
upMove = high - high
downMove = low - low
plusDM = upMove > downMove and upMove > 0 ? upMove : 0
minusDM = downMove > upMove and downMove > 0 ? downMove : 0
smoothedPlusDM = ta.rma(plusDM, adxPeriod)
smoothedMinusDM = ta.rma(minusDM, adxPeriod)
smoothedATR = ta.rma(volatility, adxPeriod)
plusDI = (smoothedPlusDM / smoothedATR) * 100
minusDI = (smoothedMinusDM / smoothedATR) * 100
dx = math.abs(plusDI - minusDI) / (plusDI + minusDI) * 100
adx = ta.rma(dx, adxPeriod)
// حساب SuperTrend
pine_supertrend(factor, atr) =>
src = hl2
upperBand = src + factor * atr
lowerBand = src - factor * atr
prevLowerBand = nz(lowerBand )
prevUpperBand = nz(upperBand )
lowerBand := lowerBand > prevLowerBand or close < prevLowerBand ? lowerBand : prevLowerBand
upperBand := upperBand < prevUpperBand or close > prevUpperBand ? upperBand : prevUpperBand
int _direction = na
float superTrend = na
prevSuperTrend = superTrend
if na(atr )
_direction := 1
else if prevSuperTrend == prevUpperBand
_direction := close > upperBand ? -1 : 1
else
_direction := close < lowerBand ? 1 : -1
superTrend := _direction == -1 ? lowerBand : upperBand
= pine_supertrend(fact, volatility)
// فلتر التوقيت (من 8 صباحاً إلى 8 مساءً بتوقيت العراق UTC+3)
withinSession = time >= timestamp("Asia/Baghdad", year, month, dayofmonth, 8, 0) and time <= timestamp("Asia/Baghdad", year, month, dayofmonth, 20, 0)
// إشارات الدخول مع فلتر ADX والتوقيت
validTrend = adx > adxThreshold
longEntry = ta.crossunder(dir, 0) and isGold and validTrend and withinSession
shortEntry = ta.crossover(dir, 0) and isGold and validTrend and withinSession
// وقف الخسارة والهدف
pipSize = syminfo.mintick * 10
takeProfit = 150 * pipSize
stopLoss = 150 * pipSize
// حساب الأهداف والستوب بناءً على شمعة الدخول (haClose للشمعة الحالية)
longTP = haClose + takeProfit
longSL = haClose - stopLoss
shortTP = haClose - takeProfit
shortSL = haClose + stopLoss
// إشارات الدخول
plotshape(series=longEntry, location=location.belowbar, color=color.green, style=shape.labelup, title="BUY")
plotshape(series=shortEntry, location=location.abovebar, color=color.red, style=shape.labeldown, title="SELL")
// رسم خطوط الأهداف ووقف الخسارة عند بداية الشمعة التالية للإشارة
if longEntry
line.new(bar_index, haClose + takeProfit, bar_index + 10, haClose + takeProfit, color=color.green, width=2, style=line.style_dashed)
line.new(bar_index, haClose - stopLoss, bar_index + 10, haClose - stopLoss, color=color.red, width=2, style=line.style_dashed)
if shortEntry
line.new(bar_index, haClose - takeProfit, bar_index + 10, haClose - takeProfit, color=color.green, width=2, style=line.style_dashed)
line.new(bar_index, haClose + stopLoss, bar_index + 10, haClose + stopLoss, color=color.red, width=2, style=line.style_dashed)
// إضافة تنبيهات
alertcondition(longEntry, title="Buy Alert", message="Gold Scalping - Buy Signal!")
alertcondition(shortEntry, title="Sell Alert", message="Gold Scalping - Sell Signal!")
VIPDX//@version=5
indicator(title="VIPDX1", shorttitle="", overlay=true)
// التأكد من أن السوق هو XAUUSD فقط
isGold = syminfo.ticker == "XAUUSD"
// حساب شموع الهايكن آشي
haClose = (open + high + low + close) / 4
var float haOpen = na
haOpen := na(haOpen ) ? open : (haOpen + haClose ) / 2
haHigh = math.max(high, math.max(haOpen, haClose))
haLow = math.min(low, math.min(haOpen, haClose))
// إعداد المعلمات
atr_len = input.int(3, "ATR Length", group="SuperTrend Settings")
fact = input.float(4, "SuperTrend Factor", group="SuperTrend Settings")
adxPeriod = input(2, title="ADX Filter Period", group="Filtering Settings")
adxThreshold = input(2, title="ADX Minimum Strength", group="Filtering Settings")
// حساب ATR
volatility = ta.atr(atr_len)
// حساب ADX يدويًا
upMove = high - high
downMove = low - low
plusDM = upMove > downMove and upMove > 0 ? upMove : 0
minusDM = downMove > upMove and downMove > 0 ? downMove : 0
smoothedPlusDM = ta.rma(plusDM, adxPeriod)
smoothedMinusDM = ta.rma(minusDM, adxPeriod)
smoothedATR = ta.rma(volatility, adxPeriod)
plusDI = (smoothedPlusDM / smoothedATR) * 100
minusDI = (smoothedMinusDM / smoothedATR) * 100
dx = math.abs(plusDI - minusDI) / (plusDI + minusDI) * 100
adx = ta.rma(dx, adxPeriod)
// حساب SuperTrend
pine_supertrend(factor, atr) =>
src = hl2
upperBand = src + factor * atr
lowerBand = src - factor * atr
prevLowerBand = nz(lowerBand )
prevUpperBand = nz(upperBand )
lowerBand := lowerBand > prevLowerBand or close < prevLowerBand ? lowerBand : prevLowerBand
upperBand := upperBand < prevUpperBand or close > prevUpperBand ? upperBand : prevUpperBand
int _direction = na
float superTrend = na
prevSuperTrend = superTrend
if na(atr )
_direction := 1
else if prevSuperTrend == prevUpperBand
_direction := close > upperBand ? -1 : 1
else
_direction := close < lowerBand ? 1 : -1
superTrend := _direction == -1 ? lowerBand : upperBand
= pine_supertrend(fact, volatility)
// فلتر التوقيت (من 8 صباحاً إلى 8 مساءً بتوقيت العراق UTC+3)
withinSession = time >= timestamp("Asia/Baghdad", year, month, dayofmonth, 8, 0) and time <= timestamp("Asia/Baghdad", year, month, dayofmonth, 20, 0)
// إشارات الدخول مع فلتر ADX والتوقيت
validTrend = adx > adxThreshold
longEntry = ta.crossunder(dir, 0) and isGold and validTrend and withinSession
shortEntry = ta.crossover(dir, 0) and isGold and validTrend and withinSession
// وقف الخسارة والهدف
pipSize = syminfo.mintick * 10
takeProfit = 150 * pipSize
stopLoss = 150 * pipSize
// حساب الأهداف والستوب بناءً على شمعة الدخول (haClose للشمعة الحالية)
longTP = haClose + takeProfit
longSL = haClose - stopLoss
shortTP = haClose - takeProfit
shortSL = haClose + stopLoss
// إشارات الدخول
plotshape(series=longEntry, location=location.belowbar, color=color.green, style=shape.labelup, title="BUY")
plotshape(series=shortEntry, location=location.abovebar, color=color.red, style=shape.labeldown, title="SELL")
// رسم خطوط الأهداف ووقف الخسارة عند بداية الشمعة التالية للإشارة
if longEntry
line.new(bar_index, haClose + takeProfit, bar_index + 10, haClose + takeProfit, color=color.green, width=2, style=line.style_dashed)
line.new(bar_index, haClose - stopLoss, bar_index + 10, haClose - stopLoss, color=color.red, width=2, style=line.style_dashed)
if shortEntry
line.new(bar_index, haClose - takeProfit, bar_index + 10, haClose - takeProfit, color=color.green, width=2, style=line.style_dashed)
line.new(bar_index, haClose + stopLoss, bar_index + 10, haClose + stopLoss, color=color.red, width=2, style=line.style_dashed)
// إضافة تنبيهات
alertcondition(longEntry, title="Buy Alert", message="Gold Scalping - Buy Signal!")
alertcondition(shortEntry, title="Sell Alert", message="Gold Scalping - Sell Signal!")
AutoBiasProThe AutoBias indicator, built using Pine Script v6, is designed to identify market bias and generate trading signals by analyzing price action in conjunction with Open, High, Low, Close (OHLC) data. This indicator is ideal for traders aiming to capture trend direction and momentum shifts across various markets, such as forex, stocks, or cryptocurrencies, using OHLC patterns to confirm signals.
How to Use the AutoBias Indicator with OHLC
Setup:
Apply the AutoBias indicator to your chart on a platform supporting Pine Script v6 (e.g., TradingView).
Ensure OHLC candlestick data is visible on your chart for the chosen timeframe (e.g., 15-minute, 1-hour, or daily).
Configure the indicator’s settings if customization is available, or use default parameters.
Interpreting Signals:
Bullish Bias: The indicator signals a potential uptrend when it detects a bullish configuration (specific to its logic). Confirm this with OHLC patterns, such as a strong bullish candlestick (large body with close near the high) or a series of higher highs and higher lows.
Bearish Bias: A bearish signal is generated when the indicator identifies a downtrend. Validate this with OHLC patterns, such as a bearish candlestick (large body with close near the low) or lower highs and lower lows.
Neutral/No Bias: If the indicator shows no clear bias (e.g., indecisive signals), check for OHLC patterns like doji candles or tight consolidation ranges, indicating a lack of trend direction.
Trade Execution:
Entry:
For a bullish signal, enter a long position when a bullish OHLC pattern (e.g., engulfing bullish candle or strong close above the open) confirms the indicator’s signal.
For a bearish signal, enter a short position when a bearish OHLC pattern (e.g., engulfing bearish candle or close below the open) aligns with the indicator.
Confirmation: Only take trades when the indicator’s bias is supported by clear OHLC price action to reduce false signals.
Exit:
Exit long trades when the indicator shifts to a bearish bias or OHLC shows reversal patterns (e.g., shooting star or bearish engulfing).
Exit short trades when a bullish bias emerges or OHLC displays patterns like a hammer or bullish engulfing.
Trade Management:
Stop-Loss: Set stop-loss levels based on OHLC data, such as below the low of the entry candle for longs or above the high for shorts.
Take-Profit: Target key levels identified through OHLC analysis, such as recent swing highs/lows or a risk-reward ratio of 1:2 or higher.
Trailing Stop: Adjust stops based on OHLC structure, trailing below higher lows for longs or above lower highs for shorts.
Best Practices:
Timeframe Alignment: Use higher timeframes (e.g., 4-hour or daily) for swing trading to filter noise, or lower timeframes (e.g., 5-minute) for scalping, ensuring OHLC patterns align with the indicator’s bias.
Combine with Context: Analyze OHLC patterns near key support/resistance levels or during high-volume periods to increase signal reliability.
Risk Management: Limit risk to 1-2% of capital per trade, using OHLC-derived stop-loss levels to manage exposure.
Backtesting: Test the indicator and OHLC combination on historical data to assess performance in your chosen market and timeframe.
Example Scenario
Chart Setup: Apply AutoBias on a 1-hour EUR/USD chart with OHLC candlesticks.
Observation: The indicator signals a bullish bias. A candlestick closes significantly above its open with a small lower wick, confirming strong buying pressure.
Action: Enter a long position at the candle’s close. Set a stop-loss below the candle’s low and a take-profit at the next resistance level identified on the chart.
Monitoring: Exit the trade if the indicator shifts to a bearish bias or a bearish OHLC pattern (e.g., close below open with a long upper wick) appears.
Limitations
The AutoBias indicator may generate false signals in choppy markets. Use OHLC patterns to filter out weak signals during consolidation.
OHLC confirmation is subjective; practice identifying reliable patterns to avoid misinterpretation.
Always backtest the indicator and OHLC strategy to ensure compatibility with your trading style and market conditions.
By combining the AutoBias indicator with OHLC analysis, traders can make informed decisions, leveraging price action to confirm market bias and execute high-probability trades.
This description focuses solely on the usage of the AutoBias indicator with OHLC, avoiding any mention of EMAs as requested. If you have specific details about the AutoBias indicator’s logic or additional features, please provide them for a more tailored explanation!
Supply/Demand Zones - Fixed v3 (Cross YES Only)This Pine Script indicator creates Supply/Demand Zones with specific filtering criteria for TradingView. Here's a comprehensive description:
Supply/Demand Zones -(Cross YES Only)
Core Functionality
Session-Based Analysis: Identifies and visualizes price ranges during user-defined time sessions
Cross Validation Filter: Only displays zones when the "Cross" condition is met (Open and Close prices cross the mid-range level)
Real-Time Monitoring: Tracks price action during active sessions and creates zones after session completion
Key Features
Time Range Configuration
Customizable session hours (start/end time with minute precision)
Timezone support (default: Europe/Bucharest)
Flexible scheduling for different trading sessions
Visual Elements
Range Border: Dotted outline showing the full session range (High to Low)
Key Levels: Horizontal lines for High, Low, and Mid-range levels
Sub-Range Zones: Shaded areas showing Open and Close price zones
Percentage Labels: Display the percentage of range occupied by Open/Close zones
Active Session Background: Blue background highlighting during active sessions
Smart Filtering System
Cross Condition: Only creates zones when:
Open < Mid AND Close > Mid (bullish cross), OR
Open > Mid AND Close < Mid (bearish cross)
This filter ensures only significant price movements that cross the session's midpoint are highlighted
Customization Options
Display Controls: Toggle visibility for borders, lines, zones, and labels
Color Schemes: Full color customization for all elements
Transparency Settings: Adjustable transparency for zone fills
Text Styling: Configurable label colors and information display
Technical Specifications
Maximum capacity: 500 boxes, 500 lines, 200 labels
Overlay indicator (draws directly on price chart)
Bar-time based positioning for accurate historical placement
Use Cases
Supply/Demand Trading: Identify key price levels where institutions may have interest
Session Analysis: Understand price behavior during specific trading hours
Breakout Detection: Focus on sessions where price crosses significant levels
Support/Resistance: Use range levels for future trade planning
What Makes It Unique
The "Cross YES Only" filter ensures that only meaningful price sessions are highlighted - those where the market shows directional bias by crossing from one side of the range to the other, indicating potential institutional interest or significant market sentiment shifts.
Enhanced Liquidity & Voids (XSN Mod v9.0)Enhanced Liquidity & Voids (XSN Mod) - User Guide
Unlock the market's blueprint with this all-in-one institutional analysis tool. This indicator is designed not just to draw lines, but to provide a complete framework for understanding market structure, liquidity, and price imbalances. Move beyond basic support and resistance and start seeing the market the way professional traders do.
Core Philosophy: The Liquidity-to-Imbalance Cycle
The market moves in a continuous cycle of engineering liquidity and then rebalancing inefficiencies. This script visualizes this entire narrative on your chart:
It pinpoints where liquidity is building up.
It shows you the exact moment that liquidity is captured (swept).
It highlights the resulting price imbalances (FVGs) that the market will likely target next.
Key Features: Your Analytical Edge
Institutional Liquidity Mapping (Major & Internal)
Major Pools (Red Lines): Pinpoint the high-timeframe swing points that act as primary magnets for price. These are the key levels institutions are targeting.
Internal Pools (Purple Lines): Track the shorter-term liquidity within the current range to understand immediate order flow and anticipate smaller reactions.
High-Probability Confluence Engine
This is the script's "alpha." It doesn't just draw a new liquidity line; it automatically cross-references its price with historical 4-Hour, Daily, and Weekly levels. A match triggers a confluence label (e.g., D-HIGH, W-LOW), instantly signaling that you are looking at a level of extreme significance.
Multi-Timeframe Imbalance Detection (FVG)
Auto HTF Voids: The script intelligently plots the most relevant Fair Value Gaps from a higher timeframe directly onto your chart, giving you critical market context without ever needing to switch timeframes.
Current Timeframe Voids: Instantly see imbalances as they form on your active chart, perfect for precision entries and identifying short-term price targets.
Reactive Price Action Focus
When a Major Liquidity Pool is swept, the line remains highlighted in its original color. The market has a short memory, and this feature keeps your focus locked on the most recent, high-impact events and the price action that follows.
Intelligent, Context-Aware Alerts
Stop using generic price alerts. This system is dynamic and tells you what was swept and why it's important. Receive specific, actionable notifications for the most critical liquidity events, including those with historical confluence.
Complete Customization
Tailor the indicator to your exact trading style. Toggle any feature, adjust the sensitivity of liquidity detection, and customize every color, line style, and transparency to create a clean, personalized analytical environment.
Activating Your Real-Time Edge: Setting Up Alerts
Get notified the moment a critical Major Liquidity Pool is swept. Follow these steps precisely to enable the smart alert system.
Enable Alerts in Script Settings:
Open the indicator's "Settings" panel.
Go to the "Alert Settings" tab.
Check the box for "Enable Major Liquidity Sweep Alerts".
Create the Alert in TradingView:
Click the "Alert" icon (alarm clock) in the right-hand toolbar of your TradingView chart.
A configuration window will open. Set the following options:
Condition: In the first dropdown, select the name of this script: "Enhanced Liquidity & Voids (XSN Mod)".
Trigger: In the second dropdown, you MUST choose "Any alert() function call". This is essential for the smart alerts to work.
Options: Select "Once Per Bar" for a clean, single notification per event.
Alert Name: Give your alert a recognizable name (e.g., "Major Liquidity Sweep Alert").
Message: This is the most important step. Delete any default text in the message box and paste this special placeholder exactly as it appears below:
{{alert_message}}
This placeholder allows the script to send a detailed, dynamic message to your device. For example, instead of a generic "Price crossed X," you will receive a message like: Buyside Sweep on BTCUSDT @ 65,500 (D-HIGH Confluence).
Click "Create".
You are now set up to receive real-time, intelligent notifications on key market-moving events. Stop guessing, and start anticipating.
Liquidity Trap Zones [PhenLabs]📊 Liquidity Trap Zones
Version: PineScript™ v6
📌 Description
The goal of the Liquidity Trap Zones indicator is to try and help traders identify areas where market liquidity appears abundant but is actually thin or artificial, helping traders avoid potential fake outs and false breakouts. This advanced indicator analyzes the relationship between price wicks and volume to detect “mirage” zones where large price movements occur on low volume, indicating potential liquidity traps.
By highlighting these deceptive zones on your charts, the indicator helps traders recognize where institutional players might be creating artificial liquidity to trap retail traders. This enables more informed decision-making and better risk management when approaching key price levels.
🚀 Points of Innovation
Mirage Score Algorithm: Proprietary calculation that normalizes wick size relative to volume and average bar size
Dynamic Zone Creation: Automatically generates gradient-filled zones at trap locations with ATR-based sizing
Intelligent Zone Management: Maintains clean charts by limiting displayed zones and auto-updating existing ones
Scale-Invariant Design: Works across all assets and timeframes with intelligent normalization
Real-Time Detection: Identifies trap zones as they form, not after the fact
Volume-Adjusted Analysis: Incorporates tick volume when available for more accurate detection
🔧 Core Components
Mirage Score Calculator: Analyzes the ratio of price wicks to volume, normalized by average bar size
ATR-Based Filter: Ensures only significant price movements are considered for trap zone creation
EMA Smoothing: Reduces noise in the mirage score for clearer signals
Gradient Zone Renderer: Creates visually distinct zones with multiple opacity levels for better visibility
🔥 Key Features
Real-Time Trap Detection: Identifies liquidity mirages as they develop during live trading
Dynamic Zone Sizing: Adjusts zone height based on current market volatility (ATR)
Smart Zone Management: Automatically maintains a clean chart by limiting the number of displayed zones
Customizable Sensitivity: Fine-tune detection parameters for different market conditions
Visual Clarity: Gradient-filled zones with distinct borders for easy identification
Status Line Display: Shows current mirage score and threshold for quick reference
🎨 Visualization
Gradient Trap Zones: Purple gradient boxes with darker centers indicating trap strength
Mirage Score Line: Orange line in status area showing current liquidity quality
Threshold Reference: Gray line showing your configured detection threshold
Extended Zone Display: Zones automatically extend forward as new bars form
📖 Usage Guidelines
Detection Settings
Smoothing Length (EMA) - Default: 10 - Range: 1-50 - Description: Controls responsiveness of mirage score. Lower values make detection more sensitive to recent price action
Mirage Threshold - Default: 5.0 - Range: 0.1-20.0 - Description: Score above this level triggers trap zone creation. Higher values reduce false positives but may miss subtle traps
Filter Settings
ATR Length for Range Filter - Default: 14 - Range: 1-50 - Description: Period for volatility calculation. Standard 14 works well for most timeframes
ATR Multiplier - Default: 1.0 - Range: 0.0-5.0 - Description: Minimum bar range as multiple of ATR. Higher values filter out smaller moves
Display Settings
Zone Height Multiplier - Default: 0.5 - Range: 0.1-2.0 - Description: Controls trap zone height relative to ATR. Adjust for visual preference
Max Trap Zones - Default: 5 - Range: 1-20 - Description: Maximum zones displayed before oldest are removed. Balance clarity vs. history
✅ Best Use Cases
Identifying potential fakeout levels before entering trades
Confirming support/resistance quality by checking for liquidity traps
Avoiding stop-loss placement in trap zones where sweeps are likely
Timing entries after trap zones are cleared
Scalping opportunities when price approaches known trap zones
⚠️ Limitations
Requires volume data - less effective on instruments without reliable volume
May generate false signals during news events or genuine volume spikes
Not a standalone system - combine with price action and other indicators
Zone creation is based on historical data - future price behavior not guaranteed
💡 What Makes This Unique
First indicator to specifically target liquidity mirages using wick-to-volume analysis
Proprietary normalization ensures consistent performance across all markets
Visual gradient design makes trap zones immediately recognizable
Combines multiple volatility and volume metrics for robust detection
🔬 How It Works
1. Wick Analysis: Calculates upper and lower wicks for each bar. Normalizes by average bar size to ensure scale independence
2. Mirage Score Calculation: Divides total wick size by volume to identify thin liquidity. Applies EMA smoothing to reduce noise. Scales result for optimal visibility
3. Zone Creation: Triggers when smoothed score crosses threshold. Creates gradient boxes centered on trap bar. Sizes zones based on current ATR for market-appropriate scaling
💡 Note: Liquidity Trap Zones works best when combined with traditional support/resistance analysis and volume profile indicators. The zones highlight areas of deceptive liquidity but should not be the sole factor in trading decisions. Always use proper risk management and confirm signals with price action.
AI ZONE SARDARThe script has several features:
- It uses a Moving Average (MA) to determine the direction of the trend.
- It uses Average True Range (ATR) to measure the volatility of the trend.
- It plots a trend line that shows the direction of the trend.
- It generates buy and sell signals when the trend changes.
By using this script, you can improve your trading decisions and better understand the direction of the trend.
Here are some key points included in the script:
- MA: Moving Average that determines the direction of the trend.
- ATR: Average True Range that measures the volatility of the trend.
- Trend Line: A line that shows the direction of the trend.
- Buy and Sell Signals: When the trend changes, buy and sell signals are generated.
Alerts
1. Trend Change Alerts: Alerts are generated when the price crosses above or below the stop loss level, indicating a potential trend change.
2. Rejection Signal Alerts: Alerts are generated when the price rejects at the stop loss level, indicating a potential rejection signal.
3. TP Hit Alerts: Alerts are generated when the price reaches the take profit levels.
Visualizations
1. Trend Line: The trend line is plotted on the chart, with different colors for bullish and bearish trends.
2. Rejection Signals: Rejection signals are plotted as shapes on the chart.
3. Profit Target Levels: The profit target levels are plotted as lines on the chart.
Notes:
- This code is for educational purposes only and should not be used as is in live trading without thorough backtesting and validation.
- Traders should always use proper risk management techniques and position sizing when trading with automated systems.
The code seems well-structured and readable. However, it's essential to test and validate any trading strategy before using it in live markets.
Institutional PA EngineInstitutional Price Action Pine Script for TradingView
This script framework is for advanced traders seeking to automate and visually structure institutional trading concepts—Order Blocks (OB), Liquidity Sweeps, Volume Spikes, and Fair Value Gaps (FVG)—for pinpointing entries, stop-loss, and take-profit targets.
Core Strategy Concepts
• Order Blocks: Institutional order footprints to act as entry/retest zones.
• Liquidity Sweeps: Identifies stop-loss hunting by price spiking through swing highs/lows, then reversing.
• Volume Spikes: Confirms entries where institutional activity is likely.
• Fair Value Gaps: Untraded imbalanced zones, used as magnets for price targets or further entries.
Gabriel's Weibull Stdv. SuperTrend📈 Gabriel's Weibull Stdv. SuperTrend
Description:
Gabriel’s Weibull Stdv. SuperTrend is a custom trend-following indicator that blends the statistical rigor of the Weibull Moving Average with the adaptive nature of the Standard Deviation-based SuperTrend.
This hybrid system dynamically adjusts its trend bands using a Weibull-weighted average, emphasizing more recent price action while allowing the curve to flexibly adapt based on two key Weibull parameters: Shape (k) and Scale (λ). The bands themselves are shifted by a multiple of standard deviation, offering a volatility-sensitive approach to trend detection.
🔧 Key Components:
Weibull Moving Average (WMA):
A smoothing function that assigns weights to historical prices using the Weibull distribution, controlled via Shape and Scale parameters.
SuperTrend Logic with Adaptive Bands:
Standard deviation is calculated over a user-defined length and scaled with a factor to set upper and lower thresholds around the WMA.
Trend Direction Detection:
The algorithm identifies bullish or bearish states based on crossover logic relative to the dynamic bands.
Visual Enhancements:
Bright green/red lines for SuperTrend direction.
Midpoint overlay and color-coded candles for clarity.
Filled zones between price and trend for visual emphasis.
⚙️ User Inputs:
Source: Price data to analyze (default: close).
Stdv. Length: Period for calculating standard deviation.
Factor: Multiplier to widen or narrow the SuperTrend bands.
Window Length: Lookback period for the Weibull MA.
Shape (k): Controls the skewness of the Weibull distribution.
Scale (λ): Stretches or compresses the weighting curve.
🔔 Alerts:
Long Entry Alert: Triggered when the trend flips bullish.
Short Entry Alert: Triggered when the trend flips bearish.
🧠 Use Cases:
Catch early reversals using custom-tailored smoothing.
Identify high-confidence trend shifts with dynamic volatility.
Combine with other confirmation indicators for enhanced entries.
Institutional PA EngineInstitutional Price Action
This script framework is for advanced traders seeking to automate and visually structure institutional trading concepts—Order Blocks (OB), Liquidity Sweeps, Volume Spikes, and Fair Value Gaps (FVG)—for pinpointing entries, stop-loss, and take-profit targets.
Core Strategy Concepts
• Order Blocks: Institutional order footprints to act as entry/retest zones.
• Liquidity Sweeps: Identifies stop-loss hunting by price spiking through swing highs/lows, then reversing.
• Volume Spikes: Confirms entries where institutional activity is likely.
• Fair Value Gaps: Untraded imbalanced zones, used as magnets for price targets or further entries.
Trend Strength Index - ZTF ModifiedThis is a modification of TradingView's default Trend Strength Index indicator.
The Trend Strength Index measures the tendency of a symbol to either trend steadily or to revert to its mean. The core idea behind TSI is that the more momentum a symbol has relative to its volatility, the more likely it is to follow a trend and less likely to revert to its mean.
This indicator analyzes price momentum using the Pearson correlation coefficient, a normalized measure of the linear relationship between time series. Its output shows the correlation between the chart's closing prices and bar index values over a defined number of bars.
A value near +1 shows that prices experienced relatively steady increases across successive bars, indicating high upward trend strength
A value near -1 shows that prices experienced relatively steady decreases across successive bars, indicating high downward trend strength
A value near 0 suggests a lack of trend strength, because prices did not demonstrate a steady positive or negative relationship with the bar index
ZTF Modification : Added a green background highlight that appears when TSI reaches 0.90 or above, providing a visual alert for extremely strong bullish trend conditions.
Credit : Based on TradingView's default Trend Strength Index indicator.
Circuit Breakers [hopiplaka - powered by Fadi]Circuit Breakers are what drive the financial market.
There's 3 main circuit breakers, 7, 13 and 20, for us indices
Forex is using 4% and crypto 10%
Using circuit breakers, and the fix time each asset has when it's settled, we can define a trading strategy. This trading strategy is explained in the Twin Tower tradeplan, by hopiplaka.
The levels this indicator draws are to be used in accordance with a PO3 sized swing (like 3, 9, 27, 81, ...)
You will see that either:
- a po3 sized swing occurs from the level
- a po3 sized swing occurs into the level
You than look for potential reversal patterns. I'm an ict trader, and rely heavily on the mmxm models he shared.
Fear Volatility Gate [by Oberlunar]The Fear Volatility Gate by Oberlunar is a filter designed to enhance operational prudence by leveraging volatility-based risk indices. Its architecture is grounded in the empirical observation that sudden shifts in implied volatility often precede instability across financial markets. By dynamically interpreting signals from globally recognized "fear indices", such as the VIX, the indicator aims to identify periods of elevated systemic uncertainty and, accordingly, restrict or flag potential trade entries.
The rationale behind the Fear Volatility Gate is rooted in the understanding that implied volatility represents a forward-looking estimate of market risk. When volatility indices rise sharply, it reflects increased demand for options and a broader perception of uncertainty. In such contexts, price movements can become less predictable, more erratic, and often decoupled from technical structures. Rather than relying on price alone, this filter provides an external perspective—derived from derivative markets—on whether current conditions justify caution.
The indicator operates in two primary modes: single-source and composite . In the single-source configuration, a user-defined volatility index is monitored individually. In composite mode, the filter can synthesize input from multiple indices simultaneously, offering a more comprehensive macro-risk assessment. The filtering logic is adaptable, allowing signals to be combined using inclusive (ANY), strict (ALL), or majority consensus logic. This allows the trader to tailor sensitivity based on the operational context or asset class.
The indices available for selection cover a broad spectrum of market sectors. In the equity domain, the filter supports the CBOE Volatility Index ( CBOE:VIX VIX) for the S&P 500, the Nasdaq-100 Volatility Index ( CBOE:VXN VXN), the Russell 2000 Volatility Index ( CBOEFTSE:RVX RVX), and the Dow Jones Volatility Index ( CBOE:VXD VXD). For commodities, it integrates the Crude Oil Volatility Index ( CBOE:OVX ), the Gold Volatility Index ( CBOE:GVZ ), and the Silver Volatility Index ( CBOE:VXSLV ). From the fixed income perspective, it includes the ICE Bank of America MOVE Index ( OKX:MOVEUSD ), the Volatility Index for the TLT ETF ( CBOE:VXTLT VXTLT), and the 5-Year Treasury Yield Index ( CBOE:FVX.P FVX). Within the cryptocurrency space, it incorporates the Bitcoin Volmex Implied Volatility Index ( VOLMEX:BVIV BVIV), the Ethereum Volmex Implied Volatility Index ( VOLMEX:EVIV EVIV), the Deribit Bitcoin Volatility Index ( DERIBIT:DVOL DVOL), and the Deribit Ethereum Volatility Index ( DERIBIT:ETHDVOL ETHDVOL). Additionally, the user may define a custom instrument for specialized tracking.
To determine whether market conditions are considered high-risk, the indicator supports three modes of evaluation.
The moving average cross mode compares a fast Hull Moving Average to a slower one, triggering a signal when short-term volatility exceeds long-term expectations.
The Z-score mode standardizes current volatility relative to historical mean and standard deviation, identifying significant deviations that may indicate abnormal market stress.
The percentile mode ranks the current value against a historical distribution, providing a relative perspective particularly useful when dealing with non-normal or skewed distributions.
When at least one selected index meets the condition defined by the chosen mode, and if the filtering logic confirms it, the indicator can mark the trading environment as “blocked”. This status is visually highlighted through background color changes and symbolic markers on the chart. An optional tabular interface provides detailed diagnostics, including raw values, fast-slow MA comparison, Z-scores, percentile levels, and binary risk status for each active index.
The Fear Volatility Gate is not a predictive tool in itself but rather a dynamic constraint layer that reinforces discipline under conditions of macro instability. It is particularly valuable when trading systems are exposed to highly leveraged or short-duration strategies, where market noise and sentiment can temporarily override structural price behavior. By synchronizing trading signals with volatility regimes, the filter promotes a more cautious, informed approach to decision-making.
This approach does not assume that all volatility spikes are harmful or that market corrections are imminent. Rather, it acknowledges that periods of elevated implied volatility statistically coincide with increased execution risk, slippage, and spread widening, all of which may erode the profitability of even the most technically accurate setups.
Therefore, the Fear Volatility Gate acts as a protective mechanism.
Oberlunar 👁️⭐
LUCEO Monday RangeLUCEO Monday Range 지표는 매주 월요일의 고점(Monday High), 저점(Monday Low), 균형값(Equilibrium)을 자동으로 표시해 주는 도구입니다.
ICT, 런던 브레이크아웃 등 월요일 범위를 기준으로 삼는 전략에 적합하며, 과거 데이터를 통해 이전 여러 주 월요일 범위를 시각화할 수 있습니다.
기능 요약:
월요일 고점(MH), 저점(ML), 균형가(EQ) 자동 표시
최대 52주까지 과거 월요일 범위 표시 가능
각 레벨 터치 시 알림 기능 지원
라벨/라인 색상, 스타일, 크기 사용자 지정 가능
주간/월간 차트에서는 자동으로 표시 비활성화
활용 예시:
월요일 고점을 상향 돌파하는 돌파 전략 분석
주간 유동성 중심 레벨인 EQ를 기준으로 방향성 판단
주요 반전 구간 탐지에 사용
---------------------------------------------------------------------------------------------------------
Monday Range (Lines) indicator automatically displays each Monday’s High (MH), Low (ML), and Equilibrium (EQ) levels on the chart.
It is useful for ICT-based setups, London breakout strategies, or any system that relies on weekly liquidity levels. The indicator supports visualization of up to 52 past Mondays.
Key Features:
Automatic plotting of Monday High, Low, and Equilibrium
Displays Monday ranges from multiple past weeks
Real-time alerts when price touches MH, ML, or EQ
Customizable line and label styles, colors, and sizes
Automatically disables display on weekly and monthly charts
Use Cases:
Validate London session breakout with Monday High breakout
Use EQ as a liquidity balance reference
Identify key reversal zones using weekly range extremes
-----------------------------------------------------------------------------------------------------------
알람 로직 수정
- 월요일 09:00~화요일 09:00 먼데이 레인지 형성중에는
직전주의 먼데이 레인지를 기준으로 알람
- 화요일 09:00부터는 생성된 현재 주의 먼데이 레인지를 기준으로 알람
Modify Alert Logic
- From Monday 09:00 to Tuesday 09:00 (while the Monday range is being formed), use the previous week's Monday range for alerts.
- From Tuesday 09:00 onward, use the newly formed current week's Monday range for alerts.
--------------------------------------------------------------------------------------------------------------
지표가 보이지 않는다는 의견이 있어 다시 올립니다.
RSI with Two BenchmarksRSI with Two Benchmark
Usage: To check Relative Momentum
Any Stock Chart With 2 Different Banchmarks ( It can be Nifty , Banknifty of any Index or Sector Index )
vivek kumar 045For education only it provide technical information about chart over the period over the period you will find out how to read a chart without any indicator it is indicator only for education purpose