커뮤니티

검색식 부탁 드립니다.

프로필 이미지
에다남
2024-12-19 23:03:12
391
글번호 186429
답변완료
안녕 하세요 아래 하이킨아시 수식에 기간 설정하여 변수로 넣고 싶습니다 예) 3일 ~ 5일 전 까지 발생한 종목을 찾고 싶습니다. vars: haClose(0),haOpen(0),haHigh(0),haLow(0),t(0); if index == 0 then { haOpen = open; haClose = (O+H+L+C)/4; haHigh = MaxList( high, haOpen, haClose); haLow = MinList( low, haOpen,haClose); } if index >= 1 then { haClose = (O+H+L+C)/4; haOpen = (haOpen [1] + haClose [1])/2 ; haHigh = MaxList(High, haOpen, haClose) ; haLow = MinList(Low, haOpen, haClose) ; if haClose > haOpen then t = 1; else t = -1; if t == 1 and t[1] == -1 Then find(1); }
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-12-20 14:59:37

안녕하세요 예스스탁입니다. input : n1(3),n2(5) vars: haClose(0),haOpen(0),haHigh(0),haLow(0),t(0); if index == 0 then { haOpen = open; haClose = (O+H+L+C)/4; haHigh = MaxList( high, haOpen, haClose); haLow = MinList( low, haOpen,haClose); } if index >= 1 then { haClose = (O+H+L+C)/4; haOpen = (haOpen [1] + haClose [1])/2 ; haHigh = MaxList(High, haOpen, haClose) ; haLow = MinList(Low, haOpen, haClose) ; if haClose > haOpen then t = 1; else t = -1; if t == 1 and t[1] == -1 Then var1 = Index; if var1 > 0 and Index >= var1+n1 and Index <= var1+n2 Then find(1); } 즐거운 하루되세요 > 에다남 님이 쓴 글입니다. > 제목 : 검색식 부탁 드립니다. > 안녕 하세요 아래 하이킨아시 수식에 기간 설정하여 변수로 넣고 싶습니다 예) 3일 ~ 5일 전 까지 발생한 종목을 찾고 싶습니다. vars: haClose(0),haOpen(0),haHigh(0),haLow(0),t(0); if index == 0 then { haOpen = open; haClose = (O+H+L+C)/4; haHigh = MaxList( high, haOpen, haClose); haLow = MinList( low, haOpen,haClose); } if index >= 1 then { haClose = (O+H+L+C)/4; haOpen = (haOpen [1] + haClose [1])/2 ; haHigh = MaxList(High, haOpen, haClose) ; haLow = MinList(Low, haOpen, haClose) ; if haClose > haOpen then t = 1; else t = -1; if t == 1 and t[1] == -1 Then find(1); }