커뮤니티
문의드립니다.
2013-01-10 15:32:50
268
글번호 57995
1.20일 동안에 첫 상한가를 친 종목중에서
상한가 친날의 종가에 매수해서
10%수익시 50%매도 20수익시 전량매도
10%손실시 전량 손절
2.약 1년간 종목별로 상한가 다음날 양봉이날 확률을 구하고
싶은데 지표식으로 작성식 부탁드립니다.
그래고 친절한 답변 너무 감사합니다.
답변 1
예스스탁 예스스탁 답변
2013-01-10 17:39:57
안녕하세요
예스스탁입니다.
일봉에 적용하시기 바랍니다.
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 H >= 상한가 and CountIF(H >= 상한가,20) == 1 Then
buy();
#10% 수익시 절반청산
if MarketPosition == 1 Then{
if CodeCategory == 1 and BasePrice < 50000 Then
var1 = int(int(CurrentContracts*0.5)/10)*10;
Else
var1 = int(CurrentContracts*0.5);
exitlong("bx",atlimit,EntryPrice*1.1,"",var1,1);
}
#20% 수익시 잔량 모두 청산
SetStopProfittarget(20,PercentStop);
#10% 손실시 잔량 모두 청산
SetStopLoss(10,PercentStop);
즐거운 하루되세요
> 썬보이 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 20일 동안에 첫 상한가를 친 종목중에서
상한가 친날의 종가에 매수해서
10%수익시 50%매도 20수익시 전량매도
10%손실시 전량 손절
작성식 부탁드립니다.
그래고 친절한 답변 너무 감사합니다.
다음글
이전글