커뮤니티

검토 부탁드립니다.

프로필 이미지
포보스
2023-01-12 13:05:50
984
글번호 165345
답변완료
안녕하세요! 아래 지표에서 PlotBaseLine(0)을 기준으로 Plot1의 지표 RGB line을 그리는 것이 아니라 피보나치비율 50%를 기준으로 Plot1의 지표라인을 RGB로 나타내고 싶습니다. 도와주심 정말 감사드립니다. 늘 건강하세요. ======================= 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(243,97,220),RGB(102,152,253))); 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+100,"+100"); plot11(ll+(hh-ll)*0.500-100,"-100"); } PlotBaseLine1(0);
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-01-12 14:40:17

안녕하세요. 예스스탁 입니다. 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 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 Plot1(var1,"당일실매수거래량",iff(var1 > ll+(hh-ll)*0.500,RGB(243,97,220),RGB(102,152,253))); if CurrentDate == sDate Then plot2(Var2,"첫봉종가"); 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+100,"+100"); plot11(ll+(hh-ll)*0.500-100,"-100"); } PlotBaseLine1(0); 즐거운 하루 보내세요. > 포보스 님이 쓴 글입니다. > 제목 : 검토 부탁드립니다. > 안녕하세요! 아래 지표에서 PlotBaseLine(0)을 기준으로 Plot1의 지표 RGB line을 그리는 것이 아니라 피보나치비율 50%를 기준으로 Plot1의 지표라인을 RGB로 나타내고 싶습니다. 도와주심 정말 감사드립니다. 늘 건강하세요. ======================= 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(243,97,220),RGB(102,152,253))); 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+100,"+100"); plot11(ll+(hh-ll)*0.500-100,"-100"); } PlotBaseLine1(0);