커뮤니티

다시문의요

프로필 이미지
회원
2013-10-08 16:39:53
139
글번호 68243
답변완료
제가 말을 잘못했습니다 양봉두개 매도가 아니구 음봉2개 매도입니다 그리고 매수시 1분봉에 적용할건데요 주가가 20선 위에 있을경우에만 매수 가능하게 해주세요 input : 투입금액(100000); 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 >100000 and Upvol/DownVol*100 >=150 and c < DayClose(1)*1.12 and C > O Then{ if MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95) Then buy("매수",onclose,def,var1); } if CodeCategory == 1 Then{ if BasePrice < 50000 Then value1 = int(int(투입금액/C)/10)*10; Else value1 = int(투입금액/C); } if CodeCategory == 2 or CodeCategory == 8 Then value1 = int(투입금액/C); if MarketPosition == 0 and ExitDate(1) != sdate and C < DayClose(1)*1.12 and C > O Then buy("매수2",OnClose,def,value1); if MarketPosition == 1 Then{ ExitLong("손절",AtStop,L[BarsSinceEntry]-PriceScale); if countif(C >O,2) == 2 Then ExitLong("연속양봉매도"); if CurrentEntries == 1 Then exitlong("매도1",atlimit,EntryPrice*1.05); if CurrentEntries >= 2 Then exitlong("매도2",atlimit,AvgEntryPrice*1.02); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-10-08 16:45:39

안녕하세요 예스스탁입니다. input : 투입금액(100000),P(20); var : mav(0); mav = ma(c,P);#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 >100000 and Upvol/DownVol*100 >=150 and c < DayClose(1)*1.12 and C > O and C > mav Then{ if MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95) Then buy("매수",onclose,def,var1); } if CodeCategory == 1 Then{ if BasePrice < 50000 Then value1 = int(int(투입금액/C)/10)*10; Else value1 = int(투입금액/C); } if CodeCategory == 2 or CodeCategory == 8 Then value1 = int(투입금액/C); if MarketPosition == 0 and ExitDate(1) != sdate and C < DayClose(1)*1.12 and C > O and C > mav Then buy("매수2",OnClose,def,value1); if MarketPosition == 1 Then{ ExitLong("손절",AtStop,L[BarsSinceEntry]-PriceScale); if countif(C < O,2) == 2 Then ExitLong("연속음봉매도"); if CurrentEntries == 1 Then exitlong("매도1",atlimit,EntryPrice*1.05); if CurrentEntries >= 2 Then exitlong("매도2",atlimit,AvgEntryPrice*1.02); } 즐거운 하루되세요 > HI_jh***** 님이 쓴 글입니다. > 제목 : 다시문의요 > 제가 말을 잘못했습니다 양봉두개 매도가 아니구 음봉2개 매도입니다 그리고 매수시 1분봉에 적용할건데요 주가가 20선 위에 있을경우에만 매수 가능하게 해주세요 input : 투입금액(100000); 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 >100000 and Upvol/DownVol*100 >=150 and c < DayClose(1)*1.12 and C > O Then{ if MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95) Then buy("매수",onclose,def,var1); } if CodeCategory == 1 Then{ if BasePrice < 50000 Then value1 = int(int(투입금액/C)/10)*10; Else value1 = int(투입금액/C); } if CodeCategory == 2 or CodeCategory == 8 Then value1 = int(투입금액/C); if MarketPosition == 0 and ExitDate(1) != sdate and C < DayClose(1)*1.12 and C > O Then buy("매수2",OnClose,def,value1); if MarketPosition == 1 Then{ ExitLong("손절",AtStop,L[BarsSinceEntry]-PriceScale); if countif(C >O,2) == 2 Then ExitLong("연속양봉매도"); if CurrentEntries == 1 Then exitlong("매도1",atlimit,EntryPrice*1.05); if CurrentEntries >= 2 Then exitlong("매도2",atlimit,AvgEntryPrice*1.02); }