BULiquidityCore, v1

Library "BULiquidityCore"
Phase 4.4.12.1 reusable historical liquidity and structural calculations.
This library deliberately holds NO setup-specific persistent arrays or input settings.
All caller-owned liquidity-bank arrays and configurable thresholds are parameters.
storeInBank(linePrice, originBar, lineSide, lineState, lineSource, lineStrength, outEventBar, isLocal, enabled, mergeTolerance, maxStored, bankPrice, bankBar, bankOutBar, bankSide, bankState, bankSource, bankStrength)
Parameters:
linePrice (float)
originBar (int)
lineSide (int)
lineState (int)
lineSource (string)
lineStrength (int)
outEventBar (int)
isLocal (bool)
enabled (bool)
mergeTolerance (float)
maxStored (int)
bankPrice (array<float>)
bankBar (array<int>)
bankOutBar (array<int>)
bankSide (array<int>)
bankState (array<int>)
bankSource (array<string>)
bankStrength (array<int>)
findSeedCaseInBank(dir, seedHigh, seedLow, seedStartBar, seedATR, bankPrice, bankBar, bankOutBar, bankSide, bankState, bankSource, bankStrength, allowBank, contactToleranceATR, lineMergeTolerance, case4MaxGapATR, maxLineAgeBars, case4MaxBarsBeforeBU)
Parameters:
dir (int)
seedHigh (float)
seedLow (float)
seedStartBar (int)
seedATR (float)
bankPrice (array<float>)
bankBar (array<int>)
bankOutBar (array<int>)
bankSide (array<int>)
bankState (array<int>)
bankSource (array<string>)
bankStrength (array<int>)
allowBank (bool)
contactToleranceATR (float)
lineMergeTolerance (float)
case4MaxGapATR (float)
maxLineAgeBars (int)
case4MaxBarsBeforeBU (int)
findCase1InBank(dir, startPrice, setupATR, bankPrice, bankBar, bankSide, bankState, bankSource, bankStrength, allowBank, contactToleranceATR, lineMergeTolerance, maxLineAgeBars)
Parameters:
dir (int)
startPrice (float)
setupATR (float)
bankPrice (array<float>)
bankBar (array<int>)
bankSide (array<int>)
bankState (array<int>)
bankSource (array<string>)
bankStrength (array<int>)
allowBank (bool)
contactToleranceATR (float)
lineMergeTolerance (float)
maxLineAgeBars (int)
storePivot(levels, bars, consumed, newPivot, price, pivotBar, maxLevels)
Parameters:
levels (array<float>)
bars (array<int>)
consumed (array<bool>)
newPivot (bool)
price (float)
pivotBar (int)
maxLevels (int)
checkSweep(level, tested, swept, highSide, tolerance)
Parameters:
level (float)
tested (bool)
swept (bool)
highSide (bool)
tolerance (float)
uniqueBreak(level, lastBroken, bullSide, buffer)
Parameters:
level (float)
lastBroken (float)
bullSide (bool)
buffer (float)
protectedBreak(priorDir, protectedLevel, bullSide, buffer)
Parameters:
priorDir (int)
protectedLevel (float)
bullSide (bool)
buffer (float)
findT3(prices, bars, consumed, sellSide, t2Reference, buStart, tolerance, previous)
Parameters:
prices (array<float>)
bars (array<int>)
consumed (array<bool>)
sellSide (bool)
t2Reference (float)
buStart (int)
tolerance (float)
previous (float)
consumeMemory(prices, bars, used, isLow, tolerance)
Parameters:
prices (array<float>)
bars (array<int>)
used (array<bool>)
isLow (bool)
tolerance (float)
isDelivered(already, dir, level, tolerance)
Parameters:
already (bool)
dir (int)
level (float)
tolerance (float)
isBOS(already, dir, level, buffer)
Parameters:
already (bool)
dir (int)
level (float)
buffer (float)
sourceFVG(dir, sourceATR, minImbalanceATR)
Parameters:
dir (int)
sourceATR (float)
minImbalanceATR (float)
Phase 4.4.12.1 reusable historical liquidity and structural calculations.
This library deliberately holds NO setup-specific persistent arrays or input settings.
All caller-owned liquidity-bank arrays and configurable thresholds are parameters.
storeInBank(linePrice, originBar, lineSide, lineState, lineSource, lineStrength, outEventBar, isLocal, enabled, mergeTolerance, maxStored, bankPrice, bankBar, bankOutBar, bankSide, bankState, bankSource, bankStrength)
Parameters:
linePrice (float)
originBar (int)
lineSide (int)
lineState (int)
lineSource (string)
lineStrength (int)
outEventBar (int)
isLocal (bool)
enabled (bool)
mergeTolerance (float)
maxStored (int)
bankPrice (array<float>)
bankBar (array<int>)
bankOutBar (array<int>)
bankSide (array<int>)
bankState (array<int>)
bankSource (array<string>)
bankStrength (array<int>)
findSeedCaseInBank(dir, seedHigh, seedLow, seedStartBar, seedATR, bankPrice, bankBar, bankOutBar, bankSide, bankState, bankSource, bankStrength, allowBank, contactToleranceATR, lineMergeTolerance, case4MaxGapATR, maxLineAgeBars, case4MaxBarsBeforeBU)
Parameters:
dir (int)
seedHigh (float)
seedLow (float)
seedStartBar (int)
seedATR (float)
bankPrice (array<float>)
bankBar (array<int>)
bankOutBar (array<int>)
bankSide (array<int>)
bankState (array<int>)
bankSource (array<string>)
bankStrength (array<int>)
allowBank (bool)
contactToleranceATR (float)
lineMergeTolerance (float)
case4MaxGapATR (float)
maxLineAgeBars (int)
case4MaxBarsBeforeBU (int)
findCase1InBank(dir, startPrice, setupATR, bankPrice, bankBar, bankSide, bankState, bankSource, bankStrength, allowBank, contactToleranceATR, lineMergeTolerance, maxLineAgeBars)
Parameters:
dir (int)
startPrice (float)
setupATR (float)
bankPrice (array<float>)
bankBar (array<int>)
bankSide (array<int>)
bankState (array<int>)
bankSource (array<string>)
bankStrength (array<int>)
allowBank (bool)
contactToleranceATR (float)
lineMergeTolerance (float)
maxLineAgeBars (int)
storePivot(levels, bars, consumed, newPivot, price, pivotBar, maxLevels)
Parameters:
levels (array<float>)
bars (array<int>)
consumed (array<bool>)
newPivot (bool)
price (float)
pivotBar (int)
maxLevels (int)
checkSweep(level, tested, swept, highSide, tolerance)
Parameters:
level (float)
tested (bool)
swept (bool)
highSide (bool)
tolerance (float)
uniqueBreak(level, lastBroken, bullSide, buffer)
Parameters:
level (float)
lastBroken (float)
bullSide (bool)
buffer (float)
protectedBreak(priorDir, protectedLevel, bullSide, buffer)
Parameters:
priorDir (int)
protectedLevel (float)
bullSide (bool)
buffer (float)
findT3(prices, bars, consumed, sellSide, t2Reference, buStart, tolerance, previous)
Parameters:
prices (array<float>)
bars (array<int>)
consumed (array<bool>)
sellSide (bool)
t2Reference (float)
buStart (int)
tolerance (float)
previous (float)
consumeMemory(prices, bars, used, isLow, tolerance)
Parameters:
prices (array<float>)
bars (array<int>)
used (array<bool>)
isLow (bool)
tolerance (float)
isDelivered(already, dir, level, tolerance)
Parameters:
already (bool)
dir (int)
level (float)
tolerance (float)
isBOS(already, dir, level, buffer)
Parameters:
already (bool)
dir (int)
level (float)
buffer (float)
sourceFVG(dir, sourceATR, minImbalanceATR)
Parameters:
dir (int)
sourceATR (float)
minImbalanceATR (float)
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.