커뮤니티

종목검색 수식 점검 부탁드립니다.

프로필 이미지
회원
2014-12-18 20:07:14
169
글번호 81483
답변완료
아래의 검색수식으로 종목이 검색이 되지 않는군요. 스토캐스틱이 포함되어 있어서 검색기간을 500봉으로 설정하였는데도 안됩니다. 수식 점검 부탁드립니다. 검색조건 1. 스토캐스틱(5,3,3) 쌍바닥 2. 20이평과 60이평 정배열 3. 신고가, 신저가 위 3개의 조건을 하나라도 만족하는 모든 종목 중 예스트레이더의 신호검색 중 1. 상승장악형 2. 상승잉태형 의 캔들 시그널이 있는 종목 검색 - 아 래 - input: Length(20); input : Left(3),Right(3); var : SLM1(0),SLM2(0); var1 = StochasticsK(5,3); Condition3 = false; if SwingLow(1,var1,Left,Right,Left+Right+1) != -1 Then{ SLM1 = var1[Right]; SLM2 = SLM1; if SLM1 > SLM2 and SLM2 > 0 Then Condition3 = true; } Condition1 = High > Highest(High, Length)[1]; Condition2 = Low < Lowest(Low, Length)[1]; Condition4 = ma(C,20) > ma(c,60); Variables: Body(0),highbody(0),lowbody(0),value(0); body= Abs(O-C); Highbody = Max(O,C); Lowbody = Min(O,C); Condition5 = C[1] < Ma(C,10)[1] and C[1] < O[1] and body[1] > Ma(body[1],10)*2 and C > O and Highbody < Highbody[1] and Lowbody > Lowbody[1]; Condition6 = C[1] < Ma(c,10)[1] and C[1] < O[1] and C > O and Body > Ma(Body,10)*2 and Highbody > Highbody[1] and Lowbody < Lowbody[1]; if (Condition1== true or Condition2== true or Condition3== true or Condition4== true) And Condition5 == true and Condition6 == true Then find(1); ==================================================================== 참고로 스토캐스틱(5,3,3) 쌍바닥 + 이평선 정배열에 관한 수식을 현재까지 아래와 같이 사용하고 있었습니다. - 아 래 - input : Left(3),Right(3),P1(20),P2(60),sto1(5),sto2(3),sto3(3); var : mav1(0),mav2(0),stok(0),stod(0); mav1 = ma(c,P1); mav2 = ma(c,P2); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); if SwingLow(1,stok,left,right,left+right+1) != -1 Then{ value3 = stok[right]; value4 = value3[1]; if value3 > value4 and value4 > 0 And mav1 > mav2 Then find(1); }
종목검색
답변 2
프로필 이미지

승부사1

2014-12-19 12:34:32

검색조건 일부 수정합니다. (죄송 ^^) 검색조건 1. 스토캐스틱(5,3,3) 쌍바닥 2. 20이평과 60이평 정배열 3. 5이평이 20이평과 60이평을 3봉이내에 골든크로스 (20이평과 60이평의 배열상태는 무관) 위 3개의 조건을 하나라도 만족하는 모든 종목 중 (즉, 1 + 2 + 3 입니다.) 예스트레이더의 신호검색 중 1. 상승장악형 2. 상승잉태형 의 캔들 시그널이 있는 종목 검색
프로필 이미지

예스스탁 예스스탁 답변

2014-12-19 13:23:10

안녕하세요 예스스탁입니다. input : Left(3),Right(3),P1(5),P2(20),P3(60),sto1(5),sto2(3),sto3(3),Length(20); var : mav1(0),mav2(0),mav3(0),stok(0),stod(0); Var : Body(0),highbody(0),lowbody(0),value(0); mav1 = ma(c,P1); mav2 = ma(c,P2); mav3 = ma(C,P3); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); Condition1 = false; if SwingLow(1,stok,left,right,left+right+1) != -1 Then{ value3 = stok[right]; value4 = value3[1]; if value3 > value4 and value4 > 0 Then Condition1 = true; } Condition2 = mav2 > mav3; Condition3 = countif(crossup(mav1,mav2),3) >= 1 And countif(crossup(mav1,mav3),3) >= 1; body= Abs(O-C); Highbody = Max(O,C); Lowbody = Min(O,C); Condition4 = C[1] < Ma(C,10)[1] and C[1] < O[1] and body[1] > Ma(body[1],10)*2 and C > O and Highbody < Highbody[1] and Lowbody > Lowbody[1]; Condition5 = C[1] < Ma(c,10)[1] and C[1] < O[1] and C > O and Body > Ma(Body,10)*2 and Highbody > Highbody[1] and Lowbody < Lowbody[1]; if (Condition1== true or Condition2== true or Condition3== true) And (Condition4 == true or Condition5 == true) Then var1 = 1; Else var1 = 0; find(var1); 즐거운 하루되세요 > 승부사1 님이 쓴 글입니다. > 제목 : Re : 종목검색 수식 점검 부탁드립니다. > 검색조건 일부 수정합니다. (죄송 ^^) 검색조건 1. 스토캐스틱(5,3,3) 쌍바닥 2. 20이평과 60이평 정배열 3. 5이평이 20이평과 60이평을 3봉이내에 골든크로스 (20이평과 60이평의 배열상태는 무관) 위 3개의 조건을 하나라도 만족하는 모든 종목 중 (즉, 1 + 2 + 3 입니다.) 예스트레이더의 신호검색 중 1. 상승장악형 2. 상승잉태형 의 캔들 시그널이 있는 종목 검색