커뮤니티

갭보증스토

프로필 이미지
외국인
2014-01-10 19:46:54
177
글번호 71296
답변완료
안녕하세요 갭보정식으로부탁드립니다. Input : Period1(60),Period2(20),Period3(20); Var : HH(0),LL(0),FK(0),EP1(0),EP2(0),SK(0),SD(0); if dayindex < Period1 Then{ HH = DayHigh; LL = DayLow; } Else{ HH = highest(H,Period1); LL = lowest(L,Period1); } FK = (Close - LL) / (HH - LL) * 100; EP1 = 2/(Period2+1); EP2 = 2/(Period3+1); if dayindex == 0 Then{ SK = FK; SD = SK; } Else{ SK = FK * EP1 + SK[1] * (1-EP1); SD = SK * EP2 + SD[1] * (1-EP2); } plot1(SK,"%k"); plot2(SD,"%D");
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-01-13 10:33:42

안녕하세요 예스스탁입니다. Input : Period1(60),Period2(20),Period3(20); Var : HH(0),LL(0),FK(0),EP1(0),EP2(0),SK(0),SD(0); var : sumGap(0), gap(0), GO(0), GH(0), GL(0), GC(0); if date!=date[1] then { gap = Open-Close[1]; sumGap = sumGap+gap; } GO = O - sumGap; GH = H - sumGap; GL = L - sumGap; GC = C - sumGap; if dayindex < Period1 Then{ HH = highest(GH,dayindex+1); LL = lowest(GL,dayindex+1); } Else{ HH = highest(GH,Period1); LL = lowest(GL,Period1); } FK = (GC - LL) / (HH - LL) * 100; EP1 = 2/(Period2+1); EP2 = 2/(Period3+1); if dayindex == 0 Then{ SK = FK; SD = SK; } Else{ SK = FK * EP1 + SK[1] * (1-EP1); SD = SK * EP2 + SD[1] * (1-EP2); } plot1(SK,"%k"); plot2(SD,"%D"); 즐거운 하루되세요 > 외국인 님이 쓴 글입니다. > 제목 : 갭보증스토 > 안녕하세요 갭보정식으로부탁드립니다. Input : Period1(60),Period2(20),Period3(20); Var : HH(0),LL(0),FK(0),EP1(0),EP2(0),SK(0),SD(0); if dayindex < Period1 Then{ HH = DayHigh; LL = DayLow; } Else{ HH = highest(H,Period1); LL = lowest(L,Period1); } FK = (Close - LL) / (HH - LL) * 100; EP1 = 2/(Period2+1); EP2 = 2/(Period3+1); if dayindex == 0 Then{ SK = FK; SD = SK; } Else{ SK = FK * EP1 + SK[1] * (1-EP1); SD = SK * EP2 + SD[1] * (1-EP2); } plot1(SK,"%k"); plot2(SD,"%D");