커뮤니티

부탁드립니다

프로필 이미지
오동도물개
2014-10-27 07:34:17
176
글번호 79765
답변완료
아래의 지표를 NDAYAGO를 0,1,2,3,4 를 한꺼번에 나타낼수 있도록 작성할려 하는데 어렵습니다..어찌해야 할지요...부탁드립니다... 다시말해서 당일치와 전일/전전일/전전전일/전전전전일치를 각각 나타내려 합니다.. NDAYAGO의 수치를 바꾸어서 나타내면 되지만 시스템식을 만들려하니 제가 원하는 방식이 필요한듯 합니다...수고스럽지만 부탁드립니다.... 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", RED); if R82 > 0 then plot82(R82, "R82", RED); if R83 > 0 then plot83(R83, "R83", RED); if R84 > 0 then plot84(R84, "R84", RED); if R85 > 0 then plot85(R85, "R85", RED); if S91 > 0 then plot91(S91, "S91", BLUE); if S92 > 0 then plot92(S92, "S92", BLUE); if S93 > 0 then plot93(S93, "S93", BLUE); if S94 > 0 then plot94(S94, "S94", BLUE); if S95 > 0 then plot95(S95, "S95", BLUE); }
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2014-10-27 18:48:30

안녕하세요 예스스탁입니다. 지표는 기존식을 여러번 적용해서 보셔야 합니다. 하나의 지표로 출력하기에는 plot명령어가 부족합니다. 알래는 plot 제외하고 시스템에서 사용하실수 있게 만든식입니다. 0~4까지 지정했습니다. input : Length(10); input : LengthMult(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); var : n1저항선(0), n1지지선(0), n1Rcount(0), n1Scount(0); var : n1저항선2(0), n1지지선2(0), n1Rcount2(0), n1Scount2(0); var : n1R1(0), n1R2(0), n1R3(0), n1R4(0), n1R5(0), n1R6(0), n1R7(0), n1R8(0), n1R9(0),n1R10(0), n1R11(0), n1R12(0), n1R13(0), n1R14(0), n1R15(0), n1R16(0), n1R17(0), n1R18(0), n1R19(0),n1R20(0); var : n1S1(0), n1S2(0), n1S3(0), n1S4(0), n1S5(0), n1S6(0), n1S7(0), n1S8(0), n1S9(0),n1S10(0), n1S11(0), n1S12(0), n1S13(0), n1S14(0), n1S15(0), n1S16(0), n1S17(0), n1S18(0), n1S19(0),n1S20(0); var : n1R81(0), n1R82(0), n1R83(0), n1R84(0), n1R85(0), n1S91(0), n1S92(0), n1S93(0), n1S94(0), n1S95(0); var : n2저항선(0), n2지지선(0), n2Rcount(0), n2Scount(0); var : n2저항선2(0), n2지지선2(0), n2Rcount2(0), n2Scount2(0); var : n2R1(0), n2R2(0), n2R3(0), n2R4(0), n2R5(0), n2R6(0), n2R7(0), n2R8(0), n2R9(0),n2R10(0), n2R11(0), n2R12(0), n2R13(0), n2R14(0), n2R15(0), n2R16(0), n2R17(0), n2R18(0), n2R19(0),n2R20(0); var : n2S1(0), n2S2(0), n2S3(0), n2S4(0), n2S5(0), n2S6(0), n2S7(0), n2S8(0), n2S9(0),n2S10(0), n2S11(0), n2S12(0), n2S13(0), n2S14(0), n2S15(0), n2S16(0), n2S17(0), n2S18(0), n2S19(0),n2S20(0); var : n2R81(0), n2R82(0), n2R83(0), n2R84(0), n2R85(0), n2S91(0), n2S92(0), n2S93(0), n2S94(0), n2S95(0); var : n3저항선(0), n3지지선(0), n3Rcount(0), n3Scount(0); var : n3저항선2(0), n3지지선2(0), n3Rcount2(0), n3Scount2(0); var : n3R1(0), n3R2(0), n3R3(0), n3R4(0), n3R5(0), n3R6(0), n3R7(0), n3R8(0), n3R9(0),n3R10(0), n3R11(0), n3R12(0), n3R13(0), n3R14(0), n3R15(0), n3R16(0), n3R17(0), n3R18(0), n3R19(0),n3R20(0); var : n3S1(0), n3S2(0), n3S3(0), n3S4(0), n3S5(0), n3S6(0), n3S7(0), n3S8(0), n3S9(0),n3S10(0), n3S11(0), n3S12(0), n3S13(0), n3S14(0), n3S15(0), n3S16(0), n3S17(0), n3S18(0), n3S19(0),n3S20(0); var : n3R81(0), n3R82(0), n3R83(0), n3R84(0), n3R85(0), n3S91(0), n3S92(0), n3S93(0), n3S94(0), n3S95(0); var : n4저항선(0), n4지지선(0), n4Rcount(0), n4Scount(0); var : n4저항선2(0), n4지지선2(0), n4Rcount2(0), n4Scount2(0); var : n4R1(0), n4R2(0), n4R3(0), n4R4(0), n4R5(0), n4R6(0), n4R7(0), n4R8(0), n4R9(0),n4R10(0), n4R11(0), n4R12(0), n4R13(0), n4R14(0), n4R15(0), n4R16(0), n4R17(0), n4R18(0), n4R19(0),n4R20(0); var : n4S1(0), n4S2(0), n4S3(0), n4S4(0), n4S5(0), n4S6(0), n4S7(0), n4S8(0), n4S9(0),n4S10(0), n4S11(0), n4S12(0), n4S13(0), n4S14(0), n4S15(0), n4S16(0), n4S17(0), n4S18(0), n4S19(0),n4S20(0); var : n4R81(0), n4R82(0), n4R83(0), n4R84(0), n4R85(0), n4S91(0), n4S92(0), n4S93(0), n4S94(0), n4S95(0); var1 = DateToJulian(currentdate); var2 = DateToJulian(date); # ndayday = 0 if var2 >= var1-0 && 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 var2 >= var1-0 && 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; } # ndayday = 1 if var2 >= var1-1 && dayindex >= Length-1 then { n1저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n1지지선 = swingLow(1, L, Length, Length, Length*2+1); if n1저항선 == -1 Then n1저항선 = n1저항선[1]; if n1지지선 == -1 Then n1지지선 = n1지지선[1]; if n1저항선 != n1저항선[1] then n1Rcount = n1Rcount + 1; if n1지지선 != n1지지선[1] Then n1Scount = n1Scount + 1; if n1Rcount == 1 then n1R1 = n1저항선; if n1Rcount == 2 Then n1R2 = n1저항선; if n1Rcount == 3 then n1R3 = n1저항선; if n1Rcount == 4 Then n1R4 = n1저항선; if n1Rcount == 5 then n1R5 = n1저항선; if n1Rcount == 6 Then n1R6 = n1저항선; if n1Rcount == 7 then n1R7 = n1저항선; if n1Rcount == 8 Then n1R8 = n1저항선; if n1Rcount == 9 then n1R9 = n1저항선; if n1Rcount == 10 Then n1R10 = n1저항선; if n1Rcount == 11 then n1R11 = n1저항선; if n1Rcount == 12 Then n1R12 = n1저항선; if n1Rcount == 13 then n1R13 = n1저항선; if n1Rcount == 14 Then n1R14 = n1저항선; if n1Rcount == 15 then n1R15 = n1저항선; if n1Rcount == 16 Then n1R16 = n1저항선; if n1Rcount == 17 then n1R17 = n1저항선; if n1Rcount == 18 Then n1R18 = n1저항선; if n1Rcount == 19 then n1R19 = n1저항선; if n1Rcount == 20 Then n1R20 = n1저항선; if n1Scount == 1 then n1S1 = n1지지선; if n1Scount == 2 Then n1S2 = n1지지선; if n1Scount == 3 then n1S3 = n1지지선; if n1Scount == 4 Then n1S4 = n1지지선; if n1Scount == 5 then n1S5 = n1지지선; if n1Scount == 6 Then n1S6 = n1지지선; if n1Scount == 7 then n1S7 = n1지지선; if n1Scount == 8 Then n1S8 = n1지지선; if n1Scount == 9 then n1S9 = n1지지선; if n1Scount == 10 Then n1S10 = n1지지선; if n1Scount == 11 then n1S11 = n1지지선; if n1Scount == 12 Then n1S12 = n1지지선; if n1Scount == 13 then n1S13 = n1지지선; if n1Scount == 14 Then n1S14 = n1지지선; if n1Scount == 15 then n1S15 = n1지지선; if n1Scount == 16 Then n1S16 = n1지지선; if n1Scount == 17 then n1S17 = n1지지선; if n1Scount == 18 Then n1S18 = n1지지선; if n1Scount == 19 then n1S19 = n1지지선; if n1Scount == 20 Then n1S20 = n1지지선; } if var2 >= var1-0 && dayindex >= Length*LengthMult-1 then { n1저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n1지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n1저항선2 == -1 Then n1저항선2 = n1저항선2[1]; if n1지지선2 == -1 Then n1지지선2 = n1지지선2[1]; if n1저항선2 != n1저항선2[1] then n1Rcount2 = n1Rcount2 + 1; if n1지지선2 != n1지지선2[1] Then n1Scount2 = n1Scount2 + 1; if n1Rcount2 == 1 then n1R81 = n1저항선2; if n1Rcount2 == 2 Then n1R82 = n1저항선2; if n1Rcount2 == 3 then n1R83 = n1저항선2; if n1Rcount2 == 4 Then n1R84 = n1저항선2; if n1Rcount2 == 5 then n1R85 = n1저항선2; if n1Scount2 == 1 then n1S91 = n1지지선2; if n1Scount2 == 2 Then n1S92 = n1지지선2; if n1Scount2 == 3 then n1S93 = n1지지선2; if n1Scount2 == 4 Then n1S94 = n1지지선2; if n1Scount2 == 5 then n1S95 = n1지지선2; } # ndayday = 2 if var2 >= var1-2 && dayindex >= Length-1 then { n2저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n2지지선 = swingLow(1, L, Length, Length, Length*2+1); if n2저항선 == -1 Then n2저항선 = n2저항선[1]; if n2지지선 == -1 Then n2지지선 = n2지지선[1]; if n2저항선 != n2저항선[1] then n2Rcount = n2Rcount + 1; if n2지지선 != n2지지선[1] Then n2Scount = n2Scount + 1; if n2Rcount == 1 then n2R1 = n2저항선; if n2Rcount == 2 Then n2R2 = n2저항선; if n2Rcount == 3 then n2R3 = n2저항선; if n2Rcount == 4 Then n2R4 = n2저항선; if n2Rcount == 5 then n2R5 = n2저항선; if n2Rcount == 6 Then n2R6 = n2저항선; if n2Rcount == 7 then n2R7 = n2저항선; if n2Rcount == 8 Then n2R8 = n2저항선; if n2Rcount == 9 then n2R9 = n2저항선; if n2Rcount == 10 Then n2R10 = n2저항선; if n2Rcount == 11 then n2R11 = n2저항선; if n2Rcount == 12 Then n2R12 = n2저항선; if n2Rcount == 13 then n2R13 = n2저항선; if n2Rcount == 14 Then n2R14 = n2저항선; if n2Rcount == 15 then n2R15 = n2저항선; if n2Rcount == 16 Then n2R16 = n2저항선; if n2Rcount == 17 then n2R17 = n2저항선; if n2Rcount == 18 Then n2R18 = n2저항선; if n2Rcount == 19 then n2R19 = n2저항선; if n2Rcount == 20 Then n2R20 = n2저항선; if n2Scount == 1 then n2S1 = n2지지선; if n2Scount == 2 Then n2S2 = n2지지선; if n2Scount == 3 then n2S3 = n2지지선; if n2Scount == 4 Then n2S4 = n2지지선; if n2Scount == 5 then n2S5 = n2지지선; if n2Scount == 6 Then n2S6 = n2지지선; if n2Scount == 7 then n2S7 = n2지지선; if n2Scount == 8 Then n2S8 = n2지지선; if n2Scount == 9 then n2S9 = n2지지선; if n2Scount == 10 Then n2S10 = n2지지선; if n2Scount == 11 then n2S11 = n2지지선; if n2Scount == 12 Then n2S12 = n2지지선; if n2Scount == 13 then n2S13 = n2지지선; if n2Scount == 14 Then n2S14 = n2지지선; if n2Scount == 15 then n2S15 = n2지지선; if n2Scount == 16 Then n2S16 = n2지지선; if n2Scount == 17 then n2S17 = n2지지선; if n2Scount == 18 Then n2S18 = n2지지선; if n2Scount == 19 then n2S19 = n2지지선; if n2Scount == 20 Then n2S20 = n2지지선; } if var2 >= var1-0 && dayindex >= Length*LengthMult-1 then { n2저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n2지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n2저항선2 == -1 Then n2저항선2 = n2저항선2[1]; if n2지지선2 == -1 Then n2지지선2 = n2지지선2[1]; if n2저항선2 != n2저항선2[1] then n2Rcount2 = n2Rcount2 + 1; if n2지지선2 != n2지지선2[1] Then n2Scount2 = n2Scount2 + 1; if n2Rcount2 == 1 then n2R81 = n2저항선2; if n2Rcount2 == 2 Then n2R82 = n2저항선2; if n2Rcount2 == 3 then n2R83 = n2저항선2; if n2Rcount2 == 4 Then n2R84 = n2저항선2; if n2Rcount2 == 5 then n2R85 = n2저항선2; if n2Scount2 == 1 then n2S91 = n2지지선2; if n2Scount2 == 2 Then n2S92 = n2지지선2; if n2Scount2 == 3 then n2S93 = n2지지선2; if n2Scount2 == 4 Then n2S94 = n2지지선2; if n2Scount2 == 5 then n2S95 = n2지지선2; } # ndayday = 3 if var2 >= var1-3 && dayindex >= Length-1 then { n3저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n3지지선 = swingLow(1, L, Length, Length, Length*2+1); if n3저항선 == -1 Then n3저항선 = n3저항선[1]; if n3지지선 == -1 Then n3지지선 = n3지지선[1]; if n3저항선 != n3저항선[1] then n3Rcount = n3Rcount + 1; if n3지지선 != n3지지선[1] Then n3Scount = n3Scount + 1; if n3Rcount == 1 then n3R1 = n3저항선; if n3Rcount == 2 Then n3R2 = n3저항선; if n3Rcount == 3 then n3R3 = n3저항선; if n3Rcount == 4 Then n3R4 = n3저항선; if n3Rcount == 5 then n3R5 = n3저항선; if n3Rcount == 6 Then n3R6 = n3저항선; if n3Rcount == 7 then n3R7 = n3저항선; if n3Rcount == 8 Then n3R8 = n3저항선; if n3Rcount == 9 then n3R9 = n3저항선; if n3Rcount == 10 Then n3R10 = n3저항선; if n3Rcount == 11 then n3R11 = n3저항선; if n3Rcount == 12 Then n3R12 = n3저항선; if n3Rcount == 13 then n3R13 = n3저항선; if n3Rcount == 14 Then n3R14 = n3저항선; if n3Rcount == 15 then n3R15 = n3저항선; if n3Rcount == 16 Then n3R16 = n3저항선; if n3Rcount == 17 then n3R17 = n3저항선; if n3Rcount == 18 Then n3R18 = n3저항선; if n3Rcount == 19 then n3R19 = n3저항선; if n3Rcount == 20 Then n3R20 = n3저항선; if n3Scount == 1 then n3S1 = n3지지선; if n3Scount == 2 Then n3S2 = n3지지선; if n3Scount == 3 then n3S3 = n3지지선; if n3Scount == 4 Then n3S4 = n3지지선; if n3Scount == 5 then n3S5 = n3지지선; if n3Scount == 6 Then n3S6 = n3지지선; if n3Scount == 7 then n3S7 = n3지지선; if n3Scount == 8 Then n3S8 = n3지지선; if n3Scount == 9 then n3S9 = n3지지선; if n3Scount == 10 Then n3S10 = n3지지선; if n3Scount == 11 then n3S11 = n3지지선; if n3Scount == 12 Then n3S12 = n3지지선; if n3Scount == 13 then n3S13 = n3지지선; if n3Scount == 14 Then n3S14 = n3지지선; if n3Scount == 15 then n3S15 = n3지지선; if n3Scount == 16 Then n3S16 = n3지지선; if n3Scount == 17 then n3S17 = n3지지선; if n3Scount == 18 Then n3S18 = n3지지선; if n3Scount == 19 then n3S19 = n3지지선; if n3Scount == 20 Then n3S20 = n3지지선; } if var2 >= var1-0 && dayindex >= Length*LengthMult-1 then { n3저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n3지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n3저항선2 == -1 Then n3저항선2 = n3저항선2[1]; if n3지지선2 == -1 Then n3지지선2 = n3지지선2[1]; if n3저항선2 != n3저항선2[1] then n3Rcount2 = n3Rcount2 + 1; if n3지지선2 != n3지지선2[1] Then n3Scount2 = n3Scount2 + 1; if n3Rcount2 == 1 then n3R81 = n3저항선2; if n3Rcount2 == 2 Then n3R82 = n3저항선2; if n3Rcount2 == 3 then n3R83 = n3저항선2; if n3Rcount2 == 4 Then n3R84 = n3저항선2; if n3Rcount2 == 5 then n3R85 = n3저항선2; if n3Scount2 == 1 then n3S91 = n3지지선2; if n3Scount2 == 2 Then n3S92 = n3지지선2; if n3Scount2 == 3 then n3S93 = n3지지선2; if n3Scount2 == 4 Then n3S94 = n3지지선2; if n3Scount2 == 5 then n3S95 = n3지지선2; } # ndayday = 4 if var2 >= var1-4 && dayindex >= Length-1 then { n4저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n4지지선 = swingLow(1, L, Length, Length, Length*2+1); if n4저항선 == -1 Then n4저항선 = n4저항선[1]; if n4지지선 == -1 Then n4지지선 = n4지지선[1]; if n4저항선 != n4저항선[1] then n4Rcount = n4Rcount + 1; if n4지지선 != n4지지선[1] Then n4Scount = n4Scount + 1; if n4Rcount == 1 then n4R1 = n4저항선; if n4Rcount == 2 Then n4R2 = n4저항선; if n4Rcount == 3 then n4R3 = n4저항선; if n4Rcount == 4 Then n4R4 = n4저항선; if n4Rcount == 5 then n4R5 = n4저항선; if n4Rcount == 6 Then n4R6 = n4저항선; if n4Rcount == 7 then n4R7 = n4저항선; if n4Rcount == 8 Then n4R8 = n4저항선; if n4Rcount == 9 then n4R9 = n4저항선; if n4Rcount == 10 Then n4R10 = n4저항선; if n4Rcount == 11 then n4R11 = n4저항선; if n4Rcount == 12 Then n4R12 = n4저항선; if n4Rcount == 13 then n4R13 = n4저항선; if n4Rcount == 14 Then n4R14 = n4저항선; if n4Rcount == 15 then n4R15 = n4저항선; if n4Rcount == 16 Then n4R16 = n4저항선; if n4Rcount == 17 then n4R17 = n4저항선; if n4Rcount == 18 Then n4R18 = n4저항선; if n4Rcount == 19 then n4R19 = n4저항선; if n4Rcount == 20 Then n4R20 = n4저항선; if n4Scount == 1 then n4S1 = n4지지선; if n4Scount == 2 Then n4S2 = n4지지선; if n4Scount == 3 then n4S3 = n4지지선; if n4Scount == 4 Then n4S4 = n4지지선; if n4Scount == 5 then n4S5 = n4지지선; if n4Scount == 6 Then n4S6 = n4지지선; if n4Scount == 7 then n4S7 = n4지지선; if n4Scount == 8 Then n4S8 = n4지지선; if n4Scount == 9 then n4S9 = n4지지선; if n4Scount == 10 Then n4S10 = n4지지선; if n4Scount == 11 then n4S11 = n4지지선; if n4Scount == 12 Then n4S12 = n4지지선; if n4Scount == 13 then n4S13 = n4지지선; if n4Scount == 14 Then n4S14 = n4지지선; if n4Scount == 15 then n4S15 = n4지지선; if n4Scount == 16 Then n4S16 = n4지지선; if n4Scount == 17 then n4S17 = n4지지선; if n4Scount == 18 Then n4S18 = n4지지선; if n4Scount == 19 then n4S19 = n4지지선; if n4Scount == 20 Then n4S20 = n4지지선; } if var2 >= var1-0 && dayindex >= Length*LengthMult-1 then { n4저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n4지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n4저항선2 == -1 Then n4저항선2 = n4저항선2[1]; if n4지지선2 == -1 Then n4지지선2 = n4지지선2[1]; if n4저항선2 != n4저항선2[1] then n4Rcount2 = n4Rcount2 + 1; if n4지지선2 != n4지지선2[1] Then n4Scount2 = n4Scount2 + 1; if n4Rcount2 == 1 then n4R81 = n4저항선2; if n4Rcount2 == 2 Then n4R82 = n4저항선2; if n4Rcount2 == 3 then n4R83 = n4저항선2; if n4Rcount2 == 4 Then n4R84 = n4저항선2; if n4Rcount2 == 5 then n4R85 = n4저항선2; if n4Scount2 == 1 then n4S91 = n4지지선2; if n4Scount2 == 2 Then n4S92 = n4지지선2; if n4Scount2 == 3 then n4S93 = n4지지선2; if n4Scount2 == 4 Then n4S94 = n4지지선2; if n4Scount2 == 5 then n4S95 = n4지지선2; } 즐거운 하루되세요 > 오동도물개 님이 쓴 글입니다. > 제목 : 부탁드립니다 > 아래의 지표를 NDAYAGO를 0,1,2,3,4 를 한꺼번에 나타낼수 있도록 작성할려 하는데 어렵습니다..어찌해야 할지요...부탁드립니다... 다시말해서 당일치와 전일/전전일/전전전일/전전전전일치를 각각 나타내려 합니다.. NDAYAGO의 수치를 바꾸어서 나타내면 되지만 시스템식을 만들려하니 제가 원하는 방식이 필요한듯 합니다...수고스럽지만 부탁드립니다.... 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", RED); if R82 > 0 then plot82(R82, "R82", RED); if R83 > 0 then plot83(R83, "R83", RED); if R84 > 0 then plot84(R84, "R84", RED); if R85 > 0 then plot85(R85, "R85", RED); if S91 > 0 then plot91(S91, "S91", BLUE); if S92 > 0 then plot92(S92, "S92", BLUE); if S93 > 0 then plot93(S93, "S93", BLUE); if S94 > 0 then plot94(S94, "S94", BLUE); if S95 > 0 then plot95(S95, "S95", BLUE); }
프로필 이미지

예스스탁 예스스탁 답변

2014-10-29 10:53:57

안녕하세요 예스스탁입니다. 수식에 총 5개일의 값을 계산합니다. 순서대로 지정하시면 됩니다. input : Length(10); input : LengthMult(2); input : NdayAgo1(0),NdayAgo2(1),NdayAgo3(2),NdayAgo4(3),NdayAgo5(4); 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); var : n1저항선(0), n1지지선(0), n1Rcount(0), n1Scount(0); var : n1저항선2(0), n1지지선2(0), n1Rcount2(0), n1Scount2(0); var : n1R1(0), n1R2(0), n1R3(0), n1R4(0), n1R5(0), n1R6(0), n1R7(0), n1R8(0), n1R9(0),n1R10(0), n1R11(0), n1R12(0), n1R13(0), n1R14(0), n1R15(0), n1R16(0), n1R17(0), n1R18(0), n1R19(0),n1R20(0); var : n1S1(0), n1S2(0), n1S3(0), n1S4(0), n1S5(0), n1S6(0), n1S7(0), n1S8(0), n1S9(0),n1S10(0), n1S11(0), n1S12(0), n1S13(0), n1S14(0), n1S15(0), n1S16(0), n1S17(0), n1S18(0), n1S19(0),n1S20(0); var : n1R81(0), n1R82(0), n1R83(0), n1R84(0), n1R85(0), n1S91(0), n1S92(0), n1S93(0), n1S94(0), n1S95(0); var : n2저항선(0), n2지지선(0), n2Rcount(0), n2Scount(0); var : n2저항선2(0), n2지지선2(0), n2Rcount2(0), n2Scount2(0); var : n2R1(0), n2R2(0), n2R3(0), n2R4(0), n2R5(0), n2R6(0), n2R7(0), n2R8(0), n2R9(0),n2R10(0), n2R11(0), n2R12(0), n2R13(0), n2R14(0), n2R15(0), n2R16(0), n2R17(0), n2R18(0), n2R19(0),n2R20(0); var : n2S1(0), n2S2(0), n2S3(0), n2S4(0), n2S5(0), n2S6(0), n2S7(0), n2S8(0), n2S9(0),n2S10(0), n2S11(0), n2S12(0), n2S13(0), n2S14(0), n2S15(0), n2S16(0), n2S17(0), n2S18(0), n2S19(0),n2S20(0); var : n2R81(0), n2R82(0), n2R83(0), n2R84(0), n2R85(0), n2S91(0), n2S92(0), n2S93(0), n2S94(0), n2S95(0); var : n3저항선(0), n3지지선(0), n3Rcount(0), n3Scount(0); var : n3저항선2(0), n3지지선2(0), n3Rcount2(0), n3Scount2(0); var : n3R1(0), n3R2(0), n3R3(0), n3R4(0), n3R5(0), n3R6(0), n3R7(0), n3R8(0), n3R9(0),n3R10(0), n3R11(0), n3R12(0), n3R13(0), n3R14(0), n3R15(0), n3R16(0), n3R17(0), n3R18(0), n3R19(0),n3R20(0); var : n3S1(0), n3S2(0), n3S3(0), n3S4(0), n3S5(0), n3S6(0), n3S7(0), n3S8(0), n3S9(0),n3S10(0), n3S11(0), n3S12(0), n3S13(0), n3S14(0), n3S15(0), n3S16(0), n3S17(0), n3S18(0), n3S19(0),n3S20(0); var : n3R81(0), n3R82(0), n3R83(0), n3R84(0), n3R85(0), n3S91(0), n3S92(0), n3S93(0), n3S94(0), n3S95(0); var : n4저항선(0), n4지지선(0), n4Rcount(0), n4Scount(0); var : n4저항선2(0), n4지지선2(0), n4Rcount2(0), n4Scount2(0); var : n4R1(0), n4R2(0), n4R3(0), n4R4(0), n4R5(0), n4R6(0), n4R7(0), n4R8(0), n4R9(0),n4R10(0), n4R11(0), n4R12(0), n4R13(0), n4R14(0), n4R15(0), n4R16(0), n4R17(0), n4R18(0), n4R19(0),n4R20(0); var : n4S1(0), n4S2(0), n4S3(0), n4S4(0), n4S5(0), n4S6(0), n4S7(0), n4S8(0), n4S9(0),n4S10(0), n4S11(0), n4S12(0), n4S13(0), n4S14(0), n4S15(0), n4S16(0), n4S17(0), n4S18(0), n4S19(0),n4S20(0); var : n4R81(0), n4R82(0), n4R83(0), n4R84(0), n4R85(0), n4S91(0), n4S92(0), n4S93(0), n4S94(0), n4S95(0); var1 = DateToJulian(currentdate); var2 = DateToJulian(date); if var2 >= var1-NdayAgo1 && 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 var2 >= var1-NdayAgo1 && 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; } if var2 >= var1-NdayAgo2 && dayindex >= Length-1 then { n1저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n1지지선 = swingLow(1, L, Length, Length, Length*2+1); if n1저항선 == -1 Then n1저항선 = n1저항선[1]; if n1지지선 == -1 Then n1지지선 = n1지지선[1]; if n1저항선 != n1저항선[1] then n1Rcount = n1Rcount + 1; if n1지지선 != n1지지선[1] Then n1Scount = n1Scount + 1; if n1Rcount == 1 then n1R1 = n1저항선; if n1Rcount == 2 Then n1R2 = n1저항선; if n1Rcount == 3 then n1R3 = n1저항선; if n1Rcount == 4 Then n1R4 = n1저항선; if n1Rcount == 5 then n1R5 = n1저항선; if n1Rcount == 6 Then n1R6 = n1저항선; if n1Rcount == 7 then n1R7 = n1저항선; if n1Rcount == 8 Then n1R8 = n1저항선; if n1Rcount == 9 then n1R9 = n1저항선; if n1Rcount == 10 Then n1R10 = n1저항선; if n1Rcount == 11 then n1R11 = n1저항선; if n1Rcount == 12 Then n1R12 = n1저항선; if n1Rcount == 13 then n1R13 = n1저항선; if n1Rcount == 14 Then n1R14 = n1저항선; if n1Rcount == 15 then n1R15 = n1저항선; if n1Rcount == 16 Then n1R16 = n1저항선; if n1Rcount == 17 then n1R17 = n1저항선; if n1Rcount == 18 Then n1R18 = n1저항선; if n1Rcount == 19 then n1R19 = n1저항선; if n1Rcount == 20 Then n1R20 = n1저항선; if n1Scount == 1 then n1S1 = n1지지선; if n1Scount == 2 Then n1S2 = n1지지선; if n1Scount == 3 then n1S3 = n1지지선; if n1Scount == 4 Then n1S4 = n1지지선; if n1Scount == 5 then n1S5 = n1지지선; if n1Scount == 6 Then n1S6 = n1지지선; if n1Scount == 7 then n1S7 = n1지지선; if n1Scount == 8 Then n1S8 = n1지지선; if n1Scount == 9 then n1S9 = n1지지선; if n1Scount == 10 Then n1S10 = n1지지선; if n1Scount == 11 then n1S11 = n1지지선; if n1Scount == 12 Then n1S12 = n1지지선; if n1Scount == 13 then n1S13 = n1지지선; if n1Scount == 14 Then n1S14 = n1지지선; if n1Scount == 15 then n1S15 = n1지지선; if n1Scount == 16 Then n1S16 = n1지지선; if n1Scount == 17 then n1S17 = n1지지선; if n1Scount == 18 Then n1S18 = n1지지선; if n1Scount == 19 then n1S19 = n1지지선; if n1Scount == 20 Then n1S20 = n1지지선; } if var2 >= var1-NdayAgo2 && dayindex >= Length*LengthMult-1 then { n1저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n1지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n1저항선2 == -1 Then n1저항선2 = n1저항선2[1]; if n1지지선2 == -1 Then n1지지선2 = n1지지선2[1]; if n1저항선2 != n1저항선2[1] then n1Rcount2 = n1Rcount2 + 1; if n1지지선2 != n1지지선2[1] Then n1Scount2 = n1Scount2 + 1; if n1Rcount2 == 1 then n1R81 = n1저항선2; if n1Rcount2 == 2 Then n1R82 = n1저항선2; if n1Rcount2 == 3 then n1R83 = n1저항선2; if n1Rcount2 == 4 Then n1R84 = n1저항선2; if n1Rcount2 == 5 then n1R85 = n1저항선2; if n1Scount2 == 1 then n1S91 = n1지지선2; if n1Scount2 == 2 Then n1S92 = n1지지선2; if n1Scount2 == 3 then n1S93 = n1지지선2; if n1Scount2 == 4 Then n1S94 = n1지지선2; if n1Scount2 == 5 then n1S95 = n1지지선2; } if var2 >= var1-NdayAgo3 && dayindex >= Length-1 then { n2저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n2지지선 = swingLow(1, L, Length, Length, Length*2+1); if n2저항선 == -1 Then n2저항선 = n2저항선[1]; if n2지지선 == -1 Then n2지지선 = n2지지선[1]; if n2저항선 != n2저항선[1] then n2Rcount = n2Rcount + 1; if n2지지선 != n2지지선[1] Then n2Scount = n2Scount + 1; if n2Rcount == 1 then n2R1 = n2저항선; if n2Rcount == 2 Then n2R2 = n2저항선; if n2Rcount == 3 then n2R3 = n2저항선; if n2Rcount == 4 Then n2R4 = n2저항선; if n2Rcount == 5 then n2R5 = n2저항선; if n2Rcount == 6 Then n2R6 = n2저항선; if n2Rcount == 7 then n2R7 = n2저항선; if n2Rcount == 8 Then n2R8 = n2저항선; if n2Rcount == 9 then n2R9 = n2저항선; if n2Rcount == 10 Then n2R10 = n2저항선; if n2Rcount == 11 then n2R11 = n2저항선; if n2Rcount == 12 Then n2R12 = n2저항선; if n2Rcount == 13 then n2R13 = n2저항선; if n2Rcount == 14 Then n2R14 = n2저항선; if n2Rcount == 15 then n2R15 = n2저항선; if n2Rcount == 16 Then n2R16 = n2저항선; if n2Rcount == 17 then n2R17 = n2저항선; if n2Rcount == 18 Then n2R18 = n2저항선; if n2Rcount == 19 then n2R19 = n2저항선; if n2Rcount == 20 Then n2R20 = n2저항선; if n2Scount == 1 then n2S1 = n2지지선; if n2Scount == 2 Then n2S2 = n2지지선; if n2Scount == 3 then n2S3 = n2지지선; if n2Scount == 4 Then n2S4 = n2지지선; if n2Scount == 5 then n2S5 = n2지지선; if n2Scount == 6 Then n2S6 = n2지지선; if n2Scount == 7 then n2S7 = n2지지선; if n2Scount == 8 Then n2S8 = n2지지선; if n2Scount == 9 then n2S9 = n2지지선; if n2Scount == 10 Then n2S10 = n2지지선; if n2Scount == 11 then n2S11 = n2지지선; if n2Scount == 12 Then n2S12 = n2지지선; if n2Scount == 13 then n2S13 = n2지지선; if n2Scount == 14 Then n2S14 = n2지지선; if n2Scount == 15 then n2S15 = n2지지선; if n2Scount == 16 Then n2S16 = n2지지선; if n2Scount == 17 then n2S17 = n2지지선; if n2Scount == 18 Then n2S18 = n2지지선; if n2Scount == 19 then n2S19 = n2지지선; if n2Scount == 20 Then n2S20 = n2지지선; } if var2 >= var1-NdayAgo3 && dayindex >= Length*LengthMult-1 then { n2저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n2지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n2저항선2 == -1 Then n2저항선2 = n2저항선2[1]; if n2지지선2 == -1 Then n2지지선2 = n2지지선2[1]; if n2저항선2 != n2저항선2[1] then n2Rcount2 = n2Rcount2 + 1; if n2지지선2 != n2지지선2[1] Then n2Scount2 = n2Scount2 + 1; if n2Rcount2 == 1 then n2R81 = n2저항선2; if n2Rcount2 == 2 Then n2R82 = n2저항선2; if n2Rcount2 == 3 then n2R83 = n2저항선2; if n2Rcount2 == 4 Then n2R84 = n2저항선2; if n2Rcount2 == 5 then n2R85 = n2저항선2; if n2Scount2 == 1 then n2S91 = n2지지선2; if n2Scount2 == 2 Then n2S92 = n2지지선2; if n2Scount2 == 3 then n2S93 = n2지지선2; if n2Scount2 == 4 Then n2S94 = n2지지선2; if n2Scount2 == 5 then n2S95 = n2지지선2; } if var2 >= var1-NdayAgo4 && dayindex >= Length-1 then { n3저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n3지지선 = swingLow(1, L, Length, Length, Length*2+1); if n3저항선 == -1 Then n3저항선 = n3저항선[1]; if n3지지선 == -1 Then n3지지선 = n3지지선[1]; if n3저항선 != n3저항선[1] then n3Rcount = n3Rcount + 1; if n3지지선 != n3지지선[1] Then n3Scount = n3Scount + 1; if n3Rcount == 1 then n3R1 = n3저항선; if n3Rcount == 2 Then n3R2 = n3저항선; if n3Rcount == 3 then n3R3 = n3저항선; if n3Rcount == 4 Then n3R4 = n3저항선; if n3Rcount == 5 then n3R5 = n3저항선; if n3Rcount == 6 Then n3R6 = n3저항선; if n3Rcount == 7 then n3R7 = n3저항선; if n3Rcount == 8 Then n3R8 = n3저항선; if n3Rcount == 9 then n3R9 = n3저항선; if n3Rcount == 10 Then n3R10 = n3저항선; if n3Rcount == 11 then n3R11 = n3저항선; if n3Rcount == 12 Then n3R12 = n3저항선; if n3Rcount == 13 then n3R13 = n3저항선; if n3Rcount == 14 Then n3R14 = n3저항선; if n3Rcount == 15 then n3R15 = n3저항선; if n3Rcount == 16 Then n3R16 = n3저항선; if n3Rcount == 17 then n3R17 = n3저항선; if n3Rcount == 18 Then n3R18 = n3저항선; if n3Rcount == 19 then n3R19 = n3저항선; if n3Rcount == 20 Then n3R20 = n3저항선; if n3Scount == 1 then n3S1 = n3지지선; if n3Scount == 2 Then n3S2 = n3지지선; if n3Scount == 3 then n3S3 = n3지지선; if n3Scount == 4 Then n3S4 = n3지지선; if n3Scount == 5 then n3S5 = n3지지선; if n3Scount == 6 Then n3S6 = n3지지선; if n3Scount == 7 then n3S7 = n3지지선; if n3Scount == 8 Then n3S8 = n3지지선; if n3Scount == 9 then n3S9 = n3지지선; if n3Scount == 10 Then n3S10 = n3지지선; if n3Scount == 11 then n3S11 = n3지지선; if n3Scount == 12 Then n3S12 = n3지지선; if n3Scount == 13 then n3S13 = n3지지선; if n3Scount == 14 Then n3S14 = n3지지선; if n3Scount == 15 then n3S15 = n3지지선; if n3Scount == 16 Then n3S16 = n3지지선; if n3Scount == 17 then n3S17 = n3지지선; if n3Scount == 18 Then n3S18 = n3지지선; if n3Scount == 19 then n3S19 = n3지지선; if n3Scount == 20 Then n3S20 = n3지지선; } if var2 >= var1-NdayAgo4 && dayindex >= Length*LengthMult-1 then { n3저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n3지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n3저항선2 == -1 Then n3저항선2 = n3저항선2[1]; if n3지지선2 == -1 Then n3지지선2 = n3지지선2[1]; if n3저항선2 != n3저항선2[1] then n3Rcount2 = n3Rcount2 + 1; if n3지지선2 != n3지지선2[1] Then n3Scount2 = n3Scount2 + 1; if n3Rcount2 == 1 then n3R81 = n3저항선2; if n3Rcount2 == 2 Then n3R82 = n3저항선2; if n3Rcount2 == 3 then n3R83 = n3저항선2; if n3Rcount2 == 4 Then n3R84 = n3저항선2; if n3Rcount2 == 5 then n3R85 = n3저항선2; if n3Scount2 == 1 then n3S91 = n3지지선2; if n3Scount2 == 2 Then n3S92 = n3지지선2; if n3Scount2 == 3 then n3S93 = n3지지선2; if n3Scount2 == 4 Then n3S94 = n3지지선2; if n3Scount2 == 5 then n3S95 = n3지지선2; } if var2 >= var1-NdayAgo5 && dayindex >= Length-1 then { n4저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n4지지선 = swingLow(1, L, Length, Length, Length*2+1); if n4저항선 == -1 Then n4저항선 = n4저항선[1]; if n4지지선 == -1 Then n4지지선 = n4지지선[1]; if n4저항선 != n4저항선[1] then n4Rcount = n4Rcount + 1; if n4지지선 != n4지지선[1] Then n4Scount = n4Scount + 1; if n4Rcount == 1 then n4R1 = n4저항선; if n4Rcount == 2 Then n4R2 = n4저항선; if n4Rcount == 3 then n4R3 = n4저항선; if n4Rcount == 4 Then n4R4 = n4저항선; if n4Rcount == 5 then n4R5 = n4저항선; if n4Rcount == 6 Then n4R6 = n4저항선; if n4Rcount == 7 then n4R7 = n4저항선; if n4Rcount == 8 Then n4R8 = n4저항선; if n4Rcount == 9 then n4R9 = n4저항선; if n4Rcount == 10 Then n4R10 = n4저항선; if n4Rcount == 11 then n4R11 = n4저항선; if n4Rcount == 12 Then n4R12 = n4저항선; if n4Rcount == 13 then n4R13 = n4저항선; if n4Rcount == 14 Then n4R14 = n4저항선; if n4Rcount == 15 then n4R15 = n4저항선; if n4Rcount == 16 Then n4R16 = n4저항선; if n4Rcount == 17 then n4R17 = n4저항선; if n4Rcount == 18 Then n4R18 = n4저항선; if n4Rcount == 19 then n4R19 = n4저항선; if n4Rcount == 20 Then n4R20 = n4저항선; if n4Scount == 1 then n4S1 = n4지지선; if n4Scount == 2 Then n4S2 = n4지지선; if n4Scount == 3 then n4S3 = n4지지선; if n4Scount == 4 Then n4S4 = n4지지선; if n4Scount == 5 then n4S5 = n4지지선; if n4Scount == 6 Then n4S6 = n4지지선; if n4Scount == 7 then n4S7 = n4지지선; if n4Scount == 8 Then n4S8 = n4지지선; if n4Scount == 9 then n4S9 = n4지지선; if n4Scount == 10 Then n4S10 = n4지지선; if n4Scount == 11 then n4S11 = n4지지선; if n4Scount == 12 Then n4S12 = n4지지선; if n4Scount == 13 then n4S13 = n4지지선; if n4Scount == 14 Then n4S14 = n4지지선; if n4Scount == 15 then n4S15 = n4지지선; if n4Scount == 16 Then n4S16 = n4지지선; if n4Scount == 17 then n4S17 = n4지지선; if n4Scount == 18 Then n4S18 = n4지지선; if n4Scount == 19 then n4S19 = n4지지선; if n4Scount == 20 Then n4S20 = n4지지선; } if var2 >= var1-NdayAgo5 && dayindex >= Length*LengthMult-1 then { n4저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n4지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n4저항선2 == -1 Then n4저항선2 = n4저항선2[1]; if n4지지선2 == -1 Then n4지지선2 = n4지지선2[1]; if n4저항선2 != n4저항선2[1] then n4Rcount2 = n4Rcount2 + 1; if n4지지선2 != n4지지선2[1] Then n4Scount2 = n4Scount2 + 1; if n4Rcount2 == 1 then n4R81 = n4저항선2; if n4Rcount2 == 2 Then n4R82 = n4저항선2; if n4Rcount2 == 3 then n4R83 = n4저항선2; if n4Rcount2 == 4 Then n4R84 = n4저항선2; if n4Rcount2 == 5 then n4R85 = n4저항선2; if n4Scount2 == 1 then n4S91 = n4지지선2; if n4Scount2 == 2 Then n4S92 = n4지지선2; if n4Scount2 == 3 then n4S93 = n4지지선2; if n4Scount2 == 4 Then n4S94 = n4지지선2; if n4Scount2 == 5 then n4S95 = n4지지선2; } 즐거운 하루되세요 > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 부탁드립니다 > 안녕하세요 예스스탁입니다. 지표는 기존식을 여러번 적용해서 보셔야 합니다. 하나의 지표로 출력하기에는 plot명령어가 부족합니다. 알래는 plot 제외하고 시스템에서 사용하실수 있게 만든식입니다. 0~4까지 지정했습니다. input : Length(10); input : LengthMult(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); var : n1저항선(0), n1지지선(0), n1Rcount(0), n1Scount(0); var : n1저항선2(0), n1지지선2(0), n1Rcount2(0), n1Scount2(0); var : n1R1(0), n1R2(0), n1R3(0), n1R4(0), n1R5(0), n1R6(0), n1R7(0), n1R8(0), n1R9(0),n1R10(0), n1R11(0), n1R12(0), n1R13(0), n1R14(0), n1R15(0), n1R16(0), n1R17(0), n1R18(0), n1R19(0),n1R20(0); var : n1S1(0), n1S2(0), n1S3(0), n1S4(0), n1S5(0), n1S6(0), n1S7(0), n1S8(0), n1S9(0),n1S10(0), n1S11(0), n1S12(0), n1S13(0), n1S14(0), n1S15(0), n1S16(0), n1S17(0), n1S18(0), n1S19(0),n1S20(0); var : n1R81(0), n1R82(0), n1R83(0), n1R84(0), n1R85(0), n1S91(0), n1S92(0), n1S93(0), n1S94(0), n1S95(0); var : n2저항선(0), n2지지선(0), n2Rcount(0), n2Scount(0); var : n2저항선2(0), n2지지선2(0), n2Rcount2(0), n2Scount2(0); var : n2R1(0), n2R2(0), n2R3(0), n2R4(0), n2R5(0), n2R6(0), n2R7(0), n2R8(0), n2R9(0),n2R10(0), n2R11(0), n2R12(0), n2R13(0), n2R14(0), n2R15(0), n2R16(0), n2R17(0), n2R18(0), n2R19(0),n2R20(0); var : n2S1(0), n2S2(0), n2S3(0), n2S4(0), n2S5(0), n2S6(0), n2S7(0), n2S8(0), n2S9(0),n2S10(0), n2S11(0), n2S12(0), n2S13(0), n2S14(0), n2S15(0), n2S16(0), n2S17(0), n2S18(0), n2S19(0),n2S20(0); var : n2R81(0), n2R82(0), n2R83(0), n2R84(0), n2R85(0), n2S91(0), n2S92(0), n2S93(0), n2S94(0), n2S95(0); var : n3저항선(0), n3지지선(0), n3Rcount(0), n3Scount(0); var : n3저항선2(0), n3지지선2(0), n3Rcount2(0), n3Scount2(0); var : n3R1(0), n3R2(0), n3R3(0), n3R4(0), n3R5(0), n3R6(0), n3R7(0), n3R8(0), n3R9(0),n3R10(0), n3R11(0), n3R12(0), n3R13(0), n3R14(0), n3R15(0), n3R16(0), n3R17(0), n3R18(0), n3R19(0),n3R20(0); var : n3S1(0), n3S2(0), n3S3(0), n3S4(0), n3S5(0), n3S6(0), n3S7(0), n3S8(0), n3S9(0),n3S10(0), n3S11(0), n3S12(0), n3S13(0), n3S14(0), n3S15(0), n3S16(0), n3S17(0), n3S18(0), n3S19(0),n3S20(0); var : n3R81(0), n3R82(0), n3R83(0), n3R84(0), n3R85(0), n3S91(0), n3S92(0), n3S93(0), n3S94(0), n3S95(0); var : n4저항선(0), n4지지선(0), n4Rcount(0), n4Scount(0); var : n4저항선2(0), n4지지선2(0), n4Rcount2(0), n4Scount2(0); var : n4R1(0), n4R2(0), n4R3(0), n4R4(0), n4R5(0), n4R6(0), n4R7(0), n4R8(0), n4R9(0),n4R10(0), n4R11(0), n4R12(0), n4R13(0), n4R14(0), n4R15(0), n4R16(0), n4R17(0), n4R18(0), n4R19(0),n4R20(0); var : n4S1(0), n4S2(0), n4S3(0), n4S4(0), n4S5(0), n4S6(0), n4S7(0), n4S8(0), n4S9(0),n4S10(0), n4S11(0), n4S12(0), n4S13(0), n4S14(0), n4S15(0), n4S16(0), n4S17(0), n4S18(0), n4S19(0),n4S20(0); var : n4R81(0), n4R82(0), n4R83(0), n4R84(0), n4R85(0), n4S91(0), n4S92(0), n4S93(0), n4S94(0), n4S95(0); var1 = DateToJulian(currentdate); var2 = DateToJulian(date); # ndayday = 0 if var2 >= var1-0 && 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 var2 >= var1-0 && 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; } # ndayday = 1 if var2 >= var1-1 && dayindex >= Length-1 then { n1저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n1지지선 = swingLow(1, L, Length, Length, Length*2+1); if n1저항선 == -1 Then n1저항선 = n1저항선[1]; if n1지지선 == -1 Then n1지지선 = n1지지선[1]; if n1저항선 != n1저항선[1] then n1Rcount = n1Rcount + 1; if n1지지선 != n1지지선[1] Then n1Scount = n1Scount + 1; if n1Rcount == 1 then n1R1 = n1저항선; if n1Rcount == 2 Then n1R2 = n1저항선; if n1Rcount == 3 then n1R3 = n1저항선; if n1Rcount == 4 Then n1R4 = n1저항선; if n1Rcount == 5 then n1R5 = n1저항선; if n1Rcount == 6 Then n1R6 = n1저항선; if n1Rcount == 7 then n1R7 = n1저항선; if n1Rcount == 8 Then n1R8 = n1저항선; if n1Rcount == 9 then n1R9 = n1저항선; if n1Rcount == 10 Then n1R10 = n1저항선; if n1Rcount == 11 then n1R11 = n1저항선; if n1Rcount == 12 Then n1R12 = n1저항선; if n1Rcount == 13 then n1R13 = n1저항선; if n1Rcount == 14 Then n1R14 = n1저항선; if n1Rcount == 15 then n1R15 = n1저항선; if n1Rcount == 16 Then n1R16 = n1저항선; if n1Rcount == 17 then n1R17 = n1저항선; if n1Rcount == 18 Then n1R18 = n1저항선; if n1Rcount == 19 then n1R19 = n1저항선; if n1Rcount == 20 Then n1R20 = n1저항선; if n1Scount == 1 then n1S1 = n1지지선; if n1Scount == 2 Then n1S2 = n1지지선; if n1Scount == 3 then n1S3 = n1지지선; if n1Scount == 4 Then n1S4 = n1지지선; if n1Scount == 5 then n1S5 = n1지지선; if n1Scount == 6 Then n1S6 = n1지지선; if n1Scount == 7 then n1S7 = n1지지선; if n1Scount == 8 Then n1S8 = n1지지선; if n1Scount == 9 then n1S9 = n1지지선; if n1Scount == 10 Then n1S10 = n1지지선; if n1Scount == 11 then n1S11 = n1지지선; if n1Scount == 12 Then n1S12 = n1지지선; if n1Scount == 13 then n1S13 = n1지지선; if n1Scount == 14 Then n1S14 = n1지지선; if n1Scount == 15 then n1S15 = n1지지선; if n1Scount == 16 Then n1S16 = n1지지선; if n1Scount == 17 then n1S17 = n1지지선; if n1Scount == 18 Then n1S18 = n1지지선; if n1Scount == 19 then n1S19 = n1지지선; if n1Scount == 20 Then n1S20 = n1지지선; } if var2 >= var1-0 && dayindex >= Length*LengthMult-1 then { n1저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n1지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n1저항선2 == -1 Then n1저항선2 = n1저항선2[1]; if n1지지선2 == -1 Then n1지지선2 = n1지지선2[1]; if n1저항선2 != n1저항선2[1] then n1Rcount2 = n1Rcount2 + 1; if n1지지선2 != n1지지선2[1] Then n1Scount2 = n1Scount2 + 1; if n1Rcount2 == 1 then n1R81 = n1저항선2; if n1Rcount2 == 2 Then n1R82 = n1저항선2; if n1Rcount2 == 3 then n1R83 = n1저항선2; if n1Rcount2 == 4 Then n1R84 = n1저항선2; if n1Rcount2 == 5 then n1R85 = n1저항선2; if n1Scount2 == 1 then n1S91 = n1지지선2; if n1Scount2 == 2 Then n1S92 = n1지지선2; if n1Scount2 == 3 then n1S93 = n1지지선2; if n1Scount2 == 4 Then n1S94 = n1지지선2; if n1Scount2 == 5 then n1S95 = n1지지선2; } # ndayday = 2 if var2 >= var1-2 && dayindex >= Length-1 then { n2저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n2지지선 = swingLow(1, L, Length, Length, Length*2+1); if n2저항선 == -1 Then n2저항선 = n2저항선[1]; if n2지지선 == -1 Then n2지지선 = n2지지선[1]; if n2저항선 != n2저항선[1] then n2Rcount = n2Rcount + 1; if n2지지선 != n2지지선[1] Then n2Scount = n2Scount + 1; if n2Rcount == 1 then n2R1 = n2저항선; if n2Rcount == 2 Then n2R2 = n2저항선; if n2Rcount == 3 then n2R3 = n2저항선; if n2Rcount == 4 Then n2R4 = n2저항선; if n2Rcount == 5 then n2R5 = n2저항선; if n2Rcount == 6 Then n2R6 = n2저항선; if n2Rcount == 7 then n2R7 = n2저항선; if n2Rcount == 8 Then n2R8 = n2저항선; if n2Rcount == 9 then n2R9 = n2저항선; if n2Rcount == 10 Then n2R10 = n2저항선; if n2Rcount == 11 then n2R11 = n2저항선; if n2Rcount == 12 Then n2R12 = n2저항선; if n2Rcount == 13 then n2R13 = n2저항선; if n2Rcount == 14 Then n2R14 = n2저항선; if n2Rcount == 15 then n2R15 = n2저항선; if n2Rcount == 16 Then n2R16 = n2저항선; if n2Rcount == 17 then n2R17 = n2저항선; if n2Rcount == 18 Then n2R18 = n2저항선; if n2Rcount == 19 then n2R19 = n2저항선; if n2Rcount == 20 Then n2R20 = n2저항선; if n2Scount == 1 then n2S1 = n2지지선; if n2Scount == 2 Then n2S2 = n2지지선; if n2Scount == 3 then n2S3 = n2지지선; if n2Scount == 4 Then n2S4 = n2지지선; if n2Scount == 5 then n2S5 = n2지지선; if n2Scount == 6 Then n2S6 = n2지지선; if n2Scount == 7 then n2S7 = n2지지선; if n2Scount == 8 Then n2S8 = n2지지선; if n2Scount == 9 then n2S9 = n2지지선; if n2Scount == 10 Then n2S10 = n2지지선; if n2Scount == 11 then n2S11 = n2지지선; if n2Scount == 12 Then n2S12 = n2지지선; if n2Scount == 13 then n2S13 = n2지지선; if n2Scount == 14 Then n2S14 = n2지지선; if n2Scount == 15 then n2S15 = n2지지선; if n2Scount == 16 Then n2S16 = n2지지선; if n2Scount == 17 then n2S17 = n2지지선; if n2Scount == 18 Then n2S18 = n2지지선; if n2Scount == 19 then n2S19 = n2지지선; if n2Scount == 20 Then n2S20 = n2지지선; } if var2 >= var1-0 && dayindex >= Length*LengthMult-1 then { n2저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n2지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n2저항선2 == -1 Then n2저항선2 = n2저항선2[1]; if n2지지선2 == -1 Then n2지지선2 = n2지지선2[1]; if n2저항선2 != n2저항선2[1] then n2Rcount2 = n2Rcount2 + 1; if n2지지선2 != n2지지선2[1] Then n2Scount2 = n2Scount2 + 1; if n2Rcount2 == 1 then n2R81 = n2저항선2; if n2Rcount2 == 2 Then n2R82 = n2저항선2; if n2Rcount2 == 3 then n2R83 = n2저항선2; if n2Rcount2 == 4 Then n2R84 = n2저항선2; if n2Rcount2 == 5 then n2R85 = n2저항선2; if n2Scount2 == 1 then n2S91 = n2지지선2; if n2Scount2 == 2 Then n2S92 = n2지지선2; if n2Scount2 == 3 then n2S93 = n2지지선2; if n2Scount2 == 4 Then n2S94 = n2지지선2; if n2Scount2 == 5 then n2S95 = n2지지선2; } # ndayday = 3 if var2 >= var1-3 && dayindex >= Length-1 then { n3저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n3지지선 = swingLow(1, L, Length, Length, Length*2+1); if n3저항선 == -1 Then n3저항선 = n3저항선[1]; if n3지지선 == -1 Then n3지지선 = n3지지선[1]; if n3저항선 != n3저항선[1] then n3Rcount = n3Rcount + 1; if n3지지선 != n3지지선[1] Then n3Scount = n3Scount + 1; if n3Rcount == 1 then n3R1 = n3저항선; if n3Rcount == 2 Then n3R2 = n3저항선; if n3Rcount == 3 then n3R3 = n3저항선; if n3Rcount == 4 Then n3R4 = n3저항선; if n3Rcount == 5 then n3R5 = n3저항선; if n3Rcount == 6 Then n3R6 = n3저항선; if n3Rcount == 7 then n3R7 = n3저항선; if n3Rcount == 8 Then n3R8 = n3저항선; if n3Rcount == 9 then n3R9 = n3저항선; if n3Rcount == 10 Then n3R10 = n3저항선; if n3Rcount == 11 then n3R11 = n3저항선; if n3Rcount == 12 Then n3R12 = n3저항선; if n3Rcount == 13 then n3R13 = n3저항선; if n3Rcount == 14 Then n3R14 = n3저항선; if n3Rcount == 15 then n3R15 = n3저항선; if n3Rcount == 16 Then n3R16 = n3저항선; if n3Rcount == 17 then n3R17 = n3저항선; if n3Rcount == 18 Then n3R18 = n3저항선; if n3Rcount == 19 then n3R19 = n3저항선; if n3Rcount == 20 Then n3R20 = n3저항선; if n3Scount == 1 then n3S1 = n3지지선; if n3Scount == 2 Then n3S2 = n3지지선; if n3Scount == 3 then n3S3 = n3지지선; if n3Scount == 4 Then n3S4 = n3지지선; if n3Scount == 5 then n3S5 = n3지지선; if n3Scount == 6 Then n3S6 = n3지지선; if n3Scount == 7 then n3S7 = n3지지선; if n3Scount == 8 Then n3S8 = n3지지선; if n3Scount == 9 then n3S9 = n3지지선; if n3Scount == 10 Then n3S10 = n3지지선; if n3Scount == 11 then n3S11 = n3지지선; if n3Scount == 12 Then n3S12 = n3지지선; if n3Scount == 13 then n3S13 = n3지지선; if n3Scount == 14 Then n3S14 = n3지지선; if n3Scount == 15 then n3S15 = n3지지선; if n3Scount == 16 Then n3S16 = n3지지선; if n3Scount == 17 then n3S17 = n3지지선; if n3Scount == 18 Then n3S18 = n3지지선; if n3Scount == 19 then n3S19 = n3지지선; if n3Scount == 20 Then n3S20 = n3지지선; } if var2 >= var1-0 && dayindex >= Length*LengthMult-1 then { n3저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n3지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n3저항선2 == -1 Then n3저항선2 = n3저항선2[1]; if n3지지선2 == -1 Then n3지지선2 = n3지지선2[1]; if n3저항선2 != n3저항선2[1] then n3Rcount2 = n3Rcount2 + 1; if n3지지선2 != n3지지선2[1] Then n3Scount2 = n3Scount2 + 1; if n3Rcount2 == 1 then n3R81 = n3저항선2; if n3Rcount2 == 2 Then n3R82 = n3저항선2; if n3Rcount2 == 3 then n3R83 = n3저항선2; if n3Rcount2 == 4 Then n3R84 = n3저항선2; if n3Rcount2 == 5 then n3R85 = n3저항선2; if n3Scount2 == 1 then n3S91 = n3지지선2; if n3Scount2 == 2 Then n3S92 = n3지지선2; if n3Scount2 == 3 then n3S93 = n3지지선2; if n3Scount2 == 4 Then n3S94 = n3지지선2; if n3Scount2 == 5 then n3S95 = n3지지선2; } # ndayday = 4 if var2 >= var1-4 && dayindex >= Length-1 then { n4저항선 = SwingHigh(1, H, Length, Length, Length*2+1); n4지지선 = swingLow(1, L, Length, Length, Length*2+1); if n4저항선 == -1 Then n4저항선 = n4저항선[1]; if n4지지선 == -1 Then n4지지선 = n4지지선[1]; if n4저항선 != n4저항선[1] then n4Rcount = n4Rcount + 1; if n4지지선 != n4지지선[1] Then n4Scount = n4Scount + 1; if n4Rcount == 1 then n4R1 = n4저항선; if n4Rcount == 2 Then n4R2 = n4저항선; if n4Rcount == 3 then n4R3 = n4저항선; if n4Rcount == 4 Then n4R4 = n4저항선; if n4Rcount == 5 then n4R5 = n4저항선; if n4Rcount == 6 Then n4R6 = n4저항선; if n4Rcount == 7 then n4R7 = n4저항선; if n4Rcount == 8 Then n4R8 = n4저항선; if n4Rcount == 9 then n4R9 = n4저항선; if n4Rcount == 10 Then n4R10 = n4저항선; if n4Rcount == 11 then n4R11 = n4저항선; if n4Rcount == 12 Then n4R12 = n4저항선; if n4Rcount == 13 then n4R13 = n4저항선; if n4Rcount == 14 Then n4R14 = n4저항선; if n4Rcount == 15 then n4R15 = n4저항선; if n4Rcount == 16 Then n4R16 = n4저항선; if n4Rcount == 17 then n4R17 = n4저항선; if n4Rcount == 18 Then n4R18 = n4저항선; if n4Rcount == 19 then n4R19 = n4저항선; if n4Rcount == 20 Then n4R20 = n4저항선; if n4Scount == 1 then n4S1 = n4지지선; if n4Scount == 2 Then n4S2 = n4지지선; if n4Scount == 3 then n4S3 = n4지지선; if n4Scount == 4 Then n4S4 = n4지지선; if n4Scount == 5 then n4S5 = n4지지선; if n4Scount == 6 Then n4S6 = n4지지선; if n4Scount == 7 then n4S7 = n4지지선; if n4Scount == 8 Then n4S8 = n4지지선; if n4Scount == 9 then n4S9 = n4지지선; if n4Scount == 10 Then n4S10 = n4지지선; if n4Scount == 11 then n4S11 = n4지지선; if n4Scount == 12 Then n4S12 = n4지지선; if n4Scount == 13 then n4S13 = n4지지선; if n4Scount == 14 Then n4S14 = n4지지선; if n4Scount == 15 then n4S15 = n4지지선; if n4Scount == 16 Then n4S16 = n4지지선; if n4Scount == 17 then n4S17 = n4지지선; if n4Scount == 18 Then n4S18 = n4지지선; if n4Scount == 19 then n4S19 = n4지지선; if n4Scount == 20 Then n4S20 = n4지지선; } if var2 >= var1-0 && dayindex >= Length*LengthMult-1 then { n4저항선2 = SwingHigh(1, H, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); n4지지선2 = swingLow(1, L, Length*LengthMult, Length*LengthMult, Length*LengthMult*2+1); if n4저항선2 == -1 Then n4저항선2 = n4저항선2[1]; if n4지지선2 == -1 Then n4지지선2 = n4지지선2[1]; if n4저항선2 != n4저항선2[1] then n4Rcount2 = n4Rcount2 + 1; if n4지지선2 != n4지지선2[1] Then n4Scount2 = n4Scount2 + 1; if n4Rcount2 == 1 then n4R81 = n4저항선2; if n4Rcount2 == 2 Then n4R82 = n4저항선2; if n4Rcount2 == 3 then n4R83 = n4저항선2; if n4Rcount2 == 4 Then n4R84 = n4저항선2; if n4Rcount2 == 5 then n4R85 = n4저항선2; if n4Scount2 == 1 then n4S91 = n4지지선2; if n4Scount2 == 2 Then n4S92 = n4지지선2; if n4Scount2 == 3 then n4S93 = n4지지선2; if n4Scount2 == 4 Then n4S94 = n4지지선2; if n4Scount2 == 5 then n4S95 = n4지지선2; } 즐거운 하루되세요 > 오동도물개 님이 쓴 글입니다. > 제목 : 부탁드립니다 > 아래의 지표를 NDAYAGO를 0,1,2,3,4 를 한꺼번에 나타낼수 있도록 작성할려 하는데 어렵습니다..어찌해야 할지요...부탁드립니다... 다시말해서 당일치와 전일/전전일/전전전일/전전전전일치를 각각 나타내려 합니다.. NDAYAGO의 수치를 바꾸어서 나타내면 되지만 시스템식을 만들려하니 제가 원하는 방식이 필요한듯 합니다...수고스럽지만 부탁드립니다.... 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", RED); if R82 > 0 then plot82(R82, "R82", RED); if R83 > 0 then plot83(R83, "R83", RED); if R84 > 0 then plot84(R84, "R84", RED); if R85 > 0 then plot85(R85, "R85", RED); if S91 > 0 then plot91(S91, "S91", BLUE); if S92 > 0 then plot92(S92, "S92", BLUE); if S93 > 0 then plot93(S93, "S93", BLUE); if S94 > 0 then plot94(S94, "S94", BLUE); if S95 > 0 then plot95(S95, "S95", BLUE); }