커뮤니티

도움을 요청합니다.

프로필 이미지
포보스
2023-07-05 13:45:57
962
글번호 170358
답변완료
안녕하세요? 아래 거래량의 수식을 거래금액으로 대입해서 수식을 만들어 주시면 대단히 감사하겠습니다. 더위에 좋은시간 되세요. 미리 감사드립니다. ================== input : R1(255),G1(0),B1(0); input : R2(0),G2(0),B2(255); var : hh(0),ll(0); if Bdate != Bdate[1] Then { var1 = 0; Var2 = Upvol-DownVol; } var1 = var1 + (Upvol-DownVol); if CurrentDate == sDate Then Plot1(var1,"당일실매수거래량",iff(var1 > 0,RGB(0,0,0),RGB(0,0,0))); if CurrentDate == sDate Then plot2(Var2,"첫봉종가"); if Bdate != Bdate[1] Then { hh = var1; ll = var1; } Else { if var1 > hh Then hh = var1; if var1 < ll Then ll = var1; } if CurrentDate == sDate Then { Plot3(hh,"최고"); plot4(ll,"최저"); plot5(ll+(hh-ll)*0.236,"23.6%"); plot6(ll+(hh-ll)*0.382,"38.2%"); plot7(ll+(hh-ll)*0.500,"50.0%"); plot8(ll+(hh-ll)*0.618,"61.8%"); plot9(ll+(hh-ll)*0.714,"71.4%"); plot10(ll+(hh-ll)*0.500+150,"+150"); } if CurrentDate == sDate Then { PlotBaseLine1(0); PlotBaseLine2(30000); PlotBaseLine3(-30000); }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-07-05 16:21:04

안녕하세요 예스스탁입니다. 거래대금은 별도로 upvol와 downvol을 대체할 만한 데이타가 없습니다. 거래량중 upvol과 downvol의 비율을 구하고 해당 비율과 동일하게 거래대금을 구분해서 계산되게 작성해 드립니다. input : R1(255),G1(0),B1(0); input : R2(0),G2(0),B2(255); var : hh(0),ll(0),Rt1(0),Rt2(0),Mv1(0),Mv2(0),Diff(0); Rt1 = Upvol/Volume*100; Rt2 = Downvol/Volume*100; Mv1 = money*(Rt1/100); Mv2 = money*(Rt2/100); diff = Mv1-Mv2; if Bdate != Bdate[1] Then { var1 = 0; Var2 = Diff; } var1 = var1 + Diff; if CurrentDate == sDate Then Plot1(var1,"당일실매수거래량",iff(var1 > 0,RGB(0,0,0),RGB(0,0,0))); if CurrentDate == sDate Then plot2(Var2,"첫봉종가"); if Bdate != Bdate[1] Then { hh = var1; ll = var1; } Else { if var1 > hh Then hh = var1; if var1 < ll Then ll = var1; } if CurrentDate == sDate Then { Plot3(hh,"최고"); plot4(ll,"최저"); plot5(ll+(hh-ll)*0.236,"23.6%"); plot6(ll+(hh-ll)*0.382,"38.2%"); plot7(ll+(hh-ll)*0.500,"50.0%"); plot8(ll+(hh-ll)*0.618,"61.8%"); plot9(ll+(hh-ll)*0.714,"71.4%"); plot10(ll+(hh-ll)*0.500+150,"+150"); } if CurrentDate == sDate Then { PlotBaseLine1(0); PlotBaseLine2(30000); PlotBaseLine3(-30000); } 즐거운 하루되세요 > 포보스 님이 쓴 글입니다. > 제목 : 도움을 요청합니다. > 안녕하세요? 아래 거래량의 수식을 거래금액으로 대입해서 수식을 만들어 주시면 대단히 감사하겠습니다. 더위에 좋은시간 되세요. 미리 감사드립니다. ================== input : R1(255),G1(0),B1(0); input : R2(0),G2(0),B2(255); var : hh(0),ll(0); if Bdate != Bdate[1] Then { var1 = 0; Var2 = Upvol-DownVol; } var1 = var1 + (Upvol-DownVol); if CurrentDate == sDate Then Plot1(var1,"당일실매수거래량",iff(var1 > 0,RGB(0,0,0),RGB(0,0,0))); if CurrentDate == sDate Then plot2(Var2,"첫봉종가"); if Bdate != Bdate[1] Then { hh = var1; ll = var1; } Else { if var1 > hh Then hh = var1; if var1 < ll Then ll = var1; } if CurrentDate == sDate Then { Plot3(hh,"최고"); plot4(ll,"최저"); plot5(ll+(hh-ll)*0.236,"23.6%"); plot6(ll+(hh-ll)*0.382,"38.2%"); plot7(ll+(hh-ll)*0.500,"50.0%"); plot8(ll+(hh-ll)*0.618,"61.8%"); plot9(ll+(hh-ll)*0.714,"71.4%"); plot10(ll+(hh-ll)*0.500+150,"+150"); } if CurrentDate == sDate Then { PlotBaseLine1(0); PlotBaseLine2(30000); PlotBaseLine3(-30000); }