커뮤니티

문의드려요

프로필 이미지
회원
2015-11-19 10:10:03
184
글번호 92549
답변완료
1. N일전에 상한가를 한번이라도 터치한 적이 있는 종목을 찾고, 각 종목의 N일전의 1분봉 차트를 얻고 싶습니다. 가능할까요? 2. N일전에 14시에서 15시 사이에 상한가를 한번이라도 터치한 적이 있는 종목을 찾고, 각 종목의 N일전의 1분봉 차트를 얻고 싶습니다. 매번 감사드립니다.
종목검색
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2015-11-19 13:23:09

안녕하세요 예스스탁입니다. 차트를 얻고 싶으시다는 내용이 어떤의미이신지 모르겠습니다. 종목검색과 차트는 별도입니다. 종목검색후 자동으로 차트가 열리게 하거나 할수는 없습니다. 차트는 모두 수동으로 직접 열으셔야 합니다. 종목검색식만 올려드립니다. 1. input : N(2); var : cnt(0); var : 상한가(0),uplimit(0); var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0); Array : cond[100](false); if date != date[1] Then{ cond[0] = false; for cnt = 1 to 99{ cond[cnt] = cond[cnt-1][1]; } } if date >= 19981207 then { if date < 20050328 && CodeCategory() == 2 then UpLimit = (BP[0] * 1.12); Else if date >= 20050328 and date < 20150615 Then UpLimit = (BP[0] * 1.15); Else UpLimit = (BP[0] * 1.30); if CodeCategory() == 2 then { if date >= 20030721 then { up1 = int(UpLimit/100+0.00001)*100; up2 = int(UpLimit/100+0.00001)*100; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/10+0.00001)*10; up7 = int(UpLimit/1+0.00001)*1; } } Else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } if CodeCategory() == 1 || CodeCategory() == 2 then { if sdate < 20101004 Then{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up6); } Else{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up7); } } else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF 상한가 = up6; } } if H >= 상한가 Then cond[0] = true; if cond[N] == true then find(1); 2. input : N(2); var : cnt(0); var : 상한가(0),uplimit(0); var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0); Array : cond[100](false); if date != date[1] Then{ cond[0] = false; for cnt = 1 to 99{ cond[cnt] = cond[cnt-1][1]; } } if date >= 19981207 then { if date < 20050328 && CodeCategory() == 2 then UpLimit = (BP[0] * 1.12); Else if date >= 20050328 and date < 20150615 Then UpLimit = (BP[0] * 1.15); Else UpLimit = (BP[0] * 1.30); if CodeCategory() == 2 then { if date >= 20030721 then { up1 = int(UpLimit/100+0.00001)*100; up2 = int(UpLimit/100+0.00001)*100; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/10+0.00001)*10; up7 = int(UpLimit/1+0.00001)*1; } } Else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } if CodeCategory() == 1 || CodeCategory() == 2 then { if sdate < 20101004 Then{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up6); } Else{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up7); } } else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF 상한가 = up6; } } if H >= 상한가 and stime >= 140000 and stime <= 150000 Then cond[0] = true; if cond[N] == true then find(1); 즐거운 하루되세요 > rayleigh 님이 쓴 글입니다. > 제목 : 문의드려요 > 1. N일전에 상한가를 한번이라도 터치한 적이 있는 종목을 찾고, 각 종목의 N일전의 1분봉 차트를 얻고 싶습니다. 가능할까요? 2. N일전에 14시에서 15시 사이에 상한가를 한번이라도 터치한 적이 있는 종목을 찾고, 각 종목의 N일전의 1분봉 차트를 얻고 싶습니다. 매번 감사드립니다.
프로필 이미지

회원

2015-11-19 15:32:50

차트를 얻고 싶다는 게, N일 전에 상한가를 한번이라도 터치한 적이 있는 종목을 찾았으면 그 종목의 N일 전의 1분봉 차트를 보고 싶다는 뜻이었습니다. 종목 검색 말고 yestrader 내에서 어떻게 하면 그 종목의 N 일 전의 1분봉 차트를 볼 수 있나요? > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의드려요 > 안녕하세요 예스스탁입니다. 차트를 얻고 싶으시다는 내용이 어떤의미이신지 모르겠습니다. 종목검색과 차트는 별도입니다. 종목검색후 자동으로 차트가 열리게 하거나 할수는 없습니다. 차트는 모두 수동으로 직접 열으셔야 합니다. 종목검색식만 올려드립니다. 1. input : N(2); var : cnt(0); var : 상한가(0),uplimit(0); var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0); Array : cond[100](false); if date != date[1] Then{ cond[0] = false; for cnt = 1 to 99{ cond[cnt] = cond[cnt-1][1]; } } if date >= 19981207 then { if date < 20050328 && CodeCategory() == 2 then UpLimit = (BP[0] * 1.12); Else if date >= 20050328 and date < 20150615 Then UpLimit = (BP[0] * 1.15); Else UpLimit = (BP[0] * 1.30); if CodeCategory() == 2 then { if date >= 20030721 then { up1 = int(UpLimit/100+0.00001)*100; up2 = int(UpLimit/100+0.00001)*100; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/10+0.00001)*10; up7 = int(UpLimit/1+0.00001)*1; } } Else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } if CodeCategory() == 1 || CodeCategory() == 2 then { if sdate < 20101004 Then{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up6); } Else{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up7); } } else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF 상한가 = up6; } } if H >= 상한가 Then cond[0] = true; if cond[N] == true then find(1); 2. input : N(2); var : cnt(0); var : 상한가(0),uplimit(0); var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0); Array : cond[100](false); if date != date[1] Then{ cond[0] = false; for cnt = 1 to 99{ cond[cnt] = cond[cnt-1][1]; } } if date >= 19981207 then { if date < 20050328 && CodeCategory() == 2 then UpLimit = (BP[0] * 1.12); Else if date >= 20050328 and date < 20150615 Then UpLimit = (BP[0] * 1.15); Else UpLimit = (BP[0] * 1.30); if CodeCategory() == 2 then { if date >= 20030721 then { up1 = int(UpLimit/100+0.00001)*100; up2 = int(UpLimit/100+0.00001)*100; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/10+0.00001)*10; up7 = int(UpLimit/1+0.00001)*1; } } Else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } if CodeCategory() == 1 || CodeCategory() == 2 then { if sdate < 20101004 Then{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up6); } Else{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up7); } } else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF 상한가 = up6; } } if H >= 상한가 and stime >= 140000 and stime <= 150000 Then cond[0] = true; if cond[N] == true then find(1); 즐거운 하루되세요 > rayleigh 님이 쓴 글입니다. > 제목 : 문의드려요 > 1. N일전에 상한가를 한번이라도 터치한 적이 있는 종목을 찾고, 각 종목의 N일전의 1분봉 차트를 얻고 싶습니다. 가능할까요? 2. N일전에 14시에서 15시 사이에 상한가를 한번이라도 터치한 적이 있는 종목을 찾고, 각 종목의 N일전의 1분봉 차트를 얻고 싶습니다. 매번 감사드립니다.
프로필 이미지

예스스탁 예스스탁 답변

2015-11-19 15:49:02

안녕하세요 예스스탁입니다. 종목검색후에 [6101]전략실행차트나 [6102]시뮬레이션 차트에서 1분봉으로 해당 종목의 데이터를 조회하신후에 X축 스크롤하셔서 과거N일전으로 가셔서 보셔야 합니다. N일전 데이터만 조회되게 할수가 없습니다. 전략실행차트는 최대 1만개봉 조회가 가능하고 시뮬레이션 차트는 시작날짜와 끝날짜를 지정해 그보다 더 길게 데이터를 조회하실수 있습니다. N일전의 날짜를 가늠하셔서 스크롤해서 직접 찾아가셔야 합니다. 즐거운 하루되세요 > rayleigh 님이 쓴 글입니다. > 제목 : Re : Re : 문의드려요 > 차트를 얻고 싶다는 게, N일 전에 상한가를 한번이라도 터치한 적이 있는 종목을 찾았으면 그 종목의 N일 전의 1분봉 차트를 보고 싶다는 뜻이었습니다. 종목 검색 말고 yestrader 내에서 어떻게 하면 그 종목의 N 일 전의 1분봉 차트를 볼 수 있나요? > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의드려요 > 안녕하세요 예스스탁입니다. 차트를 얻고 싶으시다는 내용이 어떤의미이신지 모르겠습니다. 종목검색과 차트는 별도입니다. 종목검색후 자동으로 차트가 열리게 하거나 할수는 없습니다. 차트는 모두 수동으로 직접 열으셔야 합니다. 종목검색식만 올려드립니다. 1. input : N(2); var : cnt(0); var : 상한가(0),uplimit(0); var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0); Array : cond[100](false); if date != date[1] Then{ cond[0] = false; for cnt = 1 to 99{ cond[cnt] = cond[cnt-1][1]; } } if date >= 19981207 then { if date < 20050328 && CodeCategory() == 2 then UpLimit = (BP[0] * 1.12); Else if date >= 20050328 and date < 20150615 Then UpLimit = (BP[0] * 1.15); Else UpLimit = (BP[0] * 1.30); if CodeCategory() == 2 then { if date >= 20030721 then { up1 = int(UpLimit/100+0.00001)*100; up2 = int(UpLimit/100+0.00001)*100; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/10+0.00001)*10; up7 = int(UpLimit/1+0.00001)*1; } } Else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } if CodeCategory() == 1 || CodeCategory() == 2 then { if sdate < 20101004 Then{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up6); } Else{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up7); } } else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF 상한가 = up6; } } if H >= 상한가 Then cond[0] = true; if cond[N] == true then find(1); 2. input : N(2); var : cnt(0); var : 상한가(0),uplimit(0); var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0); Array : cond[100](false); if date != date[1] Then{ cond[0] = false; for cnt = 1 to 99{ cond[cnt] = cond[cnt-1][1]; } } if date >= 19981207 then { if date < 20050328 && CodeCategory() == 2 then UpLimit = (BP[0] * 1.12); Else if date >= 20050328 and date < 20150615 Then UpLimit = (BP[0] * 1.15); Else UpLimit = (BP[0] * 1.30); if CodeCategory() == 2 then { if date >= 20030721 then { up1 = int(UpLimit/100+0.00001)*100; up2 = int(UpLimit/100+0.00001)*100; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/10+0.00001)*10; up7 = int(UpLimit/1+0.00001)*1; } } Else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } if CodeCategory() == 1 || CodeCategory() == 2 then { if sdate < 20101004 Then{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up6); } Else{ If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up7); } } else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF 상한가 = up6; } } if H >= 상한가 and stime >= 140000 and stime <= 150000 Then cond[0] = true; if cond[N] == true then find(1); 즐거운 하루되세요 > rayleigh 님이 쓴 글입니다. > 제목 : 문의드려요 > 1. N일전에 상한가를 한번이라도 터치한 적이 있는 종목을 찾고, 각 종목의 N일전의 1분봉 차트를 얻고 싶습니다. 가능할까요? 2. N일전에 14시에서 15시 사이에 상한가를 한번이라도 터치한 적이 있는 종목을 찾고, 각 종목의 N일전의 1분봉 차트를 얻고 싶습니다. 매번 감사드립니다.