커뮤니티

분봉챠트에서 일봉지표 이용한 시스템식 문의

프로필 이미지
회원
2004-01-19 20:14:18
1130
글번호 2059
답변완료
수고하십니다. 분봉챠트에서 일봉 스토캐스틱 지표 그리는 것이 가능하다고 알고 있습니다. 분봉챠트에서 일봉스토캐스틱지표를 이용하여 시스템식이 가능한지 알고 싶습니다. 가능하다면, 일봉 스토(5,3,3) 상향 교차상태에서 30분봉 스토(10,6,6) 상향교차시 매수, 30분봉 스토(10,6,6) 하향교차시 매수청산하는 식을 알고 싶습니다. 답변주심에 미리 감사드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2004-01-20 10:42:30

안녕하세요? 예스스탁입니다... 분봉에서 일봉의 스토캐스틱 지표를 그리기 위해서는 예스스탁 홈페이지 --> 예스트레이더 프로 --> 수식작성 예제 --> "지표를 이용한 수식"에서 "Stochastics"를 조회하시면 그 내용이 나와 있습니다. 또한 이 식을 이용해서 사용자님께서 문의하신 식을 작성한다면 다음과 같습니다... input : Period(5), Period1(3), Period2(3), P(10), P1(6), P2(6); var : count(0), highVal(0), lowVal(0), StoFastK(0), StoK(0), StoD(0); var : Ep(0), EP1(0), JISU(0), DINDEX(0), PreStoK(0), PreStoD(0); #### 특정 구간의 고가 [highest(H,Period)] #### highVal = dayhigh(0); for count = 0 to Period-1 { if dayHigh(count) > highVal then highVal = dayhigh(count); } #### 특정 구간의 저가 [lowest(L,Period)] #### lowVal = daylow(0); for count = 0 to Period-1 { if dayLow(count) < lowVal then lowVal = dayLow(count); } #### Fast StochasticsK #### StoFastK = (C-lowVal)/(highVal-lowVal)*100; //Fast StochasticsK ==> (C-lowest(L,Period))/(highest(H,Period)-lowest(L,Period))*100 #### Slow StochasticsK #### Ep = 2/(Period1+1); if date != date[1] then { DINDEX = DINDEX + 1; PreStoK = StoK[1]; } if DINDEX <= 1 then StoK = StoFastK ; else StoK = StoFastK * EP + PreStoK * (1-EP); //Slow StochasticsK ==> ema(Fast StochasticsK, Period1) #### Slow StochasticsD #### Ep1 = 2/(Period2+1); if date != date[1] then { DINDEX = DINDEX + 1; PreStoD = StoD[1]; } if DINDEX <= 1 then StoD = StoK ; else StoD = StoK * EP1 + PreStoD * (1-EP1); //Slow StochasticsD ==> ema(Slow StochasticsK, Period2) #### 시스템 식 #### if StoK > StoD and crossup(StochasticsK(P,P1), StochasticsD(P,P1,P2)) then buy(); if StoK < StoD and crossdown(StochasticsK(P,P1), StochasticsD(P,P1,P2)) then sell(); > CJ_ok3824 님이 쓴 글입니다. > 제목 : 분봉챠트에서 일봉지표 이용한 시스템식 문의 > 수고하십니다. 분봉챠트에서 일봉 스토캐스틱 지표 그리는 것이 가능하다고 알고 있습니다. 분봉챠트에서 일봉스토캐스틱지표를 이용하여 시스템식이 가능한지 알고 싶습니다. 가능하다면, 일봉 스토(5,3,3) 상향 교차상태에서 30분봉 스토(10,6,6) 상향교차시 매수, 30분봉 스토(10,6,6) 하향교차시 매수청산하는 식을 알고 싶습니다. 답변주심에 미리 감사드립니다.