커뮤니티

질문드립니다.

프로필 이미지
아이덜
2025-06-20 14:40:05
278
글번호 191973
답변완료
거래량 한봉으로만 표현되는것을 , 총 누적수량으로 볼수 있을까요?? input : 조정1(23.6),조정2(38.2),조정3(60.0),조정4(61.8),조정5(78.4); input : 글자크기(12); var : a1(0),a2(0),a3(0),b1(0),b2(0),b3(0),Grid(0); value1=(high-close)/(high-low); Value2=(close-low)/(high-low); var1 = iff((high+low)/2<=close,volume,0); var2 = iff((high+low)/2<=close,volume*value1,0); var3 = iff((high+low)/2>close,volume,0); Var4 = iff((high+low)/2>close,volume*Value2,0); a1=iff((high+low)/2<=close,volume,0); a2=(high-close)/(high-low); a3=iff((high+low)/2<=close,volume*a2,0); b1=iff((high+low)/2>close,volume,0); b2=(close-low)/(high-low); b3=iff((high+low)/2>close,volume*b2,0); Var5 = iff(a1>0,(a3/a1)*100,iff(b1>0,(b3/b1)*100,0)); Plot1(var1); Plot2(Var2); Plot3(Var3); Plot4(Var4); Plot5(Var5); if Index == 0 Then Grid = Grid_New(7, 2, 5,White, Gray, 1, Gray, 0); if LastBarOnChart == 1 Then { Grid_Cell(Grid,0,0,"매수",0,0,BLACK,White); Grid_Cell(Grid,1,0,NumToStr(var1,2),0,0,Red,White); Grid_CellSetTextSize(Grid,0,0,글자크기); Grid_CellSetTextSize(Grid,1,0,글자크기); Grid_Cell(Grid,0,1,"매수중매도",0,0,BLACK,White); Grid_Cell(Grid,1,1,NumToStr(var2,2),0,0,BLACK,White); Grid_CellSetTextSize(Grid,0,1,글자크기); Grid_CellSetTextSize(Grid,1,1,글자크기); Grid_Cell(Grid,0,2,"매도",0,0,BLACK,White); Grid_Cell(Grid,1,2,NumToStr(var3,2),0,0,Blue,White); Grid_CellSetTextSize(Grid,0,2,글자크기); Grid_CellSetTextSize(Grid,1,2,글자크기); Grid_Cell(Grid,0,3,"매도중매수",0,0,BLACK,White); Grid_Cell(Grid,1,3,NumToStr(var4,2),0,0,BLACK,White); Grid_CellSetTextSize(Grid,0,3,글자크기); Grid_CellSetTextSize(Grid,1,3,글자크기); Grid_Cell(Grid,0,4,"대비(%)",0,0,Green,White); Grid_Cell(Grid,1,4,NumToStr(var5,2),0,0,BLACK,White); Grid_CellSetTextSize(Grid,0,4,글자크기); Grid_CellSetTextSize(Grid,1,4,글자크기);
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-06-23 08:36:33

안녕하세요 예스스탁입니다. 당일거래량으로 처리해 드립니다. 아래 수식에 vv값 참고하시기 바랍니다. input : 조정1(23.6),조정2(38.2),조정3(60.0),조정4(61.8),조정5(78.4); input : 글자크기(12); var : a1(0),a2(0),a3(0),b1(0),b2(0),b3(0),Grid(0); var : vv(0); vv = DayVolume; //vv = vv+v; #차트전체누적 value1=(high-close)/(high-low); Value2=(close-low)/(high-low); var1 = iff((high+low)/2<=close,vv,0); var2 = iff((high+low)/2<=close,vv*value1,0); var3 = iff((high+low)/2>close,vv,0); Var4 = iff((high+low)/2>close,vv*Value2,0); a1=iff((high+low)/2<=close,vv,0); a2=(high-close)/(high-low); a3=iff((high+low)/2<=close,vv*a2,0); b1=iff((high+low)/2>close,vv,0); b2=(close-low)/(high-low); b3=iff((high+low)/2>close,vv*b2,0); Var5 = iff(a1>0,(a3/a1)*100,iff(b1>0,(b3/b1)*100,0)); Plot1(var1); Plot2(Var2); Plot3(Var3); Plot4(Var4); Plot5(Var5); if Index == 0 Then Grid = Grid_New(7, 2, 5,White, Gray, 1, Gray, 0); if LastBarOnChart == 1 Then { Grid_Cell(Grid,0,0,"매수",0,0,BLACK,White); Grid_Cell(Grid,1,0,NumToStr(var1,2),0,0,Red,White); Grid_CellSetTextSize(Grid,0,0,글자크기); Grid_CellSetTextSize(Grid,1,0,글자크기); Grid_Cell(Grid,0,1,"매수중매도",0,0,BLACK,White); Grid_Cell(Grid,1,1,NumToStr(var2,2),0,0,BLACK,White); Grid_CellSetTextSize(Grid,0,1,글자크기); Grid_CellSetTextSize(Grid,1,1,글자크기); Grid_Cell(Grid,0,2,"매도",0,0,BLACK,White); Grid_Cell(Grid,1,2,NumToStr(var3,2),0,0,Blue,White); Grid_CellSetTextSize(Grid,0,2,글자크기); Grid_CellSetTextSize(Grid,1,2,글자크기); Grid_Cell(Grid,0,3,"매도중매수",0,0,BLACK,White); Grid_Cell(Grid,1,3,NumToStr(var4,2),0,0,BLACK,White); Grid_CellSetTextSize(Grid,0,3,글자크기); Grid_CellSetTextSize(Grid,1,3,글자크기); Grid_Cell(Grid,0,4,"대비(%)",0,0,Green,White); Grid_Cell(Grid,1,4,NumToStr(var5,2),0,0,BLACK,White); Grid_CellSetTextSize(Grid,0,4,글자크기); Grid_CellSetTextSize(Grid,1,4,글자크기); } 즐거운 하루되세요 > 아이덜 님이 쓴 글입니다. > 제목 : 질문드립니다. > 거래량 한봉으로만 표현되는것을 , 총 누적수량으로 볼수 있을까요?? input : 조정1(23.6),조정2(38.2),조정3(60.0),조정4(61.8),조정5(78.4); input : 글자크기(12); var : a1(0),a2(0),a3(0),b1(0),b2(0),b3(0),Grid(0); value1=(high-close)/(high-low); Value2=(close-low)/(high-low); var1 = iff((high+low)/2<=close,volume,0); var2 = iff((high+low)/2<=close,volume*value1,0); var3 = iff((high+low)/2>close,volume,0); Var4 = iff((high+low)/2>close,volume*Value2,0); a1=iff((high+low)/2<=close,volume,0); a2=(high-close)/(high-low); a3=iff((high+low)/2<=close,volume*a2,0); b1=iff((high+low)/2>close,volume,0); b2=(close-low)/(high-low); b3=iff((high+low)/2>close,volume*b2,0); Var5 = iff(a1>0,(a3/a1)*100,iff(b1>0,(b3/b1)*100,0)); Plot1(var1); Plot2(Var2); Plot3(Var3); Plot4(Var4); Plot5(Var5); if Index == 0 Then Grid = Grid_New(7, 2, 5,White, Gray, 1, Gray, 0); if LastBarOnChart == 1 Then { Grid_Cell(Grid,0,0,"매수",0,0,BLACK,White); Grid_Cell(Grid,1,0,NumToStr(var1,2),0,0,Red,White); Grid_CellSetTextSize(Grid,0,0,글자크기); Grid_CellSetTextSize(Grid,1,0,글자크기); Grid_Cell(Grid,0,1,"매수중매도",0,0,BLACK,White); Grid_Cell(Grid,1,1,NumToStr(var2,2),0,0,BLACK,White); Grid_CellSetTextSize(Grid,0,1,글자크기); Grid_CellSetTextSize(Grid,1,1,글자크기); Grid_Cell(Grid,0,2,"매도",0,0,BLACK,White); Grid_Cell(Grid,1,2,NumToStr(var3,2),0,0,Blue,White); Grid_CellSetTextSize(Grid,0,2,글자크기); Grid_CellSetTextSize(Grid,1,2,글자크기); Grid_Cell(Grid,0,3,"매도중매수",0,0,BLACK,White); Grid_Cell(Grid,1,3,NumToStr(var4,2),0,0,BLACK,White); Grid_CellSetTextSize(Grid,0,3,글자크기); Grid_CellSetTextSize(Grid,1,3,글자크기); Grid_Cell(Grid,0,4,"대비(%)",0,0,Green,White); Grid_Cell(Grid,1,4,NumToStr(var5,2),0,0,BLACK,White); Grid_CellSetTextSize(Grid,0,4,글자크기); Grid_CellSetTextSize(Grid,1,4,글자크기);