커뮤니티

기준선 관련

프로필 이미지
챠트미소
2012-11-21 10:57:26
370
글번호 56695
답변완료
상단기준선은 변동이 없는 데 수정부탁 하단 기준선은 변화가 있음 Input:m1(9); Var : Pivot2(0),Pivot1(0),R1(0),R2(0),R3(0),R4(0),r5(0),r6(0),S1(0),S2(0),S3(0),S4(0),S5(0),S6(0); if (stime == 90000 or (stime > 90000 and stime[1] < 90000)) or (stime == 180000 or (stime > 180000 and stime[1] < 180000)) Then Pivot2 = highest(c,m1); Pivot1 = lowest(c,m1); R1 = Pivot2+Pivot2*0.0038; R2 = Pivot2+Pivot2*0.0062; R3= Pivot2+Pivot2*0.01; R4=Pivot2+Pivot2*0.01618; R5= Pivot2+Pivot2*0.02628; R6=Pivot2+Pivot2*0.04236; S1 = Pivot1-Pivot1*0.0033; S2 = Pivot1-Pivot1*0.0062; S3= Pivot1-Pivot1*0.01; S4=Pivot1-Pivot1*0.01628; S5= Pivot1-Pivot1*0.02628; S6=Pivot1-Pivot1*0.04236; Plot14(Pivot2, "피봇포인트2"); Plot1(Pivot1, "피봇포인트1"); Plot2(R1, "1차저항"); Plot3(R2, "2차저항"); Plot4(R3, "3차저항"); Plot5(R4, "4차저항"); Plot6(R5, "5차저항"); Plot7(R6, "6차저항"); Plot8(S1, "1차지지"); Plot9(S2, "2차지지"); Plot10(S3, "3차지지"); Plot11(S4, "4차지지"); Plot12(S5, "5차지지"); Plot13(S6, "6차지지");
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-11-21 11:42:40

안녕하세요 예스스탁입니다. if (stime == 90000 or (stime > 90000 and stime[1] < 90000)) or (stime == 180000 or (stime > 180000 and stime[1] < 180000)) Then Pivot2 = highest(c,m1); Pivot1 = lowest(c,m1); Pivot2는 9시나 18시에만 값이 저장이 되고 Pivot1는 매봉 갱신이 되게 작성이 되어 있습니다 2개 모두 매봉 갱신하게 하고자 하시면 if문 삭제하시면 되며 2개 모두 정규장과 야간장 첫봉의 값으로 고정하고 하시면 {}러 묶어 주시면 됩니다 if (stime == 90000 or (stime > 90000 and stime[1] < 90000)) or (stime == 180000 or (stime > 180000 and stime[1] < 180000)) Then { Pivot2 = highest(c,m1); Pivot1 = lowest(c,m1); } 즐거운 하루되세요 > 챠트미소 님이 쓴 글입니다. > 제목 : 기준선 관련 > 상단기준선은 변동이 없는 데 수정부탁 하단 기준선은 변화가 있음 Input:m1(9); Var : Pivot2(0),Pivot1(0),R1(0),R2(0),R3(0),R4(0),r5(0),r6(0),S1(0),S2(0),S3(0),S4(0),S5(0),S6(0); if (stime == 90000 or (stime > 90000 and stime[1] < 90000)) or (stime == 180000 or (stime > 180000 and stime[1] < 180000)) Then Pivot2 = highest(c,m1); Pivot1 = lowest(c,m1); R1 = Pivot2+Pivot2*0.0038; R2 = Pivot2+Pivot2*0.0062; R3= Pivot2+Pivot2*0.01; R4=Pivot2+Pivot2*0.01618; R5= Pivot2+Pivot2*0.02628; R6=Pivot2+Pivot2*0.04236; S1 = Pivot1-Pivot1*0.0033; S2 = Pivot1-Pivot1*0.0062; S3= Pivot1-Pivot1*0.01; S4=Pivot1-Pivot1*0.01628; S5= Pivot1-Pivot1*0.02628; S6=Pivot1-Pivot1*0.04236; Plot14(Pivot2, "피봇포인트2"); Plot1(Pivot1, "피봇포인트1"); Plot2(R1, "1차저항"); Plot3(R2, "2차저항"); Plot4(R3, "3차저항"); Plot5(R4, "4차저항"); Plot6(R5, "5차저항"); Plot7(R6, "6차저항"); Plot8(S1, "1차지지"); Plot9(S2, "2차지지"); Plot10(S3, "3차지지"); Plot11(S4, "4차지지"); Plot12(S5, "5차지지"); Plot13(S6, "6차지지");