커뮤니티

파라블릭 신호 진입

프로필 이미지
상쾌한 아침
2026-06-18 17:26:49
40
글번호 232497
답변완료

파라블릭 봉완성후 진입이아니라 점색 바뀔때 바로 진입하는 방법 알고싶어요

코스피200 선물입니다.신호에 시장가 진입입니다


모의로해봐도 봉완성후는 너무 느려요 부탁드리겠읍니다

키움 시스템트레이딩은 팝업창 뜨기때문에 자동이안되서 힘들어요.

지표
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2026-06-19 10:26:58

안녕하세요 예스스탁입니다. Input : AF(0.02), AFMAX(0.2); Var : Direction(0), SAR_Value(Close), AF_Value(.02), HighValue(High), LowValue(Low), EP(0), Sarv(0), var1(0); // EP != 0: 이미 추세가 확정되어 EP/AF로 SAR을 갱신하고 전환 체크 if EP != 0 Then { // 상승 추세 처리 if Direction == 1 then { // EP는 최고가, SAR 갱신 EP = HighValue; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); // 새로운 최고가 발견 시 EP 및 AF 증가 if High > HighValue then { HighValue = High; AF_Value = AF_Value + AF; if AF_Value >= AFMAX then AF_Value = AFMAX; } // SAR 아래로 하락하면 하락 전환 if Low < SAR_Value then { Direction = -1; SAR_Value = EP; AF_Value = 0; EP = 0; LowValue = Low; } } else { // 하락 추세 처리 (대칭) EP = LowValue; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); if Low < LowValue then { LowValue = Low; AF_Value = AF_Value + AF; if AF_Value >= AFMAX then AF_Value = AFMAX; } if High > SAR_Value then { Direction = 1; SAR_Value = EP; AF_Value = 0; EP = 0; HighValue = High; } } Sarv = SAR_Value; } else { // EP == 0: EP가 초기화된 상태 if SAR_Value != 0 && EP == 0 then { // SAR은 있으나 EP가 없는 경우, AF 초기화 후 SAR 계산 if Direction == 1 then { EP = HighValue; AF_Value = AF; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); if High > HighValue then { HighValue = High; AF_Value = AF_Value + AF; if AF_Value >= AFMAX then AF_Value = AFMAX; } } else { EP = LowValue; AF_Value = AF; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); if Low < LowValue then { LowValue = Low; AF_Value = AF_Value + AF; if AF_Value >= AFMAX then AF_Value = AFMAX; } } Sarv = SAR_Value; } else { // 초기 상태: Direction이 0이면 이전봉과 비교하여 방향 설정 if Direction == 0 then { if Close > Close[1] then Direction = 1; else if Close < Close[1] then Direction = -1; } else { // 방향 존재 시 종가 변화로 추세 전환 체크 if Direction == 1 then { if Close < Close[1] then { Direction = -1; SAR_Value = HighValue; Sarv = SAR_Value; } } if Direction == -1 then { if Close > Close[1] then { Direction = 1; SAR_Value = LowValue; Sarv = SAR_Value; } } } // 고저값 갱신 LowValue = min(Low, LowValue); HighValue = max(High, HighValue); } } // SAR 값이 유효하면 다음봉용 파라볼릭을 계산하고 스탑(AtStop) 주문 설정 if Sarv > 0 Then { // 다음봉 SAR 예측값 var1 = Sarv + (AF_Value) * (EP - SAR_Value); if Direction == -1 Then Buy("b",AtStop,var1); if Direction == 1 Then Sell("s",AtStop,var1); } 즐거운 하루되세요
프로필 이미지

상쾌한 아침

2026-06-19 16:31:22

감사합니다 불확실한거 해결됬읍니다 즐주말 보내세요