커뮤니티

급수정요

프로필 이미지
회원
2013-10-14 10:31:20
148
글번호 68376
답변완료
안녕하세요 오전에 한번 매수(9~9시20), 오후(2시40분~3시)에 한번 매수가능하게 해주세요 각각 한번씩만 들어가게 해주세요 시간대로 설정하지 말고 오전에 매수한번, 오후에 매수한번 밑에 조건이 될경우 이렇게 만들어주세요 수고하세요 input : 투입금액(300000),P(20); var : ma2(0); ma2 = ma(c,20); if CodeCategory == 1 Then{ #코스피 if BasePrice < 50000 Then Var1 = int(int(투입금액/C)/10)*10; Else Var1 = int(투입금액/C); } if CodeCategory == 2 Then#코스닥 Var1 = int(투입금액/C); if CodeCategory == 6 Then#옵션 Var1 = int(투입금액/(C*BigPointValue)); If V >50000 and Upvol/DownVol*100 >=120 and C > O and C > ma2 and stime >= 90000 and stime < 92000 and dayopen > DayClose(1) Then{ if MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95) Then buy("매수",onclose,def,var1); } If V >1000000 and Upvol/DownVol*100 >=120 and C > O and C > ma2 and stime >= 144000 and stime < 150000 Then{ if MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95) Then buy("매수2",onclose,def,var1); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-10-14 11:28:43

안녕하세요 예스스탁입니다. input : 투입금액(300000),P(20); var : ma2(0),count(0); if (stime == 090000 or (stime > 090000 and stime[1] < 090000)) or (stime == 120000 or (stime > 120000 and stime[1] < 120000)) Then count = 0; if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then count = count+1; ma2 = ma(c,20); if CodeCategory == 1 Then{ #코스피 if BasePrice < 50000 Then Var1 = int(int(투입금액/C)/10)*10; Else Var1 = int(투입금액/C); } if CodeCategory == 2 Then#코스닥 Var1 = int(투입금액/C); if CodeCategory == 6 Then#옵션 Var1 = int(투입금액/(C*BigPointValue)); If V >50000 and Upvol/DownVol*100 >=120 and C > O and C > ma2 and dayopen > DayClose(1) and (MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95)) and count < 1 Then buy("매수",onclose,def,var1); If V >1000000 and Upvol/DownVol*100 >=120 and C > O and C > ma2 and (MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95)) and count < 1 Then buy("매수2",onclose,def,var1); 즐거운 하루되세요 > HI_jh***** 님이 쓴 글입니다. > 제목 : 급수정요 > 안녕하세요 오전에 한번 매수(9~9시20), 오후(2시40분~3시)에 한번 매수가능하게 해주세요 각각 한번씩만 들어가게 해주세요 시간대로 설정하지 말고 오전에 매수한번, 오후에 매수한번 밑에 조건이 될경우 이렇게 만들어주세요 수고하세요 input : 투입금액(300000),P(20); var : ma2(0); ma2 = ma(c,20); if CodeCategory == 1 Then{ #코스피 if BasePrice < 50000 Then Var1 = int(int(투입금액/C)/10)*10; Else Var1 = int(투입금액/C); } if CodeCategory == 2 Then#코스닥 Var1 = int(투입금액/C); if CodeCategory == 6 Then#옵션 Var1 = int(투입금액/(C*BigPointValue)); If V >50000 and Upvol/DownVol*100 >=120 and C > O and C > ma2 and stime >= 90000 and stime < 92000 and dayopen > DayClose(1) Then{ if MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95) Then buy("매수",onclose,def,var1); } If V >1000000 and Upvol/DownVol*100 >=120 and C > O and C > ma2 and stime >= 144000 and stime < 150000 Then{ if MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95) Then buy("매수2",onclose,def,var1); }