PROTECTED SOURCE SCRIPT
Liquidity Sweep Signals [cx.liquidityhunter]

En Construcción
// Breakout bajista: rompe soporte con fuerza
if array.size(lsSupLevels) > 0
for i = array.size(lsSupLevels) - 1 to 0
if array.size(lsSupLevels) > i and i >= 0
lvl = array.get(lsSupLevels, i)
ln = array.get(lsSupLines, i)
// SIMPLE: Vela bajista grande que cierra por debajo del nivel
isBigBearCandle = close < open and lsBody > lsAtr * 0.3
closesBelow = close < lvl and high > lvl
noBottomWick = lsLowerWick < lsBody * 0.3
breakoutConfirm = isBigBearCandle and closesBelow and noBottomWick
breakoutCooldown = sweepCooldown * 2
if breakoutConfirm and bar_index > lastBearSweepBar + breakoutCooldown
lastBearSweepBar := bar_index
entrySell = close
slSell = lvl + lsAtr * lsSLBuffer
riskSell = slSell - entrySell
tp1Sell = entrySell - riskSell * lsRR1
tp2Sell = entrySell - riskSell * lsRR2
if lsShowLabels
bkTxt = "📉 BREAKOUT SELL\nEntry: " + str.tostring(entrySell, "#.##") + "\nSL: " + str.tostring(slSell, "#.##") + "\nTP1: " + str.tostring(tp1Sell, "#.##") + "\nTP2: " + str.tostring(tp2Sell, "#.##")
label.new(bar_index, low - lsAtr * 0.3, bkTxt, style = label.style_label_up, textcolor = color.white, size = size.small, color = lsBreakoutColor)
if lsShowSLTP
line.new(bar_index, slSell, bar_index + 20, slSell, color = color.red, width = 1, style = line.style_dashed)
line.new(bar_index, tp1Sell, bar_index + 20, tp1Sell, color = color.green, width = 1, style = line.style_dashed)
line.new(bar_index, tp2Sell, bar_index + 20, tp2Sell, color = color.lime, width = 1, style = line.style_dotted)
line.set_color(ln, lsBreakoutColor)
line.set_width(ln, 3)
// Breakout bajista: rompe soporte con fuerza
if array.size(lsSupLevels) > 0
for i = array.size(lsSupLevels) - 1 to 0
if array.size(lsSupLevels) > i and i >= 0
lvl = array.get(lsSupLevels, i)
ln = array.get(lsSupLines, i)
// SIMPLE: Vela bajista grande que cierra por debajo del nivel
isBigBearCandle = close < open and lsBody > lsAtr * 0.3
closesBelow = close < lvl and high > lvl
noBottomWick = lsLowerWick < lsBody * 0.3
breakoutConfirm = isBigBearCandle and closesBelow and noBottomWick
breakoutCooldown = sweepCooldown * 2
if breakoutConfirm and bar_index > lastBearSweepBar + breakoutCooldown
lastBearSweepBar := bar_index
entrySell = close
slSell = lvl + lsAtr * lsSLBuffer
riskSell = slSell - entrySell
tp1Sell = entrySell - riskSell * lsRR1
tp2Sell = entrySell - riskSell * lsRR2
if lsShowLabels
bkTxt = "📉 BREAKOUT SELL\nEntry: " + str.tostring(entrySell, "#.##") + "\nSL: " + str.tostring(slSell, "#.##") + "\nTP1: " + str.tostring(tp1Sell, "#.##") + "\nTP2: " + str.tostring(tp2Sell, "#.##")
label.new(bar_index, low - lsAtr * 0.3, bkTxt, style = label.style_label_up, textcolor = color.white, size = size.small, color = lsBreakoutColor)
if lsShowSLTP
line.new(bar_index, slSell, bar_index + 20, slSell, color = color.red, width = 1, style = line.style_dashed)
line.new(bar_index, tp1Sell, bar_index + 20, tp1Sell, color = color.green, width = 1, style = line.style_dashed)
line.new(bar_index, tp2Sell, bar_index + 20, tp2Sell, color = color.lime, width = 1, style = line.style_dotted)
line.set_color(ln, lsBreakoutColor)
line.set_width(ln, 3)
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.