커뮤니티
다시 문의
2013-03-12 00:53:13
211
글번호 60581
죄송합니다~
실수로 9시이후에 매수 매도는 아무때나 그렇게 적었는데요
10시후에 매수 하는식으로 바꿔주세요 매도는 아무때나 하구요
즐거운 하루되세요~~꾸벅~
input : 투입금액(300000),P1(90);
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));
value1 = Upvol/DownVol*50;
count = 0;
for cnt = 0 to 10{
if sdate == EntryDate(cnt) Then
count = count+1;
}
If MarketPosition == 0 and
V > 60000
and Upvol/DownVol*100 >=120
and count < 1
and C > mav
and C < dayopen*1.02 Then
buy("매수",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{
ExitLong("매도",AtLimit,AvgEntryPrice*1.03,"",var2,1);
}
if CurrentContracts < MaxContracts Then{
ExitLong("매도1",AtStop,highest(H,BarsSinceEntry)*0.98);
ExitLong("매도2",AtStop,var3);
}
}
답변 1
예스스탁 예스스탁 답변
2013-03-12 10:05:19
안녕하세요
예스스탁입니다.
10시 이후에 매수신호 발생하게 수정했습니다.
input : 투입금액(300000),P1(90);
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));
value1 = Upvol/DownVol*50;
count = 0;
for cnt = 0 to 10{
if sdate == EntryDate(cnt) Then
count = count+1;
}
If MarketPosition == 0 and
V > 60000
and Upvol/DownVol*100 >=120
and count < 1
and C > mav
and C < dayopen*1.02
and Stime >= 100000 Then
buy("매수",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{
ExitLong("매도",AtLimit,AvgEntryPrice*1.03,"",var2,1);
}
if CurrentContracts < MaxContracts Then{
ExitLong("매도1",AtStop,highest(H,BarsSinceEntry)*0.98);
ExitLong("매도2",AtStop,var3);
}
}
즐거운 하루되세요
> HI_jht7469 님이 쓴 글입니다.
> 제목 : 다시 문의
> 죄송합니다~
실수로 9시이후에 매수 매도는 아무때나 그렇게 적었는데요
10시후에 매수 하는식으로 바꿔주세요 매도는 아무때나 하구요
즐거운 하루되세요~~꾸벅~
input : 투입금액(300000),P1(90);
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));
value1 = Upvol/DownVol*50;
count = 0;
for cnt = 0 to 10{
if sdate == EntryDate(cnt) Then
count = count+1;
}
If MarketPosition == 0 and
V > 60000
and Upvol/DownVol*100 >=120
and count < 1
and C > mav
and C < dayopen*1.02 Then
buy("매수",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{
ExitLong("매도",AtLimit,AvgEntryPrice*1.03,"",var2,1);
}
if CurrentContracts < MaxContracts Then{
ExitLong("매도1",AtStop,highest(H,BarsSinceEntry)*0.98);
ExitLong("매도2",AtStop,var3);
}
}
다음글
이전글