커뮤니티

화살표생성

프로필 이미지
카카
2024-10-24 20:30:38
562
글번호 184582
답변완료
안녕하세요 관리자님!! 아래지표에서 음봉이 plot19를 하방으로 뚫고 확정된 봉이 됐을때 ↑ 양봉이 plot16을 상방으로 뚫고 확정된 봉이 됐을때 ↓ 표시될수 있도록 추가하여 주시길 바랍니다^^ -아 래- input : nday(2); var : OO(0),HH(0),LL(0),cnt(0); OO = DayOpen(nday); HH = DayHigh(1); LL = DayLow(1); for cnt = 1 to nday { if DayHigh(cnt) > hh Then hh = DayHigh(cnt); if DayLow(cnt) < ll Then ll = DayLow(cnt); } if OO > 0 then { var1 = C/OO*100-100; plot1(var1,"시가"); } if HH > 0 then { var2 = (C/HH*100-100); plot2(var2,"고가"); } if LL > 0 then { var3 = C/LL*100-100; plot3(var3,"저가"); plot4(0,"0선"); plot5(-var2,"-고가"); plot6(-var3,"-저가"); plot7(var3-var2,"저가-고가"); plot8(var2-var3,"고가-저가"); plot9(0.5,"0.5선"); plot10(-0.5,"-0.5선"); plot11(1.0,"1.0선"); plot12(-1.0,"-1.0선"); plot13(2.0,"2.0선"); plot14(-2.0,"-2.0선"); plot15(HH*1.005,"저0.5선"); plot16(HH*1.01,"저1.0선"); plot17(HH*1.02,"저2선"); plot18(LL*0.995,"고-0.5선"); plot19(LL*0.99,"고-1.0선"); plot20(LL*0.98,"고-2선"); plot21(HH*1.0,"저0선"); plot22(LL*1.0,"고0선"); }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-10-25 14:20:42

안녕하세요 예스스탁입니다. input : nday(2); var : OO(0),HH(0),LL(0),cnt(0),tx(0); OO = DayOpen(nday); HH = DayHigh(1); LL = DayLow(1); for cnt = 1 to nday { if DayHigh(cnt) > hh Then hh = DayHigh(cnt); if DayLow(cnt) < ll Then ll = DayLow(cnt); } if OO > 0 then { var1 = C/OO*100-100; plot1(var1,"시가"); } if HH > 0 then { var2 = (C/HH*100-100); plot2(var2,"고가"); } if LL > 0 then { var3 = C/LL*100-100; plot3(var3,"저가"); plot4(0,"0선"); plot5(-var2,"-고가"); plot6(-var3,"-저가"); plot7(var3-var2,"저가-고가"); plot8(var2-var3,"고가-저가"); plot9(0.5,"0.5선"); plot10(-0.5,"-0.5선"); plot11(1.0,"1.0선"); plot12(-1.0,"-1.0선"); plot13(2.0,"2.0선"); plot14(-2.0,"-2.0선"); plot15(HH*1.005,"저0.5선"); plot16(HH*1.01,"저1.0선"); plot17(HH*1.02,"저2선"); plot18(LL*0.995,"고-0.5선"); plot19(LL*0.99,"고-1.0선"); plot20(LL*0.98,"고-2선"); plot21(HH*1.0,"저0선"); plot22(LL*1.0,"고0선"); if CrossDown(C,LL*0.99) and C < O Then { tx = Text_New(sDate,sTime,L,"↑"); Text_SetStyle(tx,2,0); Text_SetColor(tx,Blue); } if CrossDown(C,LL*1.01) and C > O Then { tx = Text_New(sDate,sTime,H,"↓"); Text_SetStyle(tx,2,1); Text_SetColor(tx,Red); } } 즐거운 하루되세요 > 카카 님이 쓴 글입니다. > 제목 : 화살표생성 > 안녕하세요 관리자님!! 아래지표에서 음봉이 plot19를 하방으로 뚫고 확정된 봉이 됐을때 ↑ 양봉이 plot16을 상방으로 뚫고 확정된 봉이 됐을때 ↓ 표시될수 있도록 추가하여 주시길 바랍니다^^ -아 래- input : nday(2); var : OO(0),HH(0),LL(0),cnt(0); OO = DayOpen(nday); HH = DayHigh(1); LL = DayLow(1); for cnt = 1 to nday { if DayHigh(cnt) > hh Then hh = DayHigh(cnt); if DayLow(cnt) < ll Then ll = DayLow(cnt); } if OO > 0 then { var1 = C/OO*100-100; plot1(var1,"시가"); } if HH > 0 then { var2 = (C/HH*100-100); plot2(var2,"고가"); } if LL > 0 then { var3 = C/LL*100-100; plot3(var3,"저가"); plot4(0,"0선"); plot5(-var2,"-고가"); plot6(-var3,"-저가"); plot7(var3-var2,"저가-고가"); plot8(var2-var3,"고가-저가"); plot9(0.5,"0.5선"); plot10(-0.5,"-0.5선"); plot11(1.0,"1.0선"); plot12(-1.0,"-1.0선"); plot13(2.0,"2.0선"); plot14(-2.0,"-2.0선"); plot15(HH*1.005,"저0.5선"); plot16(HH*1.01,"저1.0선"); plot17(HH*1.02,"저2선"); plot18(LL*0.995,"고-0.5선"); plot19(LL*0.99,"고-1.0선"); plot20(LL*0.98,"고-2선"); plot21(HH*1.0,"저0선"); plot22(LL*1.0,"고0선"); }