커뮤니티
시스템 질문드립니다
2018-08-16 15:08:14
206
글번호 121378
1.당일 거래대금이 200억이상이고
전일 종가대비 당일 고가가 15% 이상
당일 시가대비 당일 고가가 15% 이상
되는 장대양봉이 나온날에 피보나치 조정대
0.236 0.382 0.5 0.618이 그려지도록 수식좀 짜주세요
2.전일 상한가인 봉이 당일 갭을 5%이상 띄워서 시작한다면 전일 상한가 가격에 매수
익절 3.5% 손절 3.5%
매매횟수는 매수1회 매도 1회로 한정
(상한가 다음날로 한정)
3. 10000원이라는 가격을 오전 11시 이전에 1시간동안 횡보한다면 그시점에서 즉시 현재가로 매수라는걸 표현하고 싶은데 어떻게 해야될까요
감사합니다
답변 1
예스스탁 예스스탁 답변
2018-08-16 16:16:48
안녕하세요
예스스탁입니다.
1.
var : mm(0),mm1(0);
if bdate != bdate[1] Then
{
mm = 0;
mm1 = mm[1];
if mm1 >= 20000000000 and
DayHigh(1) >= DayClose(2)*1.15 and
DayHigh(1) >= dayopen(1)*1.15 and
DayClose(1) > dayopen(1) Then
{
var1 = DayHigh(1);
var2 = DayLow(1);
var3 = dayhigh(1)-(dayhigh(1)-DayLow(1))*0.236;
var4 = dayhigh(1)-(dayhigh(1)-DayLow(1))*0.382;
var5 = dayhigh(1)-(dayhigh(1)-DayLow(1))*0.500;
var6 = dayhigh(1)-(dayhigh(1)-DayLow(1))*0.618;
}
}
mm = mm+money;
plot1(var1,"최고");
plot2(var2,"최저");
plot3(var3,"23.6");
plot4(var4,"38.2");
plot5(var5,"50.0");
plot6(var6,"61.8");
2
var : 상한가(0), UpLimit(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 if date >= 20050328 and date < 20150615 Then
UpLimit = (BP[0] * 1.15);
Else
UpLimit = (BP[0] * 1.30);
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 bdate != bdate[1] then
{
Condition1 = true;
var1 = 상한가[1];
if DayHigh(1) >= var1 Then
Condition1 = false;
}
if MarketPosition == 0 and ExitDate(1) == sdate and
Condition1 == true and dayopen > DayClose(1)*1.05 then
{
if NextBarOpen <= var1 Then
buy("b1",AtStop,var1);
Else
buy("b2",Atlimit,var1);
}
SetStopProfittarget(3.5,PercentStop);
SetStopLoss(3.5,PercentStop);
3
횡보는 한시간동안의 최저가와 최고가가 지정한 %이내로 지정되었습니다.
input : Price(10000),Per(3);
var : ii(0),cnt(0),TM(0),HH(0),LL(0);
TM = TimeToMinutes(stime);
if bdate != bdate[1] Then
{
var1 = TM;
ii = 0;
}
Else
ii = ii +1;
if TM >= var1+60 and stime < 110000 then
{
HH = H;
LL = L;
for cnt = 0 to ii
{
if TM[cnt] > TM-60 and H[cnt] > HH Then
HH = H[cnt];
if TM[cnt] > TM-60 and L[cnt] < LL Then
LL = L[cnt];
if TM[cnt] <= TM-60 Then
cnt = ii+1;
}
if HH >= Price and Price >= LL and HH <= LL*(1+Per/100) Then
{
if MarketPosition == 0 Then
buy();
}
}
즐거운 하루되세요
> 동작맨 님이 쓴 글입니다.
> 제목 : 시스템 질문드립니다
> 1.당일 거래대금이 200억이상이고
전일 종가대비 당일 고가가 15% 이상
당일 시가대비 당일 고가가 15% 이상
되는 장대양봉이 나온날에 피보나치 조정대
0.236 0.382 0.5 0.618이 그려지도록 수식좀 짜주세요
2.전일 상한가인 봉이 당일 갭을 5%이상 띄워서 시작한다면 전일 상한가 가격에 매수
익절 3.5% 손절 3.5%
매매횟수는 매수1회 매도 1회로 한정
(상한가 다음날로 한정)
3. 10000원이라는 가격을 오전 11시 이전에 1시간동안 횡보한다면 그시점에서 즉시 현재가로 매수라는걸 표현하고 싶은데 어떻게 해야될까요
감사합니다
다음글
이전글