PINE LIBRARY
업데이트됨 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 시간
릴리즈 노트
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 시간
릴리즈 노트
v3업데이트됨
checkSweep(_currentHigh, _currentLow, _currentClose, _lastHHPrice, _lastLLPrice)
Sweep 체크 (유동성 수집) 설명
Parameters:
_currentHigh (float): 현재 고가
_currentLow (float): 현재 저가
_currentClose (float): 현재 종가
_lastHHPrice (float): 마지막 HH 가격
_lastLLPrice (float): 마지막 LL 가격
Returns: [bool 발생여부, string 방향]
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.