Key Session LevelsKey Session Levels - Indicator Guide
Created by: MecarderoAurum
Why This Indicator Exists: An Overview
The "Key Session Levels" indicator is a comprehensive tool for day traders that automatically plots the most critical price levels from the current premarket and the previous two full trading days. These levels are watched by countless traders and often act as significant areas of support and resistance.
This indicator provides a clear, objective map of these key zones, helping traders anticipate potential turning points, identify areas of confluence, and make more informed trading decisions without having to manually draw and manage these lines every day.
Features & How to Use Them
This indicator plots several types of important historical levels on your chart. Each one is fully customizable.
1. Premarket Levels (PMH / PML)
What they are: The highest (PMH) and lowest (PML) prices reached during the current day's premarket session (04:00 - 09:30 ET).
Why they matter: The premarket high and low are the first significant levels established for the trading day. They often act as initial support or resistance once the market opens.
How to use them: In the settings under "Premarket Levels," you can toggle the visibility of the PMH and PML, and customize their color, line style, and width.
2. Prior Day Levels (PDH / PDL / PDM / PDP)
What they are: The key price points from the previous full trading day.
PDH: Prior Day High
PDL: Prior Day Low
PDM: Prior Day Midpoint (the exact middle of the PDH and PDL)
PDP: Prior Day Pivot (a classic pivot point calculation)
Why they matter: These are often the most important levels for the current trading day. The market frequently tests the previous day's high and low.
How to use them: Under the "Prior Day" settings, you can enable or disable each of these four levels and customize their appearance.
3. 2-Day Prior Levels (PDH2 / PDL2 / etc.)
What they are: The same set of key levels (High, Low, Mid, Pivot) from two trading days ago.
Why they matter: These levels can still be highly relevant, especially if the market is trading within a multi-day range or returning to test a significant prior level.
How to use them: Under the "2-Day Prior" settings, you can customize the visibility and style of these levels. They are styled with more transparency by default to distinguish them from the more recent prior day's levels.
4. General Settings
Days of History: This setting allows you to control how many past days of historical lines are kept on your chart. This is excellent for back-testing strategies and seeing how price has reacted to these levels in the past.
Label Settings: You can customize the color and size of the on-chart labels (e.g., "PDH," "PML") for better visibility.
Sample Strategy: The Key Level Rejection
This strategy focuses on using the indicator's levels to identify potential reversals at key areas of support or resistance.
Identify a Key Level: Watch as the price approaches a significant level plotted by the indicator, such as the Prior Day High (PDH) or the Premarket Low (PML).
Look for Rejection: Do not trade simply because the price touches the level. Wait for a price action signal that confirms the level is holding. This could be a bearish engulfing candle or a shooting star pattern at a resistance level like PDH, or a bullish hammer or morning star pattern at a support level like PML.
Entry: Once you see a clear rejection candle, enter a trade in the direction of the rejection. For a bearish rejection at the PDH, you would enter a short position.
Stop-Loss: A logical place for a stop-loss is just above the high of the rejection candle (for a short trade) or just below the low of the rejection candle (for a long trade). This defines your risk clearly.
Profit Target: Your first profit target could be the next key level plotted by the indicator. For example, if you shorted a rejection at the PDH, your first target might be the Premarket High (PMH) or the day's opening price.
Support and Resistance
Advanced ICT Theory - A-ICT📊 Advanced ICT Theory (A-ICT): The Institutional Manipulation Detector
Are you tired of being the liquidity? Stop chasing shadows and start tracking the architects of price movement.
This is not another lagging indicator. This is a complete framework for viewing the market through the lens of institutional traders. Advanced ICT Theory (A-ICT) is an all-in-one, military-grade analysis engine designed to decode the complex language of "Smart Money." It automates the core tenets of Inner Circle Trader (ICT) methodology, moving beyond simple patterns to build a dynamic, real-time narrative of market manipulation, liquidity engineering, and institutional order flow.
AIT provides a living blueprint of the market, identifying high-probability zones, tracking structural shifts, and scoring the quality of setups with a sophisticated, multi-factor algorithm. This is your X-ray into the market's true intentions.
🔬 THE CORE ENGINE: DECODING THE THEORY & FORMULAS
A-ICT is built upon a sophisticated, multi-layered logic system that interprets price action as a story of cause and effect. It does not guess; it confirms. Here is the foundational theory that drives the engine:
1. Market Structure: The Blueprint of Trend
The script first establishes a deep understanding of the market's skeleton through multi-level pivot analysis. It uses ta.pivothigh and ta.pivotlow to identify significant swing points.
Internal Structure (iBOS): Minor swings that show the short-term order flow. A break of internal structure is the first whisper of a potential shift.
External Structure (eBOS): Major swing points that define the primary trend. A confirmed break of external structure is a powerful statement of trend continuation. AIT validates this with optional Volume Confirmation (volume > volumeSMA * 1.2) and Candle Confirmation to ensure the break is driven by institutional force, not just a random spike.
Change of Character (CHoCH): This is the earthquake. A CHoCH occurs when a confirmed eBOS happens against the prevailing trend (e.g., a bearish eBOS in a clear uptrend). A-ICT flags this immediately, as it is the strongest signal that the primary trend is under threat of reversal.
2. Liquidity Engineering: The Fuel of the Market
Institutions don't buy into strength; they buy into weakness. They need liquidity. A-ICT maps these liquidity pools with forensic precision:
Buyside & Sellside Liquidity (BSL/SSL): Using ta.highest and ta.lowest, AIT identifies recent highs and lows where clusters of stop-loss orders (liquidity) are resting. These are institutional targets.
Liquidity Sweeps: This is the "manipulation" part of the detector. AIT has a specific formula to detect a sweep: high > bsl and close < bsl . This signifies that institutions pushed price just high enough to trigger buy-stops before aggressively selling—a classic "stop hunt." This event dramatically increases the quality score of subsequent patterns.
3. The Element Lifecycle: From Potential to Power
This is the revolutionary heart of A-ICT. Zones are not static; they have a lifecycle. AIT tracks this with its dynamic classification engine.
Phase 1: PENDING (Yellow): The script identifies a potential zone of interest based on a specific candle formation (a "displacement"). It is marked as "Pending" because its true nature is unknown. It is a question.
Phase 2: CLASSIFICATION: After the zone is created, AIT watches what happens next. The zone's identity is defined by its actions:
ORDER BLOCK (Blue): The highest-grade element. A zone is classified as an Order Block if it directly causes a Break of Structure (BOS) . This is the footprint of institutions entering the market with enough force to validate the new trend direction.
TRAP ZONE (Orange): A zone is classified as a Trap Zone if it is directly involved in a Liquidity Sweep . This indicates the zone was used to engineer liquidity, setting a "trap" for retail traders before a reversal.
REVERSAL / S&R ZONE (Green): If a zone is not powerful enough to cause a BOS or a major sweep, but still serves as a pivot point, it's classified as a general support/resistance or reversal zone.
4. Market Inefficiencies: Gaps in the Matrix
Fair Value Gaps (FVG): AIT detects FVGs—a 3-bar pattern indicating an imbalance—with a strict formula: low > high (for a bullish FVG) and gapSize > atr14 * 0.5. This ensures only significant, volatile gaps are shown. An FVG co-located with an Order Block is a high-confluence setup.
5. Premium & Discount: The Law of Value
Institutions buy at wholesale (Discount) and sell at retail (Premium). AIT uses a pdLookback to define the current dealing range and divides it into three zones: Premium (sell zone), Discount (buy zone), and Equilibrium. An element's quality score is massively boosted if it aligns with this principle (e.g., a bullish Order Block in a Discount zone).
⚙️ THE CONTROL PANEL: A COMPLETE GUIDE TO THE INPUTS MENU
Every setting is a lever, allowing you to tune the AIT engine to your exact specifications. Master these to unlock the script's full potential.
🎯 A-ICT Detection Engine
Min Displacement Candles: Controls the sensitivity of element detection. How it works: It defines the number of subsequent candles that must be "inside" a large parent candle. Best practice: Use 2-3 for a balanced view on most timeframes. A higher number (4-5) will find only major, more significant zones, ideal for swing trading. A lower number (1) is highly sensitive, suitable for scalping.
Mitigation Method: Defines when a zone is considered "used up" or mitigated. How it works: Cross triggers as soon as price touches the zone's boundary. Close requires a candle to fully close beyond it. Best practice: Cross is more responsive for fast-moving markets. Close is more conservative and helps filter out fake-outs caused by wicks, making it safer for confirmations.
Min Element Size (ATR): A crucial noise filter. How it works: It requires a detected zone to be at least this multiple of the Average True Range (ATR). Best practice: Keep this around 0.5. If you see too many tiny, irrelevant zones, increase this value to 0.8 or 1.0. If you feel the script is missing smaller but valid zones, decrease it to 0.3.
Age Threshold & Pending Timeout: These manage visual clutter. How they work: Age Threshold removes old, mitigated elements after a set number of bars. Pending Timeout removes a "Pending" element if it isn't classified within a certain window. Best practice: The default settings are optimized. If your chart feels cluttered, reduce the Age Threshold. If pending zones disappear too quickly, increase the Pending Timeout.
Min Quality Threshold: Your primary visual filter. How it works: It hides all elements (boxes, lines, labels) that do not meet this minimum quality score (0-100). Best practice: Start with the default 30. To see only A- or B-grade setups, increase this to 60 or 70 for an exceptionally clean, high-probability view.
🏗️ Market Structure
Lookbacks (Internal, External, Major): These define the sensitivity of the trend analysis. How they work: They set the number of bars to the left and right for pivot detection. Best practice: Use smaller values for Internal (e.g., 3) to see minor structure and larger values for External (e.g., 10-15) to map the main trend. For a macro, long-term view, increase the Major Swing Lookback.
Require Volume/Candle Confirmation: Toggles for quality control on BOS/CHoCH signals. Best practice: It is highly recommended to keep these enabled. Disabling them will result in more structure signals, but many will be false alarms. They are your filter against market noise.
... (Continue this detailed breakdown for every single input group: Display Configuration, Zones Style, Levels Appearance, Colors, Dashboards, MTF, Liquidity, Premium/Discount, Sessions, and IPDA).
📊 THE INTELLIGENCE DASHBOARDS: YOUR COMMAND CENTER
The dashboards synthesize all the complex analysis into a simple, actionable intelligence briefing.
Main Dashboard (Bottom Right)
ICT Metrics & Breakdown: This is your statistical overview. Total Elements shows how much structure the script is tracking. High Quality instantly tells you if there are any A/B grade setups nearby. Unmitigated vs. Mitigated shows the balance of fresh opportunities versus resolved price action. The breakdown by Order Blocks, Trap Zones, etc., gives you a quick read on the market's recent character.
Structure & Market Context: This is your core bias. Order Flow tells you the current script-determined trend. Last BOS shows you the most recent structural event. CHoCH Active is a critical warning. HTF Bias shows if you are aligned with the higher timeframe—the checkmark (✓) for alignment is one of the most important confluence factors.
Smart Money Flow: A volume-based sentiment gauge. Net Flow shows the raw buying vs. selling pressure, while the Bias provides an interpretation (e.g., "STRONG BULLISH FLOW").
Key Guide (Large Dashboard only): A built-in legend so you never have to guess. It defines every pattern, structure type, and special level visually.
📖 Narrative Dashboard (Bottom Left)
This is the "story" of the market, updated in real-time. It's designed to build your trading thesis.
Recent Elements Table: A live list of the most recent, high-quality setups. It displays the Type , its Narrative Role (e.g., "Bullish OB caused BOS"), its raw Quality percentage, and its final Trade Score grade. This is your at-a-glance opportunity scanner.
Market Narrative Section: This is the soul of A-ICT. It combines all data points into a human-readable story:
📍 Current Phase: Tells you if you are in a high-volatility Killzone or a consolidation phase like the Asian Range.
🎯 Bias & Alignment: Your primary direction, with a clear indicator of HTF alignment or conflict.
🔗 Events: A causal sequence of recent events, like "💧 Sell-side liquidity swept →
📊 Bullish BOS → 🎯 Active Order Block".
🎯 Next Expectation: The script's logical conclusion. It provides a specific, forward-looking hypothesis, such as "📉 Pullback expected to bullish OB at 1.2345 before continuation up."
🎨 READING THE BATTLEFIELD: A VISUAL INTERPRETATION GUIDE
Every color and line is a piece of information. Learn to read them together to see the full picture.
The Core Zones (Boxes):
Blue Box (Order Block): Highest probability zone for trend continuation. Look for entries here.
Orange Box (Trap Zone): A manipulation footprint. Expect a potential reversal after price interacts with this zone.
Green Box (Reversal/S&R): A standard pivot area. A good reference point but requires more confluence.
Purple Box (FVG): A market imbalance. Acts as a magnet for price. An FVG inside an Order Block is an A+ confluence.
The Structural Lines:
Green/Red Line (eBOS): Confirms the trend direction. A break above the green line is bullish; a break below the red line is bearish.
Thick Orange Line (CHoCH): WARNING. The previous trend is now in question. The market character has changed.
Blue/Red Lines (BSL/SSL): Liquidity targets. Expect price to gravitate towards these lines. A dotted line with a checkmark (✓) means the liquidity has been "swept" or "purged."
How to Synthesize: The magic is in the confluence. A perfect setup might look like this: Price sweeps below a red SSL line , enters a green Discount Zone during the NY Killzone , and forms a blue Order Block which then causes a green eBOS . This sequence, visible at a glance, is the story of a high-probability long setup.
🔧 THE ARCHITECT'S VISION: THE DEVELOPMENT JOURNEY
A-ICT was forged from the frustration of using lagging indicators in a market that is forward-looking. Traditional tools are reactive; they tell you what happened. The vision for A-ICT was to create a proactive engine that could anticipate institutional behavior by understanding their objectives: liquidity and efficiency. The development process was centered on creating a "lifecycle" for price patterns—the idea that a zone's true meaning is only revealed by its consequence. This led to the post-breakout classification system and the narrative-building engine. It's designed not just to show you patterns, but to tell you their story.
⚠️ RISK DISCLAIMER & BEST PRACTICES
Advanced ICT Theory (A-ICT) is a professional-grade analytical tool and does not provide financial advice or direct buy/sell signals. Its analysis is based on historical price action and probabilities. All forms of trading involve substantial risk. Past performance is not indicative of future results. Always use this tool as part of a comprehensive trading plan that includes your own analysis and a robust risk management strategy. Do not trade based on this indicator alone.
観の目つよく、見の目よわく
"Kan no me tsuyoku, ken no me yowaku"
— Miyamoto Musashi, The Book of Five Rings
English: "Perceive that which cannot be seen with the eye."
— Dskyz, Trade with insight. Trade with anticipation.
Nexalgo SMC🔧 SMC (Smart Money Concepts) – Invite-Only Indicator
The SMC (Smart Money Concepts) indicator for TradingView is a tool that helps visualize price behavior based on institutional concepts and liquidity theory. It provides structural markers and volume-based zones in one script.
🧠 Key Components:
Order Blocks with Volume Metrics
Displays bullish and bearish order blocks along with volume-related information, helping to identify areas of possible accumulation or distribution.
Market Structure Analysis
BOS (Break of Structure)
CHoCH (Change of Character)
CHoCH+ (Extended CHoCH)
EQH/EQL (Equal Highs/Lows)
Imbalance Zones
Highlights price areas with visible inefficiencies between buying and selling pressure.
Premium & Discount Zones
Marks price regions considered relatively expensive (premium) or cheap (discount) based on recent swings.
Previous Highs & Lows
Plots historical key levels that may act as potential reaction zones.
Bullish/Bearish Dashboard
A dashboard summarizing the current directional bias based on structural elements.
Fixed Volume Profile
Displays a volume histogram over price to highlight high and low volume areas.
⚠️ Disclaimer:
This indicator is intended for market analysis purposes only. It does not constitute trading advice or guarantee performance. Users should evaluate all tools based on their own judgment and trading approach.
APX Gold ScannerSemi-automatic scanner Follows a trend-follow strategy, usable only with XAU takes into account the price action, it will have to be used in favor of the market by following highs and lows, obviously you have to wait for the scanner to complete its reading to operate
Persistent Daily & 4H S/R Zones with Labels + 50 EMAit helps find swing high and lows support and ressistsance
Indexrate Code SMIndexrate Code SM is an indicator and part of the Indexrate Code Set of Algorithm, which additionally includes the Indexrate Code A strategy and Indexrate Code B indicator.
The Indexrate Code Set of Algorithms can be used for any trading instruments and on any existing markets (Stock market, Forex, Cryptocurrency market, etc.).
Getting access to the Indexrate Code A strategy, you gain access to the whole set of Indexrate Code algorithms.
Indexrate Code SM is an indicator, based on the Smart Money concept. Smart money is large market participants with sufficient volumes to influence the price. This is a small group that includes banks and large funds. Their every move is controlled down to the smallest detail. In the modern world, this is done with the help of artificial intelligence and other complex algorithms that move the price to certain values. Unique programs that lower and raise the price are effective because they know the behavior of people, which will invariably be based on fear and greed.
On the other side are the majority of traders, including us - this is uninformed money. This group includes retail traders and small funds. Residents of this group believe that due to their numbers, they move the market. But in fact, the retail sector cannot have any influence on the price. This is due to low volumes: a large group in monetary terms is not as large as it may seem. Large volumes that can do this are in a small group - smart money. Retail traders are too small and make up only a small percentage of the money in circulation on the market (~5%), so the main target for smart capital is always funds.
Smart Money is following large market participants. With the help of this concept and its tools, you can identify and track the actions of smart money. As long as there is liquidity in the market, the concept will be effective in application.
Indexrate Code SM consists of a set of signals displayed on the chart, configured in a unique way to interact with each other and allowing traders to comprehensively analyze the movement of the asset price.
The indicator displays the zones of interest of "bulls" and bears", which are highlighted with lines of the corresponding color. Where gray is the zone of "bears", and blue is the zone of "bulls". When these zones are broken, the indicator displays the corresponding signals to buy or sell.
The indicator also displays the zone of fair price, highlighting it in yellow. This zone acts as a conditional magnet in the event of a price rebound from the zones of interest.
In addition, the indicator displays the zone of the greatest local interest of buyers (storng high) and sellers (weak low). When the zone of fair price is broken, the asset often rushes to these local levels. From which a rebound often occurs, both during a reversal of movement and during a breakout.
The lines of the previous daily high (PDH) and the previous daily low (PDL) give traders an understanding of the intraday range of price movement.
The Indexrate Code SM integrates the Sequential and Trend HMA trend algorithms, known to us from the Indexrate Code A strategy. By default, these algorithms are not displayed on the chart (you can enable the display in the settings), since they are displayed in the strategy, but they continue to work inside the indicator to establish more accurate signals to buy or sell. The settings of these algorithms are identical to the settings displayed in the Indexrate Code A strategy.
The search for optimal signal settings includes the time structure, that is, the period for which the calculation and search for areas of interest are carried out. As well as the number of order blocks.
drive.google.com
The settings of the Sequential and Trend HMA trend algorithms are aimed at eliminating false signals as much as possible.
drive.google.com
The signals on the chart are displayed as green dots for buying and red dots for selling.
Provided that the Indexrate Code A strategy is configured most successfully, the appearance of a confirmation signal can provide the potential probability of the strongest price movement.
It is also worth considering that when working with the Heiken Ashi chart, for which the Indexrate Code Set of Algorithm works, you must install OHLC as shown in the screenshot below. Since this parameter allows you to take into account real exchange prices, without calculating average Heiken Ashi values, which can mislead the trader regarding the current state of the market. And also take into account the percentage of the exchange commission and the On bar close parameter.
telegra.ph
The Indexrate Code Set of Algorithms is suitable for conservative traders who evaluate their success in the long term, and not in short-term excess profits.
IT IS IMPORTANT TO KNOW that no indicator is capable of 100% predicting a successful trade.
The market is a collection of people. It is thanks to human psychology that shapes the forces of supply and demand that financial markets exist (Charles Dow Theory).
Forecasting based on the analysis of mathematical algorithms (indicators) uses data from past trading - the price of the previous period of time and the volume of previous trading. It is these two indicators that are used by modern technical analysis.
The Indexrate Code Set of Algorithm is based on algorithms that evaluate trends, prices and volume indicators. As well as human psychology, which requires an assessment of the exact preceding periods for a specific timeframe, and not an assessment of the entire period from the moment of listing of a trading instrument on a specific exchange. Since market indicators completely change throughout the trading period and the exchange trading volume also changes.
All updates to the Indexrate Code Set of Algorithm will be free.
Trading is trading on probabilities. Investing is trading on opportunity. Nobody knows the future - Always protect your profits!
Russian translation
Indexrate Code SM - это индикатор являющийся частью Комплекта алгоритмов Indexrate Code, включающего в себя дополнительно стратегию Indexrate Code А и индикатор Indexrate Code B.
Комплект алгоритмов Indexrate Code, может быть использован для любых торговых инструментов и на любых существующих рынках (Фондовый рынок, Форекс, Криптовалютный рынок и тд).
Получая доступ к индикатору Indexrate Code SM, вы получаете доступ ко всему комплекту алгоритмов Indexrate Code.
Indexrate Code SM это индикатор, основанный на концепции Smart Money. Умные деньги — это крупные участники рынка, имеющие достаточные объемы, чтобы оказывать влияние на цену. Это небольшая группа, в которую входят банки и крупные фонды. Каждое их движение, до мельчайших деталей контролируется. В современном мире это делается с помощью искусственного интеллекта и других сложных алгоритмов, которые двигают цену на определенные значения. Уникальные программы, которые опускают и поднимают цену, эффективны, потому что они знают поведение людей, которое неизменно будет основываться на страхе и жадности.
По другую сторону находится большинство трейдеров, включая нас – это не информированные деньги. В такую группу входят ритейл трейдеры и небольшие
фонды. Резиденты такой группы считают, что из-за их численности они двигают рынок. Но на самом деле розничный сектор не может оказывать никакого влияния на цену. Обуславливается это низкими объемами: большая группа в денежном эквиваленте не так уж велика, как может показаться. Крупные объемы, способные это делать, находятся в небольшой группе — умных денег. Ритейл трейдеры слишком малы и составляют только небольшой процент обращаемых денег на рынке (~5%), поэтому основной целью для умного капитала всегда выступают фонды.
Smart Money это следование за крупными участниками рынка. С помощью
этой концепции и ее инструментов, вы сможете идентифицировать и отслеживать действия умных денег. Пока на рынке будет ликвидность, до тех пор концепция будет эффективна в применении.
Indexrate Code SM состоит из совокупности отображаемых сигналов на графике, настроенных уникальным образом для взаимодействия между собой и позволяющих трейдерам комплексно анализировать движение цены актива.
Индикатор отображает зоны интереса «быков» и медведей», которые подсвечиваются линиями соответствующего цвета. Где серый это зона «медведей», а голубой это зона «быков». При прорыве этих зон, индикатор отображает соответствующие сигналы на покупку или на продажу.
Также индикатор отображает зону справедливой цены, подсвечивая ее желтым цветом. Данная зона выступает в качестве условного магнита, в случае отскока цены от зон интереса.
Дополнительно на индикаторе отображены зона наибольшего локального интереса покупателей (storng high) и продавцов (weak low). При прорыве зоны справедливой цены, актив чаще устремляется именно к этим локальным уровням. От которых зачастую происходит отскок, как и при развороте движения, так и при пробитии.
Линии предыдущего дневного хая (PDH) и предыдущего дневного лоя (PDL), дают трейдерам понимание внутридневного диапазона движения цены.
В Indexrate Code SM интегрированы трендовые алгоритмы Sequential и Trend HMA, известные нам по стратегии Indexrate Code A. По умолчанию данные алгоритмы не отображаются на графике (можно включит отображение в настройках), так как они отображены в стратегии, но продолжают работать внутри индикатора, для установления более точных сигналов на покупку или продажу. Настройки указанных алгоритмов идентичны, настройкам, отображаемым в стратегии Indexrate Code A.
Поиск оптимальных настроек сигналов, включает в себя структуру времени, то есть период, за который идет расчет и поиск зон интереса. А также количество ордер блоков.
drive.google.com
Настройки трендовых алгоритмов Sequential и Trend HMA, направлены для максимального исключения ложных сигналов.
drive.google.com
Сигналы на графике отображены точками зеленого цвета на покупку и красного цвета на продажу.
При условии наиболее удачной настройки стратегии Indexrate Code A, появление подтверждающего сигнала, может давать потенциальную вероятность наиболее сильного движения цены.
Стоит также учесть, что при работе с графиком Heiken Ashi, для которого работает Комплект алгоритмов Indexrate Code, необходимо устанавливать OHLC как показано ниже на скриншоте. Поскольку этот параметр позволяет учитывать реальные биржевые цены, без расчета усредненных значений Heiken Ashi, которые могут ввести трейдера в заблуждение относительно текущего состояния рынка. А также учитывать процент комиссии биржи и параметр On bar close.
telegra.ph
Комплект алгоритмов Indexrate Code, подходит консервативным трейдерам, оценивающим свой успех в долгосрочном перспективе, а не в краткосрочной сверх прибыли.
ВАЖНО ЗНАТЬ, что ни один индикатор не способен на 100% предсказать успешную сделку.
Рынок - это совокупность людей. Именно благодаря психологии людей, формирующей силы спроса и предложения, существуют финансовые рынки (Теория Чарльза Доу).
Прогнозирование на основе анализа математических алгоритмов (индикаторов), использует данные прошлых торгов - цену предыдущего периода времени и объем предыдущих торгов. Именно эти два показателя и используются современным техническим анализом.
В основе Комплекта алгоритмов Indexrate Code, лежат алгоритмы оценивающие тенденции, цены и показатели объема. А также психология людей, которая требует оценки точных предшествующих периодов для конкретного таймфрейма, а не оценка всего периода с момента листинга торгового инструмента на конкретной бирже. Так как показатели рынка полностью изменяются на всем торговом периоде и также меняется биржевой объем торгов.
Все обновления Комплекта алгоритмов Indexrate Code, будут бесплатны.
Трейдинг - это торговля на вероятностях. Инвестиции - это торговля на возможностях. Никто не знает будущего - Всегда защищайте свою прибыль.
PulseLinesLibPulseLinesLib v1.3.1
PulseLines morphic-level calculator (support & resistance)
Exports:
• getLevels(lookback:int, wickRatioThresh:float, flatCandles:int, tolerancePips:float, atrMult:float) → float
This is a multi-layered swing breakout scanner design🧠 What It Does:
Dynamically plots swing highs and lows using customizable pivot length
Confirms breakout signals with:
✅ Volume spike (above 20-period SMA × multiplier)
✅ RSI trend confirmation (RSI > 50 for longs, < 50 for shorts)
✅ EMA trend filter (price above/below EMA to align with momentum)
🔔 Alerts Included:
"Break Above Swing High" (volume + trend confirmed)
"Break Below Swing Low" (volume + trend confirmed)
📈 Use this tool on any timeframe (5m, 1H, 4H) and asset (stocks, crypto, ETFs).
It is ideal for:
Momentum swing traders
Intraday breakout scalpers
Traders filtering false signals using volume & structure
Buy The Dip - ENGThis script implements a grid trading strategy for long positions in the USDT market. The core idea is to place a series of buy limit orders at progressively lower prices below an initial entry point, aiming to lower the average entry price as the price drops. It then aims to exit the entire position when the price rises a certain percentage above the average entry price.
Here's a detailed breakdown:
1. Strategy Setup (`strategy` function):
`'거미줄 자동매매 250227'`: The name of the strategy.
`overlay = true`: Draws plots and labels directly on the main price chart.
`pyramiding = 15`: Allows up to 15 entries in the same direction (long). This is essential for grid trading, as it needs to open multiple buy orders.
`initial_capital = 600`: Sets the starting capital for backtesting to 600 USDT.
`currency = currency.USDT`: Specifies the account currency as USDT.
`margin_long/short = 0`: Doesn't define specific margin requirements (might imply spot trading logic or rely on exchange defaults if used live).
`calc_on_order_fills = false`: Strategy calculations happen on each bar's close, not just when orders fill.
2. Inputs (`input`):
Core Settings:
`lev`: Leverage (default 10x). Used to calculate position sizes.
`Investment Percentage %`: Percentage of total capital to allocate to the initial grid (default 80%).
`final entry Percentage %`: Percentage of the *remaining* capital (100 - `Investment Percentage %`) to use for the "semifinal" entry (default 50%). The rest goes to the "final" entry.
`Price Adjustment Length`: Lookback period (default 4 bars) to determine the initial `maxPrice`.
`price range`: The total percentage range downwards from `maxPrice` where the grid orders will be placed (default -10%, meaning 10% down).
`tp`: Take profit percentage above the average entry price (default 0.45%).
`semifinal entry price percent`: Percentage drop from `maxPrice` to trigger the "semifinal" larger entry (default -12%).
`final entry price percent`: Percentage drop from `maxPrice` to trigger the "final" larger entry (default -15%).
Rounding & Display:
`roundprice`, `round`: Decimal places for rounding price and quantity calculations.
`texts`, `label_style`: User interface preferences for text size and label appearance on the chart.
Time Filter:
`startTime`, `endTime`: Defines the date range for the backtest.
3. Calculations & Grid Setup:
`maxPrice`: The highest price point for the grid setup. Calculated as the lowest low of the previous `len` bars only if no trades are open. If trades are open, it uses the entry price of the very first order placed in the current sequence (`strategy.opentrades.entry_price(0)`).
`minPrice`: The lowest price point for the grid, calculated based on `maxPrice` and `range1`.
`totalCapital`: The amount of capital (considering leverage and `per1`) allocated for the main grid orders.
`coinRatios`: An array ` `. This defines the *relative* size ratio for each of the 11 grid orders. Later orders (at lower prices) will be progressively larger.
`totalRatio`: The sum of all ratios (66).
`positionSizes`: An array calculated based on `totalCapital` and `coinRatios`. It determines the actual quantity (size) for each of the 11 grid orders.
4. Order Placement Logic (`strategy.entry`):
Initial Grid Orders:
Runs only if within the specified time range and no position is currently open (`strategy.opentrades == 0`).
A loop places 11 limit buy orders (`Buy 1` to `Buy 11`).
Prices are calculated linearly between `maxPrice` and `minPrice`.
Order sizes are taken from the `positionSizes` array.
Semifinal & Final Entries:
Two additional, larger limit buy orders are placed simultaneously with the grid orders:
`semifinal entry`: At `maxPrice * (1 - semifinal / 100)`. Size is based on `per2`% of the capital *not* used by the main grid (`1 - per1`).
`final entry`: At `maxPrice * (1 - final / 100)`. Size is based on the remaining capital (`1 - per2`% of the unused portion).
5. Visualization (`line.new`, `label.new`, `plot`, `plotshape`, `plotchar`):
Grid Lines & Labels:
When a position is open (`strategy.opentrades > 0`), horizontal lines and labels are drawn for each of the 11 grid order prices and the "final" entry price.
Lines extend from the bar where the *first* entry occurred.
Labels show the price and planned size for each level.
Dynamic Coloring: If the price drops below a grid level, the corresponding line turns green, and the label color changes, visually indicating that the level has been reached or filled.
Plotted Lines:
`maxPrice` (initial high point for the grid).
`strategy.position_avg_price` (current average entry price of the open position, shown in red).
Target Profit Price (`strategy.position_avg_price * (1 + tp / 100)`, shown in green).
Markers:
A flag marks the `startTime`.
A rocket icon (`🚀`) appears below the bar where the `final entry` triggers.
A stop icon (`🛑`) appears below the bar where the `semifinal entry` triggers.
6. Exit Logic (`strategy.exit`, `strategy.entry` with `qty=0`):
Main Take Profit (`Full Exit`):
Uses `strategy.entry('Full Exit', strategy.short, qty = 0, limit = target2)`. This places a limit order to close the entire position (`qty=0`) at the calculated take profit level (`target2 = avgPrice * (1 + tp / 100)`). Note: Using `strategy.entry` with `strategy.short` and `qty=0` is a way to close a long position, though `strategy.exit` is often clearer. This exit seems intended to apply whenever any part of the grid position is open.
First Order Trailing Stop (`1st order Full Exit`):
Conditional: Only active if `trail` input is true AND the *last* order filled was "Buy 1" (meaning only the very first grid level was entered).
Uses `strategy.exit` with `trail_points` and `trail_offset` based on ATR values to implement a trailing stop loss/profit mechanism for this specific scenario.
This trailing stop order is cancelled (`strategy.cancel`) if any subsequent grid orders ("Buy 2", etc.) are filled.
Final/Semifinal Take Profit (`final Full Exit`):
Conditional: Only active if more than 11 entries have occurred (meaning either the "semifinal" or "final" entry must have triggered).
Uses `strategy.exit` to place a limit order to close the entire position at the take profit level (`target3 = avgPrice * (1 + tp / 100)`).
7. Information Display (Tables & UI Label):
`statsTable` (Top Right):
A comprehensive table displaying grouped information:
Market Info (Entry Point, Current Price)
Position Info (Avg Price, Target Price, Unrealized PNL $, Unrealized PNL %, Position Size, Position Value)
Strategy Performance (Realized PNL $, Realized PNL %, Initial/Total Balance, MDD, APY, Daily Profit %)
Trade Statistics (Trade Count, Wins/Losses, Win Rate, Cumulative Profit)
`buyAvgTable` (Bottom Left):
* Shows the *theoretical* entry price and average position price if trades were filled sequentially up to each `buy` level (buy1 to buy10). It uses hardcoded percentage drops (`buyper`, `avgper`) based on the initial `maxPrice` and `coinRatios`, not the dynamically changing actual average price.
`uiLabel` (Floating Label on Last Bar):
Updates only on the most recent bar (`barstate.islast`).
Provides real-time context when a position is open: Size, Avg Price, Current Price, Open PNL ($ and %), estimated % drop needed for the *next* theoretical buy (based on `ui_gridStep` input), % rise needed to hit TP, and estimated USDT profit at TP.
Shows "No Position" and basic balance/trade info otherwise.
In Summary:
This is a sophisticated long-only grid trading strategy. It aims to:
1. Define an entry range based on recent lows (`maxPrice`).
2. Place 11 scaled-in limit buy orders within a percentage range below `maxPrice`.
3. Place two additional, larger buy orders at deeper percentage drops (`semifinal`, `final`).
4. Calculate the average entry price as orders fill.
5. Exit the entire position for a small take profit (`tp`) above the average entry price.
6. Offer a conditional ATR trailing stop if only the first order fills.
7. Provide extensive visual feedback through lines, labels, icons, and detailed information tables/UI elements.
Keep in mind that grid strategies can perform well in ranging or slowly trending markets but can incur significant drawdowns if the price trends strongly against the position without sufficient retracements to hit the take profit. The leverage (`lev`) input significantly amplifies both potential profits and losses.
Mirror US10YThis TradingView script is designed to automatically detect the asset you are viewing (stock, commodity, or crypto) and, if it matches a long list of supported tickers, overlays a "mirror" subchart. This subchart plots the price action of a related pair—typically the asset divided by the US 10-Year Treasury yield (US10Y), or another relevant macro or sector index. The script also detects and visualizes "Imbalance Fair Value Gaps" (IFVGs) on the subchart, and can trigger alerts when these gaps are filled.
1. Automatic Subchart Detection
The script first checks which symbol you are viewing.
If it matches a list of supported stocks or commodities (e.g., NVDA, TSLA, GOLD), it sets a corresponding subchart pair (e.g., NVDA/US20Y, GOLD/US10Y).
If it’s a crypto asset, it checks both the exchange and the symbol, and sets a subchart like BINANCE:ADAUSDT/US10Y.
If a match is found, it enables plotting for the subchart.
2. Subchart Data Fetching
Once a subchart is selected, the script fetches its OHLCV data (open, high, low, close) and a 200-period ATR (Average True Range) using request.security.
It then plots the subchart’s candlesticks in white (bullish) or red (bearish).
3. IFVG (Imbalance Fair Value Gap) Detection
The script defines custom types and arrays to track bullish and bearish IFVGs and their "invalidation" (when the gap is filled).
It detects IFVGs by looking for price gaps between the current and previous candles, filtered by ATR to avoid noise.
When a gap is detected, it is stored in an array with its coordinates and direction.
4. IFVG Management and Visualization
The script manages the lifecycle of each IFVG: it tracks when a gap is filled (invalidated) and moves it to a separate array.
It draws colored boxes and dashed lines on the chart to visualize the last few IFVGs, using green for bullish and red for bearish.
When a gap is filled, it places a label (▲ or ▼) at the fill point.
5. Alerts
The script sets up two alert conditions: one for a bullish IFVG fill, and one for a bearish IFVG fill.
These can be used to trigger TradingView alerts for trading signals.
6. Debugging and Info Labels
The script displays labels on the chart showing the detected ticker and the subpair being plotted, for clarity.
This indicator is even more reliable when combined with the Mirror 2 indicator, which shows the same system but mostly with the BTC pair in crypto.
Both the Mirror US10Y and Mirror 2 also allow you to see the main inverse pairs in stocks.
First Round Break TrackerA simple indicator that tracks the first-time breakouts of round number levels (psychological levels) on any chart. Clean interface with minimal configuration needed
First Breakout Only : Marks each round level only once when broken for the first time
Customizable Step Size : Adjustable round number intervals (e.g., 100, 1000, 10000 etc.)
Clean Visual Alerts : Green labels with "FIRST:" prefix appear exactly at breakout moments
Real-time Info Panel : Shows current price, next target level, and total breakouts count
Prev Day & Premarket High/Low LinesThis TradingView Pine Script is designed to enhance intraday trading by visually marking key price levels on the chart. It automatically plots horizontal lines representing the previous day's high and low, as well as the pre-market session's high and low. These levels are critical for identifying support and resistance zones that traders often use for entries, exits, or to anticipate price reactions.
The script calculates the previous day's high and low using daily historical data. For the pre-market session, which is defined as 4:00 AM to 9:30 AM Eastern Time, it tracks price movements on intraday charts and captures the highest and lowest price reached during that session.
At exactly 9:31 AM EST, once the pre-market ends, the script draws horizontal lines at these levels for the current trading day. Each line's color and width are fully customizable through input settings, allowing users to match their chart themes or preferences.
This tool is especially helpful for day traders and scalpers who rely on short-term price action. It ensures that important reference levels are clearly displayed without manual effort, aiding in quick decision-making and improving overall trading discipline and strategy execution.
RSI+BOLLINGER (LONG & SHORT)This indicator combines two of the most popular tools in technical analysis, the Relative Strength Index (RSI) and Bollinger Bands (BB), to generate both long (BUY) and short (SELL) trading signals.
Strategy:
Entries (Buy/Short): Entry signals are based on the RSI.
A BUY is suggested when the RSI crosses above an oversold level (default: 29), indicating a possible upward reversal.
A SHORT is suggested when the RSI crosses below an overbought level (default: 71), indicating a possible downward reversal.
Exits (Position Closure): Exit signals are based on Bollinger Bands.
A long position is closed when the price crosses below the upper Bollinger Band.
A short position is closed when the price crosses above the lower Bollinger Band.
Key Features:
Cascade Filter: Includes a smart filter that prevents opening new consecutive trades if the price hasn't moved significantly in favor of a new entry, optimizing signal quality.
Automation Alerts: Generates detailed alerts in JSON format for each event (buy, sell, close), designed for easy integration with trading bots and automated systems via webhooks.
Fully Configurable: All parameters of the RSI, Bollinger Bands, and strategy filters can be adjusted from the indicator’s settings menu.
Custom Opening TimesThis indicator displays custom opening levels on your chart. Define multiple opening times, each with its own customizable style. Display these levels as horizontal lines at the opening price, or as vertical lines to mark the opening time.
Custom Opening Times
4 Independent Groups with 4 custom opening levels each
Set any custom opening time (displayed in New York Local Time)
Choose between Opening Price lines, Vertical time markers, or Both
Cutoff Times: Stop extending lines after specified times
Higher Timeframe Levels
5 Configurable HTF levels supporting any timeframe
Display opening prices from Daily, Weekly, Monthly, Quarterly, and custom timeframes
Show Previous High/Low levels from higher timeframes
Dow Theory HH-HL-LH_LL 2025
//--------------------------------------------
Dow Theory HH-HL-LH-LL 2025
//--------------------------------------------
✅ Purpose
This indicator visualizes Dow Theory structure by identifying:
//--------------------------------------------
Higher Highs (HH)
Higher Lows (HL)
Lower Highs (LH)
Lower Lows (LL)
//--------------------------------------------
It helps traders clearly identify market trends, trend reversals, and structure shifts in real time —
crucial for both swing and intraday traders.
//--------------------------------------------
⚙️ Key Features & User Settings
//--------------------------------------------
🟩 1. New Day Highlight
Show_New_Day: Toggle ON/OFF background color for new trading days.
ND_Fill_Transp: Set transparency level of the day start background Color Box Line.
📏 2. Pivot Point Settings
Pivot_Period: Set the period used to detect pivot highs/lows Default is 5.
🎯 3. Line & Label Display
Show_Line: Show/hide support/resistance lines at HH, HL, LH, LL.
Show_Lbl: Show/hide text labels on chart.
Show_With_Price: Display price along with HH-HL-LH-LL labels.
🎨 4. Visual Themes
Select_Theme: Choose between 'Color' or 'Gray' for a colorful or minimal style.
✍️ 5. Support/Resistance Line Style
Line Width, Line Style: Customize thickness and style of lines.
Line Transparency: Set transparency of lines.
🏷️ 6. Label Text Styling
Lbl_Transp: Set background transparency for labels Default is 100 You can Change it any time to Show Label Background.
Txt_Transp: Set text transparency Default is 0 .
Txt_Size: Adjust label font size Default is 10.
🟡🟡🟡 And Best Thing of Indicator is you can Check Price any time Hovering on the Label - For Quick Referance 🟡🟡🟡
//--------------------------------------------
Trend Direction
//--------------------------------------------
🔹 Identify trend continuation or reversal zones.
🔹 Mark structure breakpoints to place stop losses.
🔹 Confirm signals from other indicators (RSI, EMA, VWAP, etc.).
🔹 Analyze price action with pure structure — no lagging indicators.
TDT TOOL ONE (V1.0) by tradingpunks.comTDT TOOL ONE
This a key level indicator for low timeframe intraday trading and scalping.
Access is invite only.
Please visit tradingpunks.com to get your personal access.
Prev Candle Quarters (MTF) – % + PriceThis TradingView indicator visualizes quarter levels (25%, 50%, 75%, 100%) of the previous candle body from a user-selected higher timeframe, helping traders identify key reaction zones within a candle’s structure.
ulti-Timeframe Input: Choose between 15m, 1H, or 2H candles for your measurement basis.
Body-Based Calculation: Measures from open to close of the previous candle (not wick-to-wick), reflecting where price actually closed.
Precise Quarter Levels: Automatically draws horizontal lines at 25%, 50%, 75%, and 100% of the candle body.
Custom Toggles: Enable or disable each individual level via checkboxes.
Price + % Labels: Each level includes a clean label showing the exact price and corresponding percentage.
S&R Zones MTF (TechnoBlooms)S&R Zones MTF – Multi-Timeframe Support & Resistance Boxes
🔍 Overview
S&R Zones MTF is a professional-grade yet beginner-friendly indicator that dynamically plots Support & Resistance zones across multiple timeframes, helping traders recognize high-probability reversal areas, entry confirmations, and price reaction points.
This tool visualizes structured zones as colored boxes, allowing both new and experienced traders to analyze multi-timeframe confluence with ease and clarity.
🧠 What Is This Indicator?
S&R Zones MTF automatically detects the most significant support and resistance levels from up to four custom timeframes, using a configurable lookback period. These zones are displayed as colored horizontal boxes directly on the chart, making it easy to:
Spot where price has historically reacted
Identify potential reversal or breakout zones
Confirm entries with institutional-style precision
🛠️ Key Features
✅ Multi-Timeframe Zone Detection (up to 4 timeframes)
📦 Auto Plotted Boxes for Support (Blue) & Resistance (Pink)
🧱 Dynamic Height based on average price range or fixed input
🏷️ Timeframe Labels to instantly identify zone origin
🎛️ Customizable inputs: Lookback length, box color, height style
🔁 Real-time updates as price structure changes
🎓 Educational & Easy to Use
Whether you’re a new trader learning about price structure, or a professional applying institutional concepts, this tool offers an educational layout to understand:
How price respects historic zones
Why multi-timeframe zones offer stronger confluence
How to use zones for entry, exit, or risk placement
📈 How to Use (Multi-Timeframe Strategy)
Select Your Timeframes – Customize up to 4 higher timeframes (e.g., 1m, 5m, 15m, 1h).
Observe Overlapping Zones – When multiple timeframes agree, those zones are more significant.
Entry Confirmation – Wait for price to reach a zone, then look for reversal patterns (engulfing candle, pin bar, etc.)
Combine with Other Tools – Use alongside indicators like RSI, MACD, or Order Blocks for added confidence.
💡 Pro Tips
Zones from higher timeframes (1H, 4H) are often more powerful and reliable.
Confluence matters: If a 15m support zone aligns with a 1H support zone — that's a high-probability reaction area.
Use break-and-retest strategies with zone rejections for sniper entries.
Enable "Auto Height" for a more adaptive, volatility-based zone display.
🌟 Summary
S&R Zones MTF blends precision, clarity, and professional analysis into a visual structure that’s easy to understand. Whether you're learning support & resistance or optimizing your MTF edge — this tool will bring clarity to your charts and confidence to your trades.
ICC Logic📌 ICC Logic — Market Structure Price Action Tool
ICC Logic is a closed-source indicator designed to help traders visualize and act on a structured three-phase price action model inspired by widely practiced market structure trading concepts. The tool automatically identifies key structural shifts, tracks correction zones, and projects continuation entries — all based purely on price action, with no use of oscillators or traditional indicators.
🧠 Framework Overview
The tool follows a three-phase logic structure:
1. Indication
A break of a recent structural high (for bullish) or low (for bearish) suggests a potential directional shift or intent to trend.
2. Correction
Once the break occurs, the tool tracks the market’s pullback phase and identifies the corrective low (for bullish) or high (for bearish), establishing a risk zone.
3. Continuation
A second move through the original structural break level confirms directional continuation, triggering a simulated entry with a predefined stop loss and take profit.
🔍 Key Features
✅ Pivot-based structure tracking using customizable left/right settings
📈 Auto-calculated entry, SL, and TP levels
🎯 Fixed 2:1 risk/reward ratio using actual risk-distance math
📐 Anchored break level lines drawn from original pivot formation
⚡ Instant bias reversal logic when a stop is hit (e.g., bullish > bearish)
🕒 Session filter for limiting signals to a specific time window (default: NY session)
🧠 Optional smart timeframe adjustment that adapts pivot depth for consistency across chart timeframes
🌐 Market-specific precision for Forex (pips), Futures (ticks), and Crypto (decimals)
🖼️ Clean, toggleable visuals for minimal chart clutter
⚙️ Inputs
Pivot Sensitivity – Defines how swing points are detected
SL Buffer – Adds space beyond correction point (pip/tick-based)
Session Filter – Restrict signals to active market hours
Auto Pivot Adjustment – Dynamically adjust based on timeframe
Visual Toggles – Show/hide entry arrows, levels, zones, and more
🚨 Alerts
When a structure-based setup is detected, an alert is triggered containing:
Direction (Buy or Sell)
Entry price
Stop loss and take profit levels
Alerts are provided for educational or manual use only and are not intended for automated trading execution.
⚠️ Disclaimer
This script is for educational and illustrative purposes only. It does not offer financial advice or guarantee performance. All trade decisions are solely the user’s responsibility. Always test thoroughly before using any tool in live markets.
✅ Summary
ICC Logic is a pure price action utility designed to help structure-based traders confidently identify and engage with momentum continuation setups. By automating the identification of key structure breaks, corrections, and calculated trade levels, this tool reinforces patience, precision, and consistency — the foundation of good trading.
[MAD] FVG with LTF-POC/TPOOverview
The Fair Value Gap (FVG) Detector is a precision tool designed to automatically identify, draw, and track market inefficiencies. These gaps, also known as imbalances, often act as powerful magnets for future price action.
This indicator handles the entire lifecycle of an FVG: from its creation and extension, to the moment it is first touched, and through its entire mitigation process. To add an even deeper layer of analysis, it can now optionally plot two types of micro-analysis lines for the middle candle of the FVG pattern: a volume-based Point of Control (LTF-POC) and a time-based Time Price Opportunity (LTF-TPO). These high-precision lines pinpoint the most significant price levels within the imbalance itself.
By providing a clean and objective visualization of these critical price zones, the FVG Detector gives traders a clear framework for spotting high-probability setups and understanding how the market returns to areas of inefficiency to become balanced once again.
█ How It Works
The indicator’s logic is built on precise detection, dynamic visualization, and intelligent state tracking to provide a comprehensive view of market imbalances.
⚪ The FVG Detection Engine
At its core, the indicator uses a classic three-candle pattern to identify FVGs. This mechanical definition removes all subjectivity:
Bullish FVG: A gap is identified when the high of the first candle is lower than the low of the third candle. The space between these two prices creates the bullish FVG.
Bearish FVG: A gap is identified when the low of the first candle is higher than the high of the third candle. The space between these two prices creates the bearish FVG.
⚪ Dynamic Drawing and Mitigation
Once an FVG is detected, the indicator automatically draws a colored box to represent the gap. This box is then managed through its entire lifecycle:
Extension: If enabled, the FVG box extends forward in time with each new candle, acting as a visible, forward-looking zone of interest.
Partial Mitigation Trigger: The moment price first "touches" the gap, the box changes color to signal that it is no longer a fresh, unmitigated zone. The statistics table counts this as a "Partially Mitigated" event.
Shrinking FVG: As price moves further into the gap, the colored box dynamically shrinks, providing a real-time visual of how much of the imbalance has been filled.
Historical Outline: An optional secondary outline box is drawn to preserve the FVG's original size. This outline stops extending when the FVG is first touched, leaving a permanent historical marker.
⚪ Optional LTF Analysis for Added Precision
The indicator can look "inside" the FVG's middle candle to find its most significant price levels.
LTF-POC (Volume-Based): Using data from a lower timeframe, it analyzes the volume profile of the FVG-creating candle to find the single price level from the lower-timeframe bar with the highest trading volume.
LTF-TPO (Time-Based): It also identifies the Time Price Opportunity by dividing the candle's price range into distinct "bins." The script counts how many lower-timeframe price ticks occurred in each bin, and the TPO line is drawn at the center of the busiest bin.
Visual Confluence: These are drawn as distinct horizontal lines (defaulting to orange for POC and yellow for TPO) that extend and are managed alongside the FVG's historical outline, serving as precise levels of interest within the broader FVG zone.
█ Why This Indicator is Different
While many traders can spot FVGs manually, this indicator offers a significant edge through the possibility of the lowertimeframe analysis and showing the syntetic TPO or POCs for the relevant candles.
⚪ Automated and Objective
The market moves fast, and manually drawing FVGs is impractical and prone to error. This tool automates the entire process.
Never Miss a Gap: The detector impartially scans every three-candle sequence, ensuring no FVG is missed.
No Subjectivity: The rules for detection, mitigation, and LTF analysis are based on fixed mathematical models, removing subjective judgment.
Multi-Timeframe Clarity: The indicator works flawlessly on any timeframe, allowing you to maintain a consistent view of market structure.
⚪ Visualizing Market Memory
This tool does more than just draw boxes; it tells a story. Watching a box change color and shrink provides a visual of market dynamics in action. The optional historical outlines and LTF analysis lines build a "map" on your chart, showing where significant reactions and high-liquidity zones occurred in the past, which provides invaluable context for future price movements.
█ How to Use
⚪ Identifying High-Probability Zones
The primary use of the FVG Detector is to identify high-probability zones where price may react.
Entries: Unmitigated (fresh) FVGs can serve as powerful entry zones. Traders may look for price to return to a bullish FVG to take a long position, or to a bearish FVG to take a short position.
Targets: An FVG in your path can also act as a logical profit target. For example, if you are in a long position, you might take profit as price fills a nearby bearish FVG above you.
⚪ Confluence and Confirmation
FVGs are most powerful when they align with other forms of technical analysis. Look for FVGs that have "confluence" with:
Market Structure: A bullish FVG found at a key support level or after a bullish break of structure is a higher-probability setup.
Order Blocks: An FVG that overlaps with a bullish or bearish order block creates a very potent point of interest.
Premium/Discount Zones: FVGs found deep in a premium (for shorts) or discount (for longs) area of a trading range often yield strong reactions.
The LTF Lines (POC & TPO): Use these lines as a source of internal confluence. While the FVG gives you a zone, the POC and TPO give you precise levels within that zone. The POC shows where the highest volume was traded, while the TPO shows where price spent the most time. Confluence between these two lines can signal an extremely strong level.
█ Settings
Max Number of FVGs to Display: Controls how many active FVGs are kept on the chart to prevent clutter and maintain performance.
Extend Unmitigated FVGs: When enabled, FVG boxes will extend to the right until price touches them.
Show Bullish/Bearish FVGs: Toggles the visibility of bullish or bearish FVGs.
Show FVG Labels: Toggles the visibility of the "FVG" text labels.
Keep Mitigated Outlines: If checked, the historical outline box (and its associated POC/TPO lines) will remain on the chart even after the FVG is completely filled.
Show Statistics: Toggles the visibility of the statistics table, which tracks total, partly mitigated, and fully mitigated FVGs.
Show LTF-TPO (Time-Based): Toggles the calculation and display of the Time Price Opportunity line.
Show LTF-POC (Volume-Based): Toggles the calculation and display of the Point of Control line.
Use Custom LTF for Analysis: Check this to manually select a timeframe for the POC/TPO calculation. If unchecked, the script auto-selects a lower timeframe.
Lower Timeframe: The specific lower timeframe to use when the "Custom LTF" box is checked.
Magnifier (Bars per Slice): Controls how the script auto-selects a lower timeframe (higher number = lower timeframe). Only active when "Custom LTF" is unchecked.
█ The Logic Explained
This indicator uses a clear, rules-based system based on mathematical and conditional principles.
The 3-Candle FVG Pattern
The detection engine precisely identifies FVGs by comparing the price extremes of a three-candle sequence. For a bullish FVG, it confirms that the high of the first candle is strictly below the low of the third candle. For a bearish FVG, the low of the first candle must be strictly above the high of the third. This leaves an objective, unfilled gap in the market.
The Mitigation and Shrinking Process
Once an FVG is created, the indicator monitors it on every subsequent bar. The moment a candle's price action enters the FVG's zone, it's flagged as "partially mitigated," and its color changes. The script then continues to track how far price pushes into the gap, dynamically shrinking the box to visually represent the remaining imbalance.
Lower-Timeframe (LTF) Analysis Explained
To add precision, the indicator performs a micro-analysis of the middle candle of the FVG pattern. This is achieved by mathematically deconstructing that single candle using data from a smaller timeframe.
The lower timeframe is determined either manually or automatically via the Magnifier. The Magnifier works by dividing the chart's current timeframe. For example, on a 60-minute chart, a Magnifier of 60 tells the indicator to perform its analysis using 1-minute data (60÷60=1).
Once the LTF data is obtained, two calculations are performed:
LTF Point of Control (Volume-Based): This method seeks the price of maximum commitment. The indicator analyzes the volume of every single lower-timeframe bar within the main candle and identifies the one bar with the highest trading volume. The closing price of that specific high-volume bar is designated as the POC.
LTF Time Price Opportunity (Time-Based): This method finds the price where the market spent the most time trading. The process is a form of price distribution analysis:
The total price range (high to low) of the main candle is measured.
This range is divided into 40 equal price zones, or "bins". For a candle with a $2 range, each bin would represent a price slice of 5 cents
The indicator then counts how many of the lower-timeframe closing prices fall within each of the 40 bins.
The TPO line is drawn at the midpoint of the single bin that contained the most prices, representing the "busiest" price level.
Time-Based Drawing for Accuracy
To ensure perfect alignment across all historical data and chart reloads, all drawings are anchored to the precise timestamp of the bar, not its sequential position on the chart. This robust method guarantees that all zones remain fixed and accurate regardless of how much historical data is loaded.
█ Disclaimer
Investors are fully responsible for any investment decisions they make.
Have fun trading :-)
Smart MTF S/R Levels[BullByte]
Smart MTF S/R Levels
Introduction & Motivation
Support and Resistance (S/R) levels are the backbone of technical analysis. However, most traders face two major challenges:
Manual S/R Marking: Drawing S/R levels by hand is time-consuming, subjective, and often inconsistent.
Multi-Timeframe Blind Spots: Key S/R levels from higher or lower timeframes are often missed, leading to surprise reversals or missed opportunities.
Smart MTF S/R Levels was created to solve these problems. It is a fully automated, multi-timeframe, multi-method S/R detection and visualization tool, designed to give traders a complete, objective, and actionable view of the market’s most important price zones.
What Makes This Indicator Unique?
Multi-Timeframe Analysis: Simultaneously analyzes up to three user-selected timeframes, ensuring you never miss a critical S/R level from any timeframe.
Multi-Method Confluence: Integrates several respected S/R detection methods—Swings, Pivots, Fibonacci, Order Blocks, and Volume Profile—into a single, unified system.
Zone Clustering: Automatically merges nearby levels into “zones” to reduce clutter and highlight areas of true market consensus.
Confluence Scoring: Each zone is scored by the number of methods and timeframes in agreement, helping you instantly spot the most significant S/R areas.
Reaction Counting: Tracks how many times price has recently interacted with each zone, providing a real-world measure of its importance.
Customizable Dashboard: A real-time, on-chart table summarizes all key S/R zones, their origins, confluence, and proximity to price.
Smart Alerts: Get notified when price approaches high-confluence zones, so you never miss a critical trading opportunity.
Why Should a Trader Use This?
Objectivity: Removes subjectivity from S/R analysis by using algorithmic detection and clustering.
Efficiency: Saves hours of manual charting and reduces analysis fatigue.
Comprehensiveness: Ensures you are always aware of the most relevant S/R zones, regardless of your trading timeframe.
Actionability: The dashboard and alerts make it easy to act on the most important levels, improving trade timing and risk management.
Adaptability: Works for all asset classes (stocks, forex, crypto, futures) and all trading styles (scalping, swing, position).
The Gap This Indicator Fills
Most S/R indicators focus on a single method or timeframe, leading to incomplete analysis. Manual S/R marking is error-prone and inconsistent. This indicator fills the gap by:
Automating S/R detection across multiple timeframes and methods
Objectively scoring and ranking zones by confluence and reaction
Presenting all this information in a clear, actionable dashboard
How Does It Work? (Technical Logic)
1. Level Detection
For each selected timeframe, the script detects S/R levels using:
SW (Swing High/Low): Recent price pivots where reversals occurred.
Pivot: Classic floor trader pivots (P, S1, R1).
Fib (Fibonacci): Key retracement levels (0.236, 0.382, 0.5, 0.618, 0.786) over the last 50 bars.
Bull OB / Bear OB: Institutional price zones based on bullish/bearish engulfing patterns.
VWAP / POC: Volume Weighted Average Price and Point of Control over the last 50 bars.
2. Level Clustering
Levels within a user-defined % distance are merged into a single “zone.”
Each zone records which methods and timeframes contributed to it.
3. Confluence & Reaction Scoring
Confluence: The number of unique methods/timeframes in agreement for a zone.
Reactions: The number of times price has touched or reversed at the zone in the recent past (user-defined lookback).
4. Filtering & Sorting
Only zones within a user-defined % of the current price are shown (to focus on actionable areas).
Zones can be sorted by confluence, reaction count, or proximity to price.
5. Visualization
Zones: Shaded boxes on the chart (green for support, red for resistance, blue for mixed).
Lines: Mark the exact level of each zone.
Labels: Show level, methods by timeframe (e.g., 15m (3 SW), 30m (1 VWAP)), and (if applicable) Fibonacci ratios.
Dashboard Table: Lists all nearby zones with full details.
6. Alerts
Optional alerts trigger when price approaches a zone with confluence above a user-set threshold.
Inputs & Customization (Explained for All Users)
Show Timeframe 1/2/3: Enable/disable analysis for each timeframe (e.g., 15m, 30m, 1h).
Show Swings/Pivots/Fibonacci/Order Blocks/Volume Profile: Select which S/R methods to include.
Show levels within X% of price: Only display zones near the current price (default: 3%).
How many swing highs/lows to show: Number of recent swings to include (default: 3).
Cluster levels within X%: Merge levels close together into a single zone (default: 0.25%).
Show Top N Zones: Limit the number of zones displayed (default: 8).
Bars to check for reactions: How far back to count price reactions (default: 100).
Sort Zones By: Choose how to rank zones in the dashboard (Confluence, Reactions, Distance).
Alert if Confluence >=: Set the minimum confluence score for alerts (default: 3).
Zone Box Width/Line Length/Label Offset: Control the appearance of zones and labels.
Dashboard Size/Location: Customize the dashboard table.
How to Read the Output
Shaded Boxes: Represent S/R zones. The color indicates type (green = support, red = resistance, blue = mixed).
Lines: Mark the precise level of each zone.
Labels: Show the level, methods by timeframe (e.g., 15m (3 SW), 30m (1 VWAP)), and (if applicable) Fibonacci ratios.
Dashboard Table: Columns include:
Level: Price of the zone
Methods (by TF): Which S/R methods and how many, per timeframe (see abbreviation key below)
Type: Support, Resistance, or Mixed
Confl.: Confluence score (higher = more significant)
React.: Number of recent price reactions
Dist %: Distance from current price (in %)
Abbreviations Used
SW = Swing High/Low (recent price pivots where reversals occurred)
Fib = Fibonacci Level (key retracement levels such as 0.236, 0.382, 0.5, 0.618, 0.786)
VWAP = Volume Weighted Average Price (price level weighted by volume)
POC = Point of Control (price level with the highest traded volume)
Bull OB = Bullish Order Block (institutional support zone from bullish price action)
Bear OB = Bearish Order Block (institutional resistance zone from bearish price action)
Pivot = Pivot Point (classic floor trader pivots: P, S1, R1)
These abbreviations appear in the dashboard and chart labels for clarity.
Example: How to Read the Dashboard and Labels (from the chart above)
Suppose you are trading BTCUSDT on a 15-minute chart. The dashboard at the top right shows several S/R zones, each with a breakdown of which timeframes and methods contributed to their detection:
Resistance zone at 119257.11:
The dashboard shows:
5m (1 SW), 15m (2 SW), 1h (3 SW)
This means the level 119257.11 was identified as a resistance zone by one swing high (SW) on the 5-minute timeframe, two swing highs on the 15-minute timeframe, and three swing highs on the 1-hour timeframe. The confluence score is 6 (total number of method/timeframe hits), and there has been 1 recent price reaction at this level. This suggests 119257.11 is a strong resistance zone, confirmed by multiple swing highs across all selected timeframes.
Mixed zone at 118767.97:
The dashboard shows:
5m (2 SW), 15m (2 SW)
This means the level 118767.97 was identified by two swing points on both the 5-minute and 15-minute timeframes. The confluence score is 4, and there have been 19 recent price reactions at this level, indicating it is a highly reactive zone.
Support zone at 117411.35:
The dashboard shows:
5m (2 SW), 1h (2 SW)
This means the level 117411.35 was identified as a support zone by two swing lows on the 5-minute timeframe and two swing lows on the 1-hour timeframe. The confluence score is 4, and there have been 2 recent price reactions at this level.
Mixed zone at 118291.45:
The dashboard shows:
15m (1 SW, 1 VWAP), 5m (1 VWAP), 1h (1 VWAP)
This means the level 118291.45 was identified by a swing and VWAP on the 15-minute timeframe, and by VWAP on both the 5-minute and 1-hour timeframes. The confluence score is 4, and there have been 12 recent price reactions at this level.
Support zone at 117103.10:
The dashboard shows:
15m (1 SW), 1h (1 SW)
This means the level 117103.10 was identified by a single swing low on both the 15-minute and 1-hour timeframes. The confluence score is 2, and there have been no recent price reactions at this level.
Resistance zone at 117899.33:
The dashboard shows:
5m (1 SW)
This means the level 117899.33 was identified by a single swing high on the 5-minute timeframe. The confluence score is 1, and there have been no recent price reactions at this level.
How to use this:
Zones with higher confluence (more methods and timeframes in agreement) and more recent reactions are generally more significant. For example, the resistance at 119257.11 is much stronger than the resistance at 117899.33, and the mixed zone at 118767.97 has shown the most recent price reactions, making it a key area to watch for potential reversals or breakouts.
Tip:
“SW” stands for Swing High/Low, and “VWAP” stands for Volume Weighted Average Price.
The format 15m (2 SW) means two swing points were detected on the 15-minute timeframe.
Best Practices & Recommendations
Use with Other Tools: This indicator is most powerful when combined with your own price action analysis and risk management.
Adjust Settings: Experiment with timeframes, clustering, and methods to suit your trading style and the asset’s volatility.
Watch for High Confluence: Zones with higher confluence and more reactions are generally more significant.
Limitations
No Future Prediction: The indicator does not predict future price movement; it highlights areas where price is statistically more likely to react.
Not a Standalone System: Should be used as part of a broader trading plan.
Historical Data: Reaction counts are based on historical price action and may not always repeat.
Disclaimer
This indicator is a technical analysis tool and does not constitute financial advice or a recommendation to buy or sell any asset. Trading involves risk, and past performance is not indicative of future results. Always use proper risk management and consult a financial advisor if needed.
Bronx Key LevelsThis indicator plots crucial high and low price levels from various trading sessions (Asia, London, New York) and key historical periods (Previous Day, Week, and Month) directly onto your chart.
It is designed for traders who use key liquidity levels for their analysis. The script features real-time tracking of highs and lows as they form within active sessions and can display historical levels for a configurable number of past days.
Users have extensive control over the visual presentation, including the ability to set a global style for all lines or customize each level's color, width, and line style individually. For a cleaner chart, the script includes a feature to automatically merge labels that overlap at the same price level. Additionally, it provides optional session boxes to visually highlight the duration of each trading session.
The script is also equipped with a comprehensive alert system that can notify you whenever the price touches one of the enabled key levels.
[Top] Trend Lines with Strength DetectionThe Auto Trend Lines with Strength Detection indicator automatically detects and draws dynamic support and resistance lines based on pivot highs and lows. These trend lines adapt to market structure in real time, increasing in opacity as they accumulate additional touches. Numbers are also printed above each line indicating the number of times that line has been tested and held.
Unlike most trend line indicators, this one does not consider a brief wick to have broken the line. Nor does it break the line if the current candle is testing it. The candle must fully close on the oppose side of a trend line for this indicator to remove that line.
On the chart above you can see that the current candle is in the process of breaking the two resistance lines. If the candle closes above the lines, they will be broken and removed from the chart. If it's not able to close above the resistance lines, they will remain intact and accumulate another touch point.
Key features include:
Pivot-based detection: Lines are drawn between valid swing points while filtering out intermediate price violations.
Strength visualization: Each time price comes into proximity with a trend line, the “touch count” is incremented and both the line and its label darken accordingly.
Break handling: Lines are automatically removed once the body of a candle closes beyond them, reducing clutter from broken levels.
Customization options: Users can adjust pivot sensitivity, maximum lines to retain, line styles, widths, and colors independently for support and resistance.
Pivot History: You can decide how far back you want the script to look for valid trends.
⸻
Potential Uses:
Identifying strong support/resistance zones: As trend lines accumulate touches, they become visually stronger, helping traders spot high-confluence levels.
Breakout and breakdown filtering: Detects and removes invalidated trend lines only after a full candle body breach, reducing false breakouts caused by wicks.
Trend structure analysis: Helps visualize emerging or weakening trends by observing how support/resistance lines evolve and how price interacts with them.
Strategy development: Can be used as a component in breakout, mean-reversion, or range-based trading systems.
Persistent 1H S/R Zones with Labels (No Overlap) + 50 EMAit helps find recant support and resistance zones with swing points