OPEN-SOURCE SCRIPT
The Deceit Signature

The Deceit Signature
WHAT IT IS
The Deceit Signature is a pattern-recognition tool built around a recurring market behavior: a tight range breaks sharply in one direction, only to reverse just as sharply moments later, sweeping the liquidity resting near a prior swing point before the market shows its real direction. This is the same mechanic behind concepts like the ICT "Judas Swing" or Wyckoff's spring/upthrust: a false move designed to trap traders on the wrong side before the actual move develops.
This indicator automates the detection of that sequence and marks it directly on the chart, so it can be studied and monitored without having to spot it manually candle by candle.
WHAT IT DOES
On every closed bar, the indicator looks for the following sequence:
- A range: price consolidates within a band narrow enough relative to the ATR to qualify as a tight range.
- A first sharp break: a strong candle (measured against the ATR) closes beyond one edge of the range. This is the fakeout, the move designed to trap traders positioning in that direction.
- A second sharp break, in the opposite direction, within a configurable number of bars. This is the move that confirms the first one was a trap, and it is the move that goes looking for liquidity.
- A liquidity box: once the second break is confirmed, the script looks back for the two most recent swing pivots on the side opposite to the first break (below the range for a bullish fakeout, above it for a bearish one) and draws a box between them. This is the zone where price is expected to sweep resting liquidity before reversing back in the direction of the original fakeout.
- A touch marker: once price trades back into that liquidity box, a small triangle marks the candle that touched it, and the box is automatically removed a configurable number of bars later, keeping the chart clean while still leaving the range and both breaks visible for reference.
Breaks caused by a price gap (no overlap with the previous candle) are ignored. The pattern only counts when the move happens through actual trading, not through a jump in price with nothing traded in between.
HOW TO USE IT
Add the indicator to any chart, on any timeframe. When the full sequence is detected, it draws the range box, labels both breaks ("Break 1 (fakeout)" and "Break 2 (liquidity grab)"), and plots the liquidity box for that setup. An alert condition is available to notify you as soon as a first break occurs, so you can start watching for the confirming second break, and a general alert fires when the full pattern is confirmed.
This is a visual and analytical tool for identifying the pattern, not an automated entry system. What you do once the liquidity box is drawn, and once price reacts inside it, is a separate decision that requires its own judgment and risk management.
HOW TO CONFIGURE IT
Range group: "Bars to measure the range" sets how many bars are checked for tightness, and "Maximum range width (x ATR)" sets how narrow that range must be relative to the ATR to qualify as a valid consolidation.
Sharp Breaks group: "ATR period" sets the ATR length used throughout the script. "Minimum strength of the breakout candle (x ATR)" sets how large a candle's range must be, relative to the ATR, to count as a sharp break. "Max bars between 1st and 2nd break" sets the window in which the second break must appear for the pattern to be confirmed; if it doesn't arrive in time, the setup is discarded.
Pivots / Liquidity Box group: "Left bars" and "Right bars for pivot" control the swing pivot detection used to build the liquidity box. "Minimum distance from pivot to range edge (x ATR)" filters out minor pivots sitting too close to the range itself, forcing the script to look further back for a pivot that represents an actual separate swing.
Visual group: toggles for the range box and the liquidity box, colors for bullish and bearish setups, and how many bars to wait after the liquidity box is touched before it gets deleted from the chart.
A NOTE ON THE ATR STRENGTH SETTING
"Minimum strength of the breakout candle (x ATR)" is the single most important setting to calibrate for each asset and timeframe. Set it too low and the script will treat ordinary, unremarkable candles as "sharp" breaks, which produces false detections: the pattern will appear far more often than the actual deception behavior occurs, and most of those detections will be noise rather than the real setup. Start around 1.2-1.6x ATR, watch how it performs on the specific instrument and timeframe you trade, and raise it if you see the indicator firing on candles that don't visually stand out from the surrounding price action. There is no universal value: a setting that works well on a 1-hour crypto chart will not necessarily work on a daily stock chart or a weekly bond chart.
DISCLAIMER
This script is provided for educational and analytical purposes only. It identifies a recurring price pattern; it does not predict future price movement, and past instances of the pattern are not a guarantee that price will react the same way again. This is not financial advice, and any trading decision based on what this indicator shows remains the sole responsibility of the person making it.
WHAT IT IS
The Deceit Signature is a pattern-recognition tool built around a recurring market behavior: a tight range breaks sharply in one direction, only to reverse just as sharply moments later, sweeping the liquidity resting near a prior swing point before the market shows its real direction. This is the same mechanic behind concepts like the ICT "Judas Swing" or Wyckoff's spring/upthrust: a false move designed to trap traders on the wrong side before the actual move develops.
This indicator automates the detection of that sequence and marks it directly on the chart, so it can be studied and monitored without having to spot it manually candle by candle.
WHAT IT DOES
On every closed bar, the indicator looks for the following sequence:
- A range: price consolidates within a band narrow enough relative to the ATR to qualify as a tight range.
- A first sharp break: a strong candle (measured against the ATR) closes beyond one edge of the range. This is the fakeout, the move designed to trap traders positioning in that direction.
- A second sharp break, in the opposite direction, within a configurable number of bars. This is the move that confirms the first one was a trap, and it is the move that goes looking for liquidity.
- A liquidity box: once the second break is confirmed, the script looks back for the two most recent swing pivots on the side opposite to the first break (below the range for a bullish fakeout, above it for a bearish one) and draws a box between them. This is the zone where price is expected to sweep resting liquidity before reversing back in the direction of the original fakeout.
- A touch marker: once price trades back into that liquidity box, a small triangle marks the candle that touched it, and the box is automatically removed a configurable number of bars later, keeping the chart clean while still leaving the range and both breaks visible for reference.
Breaks caused by a price gap (no overlap with the previous candle) are ignored. The pattern only counts when the move happens through actual trading, not through a jump in price with nothing traded in between.
HOW TO USE IT
Add the indicator to any chart, on any timeframe. When the full sequence is detected, it draws the range box, labels both breaks ("Break 1 (fakeout)" and "Break 2 (liquidity grab)"), and plots the liquidity box for that setup. An alert condition is available to notify you as soon as a first break occurs, so you can start watching for the confirming second break, and a general alert fires when the full pattern is confirmed.
This is a visual and analytical tool for identifying the pattern, not an automated entry system. What you do once the liquidity box is drawn, and once price reacts inside it, is a separate decision that requires its own judgment and risk management.
HOW TO CONFIGURE IT
Range group: "Bars to measure the range" sets how many bars are checked for tightness, and "Maximum range width (x ATR)" sets how narrow that range must be relative to the ATR to qualify as a valid consolidation.
Sharp Breaks group: "ATR period" sets the ATR length used throughout the script. "Minimum strength of the breakout candle (x ATR)" sets how large a candle's range must be, relative to the ATR, to count as a sharp break. "Max bars between 1st and 2nd break" sets the window in which the second break must appear for the pattern to be confirmed; if it doesn't arrive in time, the setup is discarded.
Pivots / Liquidity Box group: "Left bars" and "Right bars for pivot" control the swing pivot detection used to build the liquidity box. "Minimum distance from pivot to range edge (x ATR)" filters out minor pivots sitting too close to the range itself, forcing the script to look further back for a pivot that represents an actual separate swing.
Visual group: toggles for the range box and the liquidity box, colors for bullish and bearish setups, and how many bars to wait after the liquidity box is touched before it gets deleted from the chart.
A NOTE ON THE ATR STRENGTH SETTING
"Minimum strength of the breakout candle (x ATR)" is the single most important setting to calibrate for each asset and timeframe. Set it too low and the script will treat ordinary, unremarkable candles as "sharp" breaks, which produces false detections: the pattern will appear far more often than the actual deception behavior occurs, and most of those detections will be noise rather than the real setup. Start around 1.2-1.6x ATR, watch how it performs on the specific instrument and timeframe you trade, and raise it if you see the indicator firing on candles that don't visually stand out from the surrounding price action. There is no universal value: a setting that works well on a 1-hour crypto chart will not necessarily work on a daily stock chart or a weekly bond chart.
DISCLAIMER
This script is provided for educational and analytical purposes only. It identifies a recurring price pattern; it does not predict future price movement, and past instances of the pattern are not a guarantee that price will react the same way again. This is not financial advice, and any trading decision based on what this indicator shows remains the sole responsibility of the person making it.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.