커뮤니티

부탁드려요

프로필 이미지
오동도물개
2016-02-15 00:14:22
175
글번호 95367
답변완료
아래의 지표는 수식지왕님의 지표입니다. 본지표를 차트에 적용했을때 해당값에 r1~r20,r81~r85,s1~s20,s91~s95가 차트에 글로써 표기되도록 부탁드립니다. input : Length(10); //SwingHigh와 SwingLow의 기간값 input : LengthMult(2); //기본 기간값에 N배수(굵게 표시되는 중요 지지선과 저항선) input : NdayAgo(0); //N일전(0이면 당일, 1이면 전일, 2이면 전전일...) var : 저항선(0), 지지선(0), Rcount(0), Scount(0); var : 저항선2(0), 지지선2(0), Rcount2(0), Scount2(0); var : R1(0), R2(0), R3(0), R4(0), R5(0), R6(0), R7(0), R8(0), R9(0),R10(0), R11(0), R12(0), R13(0), R14(0), R15(0), R16(0), R17(0), R18(0), R19(0),R20(0); var : S1(0), S2(0), S3(0), S4(0), S5(0), S6(0), S7(0), S8(0), S9(0),S10(0), S11(0), S12(0), S13(0), S14(0), S15(0), S16(0), S17(0), S18(0), S19(0),S20(0); var : R81(0), R82(0), R83(0), R84(0), R85(0), S91(0), S92(0), S93(0), S94(0), S95(0); var1 = DateToJulian(currentdate); var2 = DateToJulian(date); if var2 >= var1-NdayAgo && dayindex >= Length-1 then { 저항선 = SwingHigh(1, H, Length, Length, Length*2+1); 지지선 = swingLow(1, L, Length, Length, Length*2+1); if 저항선 == -1 Then 저항선 = 저항선[1]; if 지지선 == -1 Then 지지선 = 지지선[1]; if 저항선 != 저항선[1] then Rcount = Rcount + 1; if 지지선 != 지지선[1] Then Scount = Scount + 1; if Rcount == 1 then R1 = 저항선; if Rcount == 2 Then R2 = 저항선; if Rcount == 3 then R3 = 저항선; if Rcount == 4 Then R4 = 저항선; if Rcount == 5 then R5 = 저항선; if Rcount == 6 Then R6 = 저항선; if Rcount == 7 then R7 = 저항선; if Rcount == 8 Then R8 = 저항선; if Rcount == 9 then R9 = 저항선; if Rcount == 10 Then R10 = 저항선; if Rcount == 11 then R11 = 저항선; if Rcount == 12 Then R12 = 저항선; if Rcount == 13 then R13 = 저항선; if Rcount == 14 Then R14 = 저항선; if Rcount == 15 then R15 = 저항선; if Rcount == 16 Then R16 = 저항선; if Rcount == 17 then R17 = 저항선; if Rcount == 18 Then R18 = 저항선; if Rcount == 19 then R19 = 저항선; if Rcount == 20 Then R20 = 저항선; if Scount == 1 then S1 = 지지선; if Scount == 2 Then S2 = 지지선; if Scount == 3 then S3 = 지지선; if Scount == 4 Then S4 = 지지선; if Scount == 5 then S5 = 지지선; if Scount == 6 Then S6 = 지지선; if Scount == 7 then S7 = 지지선; if Scount == 8 Then S8 = 지지선; if Scount == 9 then S9 = 지지선; if Scount == 10 Then S10 = 지지선; if Scount == 11 then S11 = 지지선; if Scount == 12 Then S12 = 지지선; if Scount == 13 then S13 = 지지선; if Scount == 14 Then S14 = 지지선; if Scount == 15 then S15 = 지지선; if Scount == 16 Then S16 = 지지선; if Scount == 17 then S17 = 지지선; if Scount == 18 Then S18 = 지지선; if Scount == 19 then S19 = 지지선; if Scount == 20 Then S20 = 지지선; if R1 > 0 then plot1(R1, "R1", RED); if R2 > 0 then plot2(R2, "R2", RED); if R3 > 0 then plot3(R3, "R3", RED); if R4 > 0 then plot4(R4, "R4", RED); if R5 > 0 then plot5(R5, "R5", RED); if R6 > 0 then plot6(R6, "R6", RED); if R7 > 0 then plot7(R7, "R7", RED); if R8 > 0 then plot8(R8, "R8", RED); if R9 > 0 then plot9(R9, "R9", RED); if R10 > 0 then plot10(R10, "R10", RED); if R11 > 0 then plot11(R11, "R11", RED); if R12 > 0 then plot12(R12, "R12", RED); if R13 > 0 then plot13(R13, "R13", RED); if R14 > 0 then plot14(R14, "R14", RED); if R15 > 0 then plot15(R15, "R15", RED); if R16 > 0 then plot16(R16, "R16", RED); if R17 > 0 then plot17(R17, "R17", RED); if R18 > 0 then plot18(R18, "R18", RED); if R19 > 0 then plot19(R19, "R19", RED); if R20 > 0 then plot20(R20, "R20", RED); if S1 > 0 then plot51(S1, "S1", BLUE); if S2 > 0 then plot52(S2, "S2", BLUE); if S3 > 0 then plot53(S3, "S3", BLUE); if S4 > 0 then plot54(S4, "S4", BLUE); if S5 > 0 then plot55(S5, "S5", BLUE); if S6 > 0 then plot56(S6, "S6", BLUE); if S7 > 0 then plot57(S7, "S7", BLUE); if S8 > 0 then plot58(S8, "S8", BLUE); if S9 > 0 then plot59(S9, "S9", BLUE); if S10 > 0 then plot60(S10, "S10", BLUE); if S11 > 0 then plot61(S11, "S11", BLUE); if S12 > 0 then plot62(S12, "S12", BLUE); if S13 > 0 then plot63(S13, "S13", BLUE); if S14 > 0 then plot64(S14, "S14", BLUE); if S15 > 0 then plot65(S15, "S15", BLUE); if S16 > 0 then plot66(S16, "S16", BLUE); if S17 > 0 then plot67(S17, "S17", BLUE); if S18 > 0 then plot68(S18, "S18", BLUE); if S19 > 0 then plot69(S19, "S19", BLUE); if S20 > 0 then plot70(S20, "S20", BLUE); } # 중요 지지저항선은 굵게 표시 if var2 >= var1-NdayAgo && dayindex >= Length*LengthMult-1 then { 저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); 지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if 저항선2 == -1 Then 저항선2 = 저항선2[1]; if 지지선2 == -1 Then 지지선2 = 지지선2[1]; if 저항선2 != 저항선2[1] then Rcount2 = Rcount2 + 1; if 지지선2 != 지지선2[1] Then Scount2 = Scount2 + 1; if Rcount2 == 1 then R81 = 저항선2; if Rcount2 == 2 Then R82 = 저항선2; if Rcount2 == 3 then R83 = 저항선2; if Rcount2 == 4 Then R84 = 저항선2; if Rcount2 == 5 then R85 = 저항선2; if Scount2 == 1 then S91 = 지지선2; if Scount2 == 2 Then S92 = 지지선2; if Scount2 == 3 then S93 = 지지선2; if Scount2 == 4 Then S94 = 지지선2; if Scount2 == 5 then S95 = 지지선2; //아래 plot들은 속성창에서 굵게 표시해야 함 if R81 > 0 then plot81(R81, "R81", BLUE); if R82 > 0 then plot82(R82, "R82", BLUE); if R83 > 0 then plot83(R83, "R83", BLUE); if R84 > 0 then plot84(R84, "R84", BLUE); if R85 > 0 then plot85(R85, "R85", BLUE); if S91 > 0 then plot91(S91, "S91", RED); if S92 > 0 then plot92(S92, "S92", RED); if S93 > 0 then plot93(S93, "S93", RED); if S94 > 0 then plot94(S94, "S94", RED); if S95 > 0 then plot95(S95, "S95", RED); }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-02-15 14:33:40

안녕하세요 예스스탁입니다. 해당내용 시간상 모두 작성해 드릴수는 없습니다. 수식하단에 텍스트 함수로 몇개만 출력하게 올려드립니다. 참고하셔서 나열해 추가하시기 바랍니다. input : Length(10); //SwingHigh와 SwingLow의 기간값 input : LengthMult(2); //기본 기간값에 N배수(굵게 표시되는 중요 지지선과 저항선) input : NdayAgo(0); //N일전(0이면 당일, 1이면 전일, 2이면 전전일...) var : 저항선(0), 지지선(0), Rcount(0), Scount(0); var : 저항선2(0), 지지선2(0), Rcount2(0), Scount2(0); var : R1(0), R2(0), R3(0), R4(0), R5(0), R6(0), R7(0), R8(0), R9(0),R10(0), R11(0), R12(0), R13(0), R14(0), R15(0), R16(0), R17(0), R18(0), R19(0),R20(0); var : S1(0), S2(0), S3(0), S4(0), S5(0), S6(0), S7(0), S8(0), S9(0),S10(0), S11(0), S12(0), S13(0), S14(0), S15(0), S16(0), S17(0), S18(0), S19(0),S20(0); var : R81(0), R82(0), R83(0), R84(0), R85(0), S91(0), S92(0), S93(0), S94(0), S95(0); var1 = DateToJulian(currentdate); var2 = DateToJulian(date); if var2 >= var1-NdayAgo && dayindex >= Length-1 then { 저항선 = SwingHigh(1, H, Length, Length, Length*2+1); 지지선 = swingLow(1, L, Length, Length, Length*2+1); if 저항선 == -1 Then 저항선 = 저항선[1]; if 지지선 == -1 Then 지지선 = 지지선[1]; if 저항선 != 저항선[1] then Rcount = Rcount + 1; if 지지선 != 지지선[1] Then Scount = Scount + 1; if Rcount == 1 then R1 = 저항선; if Rcount == 2 Then R2 = 저항선; if Rcount == 3 then R3 = 저항선; if Rcount == 4 Then R4 = 저항선; if Rcount == 5 then R5 = 저항선; if Rcount == 6 Then R6 = 저항선; if Rcount == 7 then R7 = 저항선; if Rcount == 8 Then R8 = 저항선; if Rcount == 9 then R9 = 저항선; if Rcount == 10 Then R10 = 저항선; if Rcount == 11 then R11 = 저항선; if Rcount == 12 Then R12 = 저항선; if Rcount == 13 then R13 = 저항선; if Rcount == 14 Then R14 = 저항선; if Rcount == 15 then R15 = 저항선; if Rcount == 16 Then R16 = 저항선; if Rcount == 17 then R17 = 저항선; if Rcount == 18 Then R18 = 저항선; if Rcount == 19 then R19 = 저항선; if Rcount == 20 Then R20 = 저항선; if Scount == 1 then S1 = 지지선; if Scount == 2 Then S2 = 지지선; if Scount == 3 then S3 = 지지선; if Scount == 4 Then S4 = 지지선; if Scount == 5 then S5 = 지지선; if Scount == 6 Then S6 = 지지선; if Scount == 7 then S7 = 지지선; if Scount == 8 Then S8 = 지지선; if Scount == 9 then S9 = 지지선; if Scount == 10 Then S10 = 지지선; if Scount == 11 then S11 = 지지선; if Scount == 12 Then S12 = 지지선; if Scount == 13 then S13 = 지지선; if Scount == 14 Then S14 = 지지선; if Scount == 15 then S15 = 지지선; if Scount == 16 Then S16 = 지지선; if Scount == 17 then S17 = 지지선; if Scount == 18 Then S18 = 지지선; if Scount == 19 then S19 = 지지선; if Scount == 20 Then S20 = 지지선; if R1 > 0 then plot1(R1, "R1", RED); if R2 > 0 then plot2(R2, "R2", RED); if R3 > 0 then plot3(R3, "R3", RED); if R4 > 0 then plot4(R4, "R4", RED); if R5 > 0 then plot5(R5, "R5", RED); if R6 > 0 then plot6(R6, "R6", RED); if R7 > 0 then plot7(R7, "R7", RED); if R8 > 0 then plot8(R8, "R8", RED); if R9 > 0 then plot9(R9, "R9", RED); if R10 > 0 then plot10(R10, "R10", RED); if R11 > 0 then plot11(R11, "R11", RED); if R12 > 0 then plot12(R12, "R12", RED); if R13 > 0 then plot13(R13, "R13", RED); if R14 > 0 then plot14(R14, "R14", RED); if R15 > 0 then plot15(R15, "R15", RED); if R16 > 0 then plot16(R16, "R16", RED); if R17 > 0 then plot17(R17, "R17", RED); if R18 > 0 then plot18(R18, "R18", RED); if R19 > 0 then plot19(R19, "R19", RED); if R20 > 0 then plot20(R20, "R20", RED); if S1 > 0 then plot51(S1, "S1", BLUE); if S2 > 0 then plot52(S2, "S2", BLUE); if S3 > 0 then plot53(S3, "S3", BLUE); if S4 > 0 then plot54(S4, "S4", BLUE); if S5 > 0 then plot55(S5, "S5", BLUE); if S6 > 0 then plot56(S6, "S6", BLUE); if S7 > 0 then plot57(S7, "S7", BLUE); if S8 > 0 then plot58(S8, "S8", BLUE); if S9 > 0 then plot59(S9, "S9", BLUE); if S10 > 0 then plot60(S10, "S10", BLUE); if S11 > 0 then plot61(S11, "S11", BLUE); if S12 > 0 then plot62(S12, "S12", BLUE); if S13 > 0 then plot63(S13, "S13", BLUE); if S14 > 0 then plot64(S14, "S14", BLUE); if S15 > 0 then plot65(S15, "S15", BLUE); if S16 > 0 then plot66(S16, "S16", BLUE); if S17 > 0 then plot67(S17, "S17", BLUE); if S18 > 0 then plot68(S18, "S18", BLUE); if S19 > 0 then plot69(S19, "S19", BLUE); if S20 > 0 then plot70(S20, "S20", BLUE); } # 중요 지지저항선은 굵게 표시 if var2 >= var1-NdayAgo && dayindex >= Length*LengthMult-1 then { 저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); 지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if 저항선2 == -1 Then 저항선2 = 저항선2[1]; if 지지선2 == -1 Then 지지선2 = 지지선2[1]; if 저항선2 != 저항선2[1] then Rcount2 = Rcount2 + 1; if 지지선2 != 지지선2[1] Then Scount2 = Scount2 + 1; if Rcount2 == 1 then R81 = 저항선2; if Rcount2 == 2 Then R82 = 저항선2; if Rcount2 == 3 then R83 = 저항선2; if Rcount2 == 4 Then R84 = 저항선2; if Rcount2 == 5 then R85 = 저항선2; if Scount2 == 1 then S91 = 지지선2; if Scount2 == 2 Then S92 = 지지선2; if Scount2 == 3 then S93 = 지지선2; if Scount2 == 4 Then S94 = 지지선2; if Scount2 == 5 then S95 = 지지선2; //아래 plot들은 속성창에서 굵게 표시해야 함 if R81 > 0 then plot81(R81, "R81", BLUE); if R82 > 0 then plot82(R82, "R82", BLUE); if R83 > 0 then plot83(R83, "R83", BLUE); if R84 > 0 then plot84(R84, "R84", BLUE); if R85 > 0 then plot85(R85, "R85", BLUE); if S91 > 0 then plot91(S91, "S91", RED); if S92 > 0 then plot92(S92, "S92", RED); if S93 > 0 then plot93(S93, "S93", RED); if S94 > 0 then plot94(S94, "S94", RED); if S95 > 0 then plot95(S95, "S95", RED); } var : rt1(0),rt81(0),st1(0),st91(0); #R1 Text_Delete(rt1); if R1 > 0 Then rt1 = Text_New(sdate,stime,R1,"R1 : "+NumToStr(R1,2)); #R81 Text_Delete(rt81); if R81 > 0 Then rt81 = Text_New(sdate,stime,R81,"R81 : "+NumToStr(R81,2)); #S1 Text_Delete(st1); if S1 > 0 Then st1 = Text_New(sdate,stime,S1,"S1 : "+NumToStr(S1,2)); #S91 Text_Delete(st91); if S91 > 0 Then st91 = Text_New(sdate,stime,S91,"S91 : "+NumToStr(S91,2)); 즐거운 하루되세요 > 오동도물개 님이 쓴 글입니다. > 제목 : 부탁드려요 > 아래의 지표는 수식지왕님의 지표입니다. 본지표를 차트에 적용했을때 해당값에 r1~r20,r81~r85,s1~s20,s91~s95가 차트에 글로써 표기되도록 부탁드립니다. input : Length(10); //SwingHigh와 SwingLow의 기간값 input : LengthMult(2); //기본 기간값에 N배수(굵게 표시되는 중요 지지선과 저항선) input : NdayAgo(0); //N일전(0이면 당일, 1이면 전일, 2이면 전전일...) var : 저항선(0), 지지선(0), Rcount(0), Scount(0); var : 저항선2(0), 지지선2(0), Rcount2(0), Scount2(0); var : R1(0), R2(0), R3(0), R4(0), R5(0), R6(0), R7(0), R8(0), R9(0),R10(0), R11(0), R12(0), R13(0), R14(0), R15(0), R16(0), R17(0), R18(0), R19(0),R20(0); var : S1(0), S2(0), S3(0), S4(0), S5(0), S6(0), S7(0), S8(0), S9(0),S10(0), S11(0), S12(0), S13(0), S14(0), S15(0), S16(0), S17(0), S18(0), S19(0),S20(0); var : R81(0), R82(0), R83(0), R84(0), R85(0), S91(0), S92(0), S93(0), S94(0), S95(0); var1 = DateToJulian(currentdate); var2 = DateToJulian(date); if var2 >= var1-NdayAgo && dayindex >= Length-1 then { 저항선 = SwingHigh(1, H, Length, Length, Length*2+1); 지지선 = swingLow(1, L, Length, Length, Length*2+1); if 저항선 == -1 Then 저항선 = 저항선[1]; if 지지선 == -1 Then 지지선 = 지지선[1]; if 저항선 != 저항선[1] then Rcount = Rcount + 1; if 지지선 != 지지선[1] Then Scount = Scount + 1; if Rcount == 1 then R1 = 저항선; if Rcount == 2 Then R2 = 저항선; if Rcount == 3 then R3 = 저항선; if Rcount == 4 Then R4 = 저항선; if Rcount == 5 then R5 = 저항선; if Rcount == 6 Then R6 = 저항선; if Rcount == 7 then R7 = 저항선; if Rcount == 8 Then R8 = 저항선; if Rcount == 9 then R9 = 저항선; if Rcount == 10 Then R10 = 저항선; if Rcount == 11 then R11 = 저항선; if Rcount == 12 Then R12 = 저항선; if Rcount == 13 then R13 = 저항선; if Rcount == 14 Then R14 = 저항선; if Rcount == 15 then R15 = 저항선; if Rcount == 16 Then R16 = 저항선; if Rcount == 17 then R17 = 저항선; if Rcount == 18 Then R18 = 저항선; if Rcount == 19 then R19 = 저항선; if Rcount == 20 Then R20 = 저항선; if Scount == 1 then S1 = 지지선; if Scount == 2 Then S2 = 지지선; if Scount == 3 then S3 = 지지선; if Scount == 4 Then S4 = 지지선; if Scount == 5 then S5 = 지지선; if Scount == 6 Then S6 = 지지선; if Scount == 7 then S7 = 지지선; if Scount == 8 Then S8 = 지지선; if Scount == 9 then S9 = 지지선; if Scount == 10 Then S10 = 지지선; if Scount == 11 then S11 = 지지선; if Scount == 12 Then S12 = 지지선; if Scount == 13 then S13 = 지지선; if Scount == 14 Then S14 = 지지선; if Scount == 15 then S15 = 지지선; if Scount == 16 Then S16 = 지지선; if Scount == 17 then S17 = 지지선; if Scount == 18 Then S18 = 지지선; if Scount == 19 then S19 = 지지선; if Scount == 20 Then S20 = 지지선; if R1 > 0 then plot1(R1, "R1", RED); if R2 > 0 then plot2(R2, "R2", RED); if R3 > 0 then plot3(R3, "R3", RED); if R4 > 0 then plot4(R4, "R4", RED); if R5 > 0 then plot5(R5, "R5", RED); if R6 > 0 then plot6(R6, "R6", RED); if R7 > 0 then plot7(R7, "R7", RED); if R8 > 0 then plot8(R8, "R8", RED); if R9 > 0 then plot9(R9, "R9", RED); if R10 > 0 then plot10(R10, "R10", RED); if R11 > 0 then plot11(R11, "R11", RED); if R12 > 0 then plot12(R12, "R12", RED); if R13 > 0 then plot13(R13, "R13", RED); if R14 > 0 then plot14(R14, "R14", RED); if R15 > 0 then plot15(R15, "R15", RED); if R16 > 0 then plot16(R16, "R16", RED); if R17 > 0 then plot17(R17, "R17", RED); if R18 > 0 then plot18(R18, "R18", RED); if R19 > 0 then plot19(R19, "R19", RED); if R20 > 0 then plot20(R20, "R20", RED); if S1 > 0 then plot51(S1, "S1", BLUE); if S2 > 0 then plot52(S2, "S2", BLUE); if S3 > 0 then plot53(S3, "S3", BLUE); if S4 > 0 then plot54(S4, "S4", BLUE); if S5 > 0 then plot55(S5, "S5", BLUE); if S6 > 0 then plot56(S6, "S6", BLUE); if S7 > 0 then plot57(S7, "S7", BLUE); if S8 > 0 then plot58(S8, "S8", BLUE); if S9 > 0 then plot59(S9, "S9", BLUE); if S10 > 0 then plot60(S10, "S10", BLUE); if S11 > 0 then plot61(S11, "S11", BLUE); if S12 > 0 then plot62(S12, "S12", BLUE); if S13 > 0 then plot63(S13, "S13", BLUE); if S14 > 0 then plot64(S14, "S14", BLUE); if S15 > 0 then plot65(S15, "S15", BLUE); if S16 > 0 then plot66(S16, "S16", BLUE); if S17 > 0 then plot67(S17, "S17", BLUE); if S18 > 0 then plot68(S18, "S18", BLUE); if S19 > 0 then plot69(S19, "S19", BLUE); if S20 > 0 then plot70(S20, "S20", BLUE); } # 중요 지지저항선은 굵게 표시 if var2 >= var1-NdayAgo && dayindex >= Length*LengthMult-1 then { 저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); 지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if 저항선2 == -1 Then 저항선2 = 저항선2[1]; if 지지선2 == -1 Then 지지선2 = 지지선2[1]; if 저항선2 != 저항선2[1] then Rcount2 = Rcount2 + 1; if 지지선2 != 지지선2[1] Then Scount2 = Scount2 + 1; if Rcount2 == 1 then R81 = 저항선2; if Rcount2 == 2 Then R82 = 저항선2; if Rcount2 == 3 then R83 = 저항선2; if Rcount2 == 4 Then R84 = 저항선2; if Rcount2 == 5 then R85 = 저항선2; if Scount2 == 1 then S91 = 지지선2; if Scount2 == 2 Then S92 = 지지선2; if Scount2 == 3 then S93 = 지지선2; if Scount2 == 4 Then S94 = 지지선2; if Scount2 == 5 then S95 = 지지선2; //아래 plot들은 속성창에서 굵게 표시해야 함 if R81 > 0 then plot81(R81, "R81", BLUE); if R82 > 0 then plot82(R82, "R82", BLUE); if R83 > 0 then plot83(R83, "R83", BLUE); if R84 > 0 then plot84(R84, "R84", BLUE); if R85 > 0 then plot85(R85, "R85", BLUE); if S91 > 0 then plot91(S91, "S91", RED); if S92 > 0 then plot92(S92, "S92", RED); if S93 > 0 then plot93(S93, "S93", RED); if S94 > 0 then plot94(S94, "S94", RED); if S95 > 0 then plot95(S95, "S95", RED); }