커뮤니티

수식수정부탁드립니다.

프로필 이미지
수색대대
2020-03-28 11:42:25
545
글번호 137283
답변완료
input : n(12),x(10); var : idx(0),hh(0),ll(0),dd(0),tt(0); var : tl1(0),tl2(0),tl3(0),tl4(0); var1 = highest(H,n); var2 = lowest(L,n); Condition1 = C <= var1[1] and C >= var2[1]; if Condition1 == true and Condition1[1] == false Then { idx = 0; hh = h; ll = l; dd = sdate; tt = stime; } if Condition1 == true Then { idx = idx+1; if h > hh Then hh = h; if l < ll Then ll = l; if idx == x Then { tl1 = TL_New(dd,tt,hh,dd,tt,ll); tl2 = TL_New(dd,tt,hh,sdate,stime,hh); tl3 = TL_New(dd,tt,ll,sdate,stime,ll); tl4 = TL_New(sdate,stime,hh,sdate,stime,ll); } if idx > x Then { TL_SetBegin(tl1,dd,tt,hh); TL_SetEnd(tl1,dd,tt,ll); TL_SetBegin(tl2,dd,tt,hh); TL_SetEnd(tl2,sdate,stime,hh); TL_SetBegin(tl3,dd,tt,ll); TL_SetEnd(tl3,sdate,stime,ll); TL_SetBegin(tl4,sdate,stime,hh); TL_SetEnd(tl4,sdate,stime,ll); } } If hh <= C Then { TL_SetColor(TL1,RED); TL_SetColor(TL2,RED); TL_SetColor(TL3,RED); TL_SetColor(TL4,RED); } Else { TL_SetColor(TL1,red); TL_SetColor(TL2,red); TL_SetColor(TL3,red); TL_SetColor(TL4,red); } TL_SetSize(TL1,0); //좌측세로선 굵기 TL_SetSize(TL2,0); //상단가로선 굵기 TL_SetSize(TL3,0); //하측가로선 굵기 TL_SetSize(TL4,0); //우측세로선 굵기 TL_SetStyle(TL1,3); //좌측세로선 점선 TL_SetStyle(TL4,3); //우측세로선 점선 상기수식이 고점저점으로 표기되는것을 고점종가 저점종가로 표기되게 수식 수정부탁드립니다 감사합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-03-30 14:33:07

안녕하세요 예스스탁입니다. input : n(12),x(10); var : idx(0),hh(0),ll(0),dd(0),tt(0); var : tl1(0),tl2(0),tl3(0),tl4(0); var1 = highest(H,n); var2 = lowest(L,n); Condition1 = C <= var1[1] and C >= var2[1]; if Condition1 == true and Condition1[1] == false Then { idx = 0; hh = c; ll = c; dd = sdate; tt = stime; } if Condition1 == true Then { idx = idx+1; if c > hh Then hh = c; if c < ll Then ll = c; if idx == x Then { tl1 = TL_New(dd,tt,hh,dd,tt,ll); tl2 = TL_New(dd,tt,hh,sdate,stime,hh); tl3 = TL_New(dd,tt,ll,sdate,stime,ll); tl4 = TL_New(sdate,stime,hh,sdate,stime,ll); } if idx > x Then { TL_SetBegin(tl1,dd,tt,hh); TL_SetEnd(tl1,dd,tt,ll); TL_SetBegin(tl2,dd,tt,hh); TL_SetEnd(tl2,sdate,stime,hh); TL_SetBegin(tl3,dd,tt,ll); TL_SetEnd(tl3,sdate,stime,ll); TL_SetBegin(tl4,sdate,stime,hh); TL_SetEnd(tl4,sdate,stime,ll); } } If hh <= C Then { TL_SetColor(TL1,RED); TL_SetColor(TL2,RED); TL_SetColor(TL3,RED); TL_SetColor(TL4,RED); } Else { TL_SetColor(TL1,red); TL_SetColor(TL2,red); TL_SetColor(TL3,red); TL_SetColor(TL4,red); } TL_SetSize(TL1,0); //좌측세로선 굵기 TL_SetSize(TL2,0); //상단가로선 굵기 TL_SetSize(TL3,0); //하측가로선 굵기 TL_SetSize(TL4,0); //우측세로선 굵기 TL_SetStyle(TL1,3); //좌측세로선 점선 TL_SetStyle(TL4,3); //우측세로선 점선 즐거운 하루되세요 > 수색대대 님이 쓴 글입니다. > 제목 : 수식수정부탁드립니다. > input : n(12),x(10); var : idx(0),hh(0),ll(0),dd(0),tt(0); var : tl1(0),tl2(0),tl3(0),tl4(0); var1 = highest(H,n); var2 = lowest(L,n); Condition1 = C <= var1[1] and C >= var2[1]; if Condition1 == true and Condition1[1] == false Then { idx = 0; hh = h; ll = l; dd = sdate; tt = stime; } if Condition1 == true Then { idx = idx+1; if h > hh Then hh = h; if l < ll Then ll = l; if idx == x Then { tl1 = TL_New(dd,tt,hh,dd,tt,ll); tl2 = TL_New(dd,tt,hh,sdate,stime,hh); tl3 = TL_New(dd,tt,ll,sdate,stime,ll); tl4 = TL_New(sdate,stime,hh,sdate,stime,ll); } if idx > x Then { TL_SetBegin(tl1,dd,tt,hh); TL_SetEnd(tl1,dd,tt,ll); TL_SetBegin(tl2,dd,tt,hh); TL_SetEnd(tl2,sdate,stime,hh); TL_SetBegin(tl3,dd,tt,ll); TL_SetEnd(tl3,sdate,stime,ll); TL_SetBegin(tl4,sdate,stime,hh); TL_SetEnd(tl4,sdate,stime,ll); } } If hh <= C Then { TL_SetColor(TL1,RED); TL_SetColor(TL2,RED); TL_SetColor(TL3,RED); TL_SetColor(TL4,RED); } Else { TL_SetColor(TL1,red); TL_SetColor(TL2,red); TL_SetColor(TL3,red); TL_SetColor(TL4,red); } TL_SetSize(TL1,0); //좌측세로선 굵기 TL_SetSize(TL2,0); //상단가로선 굵기 TL_SetSize(TL3,0); //하측가로선 굵기 TL_SetSize(TL4,0); //우측세로선 굵기 TL_SetStyle(TL1,3); //좌측세로선 점선 TL_SetStyle(TL4,3); //우측세로선 점선 상기수식이 고점저점으로 표기되는것을 고점종가 저점종가로 표기되게 수식 수정부탁드립니다 감사합니다.