PINE LIBRARY
업데이트됨 Mirpapa_Lib_box

Library "Mirpapa_Lib_box"
AddFVG(boxes, htfTimeframe, htfBarIndex, top, bottom, isBull, _text)
AddFVG
description FVG 박스 데이터 추가
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대 ("60", "240", "D")
htfBarIndex (int): int HTF bar_index
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향 (true=상승, false=하락)
_text (string)
Returns: void
AddOB(boxes, htfTimeframe, htfBarIndex, top, bottom, isBull, _text)
AddOB
description OB 박스 데이터 추가
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대
htfBarIndex (int): int HTF bar_index
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향
_text (string)
Returns: void
AddBB(boxes, htfTimeframe, htfBarIndex, top, bottom, isBull, _text)
AddBB
description BB 박스 데이터 추가
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대
htfBarIndex (int): int HTF bar_index
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향
_text (string)
Returns: void
AddRB(boxes, htfTimeframe, htfBarIndex, top, bottom, isBull, _text)
AddRB
description RB 박스 데이터 추가
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대
htfBarIndex (int): int HTF bar_index
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향
_text (string)
Returns: void
ProcessBoxes(boxes, boxType, colorBull, colorBear, closeCount, useLine, textAlignH, textAlignV, closeColor)
ProcessBoxes
description 박스 배열 처리 (생성→확장→터치→종료)
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
boxType (string): string 박스 타입 ("FVG", "OB", "BB", "RB")
colorBull (color): color 상승 색상
colorBear (color): color 하락 색상
closeCount (int): int 터치 종료 횟수
useLine (bool): bool 중간라인 사용 여부
textAlignH (string): string 수평 정렬
textAlignV (string): string 수직 정렬
closeColor (color): color 종료 색상
Returns: void
GetActiveBoxCount(boxes)
GetActiveBoxCount
description 활성 박스 개수 반환
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
Returns: int 활성 박스 개수
ClearInactiveBoxes(boxes)
ClearInactiveBoxes
description 비활성 박스 제거 (메모리 절약)
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
Returns: void
BoxData
BoxData
Fields:
_isActive (series bool): 박스 활성화 상태
_isBull (series bool): 방향 (true=상승, false=하락)
_boxTop (series float): 상단 가격
_boxBot (series float): 하단 가격
_basePoint (series float): 터치 감지 기준점
_stage (series int): 터치 횟수 카운터
_type (series string): 박스 타입 ("FVG", "OB", "BB", "RB")
_htfTimeframe (series string): HTF 시간대 ("60", "240", "D")
_htfBarIndex (series int): HTF 기준 bar_index
_text (series string): 사용자 추가 텍스트
_box (series box): 박스 객체 (ProcessBoxes에서 생성)
_line (series line): 라인 객체 (ProcessBoxes에서 생성)
AddFVG(boxes, htfTimeframe, htfBarIndex, top, bottom, isBull, _text)
AddFVG
description FVG 박스 데이터 추가
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대 ("60", "240", "D")
htfBarIndex (int): int HTF bar_index
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향 (true=상승, false=하락)
_text (string)
Returns: void
AddOB(boxes, htfTimeframe, htfBarIndex, top, bottom, isBull, _text)
AddOB
description OB 박스 데이터 추가
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대
htfBarIndex (int): int HTF bar_index
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향
_text (string)
Returns: void
AddBB(boxes, htfTimeframe, htfBarIndex, top, bottom, isBull, _text)
AddBB
description BB 박스 데이터 추가
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대
htfBarIndex (int): int HTF bar_index
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향
_text (string)
Returns: void
AddRB(boxes, htfTimeframe, htfBarIndex, top, bottom, isBull, _text)
AddRB
description RB 박스 데이터 추가
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대
htfBarIndex (int): int HTF bar_index
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향
_text (string)
Returns: void
ProcessBoxes(boxes, boxType, colorBull, colorBear, closeCount, useLine, textAlignH, textAlignV, closeColor)
ProcessBoxes
description 박스 배열 처리 (생성→확장→터치→종료)
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
boxType (string): string 박스 타입 ("FVG", "OB", "BB", "RB")
colorBull (color): color 상승 색상
colorBear (color): color 하락 색상
closeCount (int): int 터치 종료 횟수
useLine (bool): bool 중간라인 사용 여부
textAlignH (string): string 수평 정렬
textAlignV (string): string 수직 정렬
closeColor (color): color 종료 색상
Returns: void
GetActiveBoxCount(boxes)
GetActiveBoxCount
description 활성 박스 개수 반환
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
Returns: int 활성 박스 개수
ClearInactiveBoxes(boxes)
ClearInactiveBoxes
description 비활성 박스 제거 (메모리 절약)
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
Returns: void
BoxData
BoxData
Fields:
_isActive (series bool): 박스 활성화 상태
_isBull (series bool): 방향 (true=상승, false=하락)
_boxTop (series float): 상단 가격
_boxBot (series float): 하단 가격
_basePoint (series float): 터치 감지 기준점
_stage (series int): 터치 횟수 카운터
_type (series string): 박스 타입 ("FVG", "OB", "BB", "RB")
_htfTimeframe (series string): HTF 시간대 ("60", "240", "D")
_htfBarIndex (series int): HTF 기준 bar_index
_text (series string): 사용자 추가 텍스트
_box (series box): 박스 객체 (ProcessBoxes에서 생성)
_line (series line): 라인 객체 (ProcessBoxes에서 생성)
릴리즈 노트
v2릴리즈 노트
v3릴리즈 노트
v4릴리즈 노트
v5업데이트됨
AddFVG(boxes, htfTimeframe, timestamp, top, bottom, isBull, userText)
AddFVG
description FVG 박스 데이터 추가 (시간 기반)
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대 ("60", "240", "D")
timestamp (int): int 박스 시작 시간 (timestamp)
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향 (true=상승, false=하락)
userText (string): string 추가 텍스트 (선택)
Returns: void
AddOB(boxes, htfTimeframe, timestamp, top, bottom, isBull, userText)
AddOB
description OB 박스 데이터 추가 (시간 기반)
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대
timestamp (int): int 박스 시작 시간 (timestamp)
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향
userText (string): string 추가 텍스트 (선택)
Returns: void
AddBB(boxes, htfTimeframe, timestamp, top, bottom, isBull, userText)
AddBB
description BB 박스 데이터 추가 (시간 기반)
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대
timestamp (int): int 박스 시작 시간 (timestamp)
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향
userText (string): string 추가 텍스트 (선택)
Returns: void
AddRB(boxes, htfTimeframe, timestamp, top, bottom, isBull, userText)
AddRB
description RB 박스 데이터 추가 (시간 기반)
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
htfTimeframe (string): string HTF 시간대
timestamp (int): int 박스 시작 시간 (timestamp)
top (float): float 상단 가격
bottom (float): float 하단 가격
isBull (bool): bool 방향
userText (string): string 추가 텍스트 (선택)
Returns: void
BoxData
BoxData
Fields:
_isActive (series bool): 박스 활성화 상태
_isBull (series bool): 방향 (true=상승, false=하락)
_boxTop (series float): 상단 가격
_boxBot (series float): 하단 가격
_basePoint (series float): 터치 감지 기준점
_stage (series int): 터치 횟수 카운터
_type (series string): 박스 타입 ("FVG", "OB", "BB", "RB")
_htfTimeframe (series string): HTF 시간대 ("60", "240", "D")
_timestamp (series int): 박스 시작 시간 (timestamp)
_text (series string): 사용자 추가 텍스트
_box (series box): 박스 객체 (ProcessBoxes에서 생성)
_line (series line): 라인 객체 (ProcessBoxes에서 생성)
릴리즈 노트
v6업데이트됨
ProcessBoxes(boxes, boxType, colorBull, colorBear, closeCount, useLine, textAlignH, textAlignV, textColor, closeColor)
ProcessBoxes
description 박스 배열 처리 (생성→확장→터치→종료)
Parameters:
boxes (array<BoxData>): array<BoxData> 박스 배열
boxType (string): string 박스 타입 ("FVG", "OB", "BB", "RB")
colorBull (color): color 상승 색상
colorBear (color): color 하락 색상
closeCount (int): int 터치 종료 횟수
useLine (bool): bool 중간라인 사용 여부
textAlignH (string): string 수평 정렬
textAlignV (string): string 수직 정렬
textColor (color): color 텍스트 색상
closeColor (color): color 종료 색상
Returns: void
릴리즈 노트
v7업데이트됨
BoxData
BoxData
Fields:
_isActive (series bool): 박스 활성화 상태
_isBull (series bool): 방향 (true=상승, false=하락)
_boxTop (series float): 상단 가격
_boxBot (series float): 하단 가격
_basePoint (series float): 터치 감지 기준점
_stage (series int): 터치 횟수 카운터
_type (series string): 박스 타입 ("FVG", "OB", "BB", "RB")
_htfTimeframe (series string): HTF 시간대 ("60", "240", "D")
_timestamp (series int): 박스 시작 시간 (timestamp)
_text (series string): 사용자 추가 텍스트
_box (series box): 박스 객체 (ProcessBoxes에서 생성)
_line (series line): 라인 객체 (ProcessBoxes에서 생성)
_waitingForBreak (series bool): 돌파 대기 플래그 (true=돌파대기, false=복귀대기)
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.