커뮤니티

강조

프로필 이미지
에리카
2020-07-28 19:17:18
1808
글번호 141067
답변완료
매주초 주봉첫날을 일봉 분봉에 나오게하려합니다 아래식은 첫주 첫날입니다 매주 첫날 수식9특수문자포함)부탁드립니다 var : count(0); var : month(0); month = int(date/100)-int(date/10000)*100; if month != month[1] Then { Condition1 = true; count = 0; } if Condition1 == true and bdate != bdate[1] and DayOfWeek(bdate) == 1 Then { count = count+1; if count == 1 Then PlotPaintBar(o,c,"강조",CYAN); }
강조
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-07-29 09:27:24

안녕하세요 예스스탁입니다. var : count(0); var : month(0); var : tx(0); month = int(date/100)-int(date/10000)*100; if month != month[1] Then { Condition1 = true; count = 0; } if Condition1 == true and bdate != bdate[1] and DayOfWeek(bdate) == 1 Then { count = count+1; if count == 1 Then { PlotPaintBar(o,c,"강조",CYAN); Text_Delete(tx); tx = Text_New(sdate,stime,H,"▼"); text_setStyle(tx,2,1); text_setcolor(tx,red); text_setsize(tx,20); } } 즐거운 하루되세요 > 에리카 님이 쓴 글입니다. > 제목 : 강조 > 매주초 주봉첫날을 일봉 분봉에 나오게하려합니다 아래식은 첫주 첫날입니다 매주 첫날 수식9특수문자포함)부탁드립니다 var : count(0); var : month(0); month = int(date/100)-int(date/10000)*100; if month != month[1] Then { Condition1 = true; count = 0; } if Condition1 == true and bdate != bdate[1] and DayOfWeek(bdate) == 1 Then { count = count+1; if count == 1 Then PlotPaintBar(o,c,"강조",CYAN); }