PINE LIBRARY
Atualizado 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 시간
Notas de Lançamento
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 시간
Notas de Lançamento
v3업데이트됨
checkSweep(_currentHigh, _currentLow, _currentClose, _lastHHPrice, _lastLLPrice)
Sweep 체크 (유동성 수집) 설명
Parameters:
_currentHigh (float): 현재 고가
_currentLow (float): 현재 저가
_currentClose (float): 현재 종가
_lastHHPrice (float): 마지막 HH 가격
_lastLLPrice (float): 마지막 LL 가격
Returns: [bool 발생여부, string 방향]
Biblioteca do Pine
Em verdadeiro espírito TradingView, o autor publicou este código Pine como uma biblioteca de código aberto para que outros programadores Pine da nossa comunidade possam reutilizá-lo. Parabéns ao autor! Você pode usar esta biblioteca de forma privada ou em outras publicações de código aberto, mas a reutilização deste código em publicações é regida pelas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Biblioteca do Pine
Em verdadeiro espírito TradingView, o autor publicou este código Pine como uma biblioteca de código aberto para que outros programadores Pine da nossa comunidade possam reutilizá-lo. Parabéns ao autor! Você pode usar esta biblioteca de forma privada ou em outras publicações de código aberto, mas a reutilização deste código em publicações é regida pelas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.