커뮤니티
부탁드립니다.
2015-03-15 19:55:43
134
글번호 84043
-현물 틱 매매입니다.
<진입 공통 조건>
-진입시간 09:00~09:10
-하루동안 진입 1회로 제한
<진입>
-시초가는 +7%이상~+8.5%미만이고, 시초가 대비 -1.5%이하로 하락하지 않고, +11.5%를 돌파시, 다음첫봉에 진입.
-시초가는 +8.5%이상~+9.5%미만이고, 시초가 대비 -1.5%이하로 하락하지 않고, +12%를 돌파시, 다음첫봉에 진입.
-시초가는 +9.5%이상~+10.5%미만이고, 시초가 대비 -1.5%이하로 하락하지 않고, +12.5%를 돌파시, 다음첫봉에 진입.
-시초가는 +10.5%이상~+11.5%미만이고, 시초가 대비 -1.5%이하로 하락하지 않고, +13%를 돌파시, 다음첫봉에 진입.
<진입 당일 청산>
-상한가에 도달 못한 경우, 당일 최저가보다 하락시, 다음 첫봉에 모두 청산
-상한가에 도달한 경우, 상한도달 이후 3분이내에는, 상한가 -1.5%보다 하락시, 다음 첫봉에 모두 청산
-상한가에 도달한 경우, 상한도달 이후 3분이후에는, 상한가 풀리면(상한-1틱), 다음 첫봉에 모두 청산
<진입 +1일 청산>
-시초가가 상한가인 경우... 청산하지 않고 상한가 풀리면(상한가-1틱) 모두 청산.
-시초가가 상한가가 아닌 경우...
-진입가 대비, -5%이하로 하락시, 다음 첫봉에 모두 청산
-진입가 대비, +8%이상 상승시, 다음 첫봉에 잔고의 50%청산
-진입가 대비, +9%이상 상승시, 다음 첫봉에 잔고의 100%청산
-진입가 대비, +6%이상 상승후, 상승가(100%로 가정) 대비 30%까지 하락시, 다음첫봉에 모두 청산
-조건 없이 14:00시에 모두청산
<진입 +2일 청산>
-시초가가 상한가인 경우... 청산하지 않고 상한가 풀리면(상한가-1틱) 모두 청산.
-시초가가 상한가가 아닌 경우... 시초가에 모두 청산
<진입 +3일 청산>
-시초가에 모두 청산
답변 1
예스스탁 예스스탁 답변
2015-03-16 13:06:04
안녕하세요
예스스탁입니다.
var : cnt(0),count(0);
var : 상한가(0), UpLimit(0),TT(0),Dcnt(0),entryDay(0);
var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0);
if date >= 19981207 then {
if date < 20050328 && CodeCategory() == 2 then
UpLimit = (BP[0] * 1.12);
Else
UpLimit = (BP[0] * 1.15);
if CodeCategory() == 2 then {
if date >= 20030721 then {
up1 = int(UpLimit/100+0.00001)*100;
up2 = int(UpLimit/100+0.00001)*100;
up3 = int(UpLimit/100+0.00001)*100;
up4 = int(UpLimit/50+0.00001)*50;
up5 = int(UpLimit/10+0.00001)*10;
up6 = int(UpLimit/5+0.00001)*5;
up7 = int(UpLimit/1+0.00001)*1;
}
else {
up1 = int(UpLimit/1000+0.00001)*1000;
up2 = int(UpLimit/500+0.00001)*500;
up3 = int(UpLimit/100+0.00001)*100;
up4 = int(UpLimit/50+0.00001)*50;
up5 = int(UpLimit/10+0.00001)*10;
up6 = int(UpLimit/10+0.00001)*10;
up7 = int(UpLimit/1+0.00001)*1;
}
}
Else {
up1 = int(UpLimit/1000+0.00001)*1000;
up2 = int(UpLimit/500+0.00001)*500;
up3 = int(UpLimit/100+0.00001)*100;
up4 = int(UpLimit/50+0.00001)*50;
up5 = int(UpLimit/10+0.00001)*10;
up6 = int(UpLimit/5+0.00001)*5;
up7 = int(UpLimit/1+0.00001)*1;
}
if CodeCategory() == 1 || CodeCategory() == 2 then {
if sdate < 20101004 Then{
If BP >= 500000 Then
상한가 = up1;
Else If BP >= 100000 Then
상한가 = iff(up2>=500000, up1, up2);
Else If BP >= 50000 Then
상한가 = iff(up3>=100000, up2, up3);
Else If BP >= 10000 Then
상한가 = iff(up4>=50000, up3, up4);
Else If BP >= 5000 Then
상한가 = iff(up5>=10000, up4, up5);
Else If BP >= 1000 Then
상한가 = iff(up5>=5000, up5, up6);
Else
상한가 = iff(up6>=1000, up6, up6);
}
Else{
If BP >= 500000 Then
상한가 = up1;
Else If BP >= 100000 Then
상한가 = iff(up2>=500000, up1, up2);
Else If BP >= 50000 Then
상한가 = iff(up3>=100000, up2, up3);
Else If BP >= 10000 Then
상한가 = iff(up4>=50000, up3, up4);
Else If BP >= 5000 Then
상한가 = iff(up5>=10000, up4, up5);
Else If BP >= 1000 Then
상한가 = iff(up5>=5000, up5, up6);
Else
상한가 = iff(up6>=1000, up6, up7);
}
}
else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF
상한가 = up6;
}
}
if date != date[1] Then
Dcnt = Dcnt+1;
count = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) Then
count = count+1;
}
if stime >= 090000 and stime < 091000 and count < 1 and MarketPosition == 0 Then
{
if DayOpen >= DayClose(1)*1.07 and dayopen < DayClose(1)*1.085 and
daylow > dayopen*0.985 and
crossup(c,dayopen*1.115) Then
buy();
if DayOpen >= DayClose(1)*1.085 and dayopen <= DayClose(1)*1.095 and
daylow > dayopen*0.985 and
crossup(c,dayopen*1.12) Then
buy();
if DayOpen >= DayClose(1)*1.095 and dayopen < DayClose(1)*1.105 and
daylow > dayopen*0.985 and
crossup(c,dayopen*1.125) Then
buy();
if DayOpen >= DayClose(1)*1.105 and dayopen < DayClose(1)*1.115 and
daylow > dayopen*0.985 and
crossup(c,dayopen*1.13) Then
buy();
}
if MarketPosition == 1 Then
{
if MarketPosition[1] != 1 Then
EntryDay = Dcnt;
if H == 상한가 Then
TT = TimeToMinutes(stime);
if sdate == EntryDate then
{
if countif(H>=상한가,BarsSinceEntry) < 1 Then
exitlong("bx11",AtStop,daylow-PriceScale);
if countif(H>=상한가,BarsSinceEntry) >= 1 and TimeToMinutes(stime) < TT+3 Then
exitlong("bx12",AtStop,상한가*0.985);
if countif(H>=상한가,BarsSinceEntry) >= 1 and TimeToMinutes(stime) >= TT+3 Then
exitlong("bx13",AtStop,상한가-PriceScale);
}
if sdate > EntryDate and Dcnt == EntryDay+1 then
{
if Dayopen < 상한가 Then
exitlong("bx21",AtStop,상한가-PriceScale);
if Dayopen >= 상한가 Then
{
exitlong("bx22",AtStop,EntryPrice*0.95);
if MaxContracts == CurrentContracts Then
{
exitlong("bx23",atlimit,EntryPrice*1.08,"",int(CurrentContracts*0.5),1);
exitlong("bx24",atlimit,EntryPrice*1.09);
}
if highest(H,BarsSinceEntry) >= EntryPrice*1.06 Then
ExitLong("bx25",AtStop,highest(H,BarsSinceEntry)-(Highest(h,BarsSinceEntry)-EntryPrice)*0.3);
if stime == 140000 Then
exitlong("bx26");
}
}
if sdate > EntryDate and Dcnt == EntryDay+2 then
{
if Dayopen < 상한가 Then
exitlong("bx31",AtStop,상한가-PriceScale);
if Dayopen >= 상한가 Then
exitlong("bx32");
}
}
즐거운 하루되세요
> 쌀사비팔 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> -현물 틱 매매입니다.
<진입 공통 조건>
-진입시간 09:00~09:10
-하루동안 진입 1회로 제한
<진입>
-시초가는 +7%이상~+8.5%미만이고, 시초가 대비 -1.5%이하로 하락하지 않고, +11.5%를 돌파시, 다음첫봉에 진입.
-시초가는 +8.5%이상~+9.5%미만이고, 시초가 대비 -1.5%이하로 하락하지 않고, +12%를 돌파시, 다음첫봉에 진입.
-시초가는 +9.5%이상~+10.5%미만이고, 시초가 대비 -1.5%이하로 하락하지 않고, +12.5%를 돌파시, 다음첫봉에 진입.
-시초가는 +10.5%이상~+11.5%미만이고, 시초가 대비 -1.5%이하로 하락하지 않고, +13%를 돌파시, 다음첫봉에 진입.
<진입 당일 청산>
-상한가에 도달 못한 경우, 당일 최저가보다 하락시, 다음 첫봉에 모두 청산
-상한가에 도달한 경우, 상한도달 이후 3분이내에는, 상한가 -1.5%보다 하락시, 다음 첫봉에 모두 청산
-상한가에 도달한 경우, 상한도달 이후 3분이후에는, 상한가 풀리면(상한-1틱), 다음 첫봉에 모두 청산
<진입 +1일 청산>
-시초가가 상한가인 경우... 청산하지 않고 상한가 풀리면(상한가-1틱) 모두 청산.
-시초가가 상한가가 아닌 경우...
-진입가 대비, -5%이하로 하락시, 다음 첫봉에 모두 청산
-진입가 대비, +8%이상 상승시, 다음 첫봉에 잔고의 50%청산
-진입가 대비, +9%이상 상승시, 다음 첫봉에 잔고의 100%청산
-진입가 대비, +6%이상 상승후, 상승가(100%로 가정) 대비 30%까지 하락시, 다음첫봉에 모두 청산
-조건 없이 14:00시에 모두청산
<진입 +2일 청산>
-시초가가 상한가인 경우... 청산하지 않고 상한가 풀리면(상한가-1틱) 모두 청산.
-시초가가 상한가가 아닌 경우... 시초가에 모두 청산
<진입 +3일 청산>
-시초가에 모두 청산