Technical analysis by behzad9905 about Symbol ZEN on 10/24/2025
شناسایی ورود و خروج نهنگها در بازار: استراتژی حجمی پیشرفته (کد تریدینگ ویو)

// version =5 indicator("🐋 Whale Entry Detector", shorttitle="Whale Entry", overlay=true) // تنظیمات length = input.int(20, "میانگین حجم (کندل)") mult = input.float(2.5, "ضریب حجم غیرعادی") showLabels = input.bool(true, "نمایش برچسبها") // محاسبه حجم میانگین avgVol = ta.sma(volume, length) // شناسایی حجم غیرعادی whaleBuy = (volume > avgVol * mult) and (close > open) whaleSell = (volume > avgVol * mult) and (close < open) // نمایش فلش و برچسب plotshape(whaleBuy, title="ورود نهنگ", location=location.belowbar, color=color.new(color.green, 0), style=shape.triangleup, size=size.large) plotshape(whaleSell, title="خروج نهنگ", location=location.abovebar, color=color.new(color.red, 0), style=shape.triangledown, size=size.large) if showLabels label.new(bar_index, low, "ورود نهنگ 🐋", style=label.style_label_up, color=color.new(color.green, 80), textcolor=color.white, size=size.small) if whaleBuy label.new(bar_index, high, "خروج نهنگ 🚨", style=label.style_label_down, color=color.new(color.red, 80), textcolor=color.white, size=size.small) if whaleSell // رنگ پسزمینه برای هشدار کلی bgcolor(whaleBuy ? color.new(color.green, 90) : whaleSell ? color.new(color.red, 90) : na)