커뮤니티

문의드립니다

프로필 이미지
해피데이m
2019-02-08 11:13:12
216
글번호 125966
답변완료
1분봉 차트에서, 타분봉 5분,10분,30분,60분 지수이동평균(20선)값을 나타내는 지표를 부탁드립니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-02-08 16:46:38

안녕하세요 예스스탁입니다. Input : ntime1(5),ntime2(10),ntime3(30),ntime4(60); input : Period(20); var : S1(0),D1(0),TM(0),EP(0); Var : TF1(0),JISU1(0), PreJISU1(0),idx1(0); Var : TF2(0),JISU2(0), PreJISU2(0),idx2(0); Var : TF3(0),JISU3(0), PreJISU3(0),idx3(0); Var : TF4(0),JISU4(0), PreJISU4(0),idx4(0); Ep = 2/(Period+1); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF1 = TM%ntime1; TF2 = TM%ntime2; TF3 = TM%ntime3; TF4 = TM%ntime4; if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF1 < TF1[1]) Then { idx1 = idx1+1; PreJISU1 = JISU1[1]; } if idx1 <= 1 then JISU1 = C; else JISU1 = C * EP + PreJISU1 * (1-EP); if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF2 < TF2[1]) Then { idx2 = idx2+1; PreJISU2 = JISU2[1]; } if idx2 <= 1 then JISU2 = C; else JISU2 = C * EP + PreJISU2 * (1-EP); if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF3 < TF3[1]) Then { idx3 = idx3+1; PreJISU3 = JISU3[1]; } if idx3 <= 1 then JISU3 = C; else JISU3 = C * EP + PreJISU3 * (1-EP); if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF4 < TF4[1]) Then { idx4 = idx4+1; PreJISU4 = JISU4[1]; } if idx4 <= 1 then JISU4 = C; else JISU4 = C * EP + PreJISU4 * (1-EP); plot1(JiSu1); plot2(JiSu2); plot3(JiSu3); plot4(JiSu4); } 즐거운 하루되세요 > 해피데이m 님이 쓴 글입니다. > 제목 : 문의드립니다 > 1분봉 차트에서, 타분봉 5분,10분,30분,60분 지수이동평균(20선)값을 나타내는 지표를 부탁드립니다