PINE LIBRARY
Actualizado

MirPapa_Library_ICT

281
Library "MirPapa_Library_ICT"

GetHTFoffsetToLTFoffset(_offset, _chartTf, _htfTf)
  GetHTFoffsetToLTFoffset
description Adjust an HTF offset to an LTF offset by calculating the ratio of timeframes.
  Parameters:
    _offset (int): int The HTF bar offset (0 means current HTF bar).
    _chartTf (string): string The current chart’s timeframe (e.g., "5", "15", "1D").
    _htfTf (string): string The High Time Frame string (e.g., "60", "1D").
return int The corresponding LTF bar index. Returns 0 if the result is negative.

IsConditionState(_type, _isBull, _level, _open, _close, _open1, _close1, _low1, _low2, _low3, _low4, _high1, _high2, _high3, _high4)
  IsConditionState
description Evaluate a condition state based on type for COB, FVG, or FOB.
Overloaded: first signature handles COB, second handles FVG/FOB.
  Parameters:
    _type (string): string Condition type ("cob", "fvg", "fob").
    _isBull (bool): bool Direction flag: true for bullish, false for bearish.
    _level (int): int Swing level (only used for COB).
    _open (float): float Current bar open price (only for COB).
    _close (float): float Current bar close price (only for COB).
    _open1 (float): float Previous bar open price (only for COB).
    _close1 (float): float Previous bar close price (only for COB).
    _low1 (float): float Low 1 bar ago (only for COB).
    _low2 (float): float Low 2 bars ago (only for COB).
    _low3 (float): float Low 3 bars ago (only for COB).
    _low4 (float): float Low 4 bars ago (only for COB).
    _high1 (float): float High 1 bar ago (only for COB).
    _high2 (float): float High 2 bars ago (only for COB).
    _high3 (float): float High 3 bars ago (only for COB).
    _high4 (float): float High 4 bars ago (only for COB).
return bool True if the specified condition is met, false otherwise.

IsConditionState(_type, _isBull, _pricePrev, _priceNow)
  IsConditionState
description Evaluate FVG or FOB condition based on price movement.
  Parameters:
    _type (string): string Condition type ("fvg", "fob").
    _isBull (bool): bool Direction flag: true for bullish, false for bearish.
    _pricePrev (float): float Previous price (for FVG/FOB).
    _priceNow (float): float Current price (for FVG/FOB).
return bool True if the specified condition is met, false otherwise.

IsSwingHighLow(_isBull, _level, _open, _close, _open1, _close1, _low1, _low2, _low3, _low4, _high1, _high2, _high3, _high4)
  IsSwingHighLow
description Public wrapper for isSwingHighLow.
  Parameters:
    _isBull (bool): bool Direction flag: true for bullish, false for bearish.
    _level (int): int Swing level (1 or 2).
    _open (float): float Current bar open price.
    _close (float): float Current bar close price.
    _open1 (float): float Previous bar open price.
    _close1 (float): float Previous bar close price.
    _low1 (float): float Low 1 bar ago.
    _low2 (float): float Low 2 bars ago.
    _low3 (float): float Low 3 bars ago.
    _low4 (float): float Low 4 bars ago.
    _high1 (float): float High 1 bar ago.
    _high2 (float): float High 2 bars ago.
    _high3 (float): float High 3 bars ago.
    _high4 (float): float High 4 bars ago.
return bool True if swing condition is met, false otherwise.

AddBox(_left, _right, _top, _bot, _xloc, _colorBG, _colorBD)
  AddBox
description Draw a rectangular box on the chart with specified coordinates and colors.
  Parameters:
    _left (int): int Left bar index for the box.
    _right (int): int Right bar index for the box.
    _top (float): float Top price coordinate for the box.
    _bot (float): float Bottom price coordinate for the box.
    _xloc (string): string X-axis location type (e.g., xloc.bar_index).
    _colorBG (color): color Background color for the box.
    _colorBD (color): color Border color for the box.
return box Returns the created box object.

Addline(_x, _y, _xloc, _color, _width)
  Addline
description Draw a vertical or horizontal line at specified coordinates.
  Parameters:
    _x (int): int X-coordinate for start (bar index).
    _y (int): float Y-coordinate for start (price).
    _xloc (string): string X-axis location type (e.g., xloc.bar_index).
    _color (color): color Line color.
    _width (int): int Line width.
return line Returns the created line object.

Addline(_x, _y, _xloc, _color, _width)
  Parameters:
    _x (int)
    _y (float)
    _xloc (string)
    _color (color)
    _width (int)

Addline(_x1, _y1, _x2, _y2, _xloc, _color, _width)
  Parameters:
    _x1 (int)
    _y1 (int)
    _x2 (int)
    _y2 (int)
    _xloc (string)
    _color (color)
    _width (int)

Addline(_x1, _y1, _x2, _y2, _xloc, _color, _width)
  Parameters:
    _x1 (int)
    _y1 (int)
    _x2 (int)
    _y2 (float)
    _xloc (string)
    _color (color)
    _width (int)

Addline(_x1, _y1, _x2, _y2, _xloc, _color, _width)
  Parameters:
    _x1 (int)
    _y1 (float)
    _x2 (int)
    _y2 (int)
    _xloc (string)
    _color (color)
    _width (int)

Addline(_x1, _y1, _x2, _y2, _xloc, _color, _width)
  Parameters:
    _x1 (int)
    _y1 (float)
    _x2 (int)
    _y2 (float)
    _xloc (string)
    _color (color)
    _width (int)

AddlineMid(_type, _left, _right, _top, _bot, _xloc, _color, _width)
  AddlineMid
description Draw a midline between top and bottom for FVG or FOB types.
  Parameters:
    _type (string): string Type identifier: "fvg" or "fob".
    _left (int): int Left bar index for midline start.
    _right (int): int Right bar index for midline end.
    _top (float): float Top price of the region.
    _bot (float): float Bottom price of the region.
    _xloc (string): string X-axis location type (e.g., xloc.bar_index).
    _color (color): color Line color.
    _width (int): int Line width.
return line or na Returns the created line or na if type is not recognized.

GetHtfFromLabel(_label)
  GetHtfFromLabel
description Convert a Korean HTF label into a Pine Script timeframe string via handler library.
  Parameters:
    _label (string): string The Korean label (e.g., "5분", "1시간").
return string Returns the corresponding Pine Script timeframe (e.g., "5", "60").

IsChartTFcomparisonHTF(_chartTf, _htfTf)
  IsChartTFcomparisonHTF
description Determine whether a given HTF is greater than or equal to the current chart timeframe.
  Parameters:
    _chartTf (string): string Current chart timeframe (e.g., "5", "15", "1D").
    _htfTf (string): string HTF timeframe (e.g., "60", "1D").
return bool True if HTF ≥ chartTF, false otherwise.

CreateBoxData(_type, _isBull, _useLine, _top, _bot, _xloc, _colorBG, _colorBD, _offset, _htfTf, htfBarIdx, _basePoint)
  CreateBoxData
description Create and draw a box and optional midline for given type and parameters. Returns success flag and BoxData.
  Parameters:
    _type (string): string Type identifier: "fvg", "fob", "cob", or "sweep".
    _isBull (bool): bool Direction flag: true for bullish, false for bearish.
    _useLine (bool): bool Whether to draw a midline inside the box.
    _top (float): float Top price of the box region.
    _bot (float): float Bottom price of the box region.
    _xloc (string): string X-axis location type (e.g., xloc.bar_index).
    _colorBG (color): color Background color for the box.
    _colorBD (color): color Border color for the box.
    _offset (int): int HTF bar offset (0 means current HTF bar).
    _htfTf (string): string HTF timeframe string (e.g., "60", "1D").
    htfBarIdx (int): int HTF bar_index (passed from HTF request).
    _basePoint (float): float Base point for breakout checks.
return tuple(bool, BoxData) Returns a boolean indicating success and the created BoxData struct.

ProcessBoxDatas(_datas, _useMidLine, _closeCount, _colorClose)
  ProcessBoxDatas
description Process an array of BoxData structs: extend, record volume, update stage, and finalize boxes.
  Parameters:
    _datas (array<BoxData>): array<BoxData> Array of BoxData objects to process.
    _useMidLine (bool): bool Whether to update the midline endpoint.
    _closeCount (int): int Number of touches required to close the box.
    _colorClose (color): color Color to apply when a box closes.
return void No return value; updates are in-place.

BoxData
  Fields:
    _isActive (series bool)
    _isBull (series bool)
    _box (series box)
    _line (series line)
    _basePoint (series float)
    _boxTop (series float)
    _boxBot (series float)
    _stage (series int)
    _isStay (series bool)
    _volBuy (series float)
    _volSell (series float)
    _result (series string)

LineData
  Fields:
    _isActive (series bool)
    _isBull (series bool)
    _line (series line)
    _basePoint (series float)
    _stage (series int)
    _isStay (series bool)
    _result (series string)
Notas de prensa
v2

더해짐
GetHTFrevised(_tf, _case)
  GetHTFrevised
description
Retrieve a specific bar value from a Higher Time Frame (HTF) series.
Supports current and historical OHLC values, based on a case identifier.
  Parameters:
    _tf (string): The target HTF string (examples: "60", "1D").
    _case (string): A case string determining which OHLC value and bar offset to request:
"b" → HTF bar_index
"o" → HTF open
"h" → HTF high
"l" → HTF low
"c" → HTF close
"o1" → HTF open one bar ago
"h1" → HTF high one bar ago
"l1" → HTF low one bar ago
"c1" → HTF close one bar ago
… up to "o5", "h5", "l5", "c5" for five bars ago.
return
Returns the requested HTF value or na if _case does not match any condition.
Notas de prensa

GetHTFrevised(_tf)
  Parameters:
    _tf (string)
Notas de prensa
v4

업데이트됨
IsSwingHighLow(_isBull, _level, _open, _close, _open1, _close1, _low1, _low2, _low3, _low4, _high1, _high2, _high3, _high4, _upperBand1, _lowerBand1)
  IsSwingHighLow
description Public wrapper for isSwingHighLow.
  Parameters:
    _isBull (bool): bool Direction flag: true for bullish, false for bearish.
    _level (int): int Swing level (1 or 2).
    _open (float): float Current bar open price.
    _close (float): float Current bar close price.
    _open1 (float): float Previous bar open price.
    _close1 (float): float Previous bar close price.
    _low1 (float): float Low 1 bar ago.
    _low2 (float): float Low 2 bars ago.
    _low3 (float): float Low 3 bars ago.
    _low4 (float): float Low 4 bars ago.
    _high1 (float): float High 1 bar ago.
    _high2 (float): float High 2 bars ago.
    _high3 (float): float High 3 bars ago.
    _high4 (float): float High 4 bars ago.
return bool True if swing condition is met, false otherwise.
    _upperBand1 (float)
    _lowerBand1 (float)
Notas de prensa
v5

더해짐
IsStateSwing(_isBull, _level, _low, _low1, _low2, _low3, _low4, _high, _high1, _high2, _high3, _high4)
  IsSwingHighLow
description Public wrapper for isSwingHighLow.
  Parameters:
    _isBull (bool): bool Direction flag: true for bullish, false for bearish.
    _level (int): int Swing level (1 or 2).
    _low (float)
    _low1 (float): float Low 1 bar ago.
    _low2 (float): float Low 2 bars ago.
    _low3 (float): float Low 3 bars ago.
    _low4 (float): float Low 4 bars ago.
    _high (float)
    _high1 (float): float High 1 bar ago.
    _high2 (float): float High 2 bars ago.
    _high3 (float): float High 3 bars ago.
    _high4 (float): float High 4 bars ago.
return bool True if swing condition is met, false otherwise.

없어짐
IsSwingHighLow(_isBull, _level, _open, _close, _open1, _close1, _low1, _low2, _low3, _low4, _high1, _high2, _high3, _high4, _upperBand1, _lowerBand1)
  IsSwingHighLow
description Public wrapper for isSwingHighLow.
Notas de prensa
v6
Notas de prensa
v7
Notas de prensa
v8
Notas de prensa
v9

업데이트됨
AddBox(_left, _right, _top, _bot, _xloc, _colorBG, _colorBD, _text)
  AddBox
description Draw a rectangular box on the chart with specified coordinates and colors.
  Parameters:
    _left (int): int Left bar index for the box.
    _right (int): int Right bar index for the box.
    _top (float): float Top price coordinate for the box.
    _bot (float): float Bottom price coordinate for the box.
    _xloc (string): string X-axis location type (e.g., xloc.bar_index).
    _colorBG (color): color Background color for the box.
    _colorBD (color): color Border color for the box.
    _text (string): string box text
return box Returns the created box object.
Notas de prensa
v10
Notas de prensa
v11
Notas de prensa
v12
Notas de prensa
v13
Notas de prensa
v14

CreateTimeframeConfig(_label, _timeframe, _useFOBbox, _useFOBline, _cntFOBClose, _clrFOBbull, _clrFOBbear, _clrFOBtransp)
  CreateTimeframeConfig


CreateTimeframeConfigArray(_highTFLabel, _highTFuseFOBbox, _highTFuseFOBline, _highTFcntFOBClose, _highTFclrFOBbull, _highTFclrFOBbear, _highTFclrFOBtransp, _midTFLabel, _midTFuseFOBbox, _midTFuseFOBline, _midTFcntFOBClose, _midTFclrFOBbull, _midTFclrFOBbear, _midTFclrFOBtransp, _currentTFuseFOBbox, _currentTFuseFOBline, _currentTFcntFOBClose, _currentTFclrFOBbull, _currentTFclrFOBbear, _currentTFclrFOBtransp)
Notas de prensa
v15

더해짐
IsConditionState(_type, _isBull, _pricePrev, _priceNow)
  Parameters:
    _type (string)
    _isBull (bool)
    _pricePrev (float)
    _priceNow (float)

IsStateSwing(_isBull, _level, _low, _low1, _low2, _low3, _low4, _high, _high1, _high2, _high3, _high4)
  Parameters:
    _isBull (bool)
    _level (int)
    _low (float)
    _low1 (float)
    _low2 (float)
    _low3 (float)
    _low4 (float)
    _high (float)
    _high1 (float)
    _high2 (float)
    _high3 (float)
    _high4 (float)

AddlineMid(_type, _left, _right, _top, _bot, _xloc, _color, _width)
  Parameters:
    _type (string)
    _left (int)
    _right (int)
    _top (float)
    _bot (float)
    _xloc (string)
    _color (color)
    _width (int)

CreateBoxData(_type, _isBull, _useLine, _top, _bot, _xloc, _colorBG, _colorBD, _offset, _htfTf, htfBarIdx, _basePoint)
  Parameters:
    _type (string)
    _isBull (bool)
    _useLine (bool)
    _top (float)
    _bot (float)
    _xloc (string)
    _colorBG (color)
    _colorBD (color)
    _offset (int)
    _htfTf (string)
    htfBarIdx (int)
    _basePoint (float)

ProcessBoxDatas(_datas, _useMidLine, _closeCount, _colorClose)
  Parameters:
    _datas (array<BoxData>)
    _useMidLine (bool)
    _closeCount (int)
    _colorClose (color)

LineData
  Fields:
    _isActive (series bool)
    _isBull (series bool)
    _line (series line)
    _basePoint (series float)
    _stage (series int)
    _isStay (series bool)
    _result (series string)

업데이트됨
GetHTFoffsetToLTFoffset(_offset, _chartTf, _htfTf)
  Parameters:
    _offset (int)
    _chartTf (string)
    _htfTf (string)

AddBox(_left, _right, _top, _bot, _xloc, _colorBG, _colorBD, _text)
  Parameters:
    _left (int)
    _right (int)
    _top (float)
    _bot (float)
    _xloc (string)
    _colorBG (color)
    _colorBD (color)
    _text (string)

Addline(_x1, _y1, _x2, _y2, _xloc, _color, _width)
  Parameters:
    _x1 (int)
    _y1 (float)
    _x2 (int)
    _y2 (float)
    _xloc (string)
    _color (color)
    _width (int)

GetHtfFromLabel(_label)
  Parameters:
    _label (string)

IsChartTFcomparisonHTF(_chartTf, _htfTf)
  Parameters:
    _chartTf (string)
    _htfTf (string)

없어짐
CreateTimeframeConfig(_label, _timeframe, _useFOBbox, _useFOBline, _cntFOBClose, _clrFOBbull, _clrFOBbear, _clrFOBtransp)
  CreateTimeframeConfig
description Create a new TimeframeConfig for the specified timeframe settings.

CreateTimeframeConfigArray(_highTFLabel, _highTFuseFOBbox, _highTFuseFOBline, _highTFcntFOBClose, _highTFclrFOBbull, _highTFclrFOBbear, _highTFclrFOBtransp, _midTFLabel, _midTFuseFOBbox, _midTFuseFOBline, _midTFcntFOBClose, _midTFclrFOBbull, _midTFclrFOBbear, _midTFclrFOBtransp, _currentTFuseFOBbox, _currentTFuseFOBline, _currentTFcntFOBClose, _currentTFclrFOBbull, _currentTFclrFOBbear, _currentTFclrFOBtransp)
  CreateTimeframeConfigArray
description Create an array of TimeframeConfig objects for multiple timeframes.

CreateHTFDataCache(_timeframe)
  CreateHTFDataCache
description Create a new HTF data cache for the specified timeframe.

UpdateHTFCache(_cache)
  UpdateHTFCache
description Update HTF cache with fresh data if needed.

BatchHTFRequesterWithBarIndex(_timeframe)
  BatchHTFRequesterWithBarIndex
description Request multiple HTF data points including bar index (exported version).

IsHTFCacheValid(_cache)
  IsHTFCacheValid
description Check if HTF cache is valid for the current bar.

CleanupBoxArray(_boxes, _maxSize)
  CleanupBoxArray
description Automatically clean up inactive boxes from an array.

OptimizedBoxData

TimeframeConfig

HTFDataCache
Notas de prensa
v16

업데이트됨
CreateBoxData(_type, _isBull, _useLine, _top, _bot, _xloc, _colorBG, _colorBD, _offset, _htfTf, htfBarIdx, _basePoint, _boxText)
  Parameters:
    _type (string)
    _isBull (bool)
    _useLine (bool)
    _top (float)
    _bot (float)
    _xloc (string)
    _colorBG (color)
    _colorBD (color)
    _offset (int)
    _htfTf (string)
    htfBarIdx (int)
    _basePoint (float)
    _boxText (string)
Notas de prensa
box text color
Notas de prensa
v18
Notas de prensa
v19
Notas de prensa
v20
Notas de prensa
v21

업데이트됨
ProcessBoxDatas(_datas, _useMidLine, _closeCount, _colorClose, _currentBarIndex, _currentVolume, _currentClose, _currentOpen, _currentLow, _currentHigh, _hideClosedBoxes)
  ProcessBoxDatas
description Process an array of BoxData structs: extend, record volume, update stage, and finalize boxes.
  Parameters:
    _datas (array<BoxData>): array<BoxData> Array of BoxData objects to process.
    _useMidLine (bool): bool Whether to update the midline endpoint.
    _closeCount (int): int Number of touches required to close the box.
    _colorClose (color): color Color to apply when a box closes.
    _currentBarIndex (int): int Current bar index.
    _currentVolume (float): float Current bar volume.
    _currentClose (float): float Current bar close price.
    _currentOpen (float): float Current bar open price.
    _currentLow (float): float Current bar low price.
    _currentHigh (float): float Current bar high price.
    _hideClosedBoxes (bool): bool If true, hide closed boxes by setting transparency to 100%.
return void No return value; updates are in-place.
Notas de prensa
v22

업데이트됨
GetHTFoffsetToLTFoffset(_offset, _chartTf, _htfTf)
  Parameters:
    _offset (int)
    _chartTf (string)
    _htfTf (string)

IsConditionState(_type, _isBull, _pricePrev, _priceNow)
  Parameters:
    _type (string)
    _isBull (bool)
    _pricePrev (float)
    _priceNow (float)

IsStateSwing(_isBull, _level, _low, _low1, _low2, _low3, _low4, _high, _high1, _high2, _high3, _high4)
  Parameters:
    _isBull (bool)
    _level (int)
    _low (float)
    _low1 (float)
    _low2 (float)
    _low3 (float)
    _low4 (float)
    _high (float)
    _high1 (float)
    _high2 (float)
    _high3 (float)
    _high4 (float)

AddBox(_left, _right, _top, _bot, _xloc, _colorBG, _colorBD, _text)
  Parameters:
    _left (int)
    _right (int)
    _top (float)
    _bot (float)
    _xloc (string)
    _colorBG (color)
    _colorBD (color)
    _text (string)

AddlineMid(_type, _left, _right, _top, _bot, _xloc, _color, _width)
  Parameters:
    _type (string)
    _left (int)
    _right (int)
    _top (float)
    _bot (float)
    _xloc (string)
    _color (color)
    _width (int)

GetHtfFromLabel(_label)
  Parameters:
    _label (string)

IsChartTFcomparisonHTF(_chartTf, _htfTf)
  Parameters:
    _chartTf (string)
    _htfTf (string)

CreateBoxData(_type, _isBull, _useLine, _top, _bot, _xloc, _colorBG, _colorBD, _offset, _htfTf, htfBarIdx)
  Parameters:
    _type (string)
    _isBull (bool)
    _useLine (bool)
    _top (float)
    _bot (float)
    _xloc (string)
    _colorBG (color)
    _colorBD (color)
    _offset (int)
    _htfTf (string)
    htfBarIdx (int)

ProcessBoxDatas(_openBoxes, _closedBoxes, _basePoint, _useMidLine, _closeCount, _colorClose, _currentBarIndex, _currentLow, _currentHigh, _hideClosedBoxes)
  Parameters:
    _openBoxes (array<BoxData>)
    _closedBoxes (array<BoxData>)
    _basePoint (float)
    _useMidLine (bool)
    _closeCount (int)
    _colorClose (color)
    _currentBarIndex (int)
    _currentLow (float)
    _currentHigh (float)
    _hideClosedBoxes (bool)

BoxData
  Fields:
    _isBull (series bool)
    _box (series box)
    _line (series line)
    _boxTop (series float)
    _boxBot (series float)
    _boxMid (series float)
    _topBreached (series bool)
    _bottomBreached (series bool)
    _breakCount (series int)
    _stage (series int)
    _isStay (series bool)
    _createdBar (series int)
Notas de prensa
v23

더해짐
CalculateBoxSize(useOHLC, open, close, high, low)
  Parameters:
    useOHLC (bool)
    open (float)
    close (float)
    high (float)
    low (float)
Notas de prensa
v24

업데이트됨
CreateBoxData(_type, _isBull, _useLine, _top, _bot, _xloc, _colorBG, _colorBD, _offset, _htfTf, htfBarIdx, _chartTf, _currentBarIndex)
  Parameters:
    _type (string)
    _isBull (bool)
    _useLine (bool)
    _top (float)
    _bot (float)
    _xloc (string)
    _colorBG (color)
    _colorBD (color)
    _offset (int)
    _htfTf (string)
    htfBarIdx (int)
    _chartTf (string)
    _currentBarIndex (int)

ProcessBoxDatas(_openBoxes, _closedBoxes, _basePoint, _useMidLine, _closeCount, _colorClose, _currentBarIndex, _currentLow, _currentHigh)
  Parameters:
    _openBoxes (array<BoxData>)
    _closedBoxes (array<BoxData>)
    _basePoint (float)
    _useMidLine (bool)
    _closeCount (int)
    _colorClose (color)
    _currentBarIndex (int)
    _currentLow (float)
    _currentHigh (float)

CalculateBoxSize(useOHLC, _open, _close, _high, _low)
  Parameters:
    useOHLC (bool)
    _open (float)
    _close (float)
    _high (float)
    _low (float)
Notas de prensa
v25

업데이트됨
CreateBoxData(_type, _isBull, _useLine, _top, _bot, _xloc, _colorBG, _colorBD, _offset, _htfTf, htfBarIdx, _currentBarIndex)
  Parameters:
    _type (string)
    _isBull (bool)
    _useLine (bool)
    _top (float)
    _bot (float)
    _xloc (string)
    _colorBG (color)
    _colorBD (color)
    _offset (int)
    _htfTf (string)
    htfBarIdx (int)
    _currentBarIndex (int)
Notas de prensa
v26

업데이트됨
ProcessBoxDatas(_openBoxes, _closedBoxes, _useMidLine, _closeCount, _colorClose, _currentBarIndex, _currentLow, _currentHigh)
  Parameters:
    _openBoxes (array<BoxData>)
    _closedBoxes (array<BoxData>)
    _useMidLine (bool)
    _closeCount (int)
    _colorClose (color)
    _currentBarIndex (int)
    _currentLow (float)
    _currentHigh (float)

BoxData
  Fields:
    _isBull (series bool)
    _box (series box)
    _line (series line)
    _boxTop (series float)
    _boxBot (series float)
    _boxMid (series float)
    _topBreached (series bool)
    _bottomBreached (series bool)
    _breakCount (series int)
    _createdBar (series int)

없어짐
LineData
Notas de prensa
v27

업데이트됨
CreateBoxData(_type, _isBull, _useLine, _top, _bot, _xloc, _colorBG, _colorBD, _offset, _htfTf, htfBarIdx, _currentBarIndex, _leftTime, _rightTime)
  Parameters:
    _type (string)
    _isBull (bool)
    _useLine (bool)
    _top (float)
    _bot (float)
    _xloc (string)
    _colorBG (color)
    _colorBD (color)
    _offset (int)
    _htfTf (string)
    htfBarIdx (int)
    _currentBarIndex (int)
    _leftTime (int)
    _rightTime (int)

ProcessBoxDatas(_openBoxes, _closedBoxes, _useMidLine, _closeCount, _colorClose, _currentBarIndex, _currentLow, _currentHigh, _currentTime)
  Parameters:
    _openBoxes (array<BoxData>)
    _closedBoxes (array<BoxData>)
    _useMidLine (bool)
    _closeCount (int)
    _colorClose (color)
    _currentBarIndex (int)
    _currentLow (float)
    _currentHigh (float)
    _currentTime (int)
Notas de prensa
v28

더해짐
CreateFOBBox(tf, isBull, useLine, colorBG, colorBD)
  Parameters:
    tf (string): 시간대
    isBull (bool): 방향 (true: 강세, false: 약세)
    useLine (bool): 미드라인 표시 여부
    colorBG (color): 배경색
    colorBD (color): 테두리색
  Returns: [success, BoxData] 생성 결과

없어짐
CreateBoxData(_type, _isBull, _useLine, _top, _bot, _xloc, _colorBG, _colorBD, _offset, _htfTf, htfBarIdx, _currentBarIndex, _leftTime, _rightTime)
Notas de prensa
v29

업데이트됨
BoxData
  Fields:
    _type (series string)
    _isBull (series bool)
    _box (series box)
    _line (series line)
    _boxTop (series float)
    _boxBot (series float)
    _boxMid (series float)
    _topBreached (series bool)
    _bottomBreached (series bool)
    _breakCount (series int)
    _createdBar (series int)
Notas de prensa
v30
Notas de prensa
v31
Notas de prensa
v32

더해짐
FOBIsCondition(isBull, pricePrev, priceNow)
  Parameters:
    isBull (bool): 방향
    pricePrev (float): 이전 가격
    priceNow (float): 현재 가격
  Returns: bool 조건 만족 여부

SweepIsCondition(high2, high1, high0, low2, low1, low0)
  Parameters:
    high2 (float): 2봉 전 고가
    high1 (float): 1봉 전 고가
    high0 (float): 현재 고가
    low2 (float): 2봉 전 저가
    low1 (float): 1봉 전 저가
    low0 (float): 현재 저가
  Returns: bool 조건 만족 여부

FVGIsCondition(isBull, pricePrev, priceNow)
  Parameters:
    isBull (bool): 방향
    pricePrev (float): 이전 가격
    priceNow (float): 현재 가격
  Returns: bool 조건 만족 여부

COBIsCondition(isBull, level, low, low1, low2, low3, low4, high, high1, high2, high3, high4)
  Parameters:
    isBull (bool): 방향
    level (int): 레벨
    low (float)
    low1 (float)
    low2 (float)
    low3 (float)
    low4 (float)
    high (float)
    high1 (float)
    high2 (float)
    high3 (float)
    high4 (float)
  Returns: bool 조건 만족 여부

FOBCreateBox(tf, isBull, useLine, colorBG, colorBD)
  Parameters:
    tf (string): 시간대
    isBull (bool): 방향 (true: 강세, false: 약세)
    useLine (bool): 미드라인 표시 여부
    colorBG (color): 배경색
    colorBD (color): 테두리색
  Returns: [success, BoxData] 생성 결과

SweepCreateBox(tf, useLine, colorBG, colorBD)
  Parameters:
    tf (string): 시간대
    useLine (bool): 미드라인 표시 여부
    colorBG (color): 배경색
    colorBD (color): 테두리색
  Returns: [success, BoxData] 생성 결과

FOBProcessBoxDatas(openBoxes, closedBoxes, useMidLine, closeCount, colorClose, currentBarIndex, currentLow, currentHigh, currentTime)
  Parameters:
    openBoxes (array<BoxData>)
    closedBoxes (array<BoxData>)
    useMidLine (bool)
    closeCount (int)
    colorClose (color)
    currentBarIndex (int)
    currentLow (float)
    currentHigh (float)
    currentTime (int)

SweepProcessBoxDatas(openBoxes, closedBoxes, useMidLine, closeCount, colorClose, currentBarIndex, currentLow, currentHigh, currentTime)
  Parameters:
    openBoxes (array<BoxData>)
    closedBoxes (array<BoxData>)
    useMidLine (bool)
    closeCount (int)
    colorClose (color)
    currentBarIndex (int)
    currentLow (float)
    currentHigh (float)
    currentTime (int)

FVGProcessBoxDatas(openBoxes, closedBoxes, useMidLine, closeCount, colorClose, currentBarIndex, currentLow, currentHigh, currentTime)
  Parameters:
    openBoxes (array<BoxData>)
    closedBoxes (array<BoxData>)
    useMidLine (bool)
    closeCount (int)
    colorClose (color)
    currentBarIndex (int)
    currentLow (float)
    currentHigh (float)
    currentTime (int)

없어짐
IsConditionState(_type, _isBull, _pricePrev, _priceNow)

CreateFOBBox(tf, isBull, useLine, colorBG, colorBD)

ProcessBoxDatas(_openBoxes, _closedBoxes, _useMidLine, _closeCount, _colorClose, _currentBarIndex, _currentLow, _currentHigh, _currentTime)
Notas de prensa
v33

더해짐
UpdateHTFCache(cache, tf)
  Parameters:
    cache (HTFCache): HTFCache 캐시 객체
    tf (string): string 시간대
  Returns: HTFCache 업데이트된 캐시

GetTimeframeSettings(currentTF, midTF1m, highTF1m, midTF5m, highTF5m, midTF15m, highTF15m, midTF30m, highTF30m, midTF60m, highTF60m, midTF240m, highTF240m, midTF1D, highTF1D, midTF1W, highTF1W, midTF1M, highTF1M)
  Parameters:
    currentTF (string): string 현재 차트 시간대
    midTF1m (string): string 1분 차트의 중위 시간대
    highTF1m (string): string 1분 차트의 상위 시간대
... (모든 시간대 파라미터)
    midTF5m (string)
    highTF5m (string)
    midTF15m (string)
    highTF15m (string)
    midTF30m (string)
    highTF30m (string)
    midTF60m (string)
    highTF60m (string)
    midTF240m (string)
    highTF240m (string)
    midTF1D (string)
    highTF1D (string)
    midTF1W (string)
    highTF1W (string)
    midTF1M (string)
    highTF1M (string)
  Returns: [midTF, highTF] 선택된 중위/상위 시간대

HTFCache
  Fields:
    _timeframe (series string)
    _lastBarIndex (series int)
    _isNewBar (series bool)
    _barIndex (series int)
    _open (series float)
    _high (series float)
    _low (series float)
    _close (series float)
    _open1 (series float)
    _close1 (series float)
    _high1 (series float)
    _low1 (series float)
    _open2 (series float)
    _close2 (series float)
    _high2 (series float)
    _low2 (series float)
    _high3 (series float)
    _low3 (series float)
    _time1 (series int)
    _time2 (series int)
Notas de prensa
v34

edit function
GetHTFrevised(_tf)

GetHTFoffsetToLTFoffset(_offset, _chartTf, _htfTf)

AddBox(_left, _right, _top, _bot, _xloc, _colorBG, _colorBD, _text)

Addline(_x1, _y1, _x2, _y2, _xloc, _color, _width)

AddlineMid(_type, _left, _right, _top, _bot, _xloc, _color, _width)
Notas de prensa
v35

add
BaseCreateBox(isBull, top, bottom, leftBar, colorBG, colorBD, _text)
  Parameters:
    isBull (bool): 방향
    top (float): 상단 가격
    bottom (float): 하단 가격
    leftBar (int): 시작 바
    colorBG (color): 배경색
    colorBD (color): 테두리색
    _text (string)
  Returns: [success, BoxData]

BaseProcessBoxDatas(openBoxes, closedBoxes, closeCount, colorClose, currentBarIndex, currentLow, currentHigh)
  Parameters:
    openBoxes (array<BoxData>)
    closedBoxes (array<BoxData>)
    closeCount (int)
    colorClose (color)
    currentBarIndex (int)
    currentLow (float)
    currentHigh (float)
Notas de prensa
v36

업데이트됨
FOBCreateBox(tf, _isBull, _useLine, _colorBG, _colorBD, _colorText)
  Parameters:
    tf (string): 시간대
    _isBull (bool)
    _useLine (bool)
    _colorBG (color)
    _colorBD (color)
    _colorText (color)
  Returns: [success, BoxData] 생성 결과

SweepCreateBox(tf, useLine, colorBG, colorBD, _colorText)
  Parameters:
    tf (string): 시간대
    useLine (bool): 미드라인 표시 여부
    colorBG (color): 배경색
    colorBD (color): 테두리색
    _colorText (color)
  Returns: [success, BoxData] 생성 결과

BaseCreateBox(isBull, top, bottom, leftBar, colorBG, colorBD, _colorText, _text)
  Parameters:
    isBull (bool): 방향
    top (float): 상단 가격
    bottom (float): 하단 가격
    leftBar (int): 시작 바
    colorBG (color): 배경색
    colorBD (color): 테두리색
    _colorText (color)
    _text (string)
  Returns: [success, BoxData]
Notas de prensa
v37
Notas de prensa
v38
Notas de prensa
v39

업데이트됨
CreateBox(_boxType, _rbType, _isBull, _top, _bottom, _colorBG, _colorBD, _colorText)
  Parameters:
    _boxType (string): "rb" 고정
    _rbType (string): 실제 타입 ("rb1" 또는 "rb2")
    _isBull (bool): 방향 (true: 상승, false: 하락)
    _top (float): 상단 가격
    _bottom (float): 하단 가격
    _colorBG (color): 배경색
    _colorBD (color): 테두리색
    _colorText (color): 텍스트 색상
  Returns: [success, BoxData]
Notas de prensa
v40
Notas de prensa
v41

업데이트됨
CreateBox(_boxType, _isBull, _top, _bottom, _leftBar, _colorBG, _colorBD, _colorText, _text)
  Parameters:
    _boxType (string): 박스 타입 ("base", "rb1", "rb2" 등)
    _isBull (bool): 방향
    _top (float): 상단 가격
    _bottom (float): 하단 가격
    _leftBar (int): 시작 바
    _colorBG (color): 배경색
    _colorBD (color): 테두리색
    _colorText (color): 텍스트 색상
    _text (string): 박스 텍스트
  Returns: [success, BoxData]
Notas de prensa
v42
Notas de prensa
v43
Notas de prensa
v44
Notas de prensa
v45
Notas de prensa
v46
Notas de prensa
v47

업데이트됨
RBIsCondition(open1, close1, open0, close0)
  Parameters:
    open1 (float)
    close1 (float)
    open0 (float)
    close0 (float)
Notas de prensa
v48
Notas de prensa
v49
Notas de prensa
v50

더해짐
CalculateBoxSize(useOHLC, _open, _close, _high, _low)
  Parameters:
    useOHLC (bool)
    _open (float)
    _close (float)
    _high (float)
    _low (float)

없어짐
IsCondition(_boxType, _isBull, _high0, _high1, _high2, _high3, _high4, _low0, _low1, _low2, _low3, _low4, _pricePrev, _priceNow, _level)

CreateBox(_boxType, _tf, _isBull, _useLine, _colorBG, _colorBD, _colorText, _top, _bottom, _leftBar, _text)

ProcessBoxDatas(_openBoxes, _closedBoxes, _useMidLine, _closeCount, _colorClose, _currentBarIndex, _currentLow, _currentHigh, _currentTime)
Notas de prensa
v51

Notas de prensa
v52
Notas de prensa
v53
Notas de prensa
v54
Notas de prensa
v55
Notas de prensa
v56

Notas de prensa
v57
Notas de prensa
v58


CreateBox(_boxType, _tf, _isBull, _useLine, _colorBG, _colorBD, _colorText, _cache, _customText)
  Parameters:
    _boxType (string)
    _tf (string)
    _isBull (bool)
    _useLine (bool)
    _colorBG (color)
    _colorBD (color)
    _colorText (color)
    _cache (HTFCache)
    _customText (string)
Notas de prensa
v59

업데이트됨
BoxData
  Fields:
    _type (series string)
    _breachMode (series string)
    _isBull (series bool)
    _box (series box)
    _line (series line)
    _boxTop (series float)
    _boxBot (series float)
    _boxMid (series float)
    _topBreached (series bool)
    _bottomBreached (series bool)
    _breakCount (series int)
    _createdBar (series int)
Notas de prensa
v60
Notas de prensa
v61
Notas de prensa
v62

업데이트됨
CreateBox(_boxType, _breachMode, _tf, _isBull, _useLine, _colorBG, _colorBD, _colorText, _cache, _customText)
  Parameters:
    _boxType (string)
    _breachMode (string)
    _tf (string)
    _isBull (bool)
    _useLine (bool)
    _colorBG (color)
    _colorBD (color)
    _colorText (color)
    _cache (HTFCache)
    _customText (string)
Notas de prensa
v63

업데이트됨
BoxData
  BoxData
  Fields:
    _type (series string): 박스 타입 (fob, fvg, sweep, rb, custom 등)
    _breachMode (series string): 돌파 처리 방식
    _isBull (series bool): 상승(true) 또는 하락(false) 방향
    _box (series box)
    _line (series line)
    _boxTop (series float)
    _boxBot (series float)
    _boxMid (series float)
    _topBreached (series bool)
    _bottomBreached (series bool)
    _breakCount (series int)
    _createdBar (series int)
Notas de prensa
v64
Notas de prensa
v65
Notas de prensa
v66
Notas de prensa
v67
Notas de prensa
v68
Notas de prensa
v69
Notas de prensa
v70
Notas de prensa
v71

Exención de responsabilidad

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.