커뮤니티

수식문의드립니다.

프로필 이미지
렉쳐
2018-04-15 21:59:43
167
글번호 118202
답변완료
수식 2개의뢰드립니다. 1. 분봉에 사용할 것입니다. 첫달의 봉(캔들)을 포함에 카운팅하여 9,17,26,33,42,52,65,76,129,172,176,226 후의봉이 생기자 마자 캔들아래에 숫자가 해당 표시됬으면합니다. 그리고 아래숫자 하루전 (8캔들)은 캔들아래에 초록색동그라미가 있었으면합니다.(예비신호) 단, 해당월이 끝나면 이전 텍스트는 없어졌으면 합니다. 2. 윗식을 주기준으로 부탁드립니다. 3. 윗식을 년기준으로 부탁드립니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-04-16 09:16:55

안녕하세요 예스스탁입니다. 1. var : idx(0),cnt(0); Array : tx[50](0); if sdate > sdate[1]+30 Then { idx = 0; for cnt = 0 to 49 { Text_Delete(tx[cnt]); } } idx = idx+1; if idx == 8 or idx == 16 or idx == 25 or idx == 32 or idx == 41 or idx == 51 or idx == 64 or idx == 75 or idx == 128 or idx == 171 or idx == 175 or idx == 225 Then plot1(L,"검색",GREEN); if idx == 9 or idx == 17 or idx == 26 or idx == 33 or idx == 42 or idx == 52 or idx == 65 or idx == 76 or idx == 129 or idx == 172 or idx == 176 or idx == 226 Then{ cnt = cnt+1; tx[cnt] = Text_New(sdate,stime,H,NumToStr(idx,0)); } 2 var : idx(0),cnt(0); Array : tx[50](0); if DayOfWeek(sdate) < DayOfWeek(sdate[1]) Then { idx = 0; for cnt = 0 to 49 { Text_Delete(tx[cnt]); } } idx = idx+1; if idx == 8 or idx == 16 or idx == 25 or idx == 32 or idx == 41 or idx == 51 or idx == 64 or idx == 75 or idx == 128 or idx == 171 or idx == 175 or idx == 225 Then plot1(L,"검색",GREEN); if idx == 9 or idx == 17 or idx == 26 or idx == 33 or idx == 42 or idx == 52 or idx == 65 or idx == 76 or idx == 129 or idx == 172 or idx == 176 or idx == 226 Then{ cnt = cnt+1; tx[cnt] = Text_New(sdate,stime,H,NumToStr(idx,0)); } 3 var : idx(0),cnt(0); Array : tx[50](0); if sdate > sdate[1]+1000 Then { idx = 0; for cnt = 0 to 49 { Text_Delete(tx[cnt]); } } idx = idx+1; if idx == 8 or idx == 16 or idx == 25 or idx == 32 or idx == 41 or idx == 51 or idx == 64 or idx == 75 or idx == 128 or idx == 171 or idx == 175 or idx == 225 Then plot1(L,"검색",GREEN); if idx == 9 or idx == 17 or idx == 26 or idx == 33 or idx == 42 or idx == 52 or idx == 65 or idx == 76 or idx == 129 or idx == 172 or idx == 176 or idx == 226 Then{ cnt = cnt+1; tx[cnt] = Text_New(sdate,stime,H,NumToStr(idx,0)); } 즐거운 하루되세요 > 렉쳐 님이 쓴 글입니다. > 제목 : 수식문의드립니다. > 수식 2개의뢰드립니다. 1. 분봉에 사용할 것입니다. 첫달의 봉(캔들)을 포함에 카운팅하여 9,17,26,33,42,52,65,76,129,172,176,226 후의봉이 생기자 마자 캔들아래에 숫자가 해당 표시됬으면합니다. 그리고 아래숫자 하루전 (8캔들)은 캔들아래에 초록색동그라미가 있었으면합니다.(예비신호) 단, 해당월이 끝나면 이전 텍스트는 없어졌으면 합니다. 2. 윗식을 주기준으로 부탁드립니다. 3. 윗식을 년기준으로 부탁드립니다.