Order-Block Detector ICT/SMT + FVG + Signals

veegee82 Updated   

This script shows order-blocks (OB) and fair-value-gaps (FVG). Additionaly there are entry signals for OB and FVG. The Dist-Parameter tell how many candles should exist between the beginning of the OB or FVG and the pullback.


An order block in trading typically refers to a significant grouping of buy or sell orders at a particular price level within a financial market. These blocks of orders can influence price movement when they are executed. Here's a breakdown:

Buy Order Block: This occurs when there's a large concentration of buy orders at a specific price level. It indicates a significant interest among traders to purchase the asset if the price reaches that level.

Sell Order Block: Conversely, a sell order block happens when there's a notable accumulation of sell orders at a particular price level. This suggests that many traders are willing to sell the asset if the price reaches that level.

Impact on Price: Order blocks can influence price movement because when the market approaches these levels, the orders within the block may be triggered, leading to increased buying or selling pressure, depending on the type of block. This surge in trading activity can cause the price to either bounce off the level or break through it.

Support and Resistance: Order blocks are often associated with support and resistance levels. A buy order block may act as support, preventing the price from falling further, while a sell order block may serve as resistance, hindering upward price movement.


The fair value gap in trading refers to the difference between the current market price of an asset and its calculated fair value. This concept is often used in financial markets, especially in the context of stocks and other securities. Here's a breakdown:

Market Price: The market price is the price at which an asset is currently trading in the market. It is determined by the interaction of supply and demand forces, as well as various other factors such as news, sentiment, and economic conditions.

Fair Value: Fair value represents the estimated intrinsic value of an asset based on fundamental analysis, which includes factors such as earnings, dividends, cash flow, growth prospects, and prevailing interest rates. It's essentially what an asset should be worth based on its fundamentals.

Fair Value Calculation: Analysts and investors use various methods to calculate the fair value of an asset. Common approaches include discounted cash flow (DCF) analysis, comparable company analysis (CCA), and dividend discount models (DDM), among others.

Fair Value Gap: The fair value gap is the numerical difference between the calculated fair value of an asset and its current market price. If the market price is higher than the fair value, it suggests that the asset may be overvalued. Conversely, if the market price is lower than the fair value, it indicates that the asset may be undervalued.

Trading Implications: Traders and investors often pay attention to the fair value gap to identify potential trading opportunities. If the market price deviates significantly from the fair value, it may present opportunities to buy or sell the asset with the expectation that the market price will eventually converge towards its fair value.
Release Notes:
change image
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?