本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。
//@version=6
indicator("Talenta Opening Drive Orb Duo", shorttitle = "Talenta OD Orb Duo", overlay = true, max_bars_back = 2500, max_boxes_count = 20, max_labels_count = 200)
// Talenta Opening Drive Orb Duo
//
// OVERVIEW
// Combines a configurable opening-range breakout/retest, first Opening Drive FVG,
// immediate three-candle local FVG, and a fast/slow FVG Trend cross engine.
// Signals are emitted only after the chart candle closes. All engines share optional
// RVOL, VSA-style candle/volume, and confirmed market-structure filters.
//
// METHODS
// - ORB: highest high / lowest low of the first N chart candles in the selected
// exchange-calendar period. Range breakouts use a close crossing the frozen range.
// - Opening Drive: first qualifying local FVG appearing within the first N bars of
// the selected period. The opening FVG is consumed once per period.
// - Local FVG: bullish low > high[2], bearish high < low[2], subject to minimum ATR gap.
// - FVG Trend: the midpoint of each confirmed local FVG is held between events and
// smoothed with configurable fast/slow EMAs. Cross signals require line ordering,
// price on the correct side of both lines, and the fast line slope in that direction.
// - Structure / liquidity: confirmed swing pivots form the current swing-high and
// swing-low liquidity areas. A close through those levels updates BOS/CHoCH bias.
// - RVOL: current volume divided by the prior-bar SMA of volume.
// - VSA-style filter: candle close location, candle spread/body and relative volume.
// This is a chart-based heuristic, not bid/ask footprint or exchange order-book data.
//
// TIMEFRAME ANCHOR
// Automatic map: crypto <1h = daily, 1h..<6h = weekly, >=6h = monthly; other symbols
// <=30m = daily, <1h = daily, 1h..<4h = weekly, >=4h = monthly. Daily and higher
// charts use monthly. If the chosen period is lower than the chart timeframe, the
// chart timeframe is used as the effective anchor. Manual period defaults to monthly.
// The period boundary comes from the symbol's TradingView exchange calendar; no UTC
// or session input is required.
//
// NON-REPAINTING NOTES
// The FVG is recognized on its third, closed candle. Pivots become usable only after
// their right-side confirmation bars close. No future data, negative plot offsets,
// or unconfirmed higher-timeframe requests are used. TradingView may recalculate a
// script when chart history, symbol data, or user inputs change.
//
// DISCLAIMER
// For educational and research purposes only. This script is not investment advice,
// a recommendation, or a guarantee of results. Trading involves substantial risk.
// Validate settings with realistic costs and out-of-sample tests before use.
const string G_ENGINE = "01 | Entry engines"
const string G_ANCHOR = "02 | ORB and Opening Drive anchor"
const string G_FILTER = "03 | Confirmation filters"
const string G_STRUCTURE = "04 | Market structure and liquidity"
const string G_FVG = "05 | FVG Trend"
const string G_VISUAL = "06 | Visual style"
const string MODE_AUTO = "Automatic"
const string MODE_MANUAL = "Manual"
const string PERIOD_DAILY = "Daily"
const string PERIOD_WEEKLY = "Weekly"
const string PERIOD_MONTHLY = "Monthly"
const string THEME_CYBER = "Cyber"
const string THEME_FUTURE = "Future"
const string THEME_EXPLOSION = "Explosion"
const string THEME_PUNK = "Punk"
const string ORB_BREAKOUT = "Breakout"
const string ORB_RETEST = "Retest"
const string ORB_BOTH = "Breakout and retest"
bool useOrb = input.bool(true, "Use ORB signals", group = G_ENGINE)
string orbSignalMode = input.string(ORB_BOTH, "ORB trigger", options = [ORB_BREAKOUT, ORB_RETEST, ORB_BOTH], group = G_ENGINE)
bool useOpeningDrive = input.bool(true, "Use Opening Drive FVG signals", group = G_ENGINE)
bool useImmediateFvg = input.bool(true, "Use immediate local FVG signals", group = G_ENGINE)
bool useFvgTrendSignals = input.bool(true, "Use FVG Trend cross signals", group = G_ENGINE)
string anchorMode = input.string(MODE_AUTO, "Anchor mode", options = [MODE_AUTO, MODE_MANUAL], group = G_ANCHOR)
string manualPeriod = input.string(PERIOD_MONTHLY, "Manual period", options = [PERIOD_DAILY, PERIOD_WEEKLY, PERIOD_MONTHLY], group = G_ANCHOR)
int orbRangeBars = input.int(5, "ORB formation bars", minval = 1, maxval = 100, group = G_ANCHOR)
int openingDriveBars = input.int(3, "Opening Drive window bars", minval = 1, maxval = 100, group = G_ANCHOR)
int retestExpiryBars = input.int(20, "ORB retest expiry bars", minval = 1, maxval = 500, group = G_ANCHOR)
bool useVolumeFilter = input.bool(true, "Require relative volume", group = G_FILTER)
int volumeLength = input.int(30, "Prior volume average length", minval = 2, maxval = 500, group = G_FILTER)
float minimumRvol = input.float(1.0, "Minimum RVOL", minval = 0.1, maxval = 10, step = 0.1, group = G_FILTER)
bool useVsaFilter = input.bool(false, "Require VSA-style confirmation", group = G_FILTER)
float vsaMinimumRvol = input.float(1.0, "VSA minimum RVOL", minval = 0.1, maxval = 10, step = 0.1, group = G_FILTER)
bool useStructureFilter = input.bool(false, "Require aligned market structure", group = G_FILTER)
int pivotBars = input.int(3, "Pivot confirmation bars on each side", minval = 1, maxval = 20, group = G_STRUCTURE)
float liquidityZoneAtr = input.float(0.12, "Liquidity zone half-width / ATR", minval = 0.01, maxval = 1.0, step = 0.01, group = G_STRUCTURE)
bool showLiquidityZones = input.bool(true, "Show latest swing liquidity zones", group = G_STRUCTURE)
bool showStructureTags = input.bool(true, "Show BOS / CHoCH tags", group = G_STRUCTURE)
int fvgFastLength = input.int(8, "FVG Trend fast length", minval = 1, maxval = 200, group = G_FVG)
int fvgSlowLength = input.int(34, "FVG Trend slow length", minval = 2, maxval = 500, group = G_FVG)
float minimumFvgAtr = input.float(0.05, "Minimum FVG size / ATR", minval = 0, maxval = 2, step = 0.01, group = G_FVG)
bool showFvgTrendLines = input.bool(true, "Show FVG Trend lines", group = G_FVG)
color fvgFastColor = input.color(#31E6C5, "FVG Trend fast color", group = G_FVG)
color fvgSlowColor = input.color(#8877FF, "FVG Trend slow color", group = G_FVG)
string theme = input.string(THEME_FUTURE, "Color theme", options = [THEME_CYBER, THEME_FUTURE, THEME_EXPLOSION, THEME_PUNK], group = G_VISUAL)
bool showOrbRange = input.bool(true, "Show ORB range", group = G_VISUAL)
bool showOrbMid = input.bool(false, "Show ORB midpoint", group = G_VISUAL)
bool colorBarsByBias = input.bool(false, "Color bars by structure bias", group = G_VISUAL)
int zoneTransparency = input.int(87, "Liquidity zone transparency", minval = 0, maxval = 100, group = G_VISUAL)
color bullColor = theme == THEME_EXPLOSION ? #FFD166 : theme == THEME_PUNK ? #C6FF00 : theme == THEME_CYBER ? #00F5D4 : #39D5FF
color bearColor = theme == THEME_EXPLOSION ? #FF4D6D : theme == THEME_PUNK ? #FF2E93 : theme == THEME_CYBER ? #FF4FD8 : #A879FF
color neutralColor = theme == THEME_EXPLOSION ? #F4A261 : theme == THEME_PUNK ? #E8E8E8 : #A8B4C4
color orbColor = theme == THEME_EXPLOSION ? #FF9F1C : theme == THEME_PUNK ? #E8E8E8 : #7C8CFF
f_price(float value) =>
na(value) ? "n/a" : str.tostring(value, format.mintick)
// ── Automatic / manual anchor mapping
float chartSeconds = timeframe.in_seconds()
string autoAnchor = na(chartSeconds) ? "1M" : chartSeconds >= 86400 ? "1M" : syminfo.type == "crypto" ? (chartSeconds < 3600 ? "1D" : chartSeconds < 21600 ? "1W" : "1M") : (chartSeconds <= 1800 ? "1D" : chartSeconds < 3600 ? "1D" : chartSeconds < 14400 ? "1W" : "1M")
string manualAnchor = manualPeriod == PERIOD_DAILY ? "1D" : manualPeriod == PERIOD_WEEKLY ? "1W" : "1M"
string requestedAnchor = anchorMode == MODE_AUTO ? autoAnchor : manualAnchor
string effectiveAnchor = na(chartSeconds) or timeframe.in_seconds(requestedAnchor) < chartSeconds ? timeframe.period : requestedAnchor
int anchorStamp = time(effectiveAnchor)
bool anchorChanged = timeframe.change(effectiveAnchor)
int barsFromAnchor = nz(ta.barssince(anchorChanged), 0)
bool inOpeningDriveWindow = barsFromAnchor < openingDriveBars
// ── ORB state: first N chart bars of the selected exchange-calendar period
var int activeAnchorStamp = na
var int orbBarsBuilt = 0
var float orbHigh = na
var float orbLow = na
var bool orbReady = false
var bool waitBullRetest = false
var bool waitBearRetest = false
var int bullBreakBar = na
var int bearBreakBar = na
var bool bullRetestUsed = false
var bool bearRetestUsed = false
var float bullRetestLevel = na
var float bearRetestLevel = na
bool orbBreakBuy = false
bool orbBreakSell = false
bool orbRetestBuy = false
bool orbRetestSell = false
if barstate.isconfirmed
bool newAnchorPeriod = na(activeAnchorStamp) or anchorStamp != activeAnchorStamp
if newAnchorPeriod
activeAnchorStamp := anchorStamp
orbBarsBuilt := 1
orbHigh := high
orbLow := low
orbReady := orbRangeBars <= 1
waitBullRetest := false
waitBearRetest := false
bullBreakBar := na
bearBreakBar := na
bullRetestUsed := false
bearRetestUsed := false
bullRetestLevel := na
bearRetestLevel := na
else if orbBarsBuilt < orbRangeBars
orbBarsBuilt += 1
orbHigh := math.max(orbHigh, high)
orbLow := math.min(orbLow, low)
if orbBarsBuilt >= orbRangeBars
orbReady := true
bool priorOrbReady = orbReady[1]
bool samePeriodAsPrior = not newAnchorPeriod and not na(orbHigh[1]) and not na(orbLow[1])
orbBreakBuy := useOrb and priorOrbReady and samePeriodAsPrior and close > orbHigh[1] and close[1] <= orbHigh[1]
orbBreakSell := useOrb and priorOrbReady and samePeriodAsPrior and close < orbLow[1] and close[1] >= orbLow[1]
if orbBreakBuy
waitBullRetest := true
bullBreakBar := bar_index
bullRetestUsed := false
bullRetestLevel := orbHigh[1]
waitBearRetest := false
if orbBreakSell
waitBearRetest := true
bearBreakBar := bar_index
bearRetestUsed := false
bearRetestLevel := orbLow[1]
waitBullRetest := false
if waitBullRetest
if bar_index - bullBreakBar > retestExpiryBars or close < bullRetestLevel - syminfo.mintick
waitBullRetest := false
else if bar_index > bullBreakBar and not bullRetestUsed and low <= bullRetestLevel and close > bullRetestLevel and close > open
orbRetestBuy := true
bullRetestUsed := true
waitBullRetest := false
if waitBearRetest
if bar_index - bearBreakBar > retestExpiryBars or close > bearRetestLevel + syminfo.mintick
waitBearRetest := false
else if bar_index > bearBreakBar and not bearRetestUsed and high >= bearRetestLevel and close < bearRetestLevel and close < open
orbRetestSell := true
bearRetestUsed := true
waitBearRetest := false
bool includeOrbBreakouts = orbSignalMode != ORB_RETEST
bool includeOrbRetests = orbSignalMode != ORB_BREAKOUT
bool orbBuyRaw = useOrb and ((includeOrbBreakouts and orbBreakBuy) or (includeOrbRetests and orbRetestBuy))
bool orbSellRaw = useOrb and ((includeOrbBreakouts and orbBreakSell) or (includeOrbRetests and orbRetestSell))
// ── Confirmed local FVG events, used by Opening Drive, immediate FVG and FVG Trend
float atr = ta.atr(14)
float candleRange = math.max(high - low, syminfo.mintick)
bool bullishFvg = barstate.isconfirmed and low > high[2] and low - high[2] >= atr * minimumFvgAtr
bool bearishFvg = barstate.isconfirmed and high < low[2] and low[2] - high >= atr * minimumFvgAtr
bool openingDriveBullRaw = false
bool openingDriveBearRaw = false
var int openingSeenStamp = na
var bool openingFvgConsumed = false
if barstate.isconfirmed and (na(openingSeenStamp) or anchorStamp != openingSeenStamp)
openingSeenStamp := anchorStamp
openingFvgConsumed := false
if barstate.isconfirmed and useOpeningDrive and inOpeningDriveWindow and not openingFvgConsumed
if bullishFvg
openingDriveBullRaw := true
openingFvgConsumed := true
else if bearishFvg
openingDriveBearRaw := true
openingFvgConsumed := true
bool immediateFvgBullRaw = useImmediateFvg and bullishFvg
bool immediateFvgBearRaw = useImmediateFvg and bearishFvg
float fvgMidSample = bullishFvg ? math.avg(low, high[2]) : bearishFvg ? math.avg(high, low[2]) : na
float fvgMidHeld = ta.valuewhen(not na(fvgMidSample), fvgMidSample, 0)
float fvgTrendFast = ta.ema(fvgMidHeld, fvgFastLength)
float fvgTrendSlow = ta.ema(fvgMidHeld, fvgSlowLength)
bool priceCrossAboveFvgFast = ta.crossover(close, fvgTrendFast)
bool priceCrossBelowFvgFast = ta.crossunder(close, fvgTrendFast)
bool fvgTrendBullRaw = useFvgTrendSignals and barstate.isconfirmed and not na(fvgTrendFast) and not na(fvgTrendSlow) and priceCrossAboveFvgFast and close > fvgTrendFast and close > fvgTrendSlow and fvgTrendFast > fvgTrendSlow and fvgTrendFast > fvgTrendFast[1]
bool fvgTrendBearRaw = useFvgTrendSignals and barstate.isconfirmed and not na(fvgTrendFast) and not na(fvgTrendSlow) and priceCrossBelowFvgFast and close < fvgTrendFast and close < fvgTrendSlow and fvgTrendSlow > fvgTrendFast and fvgTrendFast < fvgTrendFast[1]
// ── Volume and VSA-style confirmation
float priorVolumeAverage = ta.sma(volume, volumeLength)[1]
bool hasUsableVolume = not na(volume) and volume > 0 and not na(priorVolumeAverage) and priorVolumeAverage > 0
float rvol = hasUsableVolume ? volume / priorVolumeAverage : na
float closeLocation = (close - low) / candleRange
float bodyFraction = math.abs(close - open) / candleRange
float lowerWickFraction = (math.min(open, close) - low) / candleRange
float upperWickFraction = (high - math.max(open, close)) / candleRange
float spreadAverage = ta.sma(high - low, volumeLength)[1]
bool vsaBull = hasUsableVolume and rvol >= vsaMinimumRvol and ((close > open and closeLocation >= 0.65 and (bodyFraction >= 0.35 or candleRange >= spreadAverage)) or (lowerWickFraction >= 0.40 and closeLocation >= 0.55 and rvol >= vsaMinimumRvol * 1.25))
bool vsaBear = hasUsableVolume and rvol >= vsaMinimumRvol and ((close < open and closeLocation <= 0.35 and (bodyFraction >= 0.35 or candleRange >= spreadAverage)) or (upperWickFraction >= 0.40 and closeLocation <= 0.45 and rvol >= vsaMinimumRvol * 1.25))
bool volumePass = not useVolumeFilter or hasUsableVolume and rvol >= minimumRvol
bool vsaBullPass = not useVsaFilter or vsaBull
bool vsaBearPass = not useVsaFilter or vsaBear
// ── Confirmed swing structure and liquidity areas
float pivotHigh = ta.pivothigh(high, pivotBars, pivotBars)
float pivotLow = ta.pivotlow(low, pivotBars, pivotBars)
var float lastSwingHigh = na
var float lastSwingLow = na
var int structureBias = 0
var box swingHighLiquidityBox = na
var box swingLowLiquidityBox = na
bool bullBos = not na(lastSwingHigh) and close > lastSwingHigh and close[1] <= lastSwingHigh
bool bearBos = not na(lastSwingLow) and close < lastSwingLow and close[1] >= lastSwingLow
bool bullChoch = bullBos and structureBias == -1
bool bearChoch = bearBos and structureBias == 1
if barstate.isconfirmed
if not na(pivotHigh)
lastSwingHigh := pivotHigh
if not na(swingHighLiquidityBox)
box.delete(swingHighLiquidityBox)
swingHighLiquidityBox := na
if showLiquidityZones
float highZoneHalf = math.max(atr * liquidityZoneAtr, syminfo.mintick)
swingHighLiquidityBox := box.new(left = bar_index, top = pivotHigh + highZoneHalf, right = bar_index + 1, bottom = pivotHigh - highZoneHalf, xloc = xloc.bar_index, extend = extend.right, border_color = color.new(bearColor, 30), bgcolor = color.new(bearColor, zoneTransparency))
if not na(pivotLow)
lastSwingLow := pivotLow
if not na(swingLowLiquidityBox)
box.delete(swingLowLiquidityBox)
swingLowLiquidityBox := na
if showLiquidityZones
float lowZoneHalf = math.max(atr * liquidityZoneAtr, syminfo.mintick)
swingLowLiquidityBox := box.new(left = bar_index, top = pivotLow + lowZoneHalf, right = bar_index + 1, bottom = pivotLow - lowZoneHalf, xloc = xloc.bar_index, extend = extend.right, border_color = color.new(bullColor, 30), bgcolor = color.new(bullColor, zoneTransparency))
if bullBos and bearBos
structureBias := 0
else if bullBos
structureBias := 1
else if bearBos
structureBias := -1
if not showLiquidityZones
if not na(swingHighLiquidityBox)
box.delete(swingHighLiquidityBox)
swingHighLiquidityBox := na
if not na(swingLowLiquidityBox)
box.delete(swingLowLiquidityBox)
swingLowLiquidityBox := na
bool structureBullPass = not useStructureFilter or structureBias == 1
bool structureBearPass = not useStructureFilter or structureBias == -1
// ── Signal source stack and shared confirmation filters
bool orbRangeBullRaw = orbBuyRaw
bool orbRangeBearRaw = orbSellRaw
bool rawBuy = orbRangeBullRaw or openingDriveBullRaw or immediateFvgBullRaw or fvgTrendBullRaw
bool rawSell = orbRangeBearRaw or openingDriveBearRaw or immediateFvgBearRaw or fvgTrendBearRaw
bool buyFiltersPass = volumePass and vsaBullPass and structureBullPass
bool sellFiltersPass = volumePass and vsaBearPass and structureBearPass
bool buyCandidate = barstate.isconfirmed and rawBuy and buyFiltersPass
bool sellCandidate = barstate.isconfirmed and rawSell and sellFiltersPass
bool buySignal = buyCandidate and not sellCandidate
bool sellSignal = sellCandidate and not buyCandidate
string buyTriggerText = (orbRangeBullRaw ? (orbBreakBuy ? "ORB breakout; " : "ORB retest; ") : "") + (openingDriveBullRaw ? "Opening Drive bullish FVG; " : "") + (immediateFvgBullRaw ? "Immediate local bullish FVG; " : "") + (fvgTrendBullRaw ? "FVG Trend bullish cross; " : "")
string sellTriggerText = (orbRangeBearRaw ? (orbBreakSell ? "ORB breakdown; " : "ORB retest; ") : "") + (openingDriveBearRaw ? "Opening Drive bearish FVG; " : "") + (immediateFvgBearRaw ? "Immediate local bearish FVG; " : "") + (fvgTrendBearRaw ? "FVG Trend bearish cross; " : "")
string structureText = structureBias == 1 ? "Bullish BOS / CHoCH bias" : structureBias == -1 ? "Bearish BOS / CHoCH bias" : "Neutral / waiting for confirmed break"
string filterTextBuy = "RVOL: " + (useVolumeFilter ? (volumePass ? "PASS" : "BLOCK") : "OFF") + " (" + str.tostring(rvol, "#.00") + ") | VSA: " + (useVsaFilter ? (vsaBull ? "PASS" : "BLOCK") : "OFF") + " | Structure: " + (useStructureFilter ? (structureBullPass ? "PASS" : "BLOCK") : "OFF")
string filterTextSell = "RVOL: " + (useVolumeFilter ? (volumePass ? "PASS" : "BLOCK") : "OFF") + " (" + str.tostring(rvol, "#.00") + ") | VSA: " + (useVsaFilter ? (vsaBear ? "PASS" : "BLOCK") : "OFF") + " | Structure: " + (useStructureFilter ? (structureBearPass ? "PASS" : "BLOCK") : "OFF")
// ── Chart visuals
pOrbHigh = plot(showOrbRange and orbReady ? orbHigh : na, "ORB High", color = bullColor, linewidth = 2, style = plot.style_linebr)
pOrbLow = plot(showOrbRange and orbReady ? orbLow : na, "ORB Low", color = bearColor, linewidth = 2, style = plot.style_linebr)
fill(pOrbHigh, pOrbLow, color = color.new(orbColor, 94), title = "ORB Range Cloud")
plot(showOrbMid and orbReady ? math.avg(orbHigh, orbLow) : na, "ORB Midpoint", color = color.new(orbColor, 15), linewidth = 1, style = plot.style_linebr)
plot(showFvgTrendLines ? fvgTrendFast : na, "FVG Trend Fast", color = fvgFastColor, linewidth = 2)
plot(showFvgTrendLines ? fvgTrendSlow : na, "FVG Trend Slow", color = fvgSlowColor, linewidth = 2)
barcolor(colorBarsByBias ? structureBias == 1 ? color.new(bullColor, 10) : structureBias == -1 ? color.new(bearColor, 10) : color.new(neutralColor, 55) : na)
plotshape(showStructureTags and barstate.isconfirmed and bullBos and not bullChoch, title = "Bullish BOS", style = shape.labelup, location = location.belowbar, color = color.new(bullColor, 18), text = "BOS", textcolor = color.white, size = size.tiny)
plotshape(showStructureTags and barstate.isconfirmed and bullChoch, title = "Bullish CHoCH", style = shape.labelup, location = location.belowbar, color = color.new(bullColor, 18), text = "CHoCH", textcolor = color.white, size = size.tiny)
plotshape(showStructureTags and barstate.isconfirmed and bearBos and not bearChoch, title = "Bearish BOS", style = shape.labeldown, location = location.abovebar, color = color.new(bearColor, 18), text = "BOS", textcolor = color.white, size = size.tiny)
plotshape(showStructureTags and barstate.isconfirmed and bearChoch, title = "Bearish CHoCH", style = shape.labeldown, location = location.abovebar, color = color.new(bearColor, 18), text = "CHoCH", textcolor = color.white, size = size.tiny)
plotshape(buySignal, title = "BUY", style = shape.triangleup, location = location.belowbar, color = bullColor, size = size.tiny)
plotshape(sellSignal, title = "SELL", style = shape.triangledown, location = location.abovebar, color = bearColor, size = size.tiny)
var array<label> signalHoverLabels = array.new<label>()
int hoverRetention = 100
if buySignal or sellSignal
int signalSide = buySignal ? 1 : -1
string triggerDetails = signalSide == 1 ? buyTriggerText : sellTriggerText
string filterDetails = signalSide == 1 ? filterTextBuy : filterTextSell
string trendDetails = "FVG Trend fast / slow: " + f_price(fvgTrendFast) + " / " + f_price(fvgTrendSlow) + " | lengths " + str.tostring(fvgFastLength) + " / " + str.tostring(fvgSlowLength)
string orbDetails = "Anchor: " + effectiveAnchor + " | ORB bars: " + str.tostring(orbBarsBuilt) + "/" + str.tostring(orbRangeBars) + " | High / Low: " + f_price(orbHigh) + " / " + f_price(orbLow)
string structureDetails = structureText + " | latest swing high / low: " + f_price(lastSwingHigh) + " / " + f_price(lastSwingLow)
string why = (signalSide == 1 ? "BUY SIGNAL" : "SELL SIGNAL") + "\nTrigger(s): " + triggerDetails + "\nFilters: " + filterDetails + "\nMarket structure: " + structureDetails + "\n" + orbDetails + "\n" + trendDetails + "\nRVOL: " + str.tostring(rvol, "#.00") + " | VSA bull / bear: " + str.tostring(vsaBull) + " / " + str.tostring(vsaBear) + "\nLiquidity zones use confirmed swing pivots; VSA and volume pressure are OHLCV estimates.\nEducational use only; not financial advice."
array.push(signalHoverLabels, label.new(bar_index, signalSide == 1 ? low : high, text = "", style = label.style_circle, color = color.new(signalSide == 1 ? bullColor : bearColor, 100), size = size.normal, tooltip = why))
if array.size(signalHoverLabels) > hoverRetention
label.delete(array.shift(signalHoverLabels))
alertcondition(buySignal, title = "Talenta Opening Drive Orb Duo BUY", message = "Talenta Opening Drive Orb Duo: confirmed BUY on {{ticker}} {{interval}} at {{close}}")
alertcondition(sellSignal, title = "Talenta Opening Drive Orb Duo SELL", message = "Talenta Opening Drive Orb Duo: confirmed SELL on {{ticker}} {{interval}} at {{close}}")