OPEN-SOURCE SCRIPT

Liquidity Sweeps and Raids

By Cancamurria
Updated
This basic script calculates and plots runs on liquidity levels through Raids and Sweeps. When the price violates the 3 fractal level, a raid or sweep occurs. You can use it to automate markup, understand liquidity levels, and reduce human error in your analysis. Additionally, you can set up an alarm to notify you when new sweeps or raids occur. Combine it with your current strategy or try any price action theory you prefer. Essentially, the price always seeks liquidity, so when some of it is taken, it makes sense to look for a reaction and potential reversal. Stay ahead by capitalizing on liquidity insights for potential reversals. Cheers, Cancamurria.
Release Notes
ta-ra
Release Notes
ta-ra
Release Notes
New alerts: "Bearish" and "Bullish" alerts have been added to provide signals for specific sweep conditions.
Custom color inputs: Users can now customize the line colors for bullish and bearish sweeps using the bullishColor and bearishColor inputs.
Limitation on displayed sweeps: A new input, maxSweeps, allows users to define the maximum number of displayed sweeps on the chart, removing any additional sweeps that exceed the limit.
These features provide improved control over sweep visualization, offer specific alerts for bearish and bullish conditions, allow color customization, and enable better management of displayed sweeps on the chart.
Release Notes
Style (s_style): This input allows you to customize the line style for the plotted lines. You can choose from three options: "Solid", "Dotted", and "Dashed". The selected line style will be applied to both bearish and bullish sweeps. The default line style is "Solid".
Release Notes
If any of you reading this enjoy coding/ do it for a living or are enthusiastic about programming and know how to implement MTF (multi-timeframe) functionality for the given script, I kindly request your assistance. Your help would be greatly appreciated and incredibly useful for charting purposes. Thank you, and I'm looking forward to collaborating with you. Cheers, Cancamurria
Release Notes
Cosmetics
Release Notes
Cosmetics
Release Notes
Added a user input to choose the width of the lines for the sweep plots. You can now specify the desired line width using the Width input parameter.
Feel free to modify other parameters such as the number of sweeps to display, line colors, line style, and more to suit your preferences.
Release Notes
Wicks Only, will plot Sweeps and Raids that closed below\higher previous levels of liquidity.
Regular, will plot all Sweeps and Raids that occured.
Release Notes
cosmetics
Release Notes
Long Awaited MTF! Thanks for it to
MTF Liquidity Sweeps and Raids

Have Fun!
Release Notes
//
Release Notes
fixed bug EURUSD
Release Notes
minor fix
Release Notes
bugs fixed
Release Notes
EURUSD
Release Notes
//
Release Notes
alerts EURUSD
Release Notes
EURUSD
Release Notes
cosmetics
Release Notes
minor fix
Release Notes
minor fix EURUSD
Release Notes
minor fix EURUSD
Release Notes
minor fix EURUSD
Release Notes
minor fix
Release Notes
EURUSD
Release Notes
cosmetics EURUSD
Release Notes
Fixed the label display. I'm currently working on an even more advanced and sophisticated version of the script, which I'll probably only share by invitation. I also recommend placing the script over the candlebars in the objects tree section. Cheers!
Release Notes
fix.
Release Notes
EURUSD I have added a new user input to determine the 'strength' of a pivot. Setting it to 1 makes the pivot 3 bars, 2 makes it 5 bars, and so on.
Release Notes
fix
Release Notes
I pulled back my previous edit because it's not working well. Something seems to be wrong with it. I'll take a closer look when I have more time. Cheers!
Release Notes
//
Release Notes
//
Release Notes
Input history to select the lookback EURUSD
Release Notes
love you. LFG
Release Notes
LFG
Release Notes
To clarify the use case of that indicator.
I use it in conjunction with my private script for confluence and other technical analysis. The sweeps/raid indicator specifically draws my attention to certain QM/Breaker formations, as depicted in the indicator picture above. snapshot EURUSD
Release Notes
Input for timeframes has been added, set to 'Chart'
Release Notes
reimagined label placement
Release Notes
snapshot
BTCUSDT.P cleanup
Release Notes
//
Release Notes
minor fix
Release Notes
minor fix EURUSD
Release Notes

Display Fix.
If you really like my script and it helps you earn, feel free to donate some USDT to me. Here's my TRC20 USDT wallet: TGT5BGaxa4mHdVnEskQ3aXHFfRSiF1ppQd. All funds will be directed towards developing new cutting-edge price action tools. Cheers.
EURUSD
Release Notes
EURUSD
Release Notes
BINANCE:BTCUSDT29H2024
EURUSD
EURUSD
EURUSD
Release Notes
The performance fix should make it load much faster than before.

BTCUSDT.P
EURUSD
EURUSD
Release Notes
Users can now enable or disable the plotting of sweeps for the current timeframe using the "Chart" toggle in the indicator settings.
BTCUSDT.P
EURUSD
Release Notes
The timeframe display intersection issue has been resolved. For example, if the chart's timeframe is set to 'Chart' + '5m', and the chart is currently at M5, the M5 setting is turned off. The chart toggle will now display 5m sweeps/raids. The M5 toggle is only for LTF from now on, as well as all other timeframes.

Boost the script, cheers!
Release Notes
EURUSD
BTCUSD
Release Notes
MTF display issue fix
Release Notes
LFG
Release Notes
fixfixfix
Release Notes
EURUSD
Release Notes
snapshot


Long-awaited update! I suggest checking and using it. Also, consider using multiple copies of the indicator on your layout (with different tf inputs) if you use several timeframes at once. Cheers!
EURUSD
BINANCE:BTCUSDT28M2024
Release Notes
//
Release Notes
EURUSD BINANCE:BTCUSDT28M2024
cancamurriaCandlestick analysisChart patternsictictconceptslarrywiliamsliquiditymultitimeframepriceactionsmartmoneySMCstophunt
Cancamurria

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer