커뮤니티

부탁드립니다

프로필 이미지
미래테크
2013-11-04 20:36:40
141
글번호 69191
답변완료
매수식 매수금액 4회 분할 매수 시가 전일종가 대비 5% 이하 갭상승/매수시간 0900 부터 1030사이 매수는 1회만 1. 시가 3%~5% 매수식 시가갭상승율 * 0.65 하락시 매수 예를 들어 5% 갭상승 시가인 경우 5%*0.65 = 3.25% 전일종가 1000원이면 = 1032.5 1분봉이나 틱차트에서 crossdown(L,1032.5) 매수 하락돌파시 매수호가 한호가 밑으로 분할매수 주문 4회 분할매수 예를 들어 하락돌파시 1030 /1025/1020/1015 한호가씩 밑으로 같은비중 4회 분할 동시에 매수 주문 생성 2. 시가 1.5%~3% : 매수식 시가갭상승율 * 0.7 하락시 매수 나머지는 상기 1과 같이 일괄 동시에 4회 분할 매수 (한호가씩 아래로) 3. 시가 0~1.5% 시가에 상기 1과 같이 일괄 동시에 4회 분할 매수 0% / 0.5% / 1% /1.5% 4. 시가 마이너스 2회 분할 매수 : 0.6 /0.5 적용 예를 들어 -1.2% 시가 경우 -1.2% 나누기 0.6 (-1.2%/0.6) = -2% 하락 돌파시 1차 매수 예를 들어 -1.2% 시가 경우 -1.2% 나누기 0.5 (-1.2%/0.5) = -2.4% 하락 돌파시 1차 매수 매도식 매수가 대비 4.5% 수익 발생시 40% 매도 매수가 대비 6.5% 수익 발생시 전량 매도
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-11-05 20:03:49

안녕하세요 예스스탁입니다. input : 투자금액(10000000); var : EntryVol1(0),EntryVol2(0),EntryLine(0),ExitVol(0); var : UPdn(0),UPdn1(0),UPdn2(0),ExitVol1(0); if CodeCategoryEx == 11 and BasePrice < 50000 Then{ EntryVol1 = int(int((투자금액*0.25)/C)/10)*10; EntryVol2 = int(int((투자금액*0.50)/C)/10)*10; } Else{ EntryVol1 = int((투자금액*0.25)/C); EntryVol2 = int((투자금액*0.50)/C); } updn = (dayopen-DayClose(1))/DayClose(1)*100; if stime < 150000 and ExitDate(1) != sdate and MarketPosition == 0 then{ if updn >= 3 And updn < 5 Then{ EntryLine = DayClose(1)*(1+(updn*0.65)/100); if crossdown(L,EntryLine) Then{ buy("b11",Atlimit,EntryLine-PriceScale*1,EntryVol1); buy("b12",Atlimit,EntryLine-PriceScale*2,EntryVol1); buy("b13",Atlimit,EntryLine-PriceScale*3,EntryVol1); buy("b14",Atlimit,EntryLine-PriceScale*3,EntryVol1); } } if updn >= 1.5 And updn < 3 Then{ EntryLine = DayClose(1)*(1+(updn*0.70)/100); if crossdown(L,EntryLine) Then{ buy("b21",Atlimit,EntryLine-PriceScale*1,EntryVol1); buy("b22",Atlimit,EntryLine-PriceScale*2,EntryVol1); buy("b23",Atlimit,EntryLine-PriceScale*3,EntryVol1); buy("b24",Atlimit,EntryLine-PriceScale*3,EntryVol1); } } } if NextBarOpen >= C And NextBarOpen < c*1.015 and stime == 150000 and MarketPosition == 0 Then{ EntryLine = NextBarOpen; buy("b31",Atlimit,EntryLine,EntryVol1); buy("b32",Atlimit,EntryLine-(NextBarOpen-C)*(1/3),EntryVol1); buy("b33",Atlimit,EntryLine-(NextBarOpen-C)*(2/3),EntryVol1); buy("b34",Atlimit,C,EntryVol1); } if NextBarOpen < c and stime == 150000 and MarketPosition == 0 Then{ updn1 = (NextBarOpen-c)/c*100; buy("b41",Atlimit,NextBarOpen*(1+(updn1*0.6)/100),EntryVol2); buy("b42",Atlimit,NextBarOpen*(1+(updn1*0.5)/100),EntryVol2); } if MarketPosition == 1 and stime < 150000 Then{ if dayopen >= DayClose(1)*1.015 Then{ if lowest(L,BarsSinceEntry+1) >= EntryLine-PriceScale*1 Then buy("bb1",Atlimit,entryLine-PriceScale*1,EntryVol1); if lowest(L,BarsSinceEntry+1) >= EntryLine-PriceScale*2 Then buy("bb2",Atlimit,entryLine-PriceScale*2,EntryVol1); if lowest(L,BarsSinceEntry+1) >= EntryLine-PriceScale*3 Then buy("bb3",Atlimit,entryLine-PriceScale*3,EntryVol1); if lowest(L,BarsSinceEntry+1) >= EntryLine-PriceScale*4 Then buy("bb4",Atlimit,entryLine-PriceScale*4,EntryVol1); } if dayopen >= DayClose(1) and dayopen < DayClose(1)*1.015 Then{ if lowest(L,BarsSinceEntry+1) > EntryLine-(dayopen-DayClose(1))*(1/3) Then buy("bb32",Atlimit,entryLine-PriceScale*2,EntryVol1); if lowest(L,BarsSinceEntry+1) > EntryLine-(dayopen-DayClose(1))*(2/3) Then buy("bb33",Atlimit,EntryLine-(dayopen-DayClose(1))*(2/3),EntryVol1); if lowest(L,BarsSinceEntry+1) > DayClose(1) Then buy("bb34",Atlimit,DayClose(1),EntryVol1); } if dayopen < DayClose(1) Then{ updn2 = (DayOpen-DayClose(1))/DayClose(1)*100; if lowest(L,BarsSinceEntry+1) > dayopen-(dayopen-DayClose(1))*(1/3) Then buy("bb41",Atlimit,dayopen*(1+(updn1*0.6)/100),EntryVol2); if lowest(L,BarsSinceEntry+1) > dayopen-(dayopen-DayClose(1))*(1/3) Then buy("bb42",Atlimit,dayopen*(1+(updn1*0.5)/100),EntryVol2); } } if MarketPosition == 1 Then{ if CodeCategoryEx == 11 and BasePrice < 50000 Then ExitVol1 = int(int((투자금액*0.25)/C)/10)*10; Else ExitVol1 = int((투자금액*0.25)/C); ExitLong("bx1",atlimit,AvgEntryPrice*1.045,"",ExitVol1,1); ExitLong("bx2",atlimit,AvgEntryPrice*1.065); } 즐거운 하루되세요 > 미래테크 님이 쓴 글입니다. > 제목 : 부탁드립니다 > 매수식 매수금액 4회 분할 매수 시가 전일종가 대비 5% 이하 갭상승/매수시간 0900 부터 1030사이 매수는 1회만 1. 시가 3%~5% 매수식 시가갭상승율 * 0.65 하락시 매수 예를 들어 5% 갭상승 시가인 경우 5%*0.65 = 3.25% 전일종가 1000원이면 = 1032.5 1분봉이나 틱차트에서 crossdown(L,1032.5) 매수 하락돌파시 매수호가 한호가 밑으로 분할매수 주문 4회 분할매수 예를 들어 하락돌파시 1030 /1025/1020/1015 한호가씩 밑으로 같은비중 4회 분할 동시에 매수 주문 생성 2. 시가 1.5%~3% : 매수식 시가갭상승율 * 0.7 하락시 매수 나머지는 상기 1과 같이 일괄 동시에 4회 분할 매수 (한호가씩 아래로) 3. 시가 0~1.5% 시가에 상기 1과 같이 일괄 동시에 4회 분할 매수 0% / 0.5% / 1% /1.5% 4. 시가 마이너스 2회 분할 매수 : 0.6 /0.5 적용 예를 들어 -1.2% 시가 경우 -1.2% 나누기 0.6 (-1.2%/0.6) = -2% 하락 돌파시 1차 매수 예를 들어 -1.2% 시가 경우 -1.2% 나누기 0.5 (-1.2%/0.5) = -2.4% 하락 돌파시 1차 매수 매도식 매수가 대비 4.5% 수익 발생시 40% 매도 매수가 대비 6.5% 수익 발생시 전량 매도