커뮤니티

부탁 드립니다.

프로필 이미지
yes
2021-12-18 14:53:18
579
글번호 154619
답변완료
도움에 감사 드립니다. 타주기 수식 부탁 드립니다. 1)분봉지표--->타분봉 2)일봉지표--->분봉 input:p(60),SIG(5); VAR:OB(0); OB=OBV; VAR1=OB-OB[P]; VAR11=MA(VAR1,SIG); 참고지표) (예전에 타분봉 수식으로 작성해 주신것입니다) input : ntime(60),P(20),sig(9); var : S1(0),D1(0),TM(0),TF(0),cnt(0),sum1(0),sum2(0); var : v2(0),v4(0),pre(0),C1(0),idx(0),vv(0); Array : v1[100](0),v3[100](0); 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; TF = TM%ntime; if Bdate != Bdate[1] or (Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or (Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or (Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then { idx = idx+1; C1 = C[1]; vv = 0; pre = v1[0][1]; For cnt = 1 to 99 { v1[cnt] = v1[cnt-1][1]; v3[cnt] = v3[cnt-1][1]; } } vv = vv + v; if C > C1 Then v1[0] = pre + vv; else if C < C1 Then v1[0] = pre - vv; else v1[0] = pre; if idx >= P then { sum1 = 0; For cnt = 0 to P-1 { sum1 = sum1+v1[cnt]; } v2 = sum1/p; v3[0] = v1[0]-v2; } if idx >= P+sig then { sum2 = 0; For cnt = 0 to sig-1 { sum2 = sum2+v3[cnt]; } v4 = sum2/sig; } }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-12-20 11:58:26

안녕하세요 예스스탁입니다. 1 input : ntime(60),P(60),sig(9); var : S1(0),D1(0),TM(0),TF(0),cnt(0); var : pre(0),C1(0),idx(0),vv(0),sum(0),mav(0); Array : OBVv[100](0),diff[100](0); 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; TF = TM%ntime; if Bdate != Bdate[1] or (Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or (Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or (Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then { idx = idx+1; C1 = C[1]; vv = 0; pre = OBVv[0][1]; For cnt = 1 to 99 { OBVv[cnt] = OBVv[cnt-1][1]; diff[cnt] = diff[cnt-1][1]; } } vv = vv + v; if C > C1 Then OBVv[0] = pre + vv; else if C < C1 Then OBVv[0] = pre - vv; else OBVv[0] = pre; if idx > P Then { diff[0] = OBVv[0]-OBVv[P]; Plot1(diff[0]); } if idx > P+sig Then { sum = 0; For cnt = 0 to sig-1 { sum = sum + diff[cnt]; } mav = sum/Sig; Plot2(mav); } } 2 input : ntime(60),P(60),sig(9); var : cnt(0); var : pre(0),C1(0),idx(0),vv(0),sum(0),mav(0); Array : OBVv[100](0),diff[100](0); if Bdate != Bdate[1] Then { idx = idx+1; C1 = C[1]; vv = 0; pre = OBVv[0][1]; For cnt = 1 to 99 { OBVv[cnt] = OBVv[cnt-1][1]; diff[cnt] = diff[cnt-1][1]; } } vv = vv + v; if C > C1 Then OBVv[0] = pre + vv; else if C < C1 Then OBVv[0] = pre - vv; else OBVv[0] = pre; if idx > P Then { diff[0] = OBVv[0]-OBVv[P]; Plot1(diff[0]); } if idx > P+sig Then { sum = 0; For cnt = 0 to sig-1 { sum = sum + diff[cnt]; } mav = sum/Sig; Plot2(mav); } 즐거운 하루되세요 > yes 님이 쓴 글입니다. > 제목 : 부탁 드립니다. > 도움에 감사 드립니다. 타주기 수식 부탁 드립니다. 1)분봉지표--->타분봉 2)일봉지표--->분봉 input:p(60),SIG(5); VAR:OB(0); OB=OBV; VAR1=OB-OB[P]; VAR11=MA(VAR1,SIG); 참고지표) (예전에 타분봉 수식으로 작성해 주신것입니다) input : ntime(60),P(20),sig(9); var : S1(0),D1(0),TM(0),TF(0),cnt(0),sum1(0),sum2(0); var : v2(0),v4(0),pre(0),C1(0),idx(0),vv(0); Array : v1[100](0),v3[100](0); 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; TF = TM%ntime; if Bdate != Bdate[1] or (Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or (Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or (Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then { idx = idx+1; C1 = C[1]; vv = 0; pre = v1[0][1]; For cnt = 1 to 99 { v1[cnt] = v1[cnt-1][1]; v3[cnt] = v3[cnt-1][1]; } } vv = vv + v; if C > C1 Then v1[0] = pre + vv; else if C < C1 Then v1[0] = pre - vv; else v1[0] = pre; if idx >= P then { sum1 = 0; For cnt = 0 to P-1 { sum1 = sum1+v1[cnt]; } v2 = sum1/p; v3[0] = v1[0]-v2; } if idx >= P+sig then { sum2 = 0; For cnt = 0 to sig-1 { sum2 = sum2+v3[cnt]; } v4 = sum2/sig; } }