OPEN-SOURCE SCRIPT

ICT Setup 05 [TradingFinder] Liquidity Sweep & OB Retest

7 659
🔵Introduction

Liquidity sweeps are one of those things traders see all the time, but they are easy to misread when viewed on their own. Price can run above a previous high or below a previous low, grab liquidity, and still continue in the same direction. What matters is what happens after the sweep. This indicator was built around that idea, using Liquidity Sweeps, CHoCH, Order Blocks, and OB Retests as parts of one complete setup instead of treating them as separate signals.

The setup starts from the New York Opening Range. Its high and low act as important liquidity references, and the indicator watches for price to sweep either Buy-Side Liquidity (BSL) or Sell-Side Liquidity (SSL).

快照

After that sweep, it waits for a clear change in structure before considering the move valid. This helps separate a simple liquidity grab from a more meaningful shift in market direction.
Once a CHoCH is confirmed, the script identifies the relevant Demand or Supply Order Block and waits for price to come back into that area. The BUY or SELL signal does not appear just because an Order Block exists. Price first has to retest the zone and then show a directional reaction back out of it.

In practice, the full idea is simple:
  1. Liquidity Sweep
  2. CHoCH
  3. Order Block
  4. Retest
  5. Reaction.


The indicator also marks Imbalance / Fair Value Gap (FVG) areas that appear after the structural shift. These zones are there to give more context to the move and make displacement easier to read, while the actual trading signal still comes from the Order Block retest and reaction. The result is a cleaner way to follow an ICT-style setup without having to manually connect every Liquidity Sweep, CHoCH, Order Block, Imbalance, and Retest on the chart.



🔵How to Use

This indicator is designed to be read as a sequence, not as a collection of independent signals. The Liquidity Sweep, CHoCH, Order Block, Imbalance, and BUY/SELL marker are all showing different stages of the same setup. The main idea is to first see liquidity taken from one side of the New York Opening Range, then wait for price structure to shift, and only after that look for a reaction from the Order Block.

The indicator tracks the New York Opening Range from 08:00 to 09:30 New York time and then looks for setups during the 09:30 to 17:00 trading session. The Opening Range high acts as the Buy-Side Liquidity reference, while the Opening Range low acts as the Sell-Side Liquidity reference. A sweep by itself is not considered an entry. The setup only develops further if price confirms a structural change after that liquidity event.


🟣Buy Setup

The bullish setup is the mirror image of the bearish sequence. It begins when price trades below the low of the New York Opening Range and takes Sell-Side Liquidity (SSL). The Opening Range low is treated as the liquidity reference, and when price moves below it, the SSL sweep is marked on the chart. Again, this sweep should not be read as a BUY signal by itself. It only tells the trader that liquidity below the range has been taken and that a potential bullish setup can now develop.

After the SSL sweep, the indicator starts looking for the opposite reaction in structure. It searches backward for a bullish candle body and uses the surrounding opening prices to define the bullish structural confirmation level. This level becomes the point price must reclaim before the liquidity sweep is treated as part of a valid bullish reversal sequence.

快照

The bullish CHoCH is confirmed when price closes above that calculated structure level within the active life of the setup. Once this happens, the indicator marks the structural change on the chart. The important idea here is that the BUY setup does not assume that every move below the Opening Range low is a reversal. Price must first show that buyers have regained enough control to break the relevant structure.

After the bullish CHoCH, the indicator identifies and refines a Demand Order Block connected to the move. This becomes the main area to watch for the next stage of the setup. Instead of chasing price immediately after the structure break, the logic waits to see whether price returns to the Demand Order Block.

When price comes back into the Demand Order Block, the indicator records the retest. At this point, there is still no automatic BUY signal. A retest is only meaningful if price can actually respond from the zone.

The bullish confirmation requires price to print a bullish candle, close above the upper boundary of the Demand Order Block, and finish strongly enough within the candle's own range. This means the reaction needs to show that price has not simply touched the zone but has actually moved back out of it with bullish intent. As with the bearish side, Signal Mode controls how strict this confirmation needs to be.

快照

The complete bullish sequence can therefore be read as:
  1. SSL Sweep
  2. Bullish CHoCH
  3. Demand Order Block
  4. OB Retest
  5. Bullish Reaction
  6. BUY


The Demand Order Block is invalidated if price closes below its lower boundary before the required reaction appears. The reaction also has a limited confirmation window after the first retest, so the script does not keep waiting indefinitely for a late bullish candle after price has already spent too much time around the zone.

A bullish Imbalance / FVG may also appear after the CHoCH when price creates sufficient displacement and leaves an inefficiency between candles. This can provide useful visual context for the strength of the bullish move, especially when the Imbalance and Demand Order Block are located close to each other. However, the Imbalance should be treated as additional context rather than a mandatory entry condition. The BUY signal itself is generated from the confirmed reaction after the Demand Order Block retest.

The easiest way to read the indicator is therefore to avoid starting from the BUY or SELL marker. Start from the liquidity event and follow the setup forward. When the Sweep, CHoCH, Order Block, Retest, and reaction all belong to the same sequence, the chart becomes much easier to understand and the final signal has clear structural context behind it.


🟣Sell Setup

A bearish setup starts when price trades above the high of the New York Opening Range. This area is treated as Buy-Side Liquidity (BSL) because stops and breakout orders often accumulate above an established high. When price moves above this level, the indicator marks the BSL sweep on the chart. Importantly, the script is looking for the first side of the Opening Range to be taken. If both sides have already been swept, that event is not treated in the same way as the initial one-sided liquidity sweep.

The BSL sweep is only the beginning of the setup. Price moving above the Opening Range high does not automatically mean that a reversal is coming, and the indicator does not issue a SELL signal at this point. Instead, it starts looking for evidence that the bullish move has lost control and that bearish order flow is beginning to appear.

快照

After the BSL sweep, the script searches backward through recent candles to locate the structural reference used for bearish confirmation. In the current logic, it looks for a bearish candle body and builds the confirmation level from the nearby opening prices around that structure. This level is then monitored as the point price must break to confirm the shift.
The next important event is the CHoCH. For the bearish setup, price must close below the calculated bearish structure level while the setup is still valid. When that happens, the indicator marks the CHoCH on the chart.

This is the point where the setup moves from a simple liquidity sweep into a confirmed bearish structural shift. If price does not confirm the break within the allowed life of the setup, the armed condition expires instead of remaining active indefinitely.

Once the bearish CHoCH is confirmed, the indicator identifies the relevant Supply Order Block associated with that move. The Order Block is refined before being displayed, so the highlighted zone represents the area the script considers most relevant for a potential bearish reaction rather than simply marking an entire candle without refinement.

From this point, the trader is no longer waiting for another structure break. The focus shifts to the Order Block Retest. The Supply Order Block remains active while price stays within its validity conditions. If price later returns into the block, the indicator records that first interaction as the retest.

A touch of the Order Block alone still does not produce a SELL signal. This distinction is important because price can enter an Order Block, remain inside it, or continue through it without producing a meaningful reaction. The script therefore waits for a bearish response after the retest.

For a bearish signal, price must produce a bearish candle and close back below the lower boundary of the Supply Order Block. The candle must also close sufficiently toward the lower portion of its own range. This additional close-location requirement is used to avoid treating weak or indecisive candles as confirmed bearish reactions. The exact strictness changes with the selected Signal Mode. When these conditions are satisfied, the indicator prints the SELL marker.

快照

At that stage, the full bearish sequence has been completed:
  1. BSL Sweep
  2. Bearish CHoCH
  3. Supply Order Block
  4. OB Retest
  5. Bearish Reaction
  6. SELL


The Order Block can also become invalid before producing a signal. For a Supply Order Block, a close above the top of the zone invalidates it. The block also has a maximum lifetime of 1000 bars from its origin, so very old zones are not allowed to remain active indefinitely and generate late signals far away from the original setup.

The chart may also show a bearish Imbalance after the CHoCH. This happens when the move creates the required three-candle Fair Value Gap structure together with sufficient displacement. The Imbalance can help visually confirm that the structural shift was accompanied by aggressive price movement, but it is not required for the SELL marker itself. The actual signal is still based on the Supply Order Block retest and the bearish reaction from that zone.


🔵Settings

Signal Mode: Controls how selective the setup is. More Signals uses wider confirmation windows and looser reaction requirements to capture more setups. Balanced provides a middle ground between signal frequency and confirmation quality. High Quality applies stricter confirmation conditions, shorter setup windows, stronger displacement requirements, and cancels an active setup when the opposite side of the Opening Range is swept.

Show Pattern: Shows or hides the structural elements of the setup, including the BSL/SSL liquidity levels and CHoCH markers. Turning it off keeps the underlying logic active while reducing visual information on the chart.

Show Signals: Shows or hides the BUY and SELL markers generated after a confirmed Order Block retest and reaction. The signal logic itself remains active even when the markers are hidden.

Order Block: Changes the colors used for bullish Demand Order Blocks and bearish Supply Order Blocks. These zones represent the refined areas monitored for a potential price retest and reaction.

Imbalance: Controls the colors of bullish and bearish Imbalance areas. These zones are displayed as additional context after the structural shift and do not directly control the BUY or SELL signal.

Show Opening Range: Displays the New York Opening Range high and low on the chart. These levels are calculated from the 08:00–09:30 New York session and are used as the main liquidity references for the setup.

Alert: Enables or disables automatic BUY and SELL alerts generated by the indicator. When enabled, the script can notify the trader when a confirmed bullish or bearish signal is completed.

🔵Conclusion

The ICT Setup 05 [TradingFinder] Liquidity Sweep & OB Retest indicator is built to connect several ICT and Smart Money Concepts into one readable sequence. Instead of treating a Liquidity Sweep, CHoCH, Order Block, Imbalance, and Retest as separate events, it shows how they can develop together around the New York Opening Range and form a complete setup from liquidity grab to reaction.

Its main purpose is to make the structure behind BUY and SELL signals easier to read directly on the chart. By waiting for a Liquidity Sweep, structural confirmation, a refined Order Block, and then a valid retest and reaction, the indicator helps traders focus on context rather than isolated signals. Imbalance zones add another layer of visual information, while the final signal remains centered on the confirmed Order Block reaction.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。