커뮤니티

감사합니다

프로필 이미지
커피한잔
2020-04-08 13:30:15
843
글번호 137706
답변완료
N봉전 120분 60분 30분 15분봉 저가라인 부탁합니다 몇일 저 만들어주신 녀월주일봉 저가라인 수식에 timelow를 넣어 변형 해보다 잘안돼서 또 이렇게 부탁드립니다 감사합니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-04-08 16:35:58

안녕하세요 예스스탁입니다. input : ntime1(15),ntime2(30),ntime3(60),ntime4(120),N(3); var : S1(0),D1(0),TM(0),TF1(0),TF2(0),TF3(0),TF4(0),cnt(0); Array : L1[50](0),L2[50](0),L3[50](0),L4[50](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; TF1 = TM%ntime1; TF2 = TM%ntime2; TF3 = TM%ntime3; TF4 = TM%ntime4; if Bdate != Bdate[1] or (Bdate == Bdate[1] and ntime1 > 1 and TF1 < TF1[1]) or (Bdate == Bdate[1] and ntime1 > 1 and TM >= TM[1]+ntime1) or (Bdate == Bdate[1] and ntime1 == 1 and TM > TM[1]) Then { L1[0] = L; for cnt = 1 to 49 { L1[cnt] = L1[cnt-1][1]; } } if L < L1[0] Then L1[0] = L; if Bdate != Bdate[1] or (Bdate == Bdate[1] and ntime2 > 1 and TF2 < TF2[1]) or (Bdate == Bdate[1] and ntime2 > 1 and TM >= TM[1]+ntime2) or (Bdate == Bdate[1] and ntime2 == 1 and TM > TM[1]) Then { L2[0] = L; for cnt = 1 to 49 { L2[cnt] = L2[cnt-1][1]; } } if L < L2[0] Then L2[0] = L; if Bdate != Bdate[1] or (Bdate == Bdate[1] and ntime3 > 1 and TF3 < TF3[1]) or (Bdate == Bdate[1] and ntime3 > 1 and TM >= TM[1]+ntime3) or (Bdate == Bdate[1] and ntime3 == 1 and TM > TM[1]) Then { L3[0] = L; for cnt = 1 to 49 { L3[cnt] = L3[cnt-1][1]; } } if L < L3[0] Then L3[0] = L; if Bdate != Bdate[1] or (Bdate == Bdate[1] and ntime4 > 1 and TF4 < TF4[1]) or (Bdate == Bdate[1] and ntime4 > 1 and TM >= TM[1]+ntime4) or (Bdate == Bdate[1] and ntime4 == 1 and TM > TM[1]) Then { L4[0] = L; for cnt = 1 to 49 { L4[cnt] = L4[cnt-1][1]; } } if L < L4[0] Then L4[0] = L; if L1[N] > 0 Then plot1(L1[N]); if L2[N] > 0 Then plot2(L2[N]); if L3[N] > 0 Then plot3(L3[N]); if L4[N] > 0 Then plot4(L4[N]); } 즐거운 하루되세요 > 커피한잔 님이 쓴 글입니다. > 제목 : 감사합니다 > N봉전 120분 60분 30분 15분봉 저가라인 부탁합니다 몇일 저 만들어주신 녀월주일봉 저가라인 수식에 timelow를 넣어 변형 해보다 잘안돼서 또 이렇게 부탁드립니다 감사합니다