커뮤니티

수식 변경 부탁합니다

프로필 이미지
회원
2013-02-26 02:03:48
230
글번호 59956
답변완료
안녕하세요 아래식에서요 2번째 매도시 수정부탁합니다 2번째매도시 고점대비 -4프로 하락시 수익,손실 상관없이 무조건 매도하게해주세요 매수했는데 3프로 도달 못하고 고점대비 -4프로 되면 팔리는식으로 해주세요 손절가능 상승시에 3프로 매도 1.상승시 3프로 절반 매도 2.3프로 도달못하고 고점대비 -4프로로 떨어지면 절량 매도 3.3프로 상승하고 절반 매도후 상승하면 계속 홀딩하다가 고점대비 -4프로 매도 수고하십시오~~ input : 투입금액(300000); var : count(0),cnt(0); 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 >=80 and count < 1 Then buy("b",onclose,def,var1); if MarketPosition == 1 Then{ if CodeCategory == 1 and BasePrice < 50000 Then Var2 = int(int(MaxContracts*0.5)/10)*10; Else Var2 = int(MaxContracts*0.5); if CurrentContracts == MaxContracts Then{ var3 = AvgEntryPrice*1.03; ExitLong("bx1",AtLimit,AvgEntryPrice*1.03,"",var2,1); } if CurrentContracts < MaxContracts Then{ ExitLong("bx21",AtStop,highest(H,BarsSinceEntry)*0.97); ExitLong("bx22",AtStop,var3); } }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-02-26 10:20:12

안녕하세요 예스스탁입니다. input : 투입금액(300000); var : count(0),cnt(0); 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 >=80 and count < 1 Then buy("b",onclose,def,var1); if MarketPosition == 1 Then{ if CodeCategory == 1 and BasePrice < 50000 Then Var2 = int(int(MaxContracts*0.5)/10)*10; Else Var2 = int(MaxContracts*0.5); if CurrentContracts == MaxContracts Then{ var3 = AvgEntryPrice*1.03; ExitLong("bx1",AtLimit,AvgEntryPrice*1.03,"",var2,1); } if CurrentContracts < MaxContracts Then{ ExitLong("bx22",AtStop,var3); } ExitLong("bx21",AtStop,highest(H,BarsSinceEntry)*0.97); } 즐거운 하루되세요 > HI_jht7469 님이 쓴 글입니다. > 제목 : 수식 변경 부탁합니다 > 안녕하세요 아래식에서요 2번째 매도시 수정부탁합니다 2번째매도시 고점대비 -4프로 하락시 수익,손실 상관없이 무조건 매도하게해주세요 매수했는데 3프로 도달 못하고 고점대비 -4프로 되면 팔리는식으로 해주세요 손절가능 상승시에 3프로 매도 1.상승시 3프로 절반 매도 2.3프로 도달못하고 고점대비 -4프로로 떨어지면 절량 매도 3.3프로 상승하고 절반 매도후 상승하면 계속 홀딩하다가 고점대비 -4프로 매도 수고하십시오~~ input : 투입금액(300000); var : count(0),cnt(0); 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 >=80 and count < 1 Then buy("b",onclose,def,var1); if MarketPosition == 1 Then{ if CodeCategory == 1 and BasePrice < 50000 Then Var2 = int(int(MaxContracts*0.5)/10)*10; Else Var2 = int(MaxContracts*0.5); if CurrentContracts == MaxContracts Then{ var3 = AvgEntryPrice*1.03; ExitLong("bx1",AtLimit,AvgEntryPrice*1.03,"",var2,1); } if CurrentContracts < MaxContracts Then{ ExitLong("bx21",AtStop,highest(H,BarsSinceEntry)*0.97); ExitLong("bx22",AtStop,var3); } }