커뮤니티
시스템식 문의 드립니다.
2012-03-04 11:49:41
388
글번호 48525
1분차트를 기준으로
매수 : 상한가에 1.5% 이내 근접 & 스토캐스틱 슬로우 K 80이상시 매수
매도 : 매수가에서 0.5% 상승시 50% 1차 매도, 매수가에서 1% 상승시 100% 전량 매도
손절 : 매수가에서 1.0% 하락시
감사합니다.
답변 1
예스스탁 예스스탁 답변
2012-03-05 12:27:00
안녕하세요
예스스탁입니다.
input : sto1(10),sto2(5);
var : 상한가(0), UpLimit(0);
var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(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;
}
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;
}
}
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;
}
if CodeCategory() == 1 || CodeCategory() == 2 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
상한가 = iff(up6>=5000, up5, up6);
}
else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF
상한가 = up6;
}
}
if crossup(c,상한가*0.985) and StochasticsK(sto1,sto2) >= 80 Then
buy();
if MarketPosition == 1 Then{
if CodeCategory == 1 Then{ #코스피
if BasePrice < 50000 Then
Var1 = int(int(CurrentContracts*0.5)/10)*10;
Else
Var1 = int(CurrentContracts*0.5);
}
if CodeCategory == 2 Then#코스닥
Var1 = int(CurrentContracts*0.5);
if CodeCategory == 6 Then#옵션
Var1 = int(CurrentContracts*0.5);
exitlong("bx1",atlimit,EntryPrice*1.005,"",var1,1);
exitlong("bx2",atlimit,EntryPrice*1.01);
}
SetStopLoss(1,PercentStop);
즐거운 하루되세요
> 띠꿍 님이 쓴 글입니다.
> 제목 : 시스템식 문의 드립니다.
>
1분차트를 기준으로
매수 : 상한가에 1.5% 이내 근접 & 스토캐스틱 슬로우 K 80이상시 매수
매도 : 매수가에서 0.5% 상승시 50% 1차 매도, 매수가에서 1% 상승시 100% 전량 매도
손절 : 매수가에서 1.0% 하락시
감사합니다.
다음글