커뮤니티

plat...

프로필 이미지
회원
2019-09-19 09:49:02
233
글번호 132075
답변완료
1)검증부분에서 PlotPaintBar가 실행이 안되는데 다른작업이 필료한가요 2)추가로 월말이 안된다면 주말표시도 안되나요 3)#월첫날 에서 달 &#45335;고 주넣을때 달안에 남은 주를 &#45335;는건지 시작일자를 넣는 건지??? 일자도 남은 일자를 넣는지 시작하는 일자를 넣는지 가이드 좀해주세요 예시로 일자넣어서 설면넣어주시면 좀더 쉽게 접근할수 있을 것 같아요 var : count(-1); if sdate > sdate[1]+30 Then count = 0; if sdate != sdate[1] and count >= 0 then count = count+1; #월첫날 if count == 1 Then PlotPaintBar(H,L,"강조",CYAN); var : month(0),nday(0),week(0); month = int(date/100)-int(date/10000)*100; nday = date - int(date/100)*100; week = DayOfWeek(date); #선물만기 if (month%3 == 0 and nday >= 8 and nday <= 14 and week == 4) then PlotPaintBar(H,L,"강조",MAGENTA); #옵션만기 if (nday >= 8 and nday <= 14 and week == 4) or (sdate == 20190911) then PlotPaintBar(H,L,"강조",YELLOW);
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-09-19 11:03:31

안녕하세요 예스스탁입니다. 1 예스랭귀지 수식중에 봉에 색을 칠하는 수식은 강조식입니다. PlotPaintBar는 강조식에서 사용가능한 함수입니다. 편집기에서 강조식으로 작성하셔야 합니다. 2 랭귀지에 별도의 달력데이타가 없어 휴일정보를 알수 없어 월말인지 여부는 인지가 되지 않습니다. 주간의 경우 현재날짜를 요일로 변경해 주는 함수가 있어 오늘이 금요일이면 표시가 가능하지만 마찬가지로 휴일정보가 없어 금요일이 휴일이면 인지가 되지 않습니다. 이전 수식에 금요일에 표시되는 내용을 추가해 드립니다. var : count(-1); if sdate > sdate[1]+30 Then count = 0; if sdate != sdate[1] and count >= 0 then count = count+1; #월첫날 if count == 1 Then PlotPaintBar(H,L,"강조",CYAN); var : month(0),nday(0),week(0); month = int(date/100)-int(date/10000)*100; nday = date - int(date/100)*100; week = DayOfWeek(date); #선물만기 if (month%3 == 0 and nday >= 8 and nday <= 14 and week == 4) then PlotPaintBar(H,L,"강조",MAGENTA); #옵션만기 if (nday >= 8 and nday <= 14 and week == 4) or (sdate == 20190911) then PlotPaintBar(H,L,"강조",YELLOW); #오늘이 금요일이면 if DayOfWeek(sdate) == 5 Then PlotPaintBar(H,L,"강조",GREEN); 3 월 마지막일은 표시하고자 하시면 날짜를 지정해서 출력해야 합니다. 20190731과 같이 연도월일을 모두 함께 지정해 주셔야 합니다. 필요하신 만큼 모두 지정해 넣으셔야 합니다. 하단식 참고하시기 바랍니다. var : count(-1); if sdate > sdate[1]+30 Then count = 0; if sdate != sdate[1] and count >= 0 then count = count+1; #월첫날 if count == 1 Then PlotPaintBar(H,L,"강조",CYAN); var : month(0),nday(0),week(0); month = int(date/100)-int(date/10000)*100; nday = date - int(date/100)*100; week = DayOfWeek(date); #선물만기 if (month%3 == 0 and nday >= 8 and nday <= 14 and week == 4) then PlotPaintBar(H,L,"강조",MAGENTA); #옵션만기 if (nday >= 8 and nday <= 14 and week == 4) or (sdate == 20190911) then PlotPaintBar(H,L,"강조",YELLOW); #오늘이 금요일이면 if DayOfWeek(sdate) == 5 Then PlotPaintBar(H,L,"강조",GREEN); #월마지막일 if (sdate == 20190731) or (sdate == 20190830) Then PlotPaintBar(H,L,"강조",GREEN); 즐거운 하루되세요 > 에리카 님이 쓴 글입니다. > 제목 : plat... > 1)검증부분에서 PlotPaintBar가 실행이 안되는데 다른작업이 필료한가요 2)추가로 월말이 안된다면 주말표시도 안되나요 3)#월첫날 에서 달 넗고 주넣을때 달안에 남은 주를 넗는건지 시작일자를 넣는 건지??? 일자도 남은 일자를 넣는지 시작하는 일자를 넣는지 가이드 좀해주세요 예시로 일자넣어서 설면넣어주시면 좀더 쉽게 접근할수 있을 것 같아요 var : count(-1); if sdate > sdate[1]+30 Then count = 0; if sdate != sdate[1] and count >= 0 then count = count+1; #월첫날 if count == 1 Then PlotPaintBar(H,L,"강조",CYAN); var : month(0),nday(0),week(0); month = int(date/100)-int(date/10000)*100; nday = date - int(date/100)*100; week = DayOfWeek(date); #선물만기 if (month%3 == 0 and nday >= 8 and nday <= 14 and week == 4) then PlotPaintBar(H,L,"강조",MAGENTA); #옵션만기 if (nday >= 8 and nday <= 14 and week == 4) or (sdate == 20190911) then PlotPaintBar(H,L,"강조",YELLOW);