커뮤니티
수식문의요
2013-02-25 02:25:25
247
글번호 59881
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
ExitLong("bx",AtLimit,AvgEntryPrice*1.03);
안녕하세요~
매도에서 첫번쨰 매도시 3프로에서 절반 팔고 2번째 매도시에는 고점대비 -3프로에서
매도 나오는식으로 바꿔주세요(단.절반팔고 절반은 상승하다가 떨어지면 첫번째 매도 시점까지 떨어질 경우도 매도)
오늘도 즐거운하루되세요~
답변 1
예스스탁 예스스탁 답변
2013-02-25 11:23:47
안녕하세요
예스스탁입니다.
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);
}
}
즐거운 하루되세요
> HI_jht7469 님이 쓴 글입니다.
> 제목 : 수식문의요
> 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
ExitLong("bx",AtLimit,AvgEntryPrice*1.03);
안녕하세요~
매도에서 첫번쨰 매도시 3프로에서 절반 팔고 2번째 매도시에는 고점대비 -3프로에서
매도 나오는식으로 바꿔주세요(단.절반팔고 절반은 상승하다가 떨어지면 첫번째 매도 시점까지 떨어질 경우도 매도)
오늘도 즐거운하루되세요~