커뮤니티

수식추가

프로필 이미지
회원
2013-03-08 14:48:56
225
글번호 60481
답변완료
안녕하세요 아래식에서 시가 3프로 이하에서만 매수가능하게해주세요 그럼수고하세요 input : 투입금액(1000000),P1(20); var : count(0),cnt(0),cnt1(0),sumV(0), maV(0); sumV = 0; for cnt1 = 0 to P1-1 { sumV = sumV+DayClose(cnt1); } maV = sumV / P1; 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)); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } If V >60000 and Upvol/DownVol*100 >=150 and count < 1 and C > mav Then buy("매수",onclose,def,var1); if MarketPosition == 1 Then ExitLong("매도",AtLimit,AvgEntryPrice*1.03);
시스템
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2013-03-08 15:28:10

안녕하세요 예스스탁입니다. input : 투입금액(1000000),P1(20); var : count(0),cnt(0),cnt1(0),sumV(0), maV(0); sumV = 0; for cnt1 = 0 to P1-1 { sumV = sumV+DayClose(cnt1); } maV = sumV / P1; 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)); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } If V >60000 and Upvol/DownVol*100 >=150 and count < 1 and C > mav and C <= dayopen*0.97 Then buy("매수",onclose,def,var1); if MarketPosition == 1 Then ExitLong("매도",AtLimit,AvgEntryPrice*1.03); 즐거운 하루되세요 > HI_jht7469 님이 쓴 글입니다. > 제목 : 수식추가 > 안녕하세요 아래식에서 시가 3프로 이하에서만 매수가능하게해주세요 그럼수고하세요 input : 투입금액(1000000),P1(20); var : count(0),cnt(0),cnt1(0),sumV(0), maV(0); sumV = 0; for cnt1 = 0 to P1-1 { sumV = sumV+DayClose(cnt1); } maV = sumV / P1; 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)); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } If V >60000 and Upvol/DownVol*100 >=150 and count < 1 and C > mav Then buy("매수",onclose,def,var1); if MarketPosition == 1 Then ExitLong("매도",AtLimit,AvgEntryPrice*1.03);
프로필 이미지

회원

2013-03-08 15:54:43

죄송합니다 말을 잘못했네요 시가 3프로이하가 아니구 시작해서 3프로 이상 넘어가면 매수안되고 플러스 2프로 이하에서만 매수하는 식입니다 > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식추가 > 안녕하세요 예스스탁입니다. input : 투입금액(1000000),P1(20); var : count(0),cnt(0),cnt1(0),sumV(0), maV(0); sumV = 0; for cnt1 = 0 to P1-1 { sumV = sumV+DayClose(cnt1); } maV = sumV / P1; 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)); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } If V >60000 and Upvol/DownVol*100 >=150 and count < 1 and C > mav and C <= dayopen*0.97 Then buy("매수",onclose,def,var1); if MarketPosition == 1 Then ExitLong("매도",AtLimit,AvgEntryPrice*1.03); 즐거운 하루되세요 > HI_jht7469 님이 쓴 글입니다. > 제목 : 수식추가 > 안녕하세요 아래식에서 시가 3프로 이하에서만 매수가능하게해주세요 그럼수고하세요 input : 투입금액(1000000),P1(20); var : count(0),cnt(0),cnt1(0),sumV(0), maV(0); sumV = 0; for cnt1 = 0 to P1-1 { sumV = sumV+DayClose(cnt1); } maV = sumV / P1; 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)); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } If V >60000 and Upvol/DownVol*100 >=150 and count < 1 and C > mav Then buy("매수",onclose,def,var1); if MarketPosition == 1 Then ExitLong("매도",AtLimit,AvgEntryPrice*1.03);
프로필 이미지

예스스탁 예스스탁 답변

2013-03-08 16:46:19

안녕하세요 예스스탁입니다. input : 투입금액(1000000),P1(20); var : count(0),cnt(0),cnt1(0),sumV(0), maV(0); sumV = 0; for cnt1 = 0 to P1-1 { sumV = sumV+DayClose(cnt1); } maV = sumV / P1; 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)); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } If V >60000 and Upvol/DownVol*100 >=150 and count < 1 and C > mav and dayhigh < dayopen*1.03 and C < dayopen*1.02 Then buy("매수",onclose,def,var1); if MarketPosition == 1 Then ExitLong("매도",AtLimit,AvgEntryPrice*1.03); 시초가 대비 당일최고가가 3% 이상 상승하지 않았고 현재가가 +2% 이하에 있을때만 진입하게 작성했습니다. 즐거운 하루되세요 > HI_jht7469 님이 쓴 글입니다. > 제목 : Re : Re : 수식추가 > 죄송합니다 말을 잘못했네요 시가 3프로이하가 아니구 시작해서 3프로 이상 넘어가면 매수안되고 플러스 2프로 이하에서만 매수하는 식입니다 > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식추가 > 안녕하세요 예스스탁입니다. input : 투입금액(1000000),P1(20); var : count(0),cnt(0),cnt1(0),sumV(0), maV(0); sumV = 0; for cnt1 = 0 to P1-1 { sumV = sumV+DayClose(cnt1); } maV = sumV / P1; 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)); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } If V >60000 and Upvol/DownVol*100 >=150 and count < 1 and C > mav and C <= dayopen*0.97 Then buy("매수",onclose,def,var1); if MarketPosition == 1 Then ExitLong("매도",AtLimit,AvgEntryPrice*1.03); 즐거운 하루되세요 > HI_jht7469 님이 쓴 글입니다. > 제목 : 수식추가 > 안녕하세요 아래식에서 시가 3프로 이하에서만 매수가능하게해주세요 그럼수고하세요 input : 투입금액(1000000),P1(20); var : count(0),cnt(0),cnt1(0),sumV(0), maV(0); sumV = 0; for cnt1 = 0 to P1-1 { sumV = sumV+DayClose(cnt1); } maV = sumV / P1; 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)); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } If V >60000 and Upvol/DownVol*100 >=150 and count < 1 and C > mav Then buy("매수",onclose,def,var1); if MarketPosition == 1 Then ExitLong("매도",AtLimit,AvgEntryPrice*1.03);