ICT - GAPs and Volume Imbalance
GAPs
Gaps are areas on chart where the price have moved sharply up or down, with no trading in between. Gaps often fill, but they don't have to.
Volume Imbalance
Volume imbalance - determined using 2 candles
Bullish Volume Imbalance - area between the close of 1st candle and the open of 2nd candle
Bearish Volume Imbalance - area between the close of 1st candle and the open of 2nd candle
How to use the indicator:-
When you find imbalance in volume or a GAP in the chart, you may expect price to rebalance it before continuation.
Importantly, GAPs/Imbalances do not always fill. Traders should never assume that a gap/imbalance will fill without understanding the reasons for the gap and monitoring trading activity around the gap.
Pair it with your current bias for better results.
Search in scripts for "imbalance"
Unmitigated Imbalances [TakingProphets] (High Timeframe)Unmitigated Imbalances
Unmitigated Imbalance is designed to automatically detect and display active Fair Value Gaps (FVGs) across multiple higher timeframes and your current chart. It only keeps the ones that remain unmitigated, helping you clearly see where price has “unfinished business” and potential liquidity draw areas. The tool extends these levels forward until they are tagged according to your chosen mitigation criteria, then removes them automatically.
The indicator uses the classic 3-bar FVG structure:
– Bearish FVG forms when the low of the third candle back is above the high of the first candle.
– Bullish FVG forms when the high of the third candle back is below the low of the first candle.
– Each detected gap must meet a minimum size threshold, which is determined automatically from the Sensitivity setting and adjusted for the symbol type.
Higher timeframes (up to 4) can be plotted simultaneously with your current chart’s gaps. The script merges overlapping levels from different timeframes into one clean label, showing all the contributing timeframes together (for example: M15 + H1 + H4). This makes it easy to spot high-confluence levels without cluttering your chart.
Key features
– Multi-timeframe detection: up to 4 custom HTFs plus your current chart.
– Automatic gap size filtering based on chosen Sensitivity (High, Medium, Low).
– Choice of Wick or Close-based mitigation logic.
– Lookback control: 1 Day, 1 Week, 1 Month, or Max.
– Combined labels for overlapping gaps with clear timeframe tags.
– Separate color and style settings for each timeframe’s bullish and bearish gaps.
– Labels can be positioned Left, Right, or Center Above for maximum clarity.
– Automatic line extension until mitigation or until they exceed the lookback period.
How to use
Select your desired higher timeframes in the HTF1–HTF4 settings.
Choose the Sensitivity level to control the minimum gap size detected.
Decide on Wick or Close mitigation according to your trading rules.
Use the Lookback setting to limit how far back the script checks for gaps.
Watch for levels where multiple timeframe labels are stacked — these can carry greater significance.
Incorporate the levels into your existing strategy, using them as context rather than entry signals.
Practical notes
– Current timeframe gaps reset each trading day to keep the chart relevant to intraday bias.
– Higher timeframe gaps remain until mitigated or until the lookback period expires.
– Large lookback periods with multiple HTFs can increase chart load — adjust settings as needed.
– This indicator is a mapping and context tool, not a signal generator. Always apply it alongside your own analysis.
PT FVG ImbalancesVersion 1.0 of the PT FVG Gaps & Flat Opens was developed to visually identify any imbalances in price. This indicator can be used on all timeframes.
Fair Value Gaps are a key component when trading price action. They are derived from zones in liquidity where price moved quickly in a certain direction leaving gaps behind. These areas tend to act as magnets to price throughout the trading session of that timeframe.
PT FVG Features:
-Gaps that have been partially filled will shade darker to show price has already attempted to fill that gap before (Toggle Highlight Gap Fill).
-Gaps that have been partially filled will remove a portion of the background zone to indicate how much gap is left to fill in the full zone (Toggle Highlight Remaining Gap).
Flat Open Candles are derived from candles that open without a wick (wickless candles). Price more often than not tends to gravitate towards these areas in the near future to fill the wickless candle before continuing on with the trend. Can be used on all timeframes, but the higher the timeframe holds more weight.
PT Flat Open Features:
-Flat open sensitivity would recommend keeping it around 30-50. If scalping keep it sub 30. This feature determines how many flat opens you want on your chat at one time.
-Delete flat open line allows us to delete the line once price has filled the wickless candle.
Video with strategy will be uploaded shortly! It is included as part of the library. Just message us for access!
Ichimoku ImbalanceYou may have heard the word balance or imbalance
This indicator is designed based on Ichimoku periods to display imbalances in each period
When you see a black mark, it means that one of the Ichimoku periods is saturated or unbalanced
If the current candle was equal to the lowest price on 9/26/52 of the last period and the highest price was equal to the last candle from left on 9/26/52 of the last period
If the current candle was equal to the highest price on 9/26/52 of the last period and the lowest price was equal to the last candle from right on 9/26/52 of the last period
This indicator is a useful and powerful tool for Ichimoku traders to understand overbought and oversold points in different time periods.
Note: This is an auxiliary tool and does not issue buy and sell signals
Automatic Order Block + Imbalance by D. BrigagliaThis script combines automatic orderblock and imbalance tracking.
Bullish OB - Blue
Bullish Imbalance - Green
Bearish OB - Red
Bearish Imbalance - Orange
Please note that the actual definitions of orderblock and imbalance are not respected in this script for the sake of simplicity. Scripts that are too complex may overfit some particular chart. Since there is no way to translate the actual ob and imb definitions into pinescript language, I decided to keep it simple.
Ideally, you want to see a bullish OB followed by buy side imbalance, or viceversa. OBs that are broken weakly are generally invalidated, ones that are broken strongly generally become breakers, and you can use them as good support/resistance levels.
Also, a good thing you can do when an OB and an imbalance match, is going in the lower timeframes and catching the structure reversal in the OB or imbalance zone. That may provide excellent RR trades. Always trade with OB that confirm the HTF trend.
Nothing in my content on tradingview is considerable investment advice.
Volume Imbalance Analyzer - 70% & 80% Version1.01Here’s a clean “definition” you can drop into your docs. It explains **what** the indicator is, **what it helps with**, and **how** to use it—plain and practical.
# Definition
**Volume Imbalance Analyzer (70% & 80%)** flags bars where estimated buy vs. sell volume is heavily one-sided. It colors those bars, adds labels (B70/B80 or S70/S80), and can alert you in real time. The goal is to quickly spot spots of **aggressive participation** (buyers or sellers) that often act as magnets for a **retest** or as **exhaustion/continuation** areas.
# What it helps you do
* **Find high-energy bars** where one side dominates (potential turning or continuation points).
* **Plan retests:** Track when price comes back into the imbalance candle’s range (common entry/take-profit logic).
* **Filter trades:** Only act when the market shows unusual pressure (≥70% or ≥80%).
* **Add context to setups:** Combine with S/R, FVGs, or trend tools to time entries with less guesswork.
* **Alert-driven workflow:** Get notified the moment extreme pressure prints.
# How it helps (workflow)
1. **Scan for signals:**
* **B80/B70** = strong buying; **S80/S70** = strong selling.
* 80% is “extreme” and overrides 70%.
2. **Mark the zone:** The imbalance candle’s **high–low** defines a zone. Many traders wait for a **retest** into that range.
3. **Decide intent:**
* After **B80/B70**, look for pullbacks to buy (or fades if you see exhaustion).
* After **S80/S70**, look for rallies to sell (or fades if exhaustion).
4. **Confirm with context:** Check trend, key levels, liquidity, session timing, ATR/volatility.
5. **Manage risk:** Place stops beyond the zone; size trades so a failed retest doesn’t ruin the day.
# How it works (under the hood, briefly)
The script **estimates buy/sell volume** from each candle’s body, wicks, and total volume, then computes an **imbalance %**. If the % crosses **70%** or **80%** (scaled by a Sensitivity setting), it paints the bar, drops a label, and optionally fires an alert. It also stores the imbalance candle’s range so you can watch for a **retest**.
# Reading the signals (quick guide)
* **B80**: Extreme buyer pressure → watch for pullback buys or exhaustion shorts, depending on context.
* **B70**: Strong buyer pressure → mild continuation bias.
* **S80**: Extreme seller pressure → watch for rally sells or exhaustion longs.
* **S70**: Strong seller pressure → higher reversal probability noted in the table (informational).
# Configuration tips
* **Sensitivity**: Higher = more bars qualify (more signals).
* **Label distance**: Scales with ATR so labels don’t overlap candles.
* **Colors/opacity**: Separate for 70% vs 80% and buyer vs seller.
* **Alerts**: Enable to catch signals live without staring at the screen.
# Notes & limits
* Uses **estimation** (not true bid/ask) on most symbols; treat as a **context tool**, not a stand-alone system.
* The optional stats table’s “expected outcomes” are **informational**, not live probabilities.
* Works on any timeframe; results improve when combined with structure and risk controls.
FVG / Imbalance ZONES (@JP7FX)Fair Value Gaps / Imbalance are created when Price moves away in one direction at speed / impulsively.
A gap is created between the first and third candle wick which creates the Imbalance / Fair Value Gap and is sometimes a potential area of where the market could return
making the area a good place to look to trade from or to aim for.
This Imbalance / Fair Value Gap indicator will change the color of the candles where these gaps have been created and also create a zone.
Although the candle color will not change, the zone however will be removed when price has closed the Gap making it easier to look for the untouched Fair Value Gaps / Imbalance when opening the charts or changing between timeframes and allowing you to create your potential areas to trade from or areas to target.
You can set alerts for when a FVG / Imbalance zones are created and also for when the zone gets mitigated by price.
Hope you find it useful and happy safe trading :)
AMD-ImbalanceThis script looks at three consecutive candles and if there is an area between the wicks of the first and third candle, it will paint a box to mark the area.
The marked area is considered an imbalance or inefficiency in the market. Price usually finds its way back to that area of imbalance to clear it.
As price clears part of the area of imbalance, the box turns from a solid border to a dashed border.
Momentum imbalance (internal liquidity) by CUWe have developed a sophisticated indicator to detect momentum, imbalance, and internal liquidity within financial markets. Designed to leverage real-time data analysis, this tool aims to assist traders in making more informed decisions.
The momentum component of the indicator calculates the rate at which prices move. By measuring price changes over a specific period, the indicator can show whether an asset is likely to continue rising or falling. This helps traders identify when a trend is gaining strength or beginning to wane.
Market imbalance is analyzed by observing the disparity in buy and sell orders. Our indicator identifies significant deviations between supply and demand, which can indicate potential turning points or accelerations in market movement. This aspect is crucial for understanding the underlying forces that influence price changes.
Regarding internal liquidity, our indicator measures the market depth and the availability of liquid assets. This component is essential for assessing how easily assets can be bought or sold without significantly impacting the price. High internal liquidity indicates a healthy market where transactions are executed quickly and efficiently, while low liquidity can lead to increased volatility and potential price manipulation.
By integrating these three components, our indicator provides a holistic view of market dynamics, enabling traders to operate more strategically and with greater confidence.
FVG / Imbalance MTF Pro (4 HTFs + Alerts) - (@JP7FX)FVG / Imbalance MTF Pro (@JP7FX)
This indicator finds and plots Fair Value Gaps across up to four higher timeframes on a single chart. It shows them as lines, zones, 50 percent levels and labels, and can fire alerts when new gaps form or when price mitigates them.
Core logic
The script detects bullish and bearish FVGs using the classic three candle logic:
• Bullish FVG when high is below the current low.
• Bearish FVG when low is above the current high.
All logic runs on the selected higher timeframes through request.security, then projects the zones down onto your current chart timeframe. The script also checks that your chart timeframe is equal to or lower than the selected HTFs so the plots stay meaningful.
Multi timeframe control
You can configure up to four separate FVG layers: TF1, TF2, TF3 and TF4.
For each TF you can choose:
• Timeframe (or link it to the chart).
• Display mode, Lines and Zones, Zones Only, Lines Only, or Disable.
• Whether to show the 50 percent line.
• Whether to show a label with the TF name next to each FVG.
Inputs also convert the timeframe into minutes and hours so labels can show clear tags such as “15m”, “1h” and so on.
Visuals per timeframe
For every timeframe you can set:
• Entry and stop FVG line colours.
• 50 percent line colour and line style.
• Bullish and bearish zone fill colours.
• Separate colours for mitigated bullish and mitigated bearish zones.
• Label text colours for demand and supply.
Each FVG can draw:
• Two lines for the “entry” and “stop” edges of the gap.
• An optional 50 percent line through the zone.
• A shaded box that tracks the zone as price trades into it.
• A label that shows the originating timeframe.
Line and zone behaviour
Global settings let you control:
• Maximum number of FVG lines and zones kept on the chart.
• Line style for FVG edges and 50 percent lines.
• Whether lines and zones extend to the right.
• Whether zones update with price movement as price trades deeper.
• Whether the zone colour changes once the FVG has been mitigated.
• Label offset so you can push the TF labels to the right of price.
• An option to avoid overlapping zones per timeframe by checking for box overlap.
The script uses arrays of lines, boxes and labels for each TF and for demand and supply separately. It removes the oldest objects once the max count is hit and deletes or recolours zones when price reaches them.
Bar colouring
You can optionally colour the bar that creates the chart timeframe FVG.
• Bullish FVG origin bar can show as green.
• Bearish FVG origin bar can show as red.
Alerts
The indicator exposes alertcondition signals for both creation and mitigation. For each timeframe it supports:
• FVG zone created, bullish or bearish.
• Bullish FVG mitigated.
• Bearish FVG mitigated.
You choose the alert pack per TF through the inputs, then set the alert from the chart by right clicking the indicator and adding an alert.
Use case
This tool is for traders who map and trade Fair Value Gaps across multiple higher timeframes and want clean, configurable MTF FVG zones with clear labels, mitigation behaviour and alerts all in one script.
ImbalancesThis Pine Script is a trading indicator designed to identify imbalances in the market, specifically on candlestick charts. An imbalance refers to situations where there is a significant difference between buyers and sellers, which can create gaps or areas of inefficiency in the price. These imbalances often act as zones where price may return to "fill" or correct these inefficiencies.
1. Identifying Imbalances
The script analyzes candlestick patterns to detect imbalances based on the relationship between the highs, lows, and closes of consecutive candles. Specifically, it looks for:
Top Imbalances (Bearish): Areas where selling pressure has dominated, causing inefficiencies in the price. These are represented by patterns like multiple consecutive bearish candles or bearish gaps.
Bottom Imbalances (Bullish): Areas where buying pressure has dominated, leading to bullish gaps or inefficiencies.
When an imbalance is detected, the script highlights the area using visual boxes on the chart.
2. Visual Representation
The indicator uses colored boxes to show imbalances directly on the chart:
Top (Bearish) Imbalances: Highlighted using shades of red.
Bottom (Bullish) Imbalances: Highlighted using shades of green.
The boxes are further categorized into three states based on their level of mitigation:
Unmitigated: The imbalance has not been "filled" by price yet.
Partially Mitigated: Price has entered the imbalance zone but not completely filled it.
Fully Mitigated: Price has completely filled the imbalance zone.
3. Mitigation Logic
The concept of mitigation refers to the price revisiting an imbalance zone to correct the inefficiency:
If price fully or partially revisits an imbalance zone, the box's color changes to indicate the mitigation level (e.g., from unmitigated to partially/fully mitigated).
Fully mitigated boxes may be removed or recolored, depending on user preferences.
4. User Customization
The script provides several inputs to customize its behavior:
Enable or disable top and bottom imbalance detection.
Color settings: Users can define different colors for unmitigated, partially mitigated, and fully mitigated imbalances.
Mitigation display options: Users can choose whether to show fully mitigated imbalances on the chart or remove them.
5. Key Calculations
Imbalance Size: The size of the imbalance is calculated as the price difference between a candle's high and low across the relevant pattern.
Pattern Detection: The script checks for specific candlestick patterns (e.g., three consecutive bearish candles) to identify potential imbalances.
6. Practical Use Case
This indicator is useful for traders who:
Rely on supply and demand zones for their trading strategies.
Look for areas where price is likely to return (retesting unmitigated imbalances can signal potential trade setups).
Want to visually track market inefficiencies over time.
In Summary
The "Imbalances" indicator highlights and tracks price inefficiencies on candlestick charts. It marks zones where buying or selling pressure was dominant, and it dynamically updates these zones based on price action to indicate their mitigation status. This tool is particularly helpful for traders who use price action and market structure in their strategies.
ImbalanceOf the three consecutive candles, the state where the space between the first and third wicks not filled is called imbalance.
This indicator visualizes those imbalances.
How to use: Used to recognize sudden supply and demand fluctuations that have occurred in the market.
3つの連続するローソクのうち、1つ目と3つ目のヒゲからヒゲの間が埋まっていない状態をインバランスという。
このインジケーターは、それらのインバランスを可視化するものである。
使い方;マーケット場で起こった急激な需要と供給の変動を認識するのに用いる。
imbalances bandsThis indicator is designed to identify imbalances based on the calculation of the average of the highest and lowest prices. It forms a kind of band indicating correction points.
This indicator uses a total of 4 modified VWAPs, separated into 2 options that the user can activate or deactivate by checking or unchecking the options "Show imbalances bands VWAP 1" or "Show imbalances bands VWAP 2".
Let's talk about the first option, "Show imbalances bands VWAP 1". This displays 2 modified VWAPs on the screen, one in green and one in red, forming a kind of band that indicates possible points of imbalance in the market, signaling increased volatility between buying and selling. When the price tests the bands, it can be useful as there is a probability of a correction in the movement.
This can be particularly useful for those who trade using a scalping style, as it helps analyze when the price tests the bands. It can also be beneficial for trend traders because when the price tests one of the bands, there is a probability of a movement correction.
Now let's talk about the option "Show imbalances bands VWAP 2". It contains two modified VWAPs, one in purple and one in blue, which also form a kind of band. These bands also indicate the probability of a movement correction.
What is the difference between the Show imbalances bands VWAP 1 option and the Show imbalances bands VWAP 2 option?
The option "Show imbalances bands VWAP 2" consists of 2 modified volume-weighted moving averages that have a calculation checking the increase in volatility between the highest and lowest prices. One modified moving average is in purple, and the other modified moving average is in blue, forming a kind of two modified VWAPs.
The option "Show Imbalance Bands VWAP 1" consists of two modified moving averages using the absolute difference between the closing price and the moving average instead of the volume. This is particularly useful for assets where the volume is not a good indicator or is not available.
The option "Show Imbalance Bands VWAP 1" also has a calculation that checks for increased volatility between the highest and lowest prices. It features two modified moving averages, one in green and one in red.
This indicator can be adjusted according to the preferences and characteristics of the specific asset or market. It provides clear visual information and can be used as a complementary tool for technical analysis in trading strategies.
and Interesting period 5,20,50,80,200
Interesting imbalance setting 2.4, 3.3 ,4.2
Analysis Ideas: If you are following a trend, you can use this indicator to analyze how the price behaves around the bands. Since the imbalance bands indicate a probability of correction, it can be useful for identifying protection points or moments to be cautious, as there might be a probability of increased volatility.
Analysis Ideas2:For those trading using a scalping style, observe how the price behaves when it tests the imbalance band, as there may be a probability of increased volatility.
Please note that this indicator is designed for educational and informational purposes. Always conduct your own analysis and consider risk management strategies before making trading decisions.
Imbalance - smart money power🔶What it is ?
Imbalance indicator that is a tool to help you to define imblance/Fair Value Gap area better to know whether smart money joined current market atomatically.
This indicator will measure the gap between every 3 candles to know to show which candles having Imbalance among them. They will be marked by diffirent colors compare with original colors of chart.
Our purpose is, help traders to define Imbalance area faster and easier by atomation tools and save time during analyzation.
What is Imbalance in detail ?
To help you to undertand better about imbalance definitiion, please refer to below picture :
We're having 3 candles as I marked number 1,2,3.
Candle 2 is a very big marubozu candle, it made a gap between the first candle's high
and the 3rd candle low on the chart. That gap we call as imbalance and it show that smart money join to buying direction now.
🔶 Who can use it ?
1. All traders who are using NCI, ICT , Smart money concepts, MACD system and other systems...
2. All traders who are trading on any timeframe
3. All traders who are trading on Forex, Crypto, Stock, Indicies...
4. All traders who are new or experienced traders
5. All traders who are swing or scalping traders
🔶 The purpose of indicator
1. Define big money flow when it joined to market.
2. Define power of zones with Imbalance. Which zones have imbalnce that's normally a strong zone to entry and set a safety stop-loss.
3. Helping to decide trading system faster, if you see IMB appeared, it is better to use Smart money concepts.
4. Always "Empty your mind" during Trading because you checked chart less with automation tool.
🔶 How will indicator appear on chart
After you added it on chart, indicator will mearsure and calculate the gaps among three candles. If there're a gap among them, indicator will change the color of those candles.
Please refer to below picture for more detail
We're having 2 types of color as green and red.
With Imabalanec candles, it will be shown as :
1. Aqua color : Up Imbalance
2. Yellow color : Down imbalance
We just focus on candle (2) and (3) so indicator will mark color on these 2 candles only.
🔶 INPUT value
You can change color of imbalance candles from orginal color (aqua, yellow) to any color you want by go to SETTING and change it on STYLE.
🔶 How to use indicator
After setting indicator, indicator will mearsure and run automatically to mark imbalance candles on your chart.
That's signal of smart money concepts, you can start your analyzation with your trading system that are using imbalance.
I hope this indicator help you to trade more effectively.
Imbalance zonesImbalance, this is a zone / gap created when the price move with force in a given direction. It identify a zone where the price could. potentially go back. This gives perfect targets for your trades.
This indicator is created to find the imbalances when a market exchange receives too many of one kind of order—buy, sell, limit—and not enough of the order's counterpoint and price shoots up or down and it left with unfilled orders. If you know how to trade the imbalances, this indicator can help you by find imbalances automatically.
Imbalance-BCYellow Candles show imbalances in prices. Imbalances are formed when there is excessive buyers or sellers in a given direction i.e demand and supply exceeding each other. Smart Money ( aka banks and institutions create these explosive moves hence forming imbalances and are a great point of interest). Imbalances are always filled by large intuitions and are future areas where the prices could reverse back and could be great entry points.
Imbalance and OB finder by CryptdozMark all imbalances and key Order Blocks - automatically eliminates OB that have been mitigated and keep only those which are still unmitigated on various Time Frames. Makes its easy to see key area where the price may swing !
[TehThomas] - ICT Volume ImbalanceThis script is a Volume Imbalance (VI) detector and visualizer for use on the TradingView platform. The goal of the script is to automatically identify areas where there are significant imbalances in the volume of trades between consecutive candlesticks and visually highlight these areas. These imbalances can provide traders with valuable insights about the market’s current condition, often signaling potential reversal or continuation points based on price and volume action.
ICT (Inner Circle Trader) Concept of Volume Imbalances
Volume imbalances are a critical concept in the ICT trading methodology. They refer to situations where there is an unusual or significant difference in volume between two consecutive candlesticks, which might indicate institutional or large player activity. According to ICT principles, these imbalances can show us areas of market inefficiency or potential price manipulation. By identifying these imbalances, traders can gain an edge in understanding where the market is likely to move next.
Bullish and Bearish Volume Imbalances:
Bullish Volume Imbalance: This occurs when there is a strong increase in buying pressure, typically indicated by a higher volume on a candle that closes significantly above the previous one, often leaving a gap or larger price movement. The market could be preparing to push higher, and the volume shows a clear shift in buying demand.
Bearish Volume Imbalance:
Conversely, a bearish imbalance occurs when there is a strong increase in selling pressure, typically signaled by a candle that closes significantly lower than the previous one, again with higher volume. This could indicate that large players are offloading positions, and the price is likely to drop further.
Key Features and Functions of the Script
The script automates the process of detecting these volume imbalances and visually marking them on a price chart. Let’s explore its functionality in detail.
1. Inputs Section
The script allows for significant customization through its input options, which help traders adjust the detection and visualization of volume imbalances based on their individual preferences and trading style. Below are the details:
lookback (250 bars): This input specifies the number of bars (or candles) the script should look back when analyzing the volume imbalance. By setting this to 250, the user is looking at the last 250 bars on the chart to detect any significant volume imbalances. This period is adjustable between 50 to 500 bars.
volumeThreshold (1.0 multiplier): This input helps set the sensitivity for identifying volume imbalances. The script compares the volume of the current candle with the previous one, and if the current volume exceeds the previous volume by this threshold multiplier (in this case, 1.0 means at least equal to the previous volume), then it triggers an imbalance. Users can adjust the multiplier to suit different market conditions.
showBoxes (true/false): This toggle determines whether the boxes representing volume imbalances are drawn on the chart. When enabled, the script visually highlights the imbalances with colored boxes.
fillBaseColor (orange with 80% opacity): This is the color setting for the background of the imbalance boxes. A softer color (like orange with opacity) ensures the imbalance is highlighted without obscuring the price action.
borderColor (gray): The color of the border around the imbalance boxes. This adds a visual distinction to make the imbalance areas more visible.
borderWidth (1 pixel): This controls the width of the box's border to adjust how prominent it appears.
rightOffset (30 bars): This input controls how far the imbalance box extends to the right on the chart. It helps users anticipate the potential continuation of the imbalance beyond the current candle.
allowWickOverlap (true/false): This setting allows imbalances to be identified even if the wicks of the two consecutive candlesticks overlap. If set to false, only imbalances where the bodies of the candlesticks don’t overlap are considered.
showBrokenBoxes (true/false): If enabled, once a volume imbalance no longer holds true (i.e., the price breaks through the box), the box is marked as "broken." If disabled, the box is deleted when the imbalance condition no longer applies.
brokenBoxColor (red): This controls the color of the box when it is broken, which can be used as a visual cue that the imbalance was invalidated or no longer valid for analysis.
2. Volume Imbalance Function
This is the core function of the script, where the logic to detect bullish and bearish volume imbalances is implemented.
Bullish Imbalance Condition:
The first condition checks if the low of the current candle is greater than the high of the previous candle. This suggests that the market is moving upward with buying pressure.
The second condition checks whether the volume of the current candle is higher than the previous candle by the volumeThreshold multiplier. If both conditions are satisfied, a bullish imbalance is detected.
Bearish Imbalance Condition:
The first condition checks if the high of the current candle is lower than the low of the previous candle. This suggests downward price action with selling pressure.
The second condition checks whether the current volume exceeds the previous volume by the threshold
Allow Wick Overlap: If allowWickOverlap is set to true, the script will still detect imbalances if the wicks of the two candles overlap (common in volatile markets). If false, imbalances are only considered if the wicks do not overlap.
3. Box Creation and Management
When a volume imbalance is detected, the script creates a box on the chart:
The bullish imbalance box is drawn using the minimum of the open and close of the current bar as the top boundary and the maximum of the open and close of the previous bar as the bottom boundary.
Conversely, the bearish imbalance box is drawn in reverse, using the maximum of the current bar’s open and close as the top boundary and the minimum of the previous bar’s open and close as the bottom boundary.
Once the box is created, it is displayed on the chart with the specified background color, border color, and width.
4. Processing Existing Boxes
After detecting a new imbalance and drawing a box, the script checks whether the box should still remain on the chart:
If the price moves beyond the boundaries of the imbalance box, the box is marked as broken (if showBrokenBoxes is enabled), and its color is changed to red, signifying that the imbalance is no longer valid.
If the box remains intact (i.e., the price has not broken the defined boundaries), the script keeps the box extended to the right as the market continues to evolve.
5. Removing Outdated Boxes
Lastly, the script removes boxes that are older than the specified lookback period. For example, if a box was created 250 bars ago, it will be deleted after that period. This ensures the chart stays clean and only focuses on relevant imbalances.
Why This Script is Useful for Traders
This script is extremely valuable for traders, especially those following the ICT methodology, because it automates the process of detecting market inefficiencies or imbalances that might signal future price action. Here’s why it’s particularly useful:
Identifying Key Areas of Interest: Volume imbalances often point to areas where institutional or large-scale traders have entered the market. These areas could provide clues about the next significant move in the market.
Visualizing Market Structure: By automatically drawing boxes around volume imbalances, the script helps traders visually identify potential areas of support, resistance, or turning points, enabling them to make informed trading decisions.
Time Efficiency: Instead of manually analyzing each candlestick and volume spike, this script does the heavy lifting, saving traders valuable time and allowing them to focus on other aspects of their strategy.
Enhanced Trade Entries and Exits: By understanding where volume imbalances are occurring, traders can time their entries (buying during bullish imbalances and selling during bearish ones) and exits (as imbalances break) more effectively, thus improving their chances of success.
Conclusion
In summary, this script is a powerful tool for traders looking to implement volume imbalance strategies based on the ICT methodology. It automates the identification and visualization of significant imbalances in price and volume, offering traders a clear visual representation of potential market turning points. By customizing the settings, traders can tailor the script to their preferred timeframes and sensitivity, making it a flexible and effective tool for any trading strategy.
__________________________________________
Thanks for your support!
If you found this idea helpful or learned something new, drop a like 👍 and leave a comment, I’d love to hear your thoughts! 🚀
Make sure to follow me for more price action insights, free indicators, and trading guides. Let’s grow and trade smarter together! 📈
Professional Zones - Institutional Demand and Supply Imbalances
Intro to Supply and Demand Zone Technical Analysis
Supply and demand is an increasingly common strategy among day and swing traders in equity, forex, and the futures markets. The goal of analyzing supply and demand zones is to pre-determine where price action may pivot before that pivot happens, thus giving us an edge over the market. There are many unique charting/trading strategies that fit under the supply and demand umbrella, however we are going to focus primarily on Institutional Zones of Demand and Supply Imbalances, as this is what our TradingView indicator actively displays.
What are Institutional Zones of Demand and Supply Imbalances?
First, let’s break down the phrase above. The first word is ‘institutional’, which is a key aspect in our trading. As a retail trader, you must understand that retail traders (individual traders like you and I) have very little control and very little effect on price action in the major markets. The price action that we see everyday is caused by large institutions and hedge funds buying and selling equities in massive quantities.
This chart displays the price action for ES, which is the S&P500 E-mini futures .
At the time this guide was created, that chart for ES displays the low of this year (2022). You can see major highs and major lows, as well as steep drops and momentous runs.
Price action like this appears random to the naked eye, however it is all controlled by major institutions. These institutions place large buy and sell orders for markets such as the S&P 500 Index which causes these moves.
Our Institutional Demand and Supply Analysis attempts to discover the price zones where institutions have placed their buy/sell orders. Their buy orders create “demand zones”. And their sell orders create “supply zones”. Knowing where these zones exist allows us to anticipate price trend reversals so we can profitably participate in them alongside the major institutions when these key moves take place.
We are looking for areas in the chart where institutions have created major imbalances (more buy orders than sell orders or vice versa) which creates demand and supply zones that impact price action and trend reversals in predictable ways.
What Causes These Supply and Demand Zones?
Understanding that institutions control the price of the markets is crucial for understanding how these zones of supply and demand imbalances are formed, and it can be derived from historical price action.
There are two types of price action, balanced and imbalanced. Balanced price action is flat, consolidatory price action where the overall direction is sideways. Imbalanced price action is an exaggerated move in price either up or down. Now here is the key: institutional supply and demand imbalances are formed when price action goes from balanced to imbalanced. Below is an example of balanced price action .
There are clearly areas of institutional buy and sell orders that are causing price action to oscillate between the areas of demand and supply. The longer price action consolidates and moves sideways, the larger the volume profile will be in this range. In other words, more institutional orders will build up as price remains relatively the same for a longer period of time.
Here is how a demand zone is formed :
Due to bullish CPI news, price action went from balanced to imbalanced by exploding to the upside. This bullish price action filled all of the sell orders and broke past the previous area of supply. Because price moved up so fast, the buy orders did not get a chance to fill, essentially leaving an area with a high concentration of buy orders remaining. Hence, a new demand zone is formed which is shown here .
Our state-of-the-art indicator automatically scans for these historical shifts in price action (balanced to imbalanced) via our supply and demand zone detection formula, and displays them on your chart instantly. Remember the first image sent of blank price action? Here it is below:
The image below shows the exact same chart of ES, however, our advanced Professional Zones - Institutional Demand and Supply Imbalances indicator has been applied to the chart.
Just like that, price action has been transformed from unexplainable chaos to an orderly sequence of demand bounces and supply rejections.
Yes, all of these zones may be charted manually if one were to acquire the knowledge required to chart them by hand, and spend numerous hours going back in time to find all these zones. Additionally, these charts would then have to be constantly monitored and updated, which would require hours of work each day. This powerful indicator automates all of that work to give you more precious time to analyze and trade these zone-driven pivots in the markets.
How To Measure the Strength of Supply and Demand Zones?
The longer the consolidation takes place, the larger the demand/ supply zone will be. This strength is measured by the time frame of the origin of the zone.
Each zone may be formed on a different time frame, the biggest being the 1 Month time frame, and the smallest being the 30 Minute. Each supply and demand zone is automatically labeled based on the time frame from which the zone originated.
The weakest zones are derived from the 30 minute time frame. This means the zone only took two 30 minute candles to form, which is not a lot of time for institutions to place large orders. This means that the bounces and rejections off of these zones will usually be smaller, and usually won’t last more than a few days.
Larger zones such as 1 Day, 1 Week, and 1 Month often cause large swings in the market lasting weeks, months and even years. So pay attention not just to where the demand and supply zones currently appear, but also to the strength of that zone. You can see below that the demand zone that the market bottomed in and reversed out of in 2022 was in fact, a very strong weekly zone.
What is the Significance of Supply and Demand Zone Breaks?
These zones are order-based. This means that a supply zone level doesn’t turn into demand when price action breaks above it, and demand doesn’t turn into supply when price action breaks below it. It is unlike standard trend-based support and resistance levels. If price action breaks below demand by even $0. 01 , all of the buy orders have been filled and the demand must be deleted from the chart (and vice versa for a supply zone ).
While it is possible to play these zone breaks as continuation plays off of current momentous price action, it is unpredictable how far price will go up or down after breaking supply or demand during that leg.
However, in my years of supply and demand experience, I have noticed that if demand breaks, the market will eventually come down to the next viable demand zone . This is because without a pivot caused by an institutional-created demand or supply imbalance, there is often not enough participation to cause a sustainable trend reversal for a long period of time. Below is an example of this:
Above is the 4 Hour chart of TSLA bouncing up off of a demand zone . We call this a bounce in “no man's land”, as there is no major demand bounce to support this reversal to the upside. So in theory, price action should return lower to the next major historical zone of demand before it has a chance of pulling off a solid reversal. Here is what happened:
As you can see above, TSLA did indeed end up heading back down into the next major demand zone before getting a sustainable reversal to the upside. So you may play these supply and demand zone breaks as continuation trades, either long or short, with a price target at the next major zone. Just make sure to use proper risk management and position sizing, as timing the trigger of a price target can be difficult.
How Might I Place a Trade Using the Indicator?
Now that the basics of institutional supply and demand zones have been discussed, there will come a time that this strategy must be actively applied to personal trading with a goal of becoming profitable. Here is a step-by-step process to place a trade using supply and demand paired with an example of a day trade from the 1 minute time frame.
Step 1: Find a highly institutionally traded stock that is currently in supply or demand as shown by our indicator. For example, AAPL:
Step 2: Look for an above-average (exaggerated) volume spike. Because we are in one of the green zones at the bottom of the chart, we know that we are in demand where large institutional buy orders reside. We need to wait for some of these orders to actually fill before we take our trade. This is known as volume confirmation. The color of the volume usually does not matter in this situation.
Step 3: Now that we have a volume spike which is confirmation of large orders being filled, we need more confirmation that the institutional orders are not only a buy, but large enough to actually reverse the current trend.
This is ultimately a judgment call. A few green candles may be good enough to dictate a reversal, or a trend break. It comes down to personal preference and how aggressive you would like to be. Keep in mind, the longer you wait, the more confirmation your trade has, but also, the longer you wait, the greater the risk of missing the new trend. In this example, we will use a trend line to confirm our trend reversal.
Step 4: Enter the trade. Now that you have proper demand confirmation, you may place your trade. Be sure to determine your stop loss, price target, position size, and all other risk management factors along the way.
In this example, AAPL ran all the way up to supply before rejecting; making for a perfect demand to supply call trade. Also, more short trade entries could have been taken based off of the multiple supply rejections AAPL had.
The Bottom Line
There are many ways one may go about trading the stock market. However in my years of trading and teaching, there has never been a strategy that has not only changed my career, but improved the trading careers of my students, more dramatically than Institutional Zones of Demand and Supply Imbalances.
Though charting new zones and deleting broken ones everyday was time consuming and repetitive, the results of trading these zones made it well-worth the hours of charting. However, after months of development and fine-tuning, the painful charting process has been automated by this powerful indicator, completely replacing the tedious charting work for myself and my students.
While numerous other indicators include the name “Supply and Demand Zones”, we believe that no supply and demand indicator remotely this advanced and accurate available on TradingView. I am very blessed to finally bring this revolutionary tool to the market.
Introduction to the Aurora Demand and Supply Indicator for TradingView and its Functionality
This page is dedicated to providing a thorough walk-through of our Professional Zones - Institutional Demand and Supply Imbalances indicator. The settings functionality, customizability, and purpose will be discussed to give you an in-depth understanding of the indicator. Understanding the purpose of the different functions and settings is crucial to utilizing this powerful tool at its full potential.
First Look Upon Indicator Addition
After purchasing the indicator, your chart may initially appear cluttered, zoomed out, and hard to read. But do not worry, it just means the indicator settings must be fine-tuned to optimize your experience. Tt may appear overwhelming. However this page will discuss each major customizable setting and the functionality behind it to streamline your TradingView set up.
Filter Options Settings Category
This is the first customizable feature that appears when accessing the settings of the indicator. What Filter Zone Ranges does is allow you to filter the range at which zones appear both above and below the current asset price. With this setting unchecked, every single demand and supply zone within the 5k candle limit (or 20k limit if you have a premium TradingView account) will appear on your chart. This causes chart clutter which limits the visibility of price action.
If you have this setting activated, you can choose exactly the range of zones visible to you. This range is percent based and is measured both above and below the current market price. For example, if you activate Filter Zone Ranges and set the Filter Percentage at 7%, only zones within the range of 7% above, and 7% below the current asset price will be shown.
Demand/ Supply Zone Options Settings Category
The next two categories contain the majority of the customizability for supply and demand zones. The first option in both the Demand/ Supply Zone Options is Create Demand/Supply Zones. This toggle is very straight forward, you may choose whether or not to display all demand zones, or all supply zones.
The next two options are Demand/ Supply Zone Border and Demand/ Supply Zone Fill. Again, these are straight forward. The border setting allows you to edit both the color and opacity of the zones’ border lines. The fill setting allows you to edit the color and opacity of the interior of the supply/demand boxes.
Following the first pair of visual settings, you will see Demand/ Supply Zone Box Offset. This allows you to toggle how much the indicator offsets each zone from its origin point. In other words, move it to the left or right from the point in time at which the zone was created. The 0 offset is the base setting which is actually a slight offset to the right of the origin point to ensure that the candlesticks remain unobstructed visually.
After the offset options, you will find Demand/ Supply Zone ERC Multiple. This is a key setting which inputs the value our formula utilizes to scan the areas of institutional supply and demand imbalances. Unless you are extremely experienced with supply and demand analysis or you are running backtesting, it is highly recommended this value is left at ‘2’ for both the demand and supply options.
The next two options you will see in your indicator settings are Extend Demand/ Supply Zone and Demand/ Supply Zone Size. This feature allows you to customize exactly how far your zones will extend from the point of origin into the future.
The three options on the drop down menu are Extend, Fixed, and Dynamic. Each of these options extend your zones in a different fashion. It is important to note that the value inputted in the size option is the amount of units the zones will extend to the right for both Fixed and Dynamic options. The larger this input is, the further out the zones will extend into the future, and vice versa.
The final setting in the Demand/ Supply Zone Options category is Broken Zones to Keep and Broken Demand/ Supply Zone Fill. The Broken Zones to Keep input allows you to see recent supply or demand zones that have been broken and deleted from your chart. This may be useful for a trader in a few different ways. The Broken Demand/ Supply Zone Fill setting allows you to customize the number of broken zones displayed as well as their color and opacity. The most prominent example of this option’s utility is for traders that do not observe price action during the entirety of the market open.
If an individual left their charts for a few hours and missed a demand break, it may give the illusion that there was never a demand there and price action has been in “no-man's land” all day. However if that individual inputted ‘1’ in the Broken Zones to Keep setting, they would be able to see that a demand has broken. This may be useful as the trader may have an altered sentiment after knowing that a zone did in fact break.
Note: the value inputted is the amount of previously broken zones that will appear on your chart. For example, if the value ‘3’ is inputted, the three most recently broken zones will appear on your chart.
Time Frame Options Settings Category
Time Frame Options Settings allows you to toggle which supply and demand zones appear on your chart by time frame. For example, if you are analyzing a chart on a larger time frame such as the daily or weekly, the small 30 minute and 45 minute zones will often clutter your chart. By deselecting the weaker and smaller time frame zones, it will clean your chart up, allowing you to only see the zones that assist your analysis.
However the first two options in the category are unique.The first is Show Forming Zones. This option is extremely useful if you are watching price action play out live, when seeing the possibility of a supply or demand zone forming may be of benefit during your day trading. By toggling this setting ON, you will see all possible supply and demand zones forming in real time. However, this could cause clutter if multiple zones are forming at once in which case, toggling it off may be more beneficial.
The second option in the Timeframe Options category is the Show Zones Inside toggle, which controls the table at the top right of your screen (you may get rid of this table by deselecting tables in display settings).
This setting simply is a “yes” or “no” as to whether or not the table located at the top right of your screen will display the number of zones price action is currently sitting in. This setting is useful as zones may sometimes pile up on top of one another, making it hard to know exactly how many zones price action is currently sitting in.
Gap Options Settings Category
Just below the Timeframe Options category, is the Gap Options category. Gaps appear when two daily candles highs and lows do not overlap. These are often created when a catalyst is released into the market overnight causing a large move, resulting in a “gap” up or down the next morning.
A Gap often forms due to a strong move to the upside, and the indicator highlights this gap with a gray box. Gaps are important to many traders as there is often a large lack of liquidity inside the gap area, which often acts as a magnet that attracts future price action to fill it. If toggled on, the indicator displays the gap among the supply and demand zones seamlessly. The rest of the settings for this category are options to customize the color, opacity, size, and offset. These have the same effect as the options in the Demand/ Supply Zone Options category.
Text Options Settings Category
The final category in the indicator input settings is Text Options. This category allows you to toggle zone labeling on or off, and to specify how you would like the zone labels to appear. It’s strongly recommended that zone labeling is left ON because knowing the time frame a supply or demand zone originated from is a massive indicator of its strength. Top right alignment causes labeling such as “3H” to appear at the top right of each zone.
Indicator Data Limitations
There are a few limitations of TradingView which impact the Professional Zones - Institutional Supply and Demand Imbalances indicator. The first is the data TradingView provides to its users. With a basic TradingView account, a user only has access to 5,000 candles of data. So if a user is on the 1 minute time frame, that user can only see 5,000 candles before that current point. This is important because our advanced indicator scans historical price action that has formed supply and demand zones and displays it on your chart. This means that if a user is on a 1 minute time frame chart, they will only be able to see zones formed within the last 5,000 candles. Older supply and demand zones can not be displayed. However if a user has the Premium TradingView subscription, they can access up to 20,000 candles, which greatly increases the potential zones the user may see on the smaller time frames.
To counter this, we strongly recommend checking the larger time frames before starting your trading day, as there could be an old zone lurking behind the scenes. Once you spot it on the 30 minute time frame, for example, you may easily take note of the demand zone and its location.
The Bottom Line
This indicator has been intricately and powerfully designed to not only display institutional supply and demand imbalances more accurately and efficiently than any other TradingView indicator, but it has also been designed to give the user full control. Full control means the user has the ability to customize the appearance and inputs, as well as toggle specific objects visible to the trader.
We have meticulously designed the Professional Zones - Institutional Supply and Demand Imbalances indicator to be extremely valuable as a stand-alone strategy, as well as versatile enough to incorporate multiple other trading strategies on top of supply and demand .
However, in order for this indicator to be utilized by you at its full potential, it is important that you understand all of its features, capabilities and configuration options before you dive into trading.
Premium Imbalance FinderIntroducing the Premium Imbalances Indicator, a powerful tool designed help traders identify and analyze market imbalances. This advanced indicator offers a comprehensive suite of features to enhance your trading experience and provide valuable insights into market dynamics.
Key Features:
Fair Value Gap (FVG): Identify price ranges where the market has not achieved fair value, indicating potential imbalances and trading opportunities.
Balanced Price Range (BPR): Visualize price ranges where the market has found a balance between supply and demand.
Volume Imbalance: Detect areas of significant volume imbalance, highlighting the absence of body volume and potential market inefficiencies.
Opening Gap: Identify un-offered price ranges at the opening of a trading session, providing insights into potential market direction.
Customizable Display: Adjust the display limit to control the number of imbalance boxes visible on the chart, ensuring a clutter-free and focused view.
Mitigation Analysis: Set a mitigation level to determine when an imbalance has been mitigated and track the percentage of mitigation for each imbalance.
Higher Timeframe Analysis: Enable the HTF Imbalance feature to analyze imbalances on higher timeframes, providing a broader perspective on market structure.
Customizable Appearance: Personalize the colors of imbalance boxes, premium zones, and mid-lines to suit your visual preferences and easily distinguish between bullish and bearish imbalances.
Flexible Imbalance Extension: Choose between custom, current, or extended imbalance box display to adapt to your trading style and analysis requirements.
Detailed Tooltips: Hover over imbalance labels to view the percentage of mitigation for each imbalance, providing quick and easy access to crucial information.
The Premium Imbalances Indicator is suitable for traders of all levels, from beginners to experienced professionals, and can be used across various markets and timeframes.
By utilizing this powerful tool, traders can gain a deeper understanding of market dynamics, identify potential trading opportunities, and make more informed decisions based on the analysis of imbalances. The indicator's customizable features and detailed insights make it an essential addition to any trader's toolkit.
Simple FVGSimple FVG - Fair Value Gap Indicator
Overview:
The "Simple FVG" script is designed for use with TradingView to identify and visually display Fair Value Gaps (FVG) on a trading chart. This indicator highlights both bullish and bearish imbalances based on specific candlestick patterns, helping traders to quickly identify potential trading opportunities.
Key Features:
Bullish and Bearish Imbalances:
Bullish Imbalances: This script identifies bullish imbalances where the price exhibits a gap upward. The conditions for detecting a bullish imbalance are:
The high of the second candle is greater than the high of the first candle.
The low of the third candle is greater than the high of the first candle.
Bearish Imbalances: This script identifies bearish imbalances where the price exhibits a gap downward. The conditions for detecting a bearish imbalance are:
The low of the second candle is less than the low of the first candle.
The high of the third candle is less than the low of the first candle.
Customizable Display:
Bullish Blocks: Users can toggle the display of bullish imbalance blocks with customizable colors and border settings.
Bearish Blocks: Users can toggle the display of bearish imbalance blocks with customizable colors and border settings.
Color and Border Settings: Adjust the color, border color, and border width of the blocks for both bullish and bearish imbalances according to user preferences.
Visual Representation:
Drawing Blocks: The script draws filled boxes on the chart to represent identified imbalances. These blocks span from the start of the first candlestick to the end of the third candlestick, providing a clear visual indicator of the price gap.
How It Works:
Identification Logic:
The script analyzes three consecutive candles to determine if an imbalance exists.
It compares the highs and lows of these candles to establish bullish or bearish conditions.
Drawing Mechanism:
Once an imbalance condition is met, the script calculates the top and bottom levels of the imbalance block based on the high of the first candle and the low of the third candle for bullish imbalances, and vice versa for bearish imbalances.
It then draws these blocks on the chart using the specified colors and border settings.
Usage Instructions:
Add the Indicator:
Apply the "Simple FVG" indicator to your TradingView chart.
Customize Settings:
Use the input options to enable or disable the display of bullish and bearish blocks.
Adjust the colors and border settings for the imbalance blocks as needed.
Interpret Imbalances:
Look for the drawn blocks to identify potential areas where price imbalances have occurred.
Use this information to inform your trading decisions.
Originality and Value:
The "Simple FVG" script offers a unique approach to visualizing Fair Value Gaps by focusing on specific candlestick patterns. It provides traders with a tool to easily identify and analyze price imbalances, enhancing chart analysis and trading strategy development.
Chart Information:
Ensure to show the complete symbol, timeframe, and script name information on your chart for clarity and reference.
For further details and usage guidelines, refer to the TradingView House Rules.
Note: This script adheres to TradingView's guidelines for originality and usefulness, offering a practical tool for traders seeking to enhance their chart analysis.
This description adheres to TradingView's requirements by providing a detailed explanation of the script's functionality, how it works, and how users can benefit from it.
Uptrick: Imbalance MA Trailing System
### **Overview**
The "Uptrick: Imbalance MA Trailing System" is a complex trading indicator designed to help traders identify potential bullish and bearish imbalances in the market, coupled with a trailing stop mechanism to manage trades. The indicator uses a combination of moving averages, Average True Range (ATR), and custom logic to detect trading signals and plot various levels on the chart to assist traders in making informed decisions.
### **Key Components and Functionality**
#### 1. **Inputs and Configuration**
- **Imbalance Filter (`imbalanceFilter`)**: This input sets the filter for detecting imbalances based on the difference between two price points. The value is a float and can be adjusted to fine-tune the sensitivity of imbalance detection. The default value is `0.0`, with a step size of `0.1`.
- **Moving Average Settings (`maLength1`, `maLength2`, `maColor1`, `maColor2`)**:
- `maLength1` and `maLength2` define the lengths of the two moving averages used in the indicator. By default, they are set to `50` and `200` periods, respectively.
- `maColor1` and `maColor2` specify the colors of these moving averages on the chart. The first MA is colored blue, and the second is red.
- **Take Profit and Stop Loss Settings (`displayTP`, `tpMultiplier`, `tpColor`, `displaySL`, `slMultiplier`, `slColor`)**:
- `displayTP` and `displaySL` are boolean inputs that control whether the TP and SL areas are displayed on the chart.
- `tpMultiplier` and `slMultiplier` are multipliers used to calculate the TP and SL levels relative to the detected imbalance level using the ATR value.
- `tpColor` and `slColor` define the colors of these areas. The TP area is green (with a transparency of 50), and the SL area is red (with a transparency of 50).
- **Trailing Stop Settings (`trailMultiplier`)**: This setting determines the multiplier used to calculate the trailing stop level based on the ATR value. The default multiplier is `2.5`.
- **Style Settings (`bullishColor`, `bearishColor`)**:
- `bullishColor` and `bearishColor` set the colors for bullish and bearish zones created when an imbalance is detected. The bullish zone is green, and the bearish zone is red.
- **Signal Label Size (`labelSizeOption`)**: The size of the signal labels displayed on the chart can be adjusted. The options include `Tiny`, `Small`, `Normal`, `Large`, and `Huge`. The selected size affects the visual prominence of the labels.
#### 2. **ATR Calculation (`atrValue`)**
- The ATR value is calculated using a period of 14, which is a standard setting for measuring market volatility. This value is used extensively throughout the indicator to calculate TP, SL, and trailing stop levels.
#### 3. **Imbalance Detection and Zone Creation**
- The indicator detects potential imbalances in the market by comparing certain price points, using a custom function (`imbalanceCondition`).
- **Bullish Imbalance Detection (`bullishSignal`)**:
- A bullish imbalance is detected when the low of three bars ago is higher than the high of one bar ago, and the current close is above the low of three bars ago.
- Additional conditions include checking that the current close is above the calculated average of the two moving averages (`ma1` and `ma2`), and that the imbalance exceeds the threshold set by the `imbalanceFilter`.
- **Bearish Imbalance Detection (`bearishSignal`)**:
- A bearish imbalance is detected under conditions where the low of one bar ago is higher than the high of three bars ago, and the current close is below the high of three bars ago.
- Like the bullish signal, the close must also be below the average of the two moving averages, and the imbalance must exceed the `imbalanceFilter` threshold.
- Upon detection of an imbalance (either bullish or bearish), the indicator creates a zone using `box.new` that highlights the price range of the imbalance. The box color corresponds to the bullish or bearish nature of the signal.
- The center of the imbalance range is marked with a dashed line, and a corresponding label (`🔴` for bearish and `🟢` for bullish) is placed on the chart to indicate the detected signal.
#### 4. **Take Profit and Stop Loss Calculation (`calculateTPSL`)**
- When an imbalance is detected, the indicator calculates potential TP and SL levels based on the ATR value and the respective multipliers.
- If the TP or SL areas are enabled, the indicator plots these areas as colored boxes on the chart.
- The function also tracks whether these levels are hit by subsequent price action, updating the status (`reached`) as appropriate.
#### 5. **Trailing Stop Logic (`applyTrailingStop`)**
- The trailing stop feature is a dynamic mechanism that adjusts the stop level as the price moves in the trader's favor.
- The trailing stop is calculated using the ATR value multiplied by the `trailMultiplier`.
- If the trailing stop is triggered (i.e., the price crosses the trailing stop level), the indicator marks the trade as stopped out.
#### 6. **Plotting and Visualization**
- The indicator plots the two moving averages on the chart with the specified colors and line width.
- If a trailing stop is active, it plots the trailing stop level on the chart, updating as the stop moves.
- The bar color changes based on the status of the current signal and whether the trailing stop or TP/SL levels have been hit.
### **Detailed Execution Flow**
1. **Initialization**: The indicator initializes several variables, including lines, boxes, and the current signal state. This setup ensures that the script can dynamically update these elements as new price data comes in.
2. **Moving Average Calculation**: The moving averages (`ma1` and `ma2`) are calculated using simple moving average (SMA) functions, which are foundational for many of the indicator's conditions.
3. **Imbalance Detection**: The script evaluates price action to detect potential bullish or bearish imbalances, applying filters based on the user-defined `imbalanceFilter`.
4. **Zone Creation and Labeling**: Upon detecting an imbalance, the script creates visual zones on the chart using the `box.new` function and labels the zones for easy identification.
5. **Take Profit and Stop Loss Logic**: The TP and SL areas are calculated and plotted if the relevant settings are enabled. The script continuously checks if these levels are reached as new bars form.
6. **Trailing Stop Calculation**: The script dynamically adjusts the trailing stop level based on the price movement and ATR value. The trailing stop helps lock in profits as the trade progresses.
7. **Plotting**: The moving averages, trailing stop levels, and bar colors are plotted on the chart, providing a visual representation of the indicator's signals and trade management levels.
8. **Final Checks and Updates**: The script concludes each bar's processing by updating the status of various elements, such as whether levels have been reached or if the trailing stop has been triggered.
### **Conclusion**
The "Uptrick: Imbalance MA Trailing System" is a highly versatile indicator designed for traders who want to identify market imbalances and manage their trades effectively using a combination of moving averages, ATR-based calculations, and custom logic. The indicator offers a wide range of customization options, allowing traders to adjust the sensitivity of imbalance detection, the size of the signal labels, and the visibility of various trade management levels (TP, SL, and trailing stop).
The combination of these features makes it a powerful tool for both novice and experienced traders, providing clear visual cues and robust trade management capabilities directly on the chart.
CandelaCharts - Imbalance Concepts 📝 Overview
Imbalance Concepts is an advanced toolkit rooted in ICT (Inner Circle Trader) principles, specifically designed to identify and highlight critical areas of support and resistance within financial markets. This toolkit focuses on detecting market imbalances that can indicate potential turning points or high-probability zones for price action.
The key components of the toolkit include:
Fair Value Gaps (FVG)
Inversion Fair Value Gaps (IFVG)
Balanced Price Range (BPR)
Volume Imbalances (VI)
Opening Gaps (OG)
The toolkit automatically detects these imbalances and visually marks them on charts, allowing traders to quickly identify key zones for analysis. This enables more informed decision-making, as these imbalances often signal the potential for major market shifts, reversals, or continuation patterns.
By integrating Imbalance Concepts, traders can focus on critical price areas that have a high likelihood of influencing future price action.
📦 Features
The Imbalance Concepts toolkit provides a robust set of features aimed at improving trading accuracy and decision-making. Key features include:
MTF
Mitigation
Consequent Encroachment
Threshold
Hide Overlap
Advanced Styling
⚙️ Settings
Show: Controls whether Imbalances are displayed on the chart.
Show Last: Sets the number of Imbalances you want to display.
Length: Determines the length of each Imbalance.
Mitigation: Highlights when an Imbalance has been touched, using a different color without marking it as invalid.
Timeframe: Specifies the timeframe used to detect Imbalances.
Threshold: Sets the minimum gap size required for Imbalance detection on the chart.
Show Mid-Line: Configures the midpoint line's width and style within the Imbalance. (Consequent Encroachment - CE)
Show Border: Defines the border width and line style of the Imbalance.
Hide Overlap: Removes overlapping Imbalances from view.
Extend: Extends the Imbalance length to the current candle.
Elongate: Fully extend the Imbalance length to the right side of the chart.
⚡️ Showcase
Fair Value Gaps (FVG)
Inversion Fair Value Gaps (IFVG)
Balanced Price Range (BPR)
Volume Imbalances (VI)
Opening Gaps (OG)
📒 Usage
The key components of trading imbalances include:
Step 1 – Identify Market Trend: Begin by determining the market trend for the asset, whether it is bullish or bearish.
Step 2 – Locate Premium and Discount Zones: In a bearish market, focus on identifying the premium Imbalance, while in a bullish market, look for the discount Imbalance.
Step 3 – Detect Liquidity Sweep: After identifying the trend, the next step is to spot a liquidity sweep, which often indicates a potential price reversal or continuation.
Step 4 – Detect Change In State of Delivery: Following the liquidity sweep, the next step is to recognize a CISD, which frequently serves as a confirmation of a potential price reversal.
Step 5 – Execute the Trade: In a bullish market, wait for the price to retrace and test the discount imbalance, aiming to balance the price movement before entering the trade.
NOTES:
You always short only on Premium, and long on Discount.
Fair Value Gaps (FVG)
Inversion Fair Value Gaps
Balanced Price Range
🚨 Alerts
The indicator provides the ability to set alerts for various significant market events related to its core features.
You can configure alerts for the following key events:
Fair Value Gaps Formation (+B/-B)
Inversion Fair Value Gaps Formation (+B/-B)
Balanced Price Range Formation (+B/-B)
Volume Imbalances Formation (+B/-B)
Opening Gaps Formation (+B/-B)
⚠️ Disclaimer
These tools are exclusively available on the TradingView platform.
Our charting tools are intended solely for informational and educational purposes and should not be regarded as financial, investment, or trading advice. They are not designed to predict market movements or offer specific recommendations. Users should be aware that past performance is not indicative of future results and should not rely on these tools for financial decisions. By using these charting tools, the purchaser agrees that the seller and creator hold no responsibility for any decisions made based on information provided by the tools. The purchaser assumes full responsibility and liability for any actions taken and their consequences, including potential financial losses or investment outcomes that may result from the use of these products.
By purchasing, the customer acknowledges and accepts that neither the seller nor the creator is liable for any undesired outcomes stemming from the development, sale, or use of these products. Additionally, the purchaser agrees to indemnify the seller from any liability. If invited through the Friends and Family Program, the purchaser understands that any provided discount code applies only to the initial purchase of Candela's subscription. The purchaser is responsible for canceling or requesting cancellation of their subscription if they choose not to continue at the full retail price. In the event the purchaser no longer wishes to use the products, they must unsubscribe from the membership service, if applicable.
We do not offer reimbursements, refunds, or chargebacks. Once these Terms are accepted at the time of purchase, no reimbursements, refunds, or chargebacks will be issued under any circumstances.
By continuing to use these charting tools, the user confirms their understanding and acceptance of these Terms as outlined in this disclaimer.






















