커뮤니티

수식 부탁합니다

프로필 이미지
회원
2017-06-12 18:20:08
151
글번호 110353
답변완료
아래수식에서 #,당일(변수)시간대별 OV,HV,LV 가격을 연장선 긋기로(텍스트포함)오른쪽 끝까지 표기하면 좋겠습니다. 언제나 늘 감사합니다. var : Ov(0),Hv(0),Lv(0); if (stime == 70000 or (stime > 70000 and stime[1] < 70000)) or (stime == 110000 or (stime > 110000 and stime[1] < 110000)) or (stime == 150000 or (stime > 150000 and stime[1] < 150000)) or (stime == 190000 or (stime > 190000 and stime[1] < 190000)) or (stime == 230000 or (stime > 230000 and stime[1] < 230000)) or (stime == 30000 or (stime > 30000 and stime[1] < 30000)) Then{ Ov = O; Hv = H; Lv = L; } if H > Hv Then Hv = H; if L < Lv Then Lv = L; plot1(Ov); plot2(Hv); plot3(Lv);
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-06-13 13:25:23

안녕하세요 예스스탁입니다. 연장선은 추세선 함수를 사용할때만 가능합니다. 일반 plot함수는 연장선이 가능하지 않습니다. 해당식을 추세선 함수와 텍스트함수로 출력되게 변경해 드립니다 var : Ov(0),Hv(0),Lv(0),sd(0),st(0),TL1(0),TL2(0),TL3(0); var : tx1(0),tx2(0),tx3(0); if (stime == 70000 or (stime > 70000 and stime[1] < 70000)) or (stime == 110000 or (stime > 110000 and stime[1] < 110000)) or (stime == 150000 or (stime > 150000 and stime[1] < 150000)) or (stime == 190000 or (stime > 190000 and stime[1] < 190000)) or (stime == 230000 or (stime > 230000 and stime[1] < 230000)) or (stime == 30000 or (stime > 30000 and stime[1] < 30000)) Then{ Ov = O; Hv = H; Lv = L; SD = sdate[1]; ST = sTime[1]; TL_SetExtRight(TL1,false); TL1 = TL_New(sd,st,Ov,Sdate,stime,Ov); TL_SetExtRight(TL1,true); TL_SetExtRight(TL2,false); if Hv != Ov then{ TL2 = TL_New(sd,st,Hv,Sdate,stime,Hv); TL_SetExtRight(TL2,true); } TL_SetExtRight(TL3,false); if Lv != Ov then{ TL3 = TL_New(sd,st,Lv,Sdate,stime,Lv); TL_SetExtRight(TL3,true); } tx1 = Text_New(sdate,stime,Ov,"시가 :" +NumToStr(Ov,2)); tx2 = Text_New(sdate,stime,Hv,"고가 :" +NumToStr(Hv,2)); tx3 = Text_New(sdate,stime,Lv,"저가 :" +NumToStr(Lv,2)); } if H > Hv Then Hv = H; if L < Lv Then Lv = L; TL_SetEnd(TL1,sdate,stime,Ov); TL_SetBegin(TL1,sd,st,Ov); TL_SetExtRight(TL1,true); if Hv != Ov then{ TL_SetEnd(TL2,sdate,stime,Hv); TL_SetBegin(TL2,sd,st,Hv); TL_SetExtRight(TL2,true); } if Lv != Ov then{ TL_SetEnd(TL3,sdate,stime,Lv); TL_SetBegin(TL3,sd,st,Lv); TL_SetExtRight(TL3,true); } Text_SetLocation(tx1,sdate,stime,Ov); Text_SetStyle(tx1,2,2); Text_SetLocation(tx2,sdate,stime,Hv); Text_SetString(tx2,"고가 :" +NumToStr(Hv,2)); Text_SetStyle(tx2,2,1); Text_SetLocation(tx3,sdate,stime,Lv); Text_SetString(tx3,"저가 :" +NumToStr(Lv,2)); Text_SetStyle(tx3,2,0); 즐거운 하루되세요 > 골든키 님이 쓴 글입니다. > 제목 : 수식 부탁합니다 > 아래수식에서 #,당일(변수)시간대별 OV,HV,LV 가격을 연장선 긋기로(텍스트포함)오른쪽 끝까지 표기하면 좋겠습니다. 언제나 늘 감사합니다. var : Ov(0),Hv(0),Lv(0); if (stime == 70000 or (stime > 70000 and stime[1] < 70000)) or (stime == 110000 or (stime > 110000 and stime[1] < 110000)) or (stime == 150000 or (stime > 150000 and stime[1] < 150000)) or (stime == 190000 or (stime > 190000 and stime[1] < 190000)) or (stime == 230000 or (stime > 230000 and stime[1] < 230000)) or (stime == 30000 or (stime > 30000 and stime[1] < 30000)) Then{ Ov = O; Hv = H; Lv = L; } if H > Hv Then Hv = H; if L < Lv Then Lv = L; plot1(Ov); plot2(Hv); plot3(Lv);