커뮤니티
부탁드립니다.
2013-09-10 14:21:22
107
글번호 67394
아래식에 추가 부탁드립니다. 감사합니다.
*매수당일 청산
-매수가 대비 5% 상승시 다음 첫봉에 청산
-5일(일봉) 이평선 이격도가 99.5 미만이면 다음 첫봉에 청산
*매수익일 청산
-5일(일봉) 이평선 이격도가 100 미만이면 다음 첫봉에 청산
-피봇 2차 저항선 상향돌파(이상일 때)시 다음 첫봉에 청산
-09:30시 이후 당일 최저가를 하향 이탈시 다음 첫봉에 청산
-10:00시에 거래량이 전일 거래량 대비 30% 이상시 다음 첫봉에 청산
-14:45시 이후 첫봉에 청산
===================================================
input : P(5);
var : cnt(0),sum(0),sum1(0),mav(0),mav1(0),dis(0),dis1(0),daycnt(0);
if date != date[1] Then
Daycnt = daycnt+1;
sum = 0;
sum1 = 0;
for cnt = 0 to P-1{
sum = sum+DayClose(cnt);
sum1 = sum1+DayClose(cnt+1);
}
mav = sum/P;
mav1 = sum1/P;
dis = c/mav*100;
dis1 = DayClose(1)/mav1*100;
if date != date[1] Then
var1 = O/mav*100;
if ExitDate(1) != sdate and
MarketPosition == 0 and
var1 > 100 and
dayhigh <= DayClose(1)*1.06 and
dayopen <= DayClose(1)*1.03 and
dis1 >= 103 then{
if daylow <= DayClose(1)*0.99 and
daylow > DayClose(1)*0.96 and
dis >= 100 and dis <= 102 Then
buy("매수1");
if daylow <= DayClose(1)*0.96 and
daylow > DayClose(1)*0.93 and
dis >= 100 and dis <= 102.5 Then
buy("매수2");
if daylow <= DayClose(1)*0.93 and
daylow > DayClose(1)*0.90 and
dis >= 100 and dis <= 102.75 Then
buy("매수3");
if daylow <= DayClose(1)*0.90 and
daylow > DayClose(1)*0.87 and
dis >= 100 and dis <= 103 Then
buy("매수4");
if daylow <= DayClose(1)*0.87 and
dis >= 100 and dis <= 103.25 Then
buy("매수5");
}
if MarketPosition == 1 Then{
exitlong("Profit",Atlimit,EntryPrice*1.13);
exitlong("bx1",AtStop,EntryPrice*0.865,"매수1");
exitlong("bx2",AtStop,EntryPrice*0.87,"매수2");
exitlong("bx3",AtStop,EntryPrice*0.875,"매수3");
exitlong("bx4",AtStop,EntryPrice*0.88,"매수4");
exitlong("bx5",AtStop,EntryPrice*0.885,"매수5");
}
답변 1
예스스탁 예스스탁 답변
2013-09-10 15:43:45
안녕하세요
예스스탁입니다.
input : P(5);
var : cnt(0),sum(0),sum1(0),mav(0),mav1(0),dis(0),dis1(0),daycnt(0);
Var : Pivot(0),R1(0),R2(0),S1(0),S2(0);
Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3;
R1 = 2*Pivot-DayLow(1);
R2 = Pivot+DayHigh(1)-DayLow(1);
S1 = 2*Pivot-DayHigh(1);
S2 = Pivot-DayHigh(1)+DayLow(1);
if date != date[1] Then
Daycnt = daycnt+1;
sum = 0;
sum1 = 0;
for cnt = 0 to P-1{
sum = sum+DayClose(cnt);
sum1 = sum1+DayClose(cnt+1);
}
mav = sum/P;
mav1 = sum1/P;
dis = c/mav*100;
dis1 = DayClose(1)/mav1*100;
if date != date[1] Then
var1 = O/mav*100;
if ExitDate(1) != sdate and
MarketPosition == 0 and
var1 > 100 and
dayhigh <= DayClose(1)*1.06 and
dayopen <= DayClose(1)*1.03 and
dis1 >= 103 then{
if daylow <= DayClose(1)*0.99 and
daylow > DayClose(1)*0.96 and
dis >= 100 and dis <= 102 Then
buy("매수1");
if daylow <= DayClose(1)*0.96 and
daylow > DayClose(1)*0.93 and
dis >= 100 and dis <= 102.5 Then
buy("매수2");
if daylow <= DayClose(1)*0.93 and
daylow > DayClose(1)*0.90 and
dis >= 100 and dis <= 102.75 Then
buy("매수3");
if daylow <= DayClose(1)*0.90 and
daylow > DayClose(1)*0.87 and
dis >= 100 and dis <= 103 Then
buy("매수4");
if daylow <= DayClose(1)*0.87 and
dis >= 100 and dis <= 103.25 Then
buy("매수5");
}
if MarketPosition == 1 Then{
exitlong("Profit",Atlimit,EntryPrice*1.13);
exitlong("bx1",AtStop,EntryPrice*0.865,"매수1");
exitlong("bx2",AtStop,EntryPrice*0.87,"매수2");
exitlong("bx3",AtStop,EntryPrice*0.875,"매수3");
exitlong("bx4",AtStop,EntryPrice*0.88,"매수4");
exitlong("bx5",AtStop,EntryPrice*0.885,"매수5");
if CurrentDate == sdate Then{
if C >= EntryPrice*1.05 Then
ExitLong("bx11",AtMarket);
if dis <= 99.5 then
ExitLong("bx12",AtMarket);
}
if CurrentDate < sdate Then{
if dis <= 100 then
ExitLong("bx21",AtMarket);
if C > R2 Then
ExitLong("bx22",AtMarket);
if stime >= 93000 and L < daylow[1] Then
ExitLong("bx23",AtMarket);
if stime == 100000 and DayVolume >= DayVolume(1)*0.3 Then
ExitLong("bx24",AtMarket);
if stime == 144500 Then
ExitLong("bx25",AtMarket);
}
}
즐거운 하루되세요
> 쌀사비팔 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 아래식에 추가 부탁드립니다. 감사합니다.
*매수당일 청산
-매수가 대비 5% 상승시 다음 첫봉에 청산
-5일(일봉) 이평선 이격도가 99.5 미만이면 다음 첫봉에 청산
*매수익일 청산
-5일(일봉) 이평선 이격도가 100 미만이면 다음 첫봉에 청산
-피봇 2차 저항선 상향돌파(이상일 때)시 다음 첫봉에 청산
-09:30시 이후 당일 최저가를 하향 이탈시 다음 첫봉에 청산
-10:00시에 거래량이 전일 거래량 대비 30% 이상시 다음 첫봉에 청산
-14:45시 이후 첫봉에 청산
===================================================
input : P(5);
var : cnt(0),sum(0),sum1(0),mav(0),mav1(0),dis(0),dis1(0),daycnt(0);
if date != date[1] Then
Daycnt = daycnt+1;
sum = 0;
sum1 = 0;
for cnt = 0 to P-1{
sum = sum+DayClose(cnt);
sum1 = sum1+DayClose(cnt+1);
}
mav = sum/P;
mav1 = sum1/P;
dis = c/mav*100;
dis1 = DayClose(1)/mav1*100;
if date != date[1] Then
var1 = O/mav*100;
if ExitDate(1) != sdate and
MarketPosition == 0 and
var1 > 100 and
dayhigh <= DayClose(1)*1.06 and
dayopen <= DayClose(1)*1.03 and
dis1 >= 103 then{
if daylow <= DayClose(1)*0.99 and
daylow > DayClose(1)*0.96 and
dis >= 100 and dis <= 102 Then
buy("매수1");
if daylow <= DayClose(1)*0.96 and
daylow > DayClose(1)*0.93 and
dis >= 100 and dis <= 102.5 Then
buy("매수2");
if daylow <= DayClose(1)*0.93 and
daylow > DayClose(1)*0.90 and
dis >= 100 and dis <= 102.75 Then
buy("매수3");
if daylow <= DayClose(1)*0.90 and
daylow > DayClose(1)*0.87 and
dis >= 100 and dis <= 103 Then
buy("매수4");
if daylow <= DayClose(1)*0.87 and
dis >= 100 and dis <= 103.25 Then
buy("매수5");
}
if MarketPosition == 1 Then{
exitlong("Profit",Atlimit,EntryPrice*1.13);
exitlong("bx1",AtStop,EntryPrice*0.865,"매수1");
exitlong("bx2",AtStop,EntryPrice*0.87,"매수2");
exitlong("bx3",AtStop,EntryPrice*0.875,"매수3");
exitlong("bx4",AtStop,EntryPrice*0.88,"매수4");
exitlong("bx5",AtStop,EntryPrice*0.885,"매수5");
}
이전글