커뮤니티

다시 문의요

프로필 이미지
회원
2013-07-18 13:30:50
158
글번호 65472
답변완료
안녕하세요~ 매수할때요 3일전에 난 1000원보다 낮은 가격에 있을때 조건 넣어주세요 매도부분에서 당일날 매도는 하지말고 그다음날 1000원 이하로 떨어지면 매도해주세요 캡하락시 즉시매도 input : Price(1000); input : 투입금액(1000000); #kospi if CodeCategory == 1 Then{ if BasePrice < 50000 Then #기준가 5만원 미만 Var1 = int(int(투입금액/C)/10)*10; Else #5만원 이상 Var1 = int(투입금액/C); } #kosdoq if CodeCategory == 2 Then Var1 = int(투입금액/C); #당일 첫봉에 가격조건 만족하면 매수하기 위한 식 if stime == 150000 and C < Price Then buy("b1",AtStop,Price,Var1); #당일 두번째 봉부터 가격조건만족하면 매수 if DayClose(1) < Price and NextBarOpen < Price and MarketPosition == 0 Then{ if H < Price Then buy("buy",AtStop,Price,Var1); } #매수이후 Price대비 1%이상 상승했다가 다시 Price+1%까지 내려오면 매도 if MarketPosition == 1 Then{ if Highest(H,BarsSinceEntry) > Price*1.01 Then ExitLong("bx",AtStop,Price*1.01); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-07-18 21:09:10

안녕하세요 예스스탁입니다. input : Price(1000); input : 투입금액(1000000); #kospi if CodeCategory == 1 Then{ if BasePrice < 50000 Then #기준가 5만원 미만 Var1 = int(int(투입금액/C)/10)*10; Else #5만원 이상 Var1 = int(투입금액/C); } #kosdoq if CodeCategory == 2 Then Var1 = int(투입금액/C); #당일 첫봉에 가격조건 만족하면 매수하기 위한 식 if stime == 150000 and C < Price and daylow(2) < Price Then buy("b1",AtStop,Price,Var1); #당일 두번째 봉부터 가격조건만족하면 매수 if DayClose(1) < Price and NextBarOpen < Price and MarketPosition == 0 Then{ if H < Price and daylow(3) < Price Then buy("buy",AtStop,Price,Var1); } #진입 다음날부터 Price이하 시세 발생하면 청산 if MarketPosition == 1 and sdate > EntryDate Then{ ExitLong("bx",AtStop,Price); } 즐거운 하루되세요 > HI_jht7469 님이 쓴 글입니다. > 제목 : 다시 문의요 > 안녕하세요~ 매수할때요 3일전에 난 1000원보다 낮은 가격에 있을때 조건 넣어주세요 매도부분에서 당일날 매도는 하지말고 그다음날 1000원 이하로 떨어지면 매도해주세요 캡하락시 즉시매도 input : Price(1000); input : 투입금액(1000000); #kospi if CodeCategory == 1 Then{ if BasePrice < 50000 Then #기준가 5만원 미만 Var1 = int(int(투입금액/C)/10)*10; Else #5만원 이상 Var1 = int(투입금액/C); } #kosdoq if CodeCategory == 2 Then Var1 = int(투입금액/C); #당일 첫봉에 가격조건 만족하면 매수하기 위한 식 if stime == 150000 and C < Price Then buy("b1",AtStop,Price,Var1); #당일 두번째 봉부터 가격조건만족하면 매수 if DayClose(1) < Price and NextBarOpen < Price and MarketPosition == 0 Then{ if H < Price Then buy("buy",AtStop,Price,Var1); } #매수이후 Price대비 1%이상 상승했다가 다시 Price+1%까지 내려오면 매도 if MarketPosition == 1 Then{ if Highest(H,BarsSinceEntry) > Price*1.01 Then ExitLong("bx",AtStop,Price*1.01); }