커뮤니티

수식 부탁드립니다.

프로필 이미지
다낚아
2020-01-07 05:58:55
351
글번호 134945
답변완료

첨부 이미지

항상 많은 도움주셔서 감사합니다. 아래수식좀 부탁드립니다. 1. 첨부파일 챠트에서처럼 crossup(C,기준선)를 카운트하는 방법좀 부탁합니다. 최고가 전4봉,후4봉은 카운트 제외로 총 3회만 카운트 되었으면 합니다. 2. 보유종목이 당일 상한가인 경우 다음날 시가(다음날 점상이면 삼일째시가)에 매도수식 부탁드립니다.(1분봉 데이기준- SetStopEndofday설정되어 있습니다.) 질문입니다. 3. 분봉챠트에서 일봉(가격,거래량..)데이터는 몇일분 제공되나요.. 아니면 분봉챠트에서 제공된 분봉을 사용해야 하나요. 4. 야간에 챠트툴팁 데이터 표시가 안되던데. 안되는 시간이 어떻게 되나요.. 그럼 수고 부탁드립니다. 꾸뻑..
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-01-07 10:17:10

안녕하세요 예스스탁입니다. 1 최고가는 n봉 최고가로 지정했습니다. 최고가 전 4봉은 수식에서 알수가 없습니다. 최고가발생하고 후 4개봉 이후에 카운트 하는 내용으로 작성해 드립니다. input : n(50); var : tx(0),count(0); var1 = (highest(H,26)+lowest(L,26))/2; if h == highest(H,n) Then { value1 = index; count = 0; } if value1 > 0 and index >= value1+4 then { if crossup(C,var1) Then { count = count+1; tx = Text_New(sdate,stime,H+PriceScale*3,NumToStr(count,0)); Text_SetStyle(tx,2,2); } } 2 var : 상한가(0), UpLimit(0); var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0); 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 NextBarSdate != sdate and C == 상한가 then { var1 = int((c[1]*1.30)/PriceScale); var2 = var1*PriceScale; if NextBarOpen < var2 Then ExitLong("bx",AtMarket); } 3 분봉차트에는 차트의 첫봉의 날짜+99치의 일봉데이타가 제공됩니다. 4 차트툴팁은 야간과는 관계는 없는 것으로 알고 있습니다. 시간제한이 있지 않습니다. 02-3453-1060으로 전화주셔서 프로그램 담당자와 통화해 보셔야 할것 같습니다. 즐거운 하루되세요 > 다낚아 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다. > 항상 많은 도움주셔서 감사합니다. 아래수식좀 부탁드립니다. 1. 첨부파일 챠트에서처럼 crossup(C,기준선)를 카운트하는 방법좀 부탁합니다. 최고가 전4봉,후4봉은 카운트 제외로 총 3회만 카운트 되었으면 합니다. 2. 보유종목이 당일 상한가인 경우 다음날 시가(다음날 점상이면 삼일째시가)에 매도수식 부탁드립니다.(1분봉 데이기준- SetStopEndofday설정되어 있습니다.) 질문입니다. 3. 분봉챠트에서 일봉(가격,거래량..)데이터는 몇일분 제공되나요.. 아니면 분봉챠트에서 제공된 분봉을 사용해야 하나요. 4. 야간에 챠트툴팁 데이터 표시가 안되던데. 안되는 시간이 어떻게 되나요.. 그럼 수고 부탁드립니다. 꾸뻑..