커뮤니티

정보내용이 실제와 일치하지 않습니다.

프로필 이미지
안산개미
2024-11-20 20:03:19
558
글번호 185476
답변완료
안녕하세요. 답변주신수식이 적용하면, 종목 정보가 일치하지 않습니다. 확인부탁드립니다. var : Grid(0); if Index == 0 Then { Grid = Grid_New(7, 6, 3,White, Gray, 1, Gray, 0); Grid_Cell(Grid,0,0,"종목명",0,0,BLACK,Green); Grid_Cell(Grid,1,0,"현재가",0,0,BLACK,Green); Grid_Cell(Grid,2,0,"전일대비",0,0,BLACK,Green); Grid_Cell(Grid,3,0,"등락율",0,0,BLACK,Green); Grid_Cell(Grid,4,0,"거래량",0,0,BLACK,Green); Grid_Cell(Grid,5,0,"거래대금",0,0,BLACK,Green); Grid_Cell(Grid,0,1,SymbolName,0,0,BLACK,White); Grid_Cell(Grid,1,1,NumToStr(c,2),0,0,BLACK,White); Grid_Cell(Grid,2,1,NumToStr(c-DayClose(1),2),0,0,BLACK,White); Grid_Cell(Grid,3,1,NumToStr((c-DayClose(1))/DayClose(1)*100,2),0,0,BLACK,White); Grid_Cell(Grid,4,1,NumToStr(v,0),0,0,BLACK,White); Grid_Cell(Grid,5,1,NumToStr(m,0),0,0,BLACK,White); Grid_CellSetWidth(Grid,0,0,20); Grid_CellSetWidth(Grid,1,0,15); Grid_CellSetWidth(Grid,2,0,15); Grid_CellSetWidth(Grid,3,0,15); Grid_CellSetWidth(Grid,4,0,15); Grid_CellSetWidth(Grid,5,0,20); Grid_CellSetTextVAlign(Grid,0,0,2); Grid_CellSetTextVAlign(Grid,1,0,2); Grid_CellSetTextVAlign(Grid,2,0,2); Grid_CellSetTextVAlign(Grid,3,0,2); Grid_CellSetTextVAlign(Grid,4,0,2); Grid_CellSetTextVAlign(Grid,5,0,2); Grid_CellSetTextVAlign(Grid,0,1,2); Grid_CellSetTextVAlign(Grid,1,1,2); Grid_CellSetTextVAlign(Grid,2,1,2); Grid_CellSetTextVAlign(Grid,3,1,2); Grid_CellSetTextVAlign(Grid,4,1,2); Grid_CellSetTextVAlign(Grid,5,1,2); Grid_CellSetTextHAlign(Grid,0,0,2); Grid_CellSetTextHAlign(Grid,1,0,2); Grid_CellSetTextHAlign(Grid,2,0,2); Grid_CellSetTextHAlign(Grid,3,0,2); Grid_CellSetTextHAlign(Grid,4,0,2); Grid_CellSetTextHAlign(Grid,5,0,2); Grid_CellSetTextHAlign(Grid,0,1,2); Grid_CellSetTextHAlign(Grid,1,1,2); Grid_CellSetTextHAlign(Grid,2,1,2); Grid_CellSetTextHAlign(Grid,3,1,2); Grid_CellSetTextHAlign(Grid,4,1,2); Grid_CellSetTextHAlign(Grid,5,1,2); Grid_CellSetTextColor(Grid,1,1,IFf(C>DayClose(1),Red,IFf(C<DayClose(1),Blue,Green))); Grid_CellSetTextColor(Grid,2,1,IFf(C>DayClose(1),Red,IFf(C<DayClose(1),Blue,Green))); Grid_CellSetTextColor(Grid,3,1,IFf(C>DayClose(1),Red,IFf(C<DayClose(1),Blue,Green))); }
강조
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-11-21 14:13:18

안녕하세요 예스스탁입니다. 하단 수식이 빠져있었습니다. 아래식 이용하시면 됩니다. var : Grid(0); if Index == 0 Then { Grid = Grid_New(7, 6, 3,White, Gray, 1, Gray, 0); Grid_Cell(Grid,0,0,"종목명",0,0,BLACK,Green); Grid_Cell(Grid,1,0,"현재가",0,0,BLACK,Green); Grid_Cell(Grid,2,0,"전일대비",0,0,BLACK,Green); Grid_Cell(Grid,3,0,"등락율",0,0,BLACK,Green); Grid_Cell(Grid,4,0,"거래량",0,0,BLACK,Green); Grid_Cell(Grid,5,0,"거래대금",0,0,BLACK,Green); Grid_Cell(Grid,0,1,SymbolName,0,0,BLACK,White); Grid_Cell(Grid,1,1,NumToStr(c,2),0,0,BLACK,White); Grid_Cell(Grid,2,1,NumToStr(c-DayClose(1),2),0,0,BLACK,White); Grid_Cell(Grid,3,1,NumToStr((c-DayClose(1))/DayClose(1)*100,2),0,0,BLACK,White); Grid_Cell(Grid,4,1,NumToStr(v,0),0,0,BLACK,White); Grid_Cell(Grid,5,1,NumToStr(m,0),0,0,BLACK,White); Grid_CellSetWidth(Grid,0,0,20); Grid_CellSetWidth(Grid,1,0,15); Grid_CellSetWidth(Grid,2,0,15); Grid_CellSetWidth(Grid,3,0,15); Grid_CellSetWidth(Grid,4,0,15); Grid_CellSetWidth(Grid,5,0,20); Grid_CellSetTextVAlign(Grid,0,0,2); Grid_CellSetTextVAlign(Grid,1,0,2); Grid_CellSetTextVAlign(Grid,2,0,2); Grid_CellSetTextVAlign(Grid,3,0,2); Grid_CellSetTextVAlign(Grid,4,0,2); Grid_CellSetTextVAlign(Grid,5,0,2); Grid_CellSetTextVAlign(Grid,0,1,2); Grid_CellSetTextVAlign(Grid,1,1,2); Grid_CellSetTextVAlign(Grid,2,1,2); Grid_CellSetTextVAlign(Grid,3,1,2); Grid_CellSetTextVAlign(Grid,4,1,2); Grid_CellSetTextVAlign(Grid,5,1,2); Grid_CellSetTextHAlign(Grid,0,0,2); Grid_CellSetTextHAlign(Grid,1,0,2); Grid_CellSetTextHAlign(Grid,2,0,2); Grid_CellSetTextHAlign(Grid,3,0,2); Grid_CellSetTextHAlign(Grid,4,0,2); Grid_CellSetTextHAlign(Grid,5,0,2); Grid_CellSetTextHAlign(Grid,0,1,2); Grid_CellSetTextHAlign(Grid,1,1,2); Grid_CellSetTextHAlign(Grid,2,1,2); Grid_CellSetTextHAlign(Grid,3,1,2); Grid_CellSetTextHAlign(Grid,4,1,2); Grid_CellSetTextHAlign(Grid,5,1,2); Grid_CellSetTextColor(Grid,1,1,IFf(C>DayClose(1),Red,IFf(C<DayClose(1),Blue,Green))); Grid_CellSetTextColor(Grid,2,1,IFf(C>DayClose(1),Red,IFf(C<DayClose(1),Blue,Green))); Grid_CellSetTextColor(Grid,3,1,IFf(C>DayClose(1),Red,IFf(C<DayClose(1),Blue,Green))); } if LastBarOnChart == 1 Then { Grid_Cell(Grid,0,1,SymbolName,0,0,BLACK,White); Grid_Cell(Grid,1,1,NumToStr(c,2),0,0,BLACK,White); Grid_Cell(Grid,2,1,NumToStr(c-DayClose(1),2),0,0,BLACK,White); Grid_Cell(Grid,3,1,NumToStr((c-DayClose(1))/DayClose(1)*100,2),0,0,BLACK,White); Grid_Cell(Grid,4,1,NumToStr(v,0),0,0,BLACK,White); //분봉이하에서 당일거래량이면 NumToStr(dayvolume(0),0) Grid_Cell(Grid,5,1,NumToStr(m,0),0,0,BLACK,White); //분봉이하에서 당일거래대금이면 NumToStr(daymoney(0),0) } 즐거운 하루되세요 > 안산개미 님이 쓴 글입니다. > 제목 : 정보내용이 실제와 일치하지 않습니다. > 안녕하세요. 답변주신수식이 적용하면, 종목 정보가 일치하지 않습니다. 확인부탁드립니다. var : Grid(0); if Index == 0 Then { Grid = Grid_New(7, 6, 3,White, Gray, 1, Gray, 0); Grid_Cell(Grid,0,0,"종목명",0,0,BLACK,Green); Grid_Cell(Grid,1,0,"현재가",0,0,BLACK,Green); Grid_Cell(Grid,2,0,"전일대비",0,0,BLACK,Green); Grid_Cell(Grid,3,0,"등락율",0,0,BLACK,Green); Grid_Cell(Grid,4,0,"거래량",0,0,BLACK,Green); Grid_Cell(Grid,5,0,"거래대금",0,0,BLACK,Green); Grid_Cell(Grid,0,1,SymbolName,0,0,BLACK,White); Grid_Cell(Grid,1,1,NumToStr(c,2),0,0,BLACK,White); Grid_Cell(Grid,2,1,NumToStr(c-DayClose(1),2),0,0,BLACK,White); Grid_Cell(Grid,3,1,NumToStr((c-DayClose(1))/DayClose(1)*100,2),0,0,BLACK,White); Grid_Cell(Grid,4,1,NumToStr(v,0),0,0,BLACK,White); Grid_Cell(Grid,5,1,NumToStr(m,0),0,0,BLACK,White); Grid_CellSetWidth(Grid,0,0,20); Grid_CellSetWidth(Grid,1,0,15); Grid_CellSetWidth(Grid,2,0,15); Grid_CellSetWidth(Grid,3,0,15); Grid_CellSetWidth(Grid,4,0,15); Grid_CellSetWidth(Grid,5,0,20); Grid_CellSetTextVAlign(Grid,0,0,2); Grid_CellSetTextVAlign(Grid,1,0,2); Grid_CellSetTextVAlign(Grid,2,0,2); Grid_CellSetTextVAlign(Grid,3,0,2); Grid_CellSetTextVAlign(Grid,4,0,2); Grid_CellSetTextVAlign(Grid,5,0,2); Grid_CellSetTextVAlign(Grid,0,1,2); Grid_CellSetTextVAlign(Grid,1,1,2); Grid_CellSetTextVAlign(Grid,2,1,2); Grid_CellSetTextVAlign(Grid,3,1,2); Grid_CellSetTextVAlign(Grid,4,1,2); Grid_CellSetTextVAlign(Grid,5,1,2); Grid_CellSetTextHAlign(Grid,0,0,2); Grid_CellSetTextHAlign(Grid,1,0,2); Grid_CellSetTextHAlign(Grid,2,0,2); Grid_CellSetTextHAlign(Grid,3,0,2); Grid_CellSetTextHAlign(Grid,4,0,2); Grid_CellSetTextHAlign(Grid,5,0,2); Grid_CellSetTextHAlign(Grid,0,1,2); Grid_CellSetTextHAlign(Grid,1,1,2); Grid_CellSetTextHAlign(Grid,2,1,2); Grid_CellSetTextHAlign(Grid,3,1,2); Grid_CellSetTextHAlign(Grid,4,1,2); Grid_CellSetTextHAlign(Grid,5,1,2); Grid_CellSetTextColor(Grid,1,1,IFf(C>DayClose(1),Red,IFf(C<DayClose(1),Blue,Green))); Grid_CellSetTextColor(Grid,2,1,IFf(C>DayClose(1),Red,IFf(C<DayClose(1),Blue,Green))); Grid_CellSetTextColor(Grid,3,1,IFf(C>DayClose(1),Red,IFf(C<DayClose(1),Blue,Green))); }