PINE LIBRARY
Cập nhật Mirpapa_Lib_Structs

Library "Mirpapa_Lib_Structs"
ICT 구조 변화 감지 라이브러리 (BOS, CHoCH, MSS, Sweep)
initStructState()
StructState 초기화
checkBOS(_trend, _currentClose, _lastHHPrice, _lastLLPrice)
BOS 체크 (추세 지속) - 종가 기준
Parameters:
_trend (string): 현재 추세
_currentClose (float): 현재 종가
_lastHHPrice (float): 마지막 HH 가격
_lastLLPrice (float): 마지막 LL 가격
Returns: [bool 발생여부, string 방향]
checkCHoCH(_trend, _currentClose, _lastHHPrice, _lastLLPrice)
CHoCH 체크 (추세 전환) - 종가 기준
Parameters:
_trend (string): 현재 추세
_currentClose (float): 현재 종가
_lastHHPrice (float): 마지막 HH 가격
_lastLLPrice (float): 마지막 LL 가격
Returns: [bool 발생여부, string 방향]
checkSweep(_currentHigh, _currentLow, _currentClose, _lastHHPrice, _lastLLPrice)
Sweep 체크 (유동성 수집)
Parameters:
_currentHigh (float): 현재 고가
_currentLow (float): 현재 저가
_currentClose (float): 현재 종가
_lastHHPrice (float): 마지막 HH 가격
_lastLLPrice (float): 마지막 LL 가격
Returns: [bool 발생여부, string 방향]
checkMSS(_hadCHoCH, _chochDir, _currentHigh, _currentLow, _chochPrice)
MSS 체크 (CHoCH + 리테스트 확인)
Parameters:
_hadCHoCH (bool): CHoCH 발생 여부
_chochDir (string): CHoCH 방향
_currentHigh (float): 현재 고가
_currentLow (float): 현재 저가
_chochPrice (float): CHoCH 발생 가격
Returns: [bool 발생여부, string 방향]
drawStructLabel(_price, _time, _type, _dir, _lblColor)
구조 변화 라벨 그리기
Parameters:
_price (float): 가격
_time (int): 시간
_type (string): 구조 타입
_dir (string): 방향
_lblColor (color): 라벨 색상
drawStructLine(_price, _startTime, _endTime, _lineColor, _lineWidth)
구조 변화 라인 그리기
Parameters:
_price (float): 가격
_startTime (int): 시작 시간
_endTime (int): 끝 시간
_lineColor (color): 라인 색상
_lineWidth (int): 라인 두께
StructType
구조 타입 상수
Fields:
BOS (series string)
CHOCH (series string)
MSS (series string)
SWEEP (series string)
TrendDir
추세 방향 상수
Fields:
UP (series string)
DOWN (series string)
NONE (series string)
StructState
구조 변화 상태
Fields:
_trend (series string): 현재 추세 방향
_lastHHPrice (series float): 마지막 HH 가격
_lastHHTime (series int): 마지막 HH 시간
_lastLLPrice (series float): 마지막 LL 가격
_lastLLTime (series int): 마지막 LL 시간
ICT 구조 변화 감지 라이브러리 (BOS, CHoCH, MSS, Sweep)
initStructState()
StructState 초기화
checkBOS(_trend, _currentClose, _lastHHPrice, _lastLLPrice)
BOS 체크 (추세 지속) - 종가 기준
Parameters:
_trend (string): 현재 추세
_currentClose (float): 현재 종가
_lastHHPrice (float): 마지막 HH 가격
_lastLLPrice (float): 마지막 LL 가격
Returns: [bool 발생여부, string 방향]
checkCHoCH(_trend, _currentClose, _lastHHPrice, _lastLLPrice)
CHoCH 체크 (추세 전환) - 종가 기준
Parameters:
_trend (string): 현재 추세
_currentClose (float): 현재 종가
_lastHHPrice (float): 마지막 HH 가격
_lastLLPrice (float): 마지막 LL 가격
Returns: [bool 발생여부, string 방향]
checkSweep(_currentHigh, _currentLow, _currentClose, _lastHHPrice, _lastLLPrice)
Sweep 체크 (유동성 수집)
Parameters:
_currentHigh (float): 현재 고가
_currentLow (float): 현재 저가
_currentClose (float): 현재 종가
_lastHHPrice (float): 마지막 HH 가격
_lastLLPrice (float): 마지막 LL 가격
Returns: [bool 발생여부, string 방향]
checkMSS(_hadCHoCH, _chochDir, _currentHigh, _currentLow, _chochPrice)
MSS 체크 (CHoCH + 리테스트 확인)
Parameters:
_hadCHoCH (bool): CHoCH 발생 여부
_chochDir (string): CHoCH 방향
_currentHigh (float): 현재 고가
_currentLow (float): 현재 저가
_chochPrice (float): CHoCH 발생 가격
Returns: [bool 발생여부, string 방향]
drawStructLabel(_price, _time, _type, _dir, _lblColor)
구조 변화 라벨 그리기
Parameters:
_price (float): 가격
_time (int): 시간
_type (string): 구조 타입
_dir (string): 방향
_lblColor (color): 라벨 색상
drawStructLine(_price, _startTime, _endTime, _lineColor, _lineWidth)
구조 변화 라인 그리기
Parameters:
_price (float): 가격
_startTime (int): 시작 시간
_endTime (int): 끝 시간
_lineColor (color): 라인 색상
_lineWidth (int): 라인 두께
StructType
구조 타입 상수
Fields:
BOS (series string)
CHOCH (series string)
MSS (series string)
SWEEP (series string)
TrendDir
추세 방향 상수
Fields:
UP (series string)
DOWN (series string)
NONE (series string)
StructState
구조 변화 상태
Fields:
_trend (series string): 현재 추세 방향
_lastHHPrice (series float): 마지막 HH 가격
_lastHHTime (series int): 마지막 HH 시간
_lastLLPrice (series float): 마지막 LL 가격
_lastLLTime (series int): 마지막 LL 시간
Phát hành các Ghi chú
v2업데이트됨
StructState
구조 변화 상태
Fields:
_trend (series string): 현재 추세 방향
_lastHHPrice (series float): 마지막 HH 가격
_lastHHTime (series int): 마지막 HH 시간
_lastLLPrice (series float): 마지막 LL 가격
_lastLLTime (series int): 마지막 LL 시간
_peakHHPrice (series float): 최고 HH 가격 (BOS 레벨용)
_peakHHTime (series int): 최고 HH 시간
_peakLLPrice (series float): 최저 LL 가격 (BOS 레벨용)
_peakLLTime (series int): 최저 LL 시간
_bosLevelHH (series float): BOS 체크용 HH 레벨 (확정된 최고 HH)
_bosLevelHHTime (series int): BOS 체크용 HH 시간
_bosLevelLL (series float): BOS 체크용 LL 레벨 (확정된 최저 LL)
_bosLevelLLTime (series int): BOS 체크용 LL 시간
Phát hành các Ghi chú
v3업데이트됨
checkSweep(_currentHigh, _currentLow, _currentClose, _lastHHPrice, _lastLLPrice)
Sweep 체크 (유동성 수집) 설명
Parameters:
_currentHigh (float): 현재 고가
_currentLow (float): 현재 저가
_currentClose (float): 현재 종가
_lastHHPrice (float): 마지막 HH 가격
_lastLLPrice (float): 마지막 LL 가격
Returns: [bool 발생여부, string 방향]
Thư viện Pine
Theo đúng tinh thần TradingView, tác giả đã công bố mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác trong cộng đồng có thể tái sử dụng. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này cho mục đích cá nhân hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc tái sử dụng mã này trong các ấn phẩm phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Thư viện Pine
Theo đúng tinh thần TradingView, tác giả đã công bố mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác trong cộng đồng có thể tái sử dụng. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này cho mục đích cá nhân hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc tái sử dụng mã này trong các ấn phẩm phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.