커뮤니티

부탁 드립니다.

프로필 이미지
yes
2022-01-03 15:59:11
1334
글번호 155056
답변완료
도움에 감사 드립니다. 타주기 수식 부탁 드립니다. 1)분봉용 2)틱봉용 3)일봉용 input:p(30); input:sig(30); var:H42(0),L42(0); H42=MA(H,P); L42=MA(L,P); VAR11=IFF(C<L42,L42,H42); VAR12=C-VAR11; VAR13=MA(Var12,SIG); 참고용 수식) 1) Var : S1(0),D1(0),TM(0),TF(0),cnt(0),ii(0),sum(0); Array : CC[500](0),HH[500](0),LL[500](0),cts[500](0),VV[500](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 { hh[0] = H; LL[0] = l; 2) var : idx(0),S1(0),D1(0),TM(0),TF(0),cnt(0),ii(0),sum(0); Array : CC[500](0),HH[500](0),LL[500](0),cts[500](0),VV[500](0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; idx = 0; } Else idx = idx+1; if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = idx%ntime; if Bdate != bdate[1] or (TF < TF[1] and Bdate == Bdate[1]) Then { hh[0] = H; LL[0] = l;
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-01-04 10:31:41

안녕하세요 예스스탁입니다. 1.분 input : ntime(10),P(30),sig(30); Var : S1(0),D1(0),TM(0),TF(0),cnt(0); var : sum1(0),sum2(0),H42(0),L42(0),v11(0),sum3(0),v13(0); Array : HH[100](0),LL[100](0),v12[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 { hh[0] = H; LL[0] = l; For cnt = 1 to 99 { hh[cnt] = hh[cnt-1][1]; ll[cnt] = ll[cnt-1][1]; v12[cnt] = v12[cnt-1][1]; } } if hh[P-1] > 0 and ll[P-1] > 0 Then { sum1 = 0; sum2 = 0; For cnt = 0 to P-1 { sum1 = sum1 + hh[cnt]; sum2 = sum2 + ll[cnt]; } H42 = sum1/P; L42 = sum2/P; v11 = IFf(C<L42,L42,H42); v12[0] = C-v11; } if hh[P+sig-1] > 0 and ll[P+sig-1] > 0 Then { sum3 = 0; For cnt = 0 to sig-1 { sum3 = sum3 + v12[cnt]; } V13 = sum3/sig; Plot1(v13); } } 2 틱 input : nbar(10),P(30),sig(30); Var : D1(0),TF(0),cnt(0),idx(0); var : sum1(0),sum2(0),H42(0),L42(0),v11(0),sum3(0),v13(0); Array : HH[100](0),LL[100](0),v12[100](0); if Bdate != Bdate[1] Then { D1 = sdate; idx = 0; } Else idx = idx+1; if D1 > 0 then { TF = idx%nbar; if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then { hh[0] = H; LL[0] = l; For cnt = 1 to 99 { hh[cnt] = hh[cnt-1][1]; ll[cnt] = ll[cnt-1][1]; v12[cnt] = v12[cnt-1][1]; } } if hh[P-1] > 0 and ll[P-1] > 0 Then { sum1 = 0; sum2 = 0; For cnt = 0 to P-1 { sum1 = sum1 + hh[cnt]; sum2 = sum2 + ll[cnt]; } H42 = sum1/P; L42 = sum2/P; v11 = IFf(C<L42,L42,H42); v12[0] = C-v11; } if hh[P+sig-1] > 0 and ll[P+sig-1] > 0 Then { sum3 = 0; For cnt = 0 to sig-1 { sum3 = sum3 + v12[cnt]; } V13 = sum3/sig; Plot1(v13); } } 3.일 input : ,P(30),sig(30); Var : cnt(0); var : sum1(0),sum2(0),H42(0),L42(0),v11(0),sum3(0),v13(0); Array : HH[100](0),LL[100](0),v12[100](0); if Bdate != Bdate[1] Then { hh[0] = H; LL[0] = l; For cnt = 1 to 99 { hh[cnt] = hh[cnt-1][1]; ll[cnt] = ll[cnt-1][1]; v12[cnt] = v12[cnt-1][1]; } } if hh[P-1] > 0 and ll[P-1] > 0 Then { sum1 = 0; sum2 = 0; For cnt = 0 to P-1 { sum1 = sum1 + hh[cnt]; sum2 = sum2 + ll[cnt]; } H42 = sum1/P; L42 = sum2/P; v11 = IFf(C<L42,L42,H42); v12[0] = C-v11; } if hh[P+sig-1] > 0 and ll[P+sig-1] > 0 Then { sum3 = 0; For cnt = 0 to sig-1 { sum3 = sum3 + v12[cnt]; } V13 = sum3/sig; Plot1(v13); } 즐거운 하루되세요 > yes 님이 쓴 글입니다. > 제목 : 부탁 드립니다. > 도움에 감사 드립니다. 타주기 수식 부탁 드립니다. 1)분봉용 2)틱봉용 3)일봉용 input:p(30); input:sig(30); var:H42(0),L42(0); H42=MA(H,P); L42=MA(L,P); VAR11=IFF(C<L42,L42,H42); VAR12=C-VAR11; VAR13=MA(Var12,SIG); 참고용 수식) 1) Var : S1(0),D1(0),TM(0),TF(0),cnt(0),ii(0),sum(0); Array : CC[500](0),HH[500](0),LL[500](0),cts[500](0),VV[500](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 { hh[0] = H; LL[0] = l; 2) var : idx(0),S1(0),D1(0),TM(0),TF(0),cnt(0),ii(0),sum(0); Array : CC[500](0),HH[500](0),LL[500](0),cts[500](0),VV[500](0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; idx = 0; } Else idx = idx+1; if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = idx%ntime; if Bdate != bdate[1] or (TF < TF[1] and Bdate == Bdate[1]) Then { hh[0] = H; LL[0] = l;