커뮤니티

부탁드립니다

프로필 이미지
서태공
2026-01-07 15:27:01
55
글번호 229644
답변완료

1. 아시아 장 당일 오전9시부터 오후 16시, 유럽 장 당일 오후 16시부터 다음 날 오전 1시 , 미국 장 당일 오후 22시 30분부터 다음 날 오전 6시까지 각 시장 별로 시가와 종가, 최고가와 최저가가 있는 캔들로 박스를 구현하고 싶습니다.

고맙습니다.

지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2026-01-08 14:48:59

안녕하세요 예스스탁입니다. var : oo(Nan),hh(Nan),ll(Nan),cc(Nan),ii(0); var : box(0),tl1(0),tl2(0); if (sDate != sDate[1] and sTime >= 90000) or (sDate == sDate[1] and sTime >= 90000 and sTime[1] < 90000) Then { oo = o; hh = h; ll = l; cc = c; ii = 0; box = Box_New(sDate,sTime,oo,NextBarSdate,NextBarStime,cc); tl1 = TL_New(sDate,sTime,max(cc,oo),sDate,sTime,hh); tl2 = TL_New(sDate,sTime,min(cc,oo),sDate,sTime,ll); } if (sDate != sDate[1] and sTime >= 160000) or (sDate == sDate[1] and sTime >= 160000 and sTime[1] < 160000) Then { oo = o; hh = h; ll = l; cc = c; ii = 0; box = Box_New(sDate,sTime,oo,NextBarSdate,NextBarStime,cc); tl1 = TL_New(sDate,sTime,max(cc,oo),sDate,sTime,hh); tl2 = TL_New(sDate,sTime,min(cc,oo),sDate,sTime,ll); } if (sDate != sDate[1] and sTime >= 223000) or (sDate == sDate[1] and sTime >= 223000 and sTime[1] < 223000) Then { oo = o; hh = h; ll = l; cc = c; ii = 0; box = Box_New(sDate,sTime,oo,NextBarSdate,NextBarStime,cc); tl1 = TL_New(sDate,sTime,max(cc,oo),sDate,sTime,hh); tl2 = TL_New(sDate,sTime,min(cc,oo),sDate,sTime,ll); } ii = ii +1; if h > hh Then hh = h; if l < ll Then ll = l; cc = c; TL_SetBegin(tl1,sDate[Ceiling(ii/2)],sTime[Ceiling(ii/2)],max(cc,oo)); TL_SetEnd(tl1,sDate[Ceiling(ii/2)],sTime[Ceiling(ii/2)],hh); TL_SetBegin(tl2,sDate[Ceiling(ii/2)],sTime[Ceiling(ii/2)],min(cc,oo)); TL_SetEnd(tl2,sDate[Ceiling(ii/2)],sTime[Ceiling(ii/2)],ll); TL_SetColor(tl1,IFf(CC>OO,Red,IFF(CC<OO,Blue,Green))); TL_SetColor(tl2,IFf(CC>OO,Red,IFF(CC<OO,Blue,Green))); Box_SetColor(box,IFf(CC>OO,Red,IFF(CC<OO,Blue,Green))); Box_SetEnd(box,NextBarSdate,NextBarStime,CC); Box_SetFill(box,true); 즐거운 하루 되세요