커뮤니티
부탁드립니다.
2014-02-02 20:24:14
169
글번호 72039
아래식에 추가 부탁드립니다. 현물 1분봉, 감사합니다.
<매수 당일 청산>
-매수가 대비 4.5% 상승하면, 첫봉에 청산
<매수 +1일에 청산>
-전일종가 대비 10%상승시, 첫봉에 청산
-09:50시 이후 첫봉에 청산
-------------------------------------------------------------------
input : P(5);
var : cnt(0),sum(0),sum1(0),mav(0),mav1(0),dis(0),dis1(0),daycnt(0),PredayVol(0);
Var : Pivot(0),R1(0),R2(0),S1(0),S2(0);
Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3;
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;
for cnt = 1 to 1000 {
if stime == stime[cnt] and sdate != sdate[cnt] then{
PredayVol = DayVolume[cnt];
cnt = 1001;
}
}
if date != date[1] Then{
Daycnt = daycnt+1;
var1 = dayopen/mav*100;
}
if MarketPosition == 0 and
dayopen <= DayClose(1)*1.02 and
dayhigh <= dayopen*1.04 and
dis1 >= 103 and
ExitDate(1) != sdate and
DayVolume < PredayVol*1 and
var1 > 100 Then{
if stime >= 133000 and stime < 133300 and dis >= 101.5 and dis < 104.0 Then
buy("b1",AtMarket);
if stime >= 134500 and stime < 134800 and dis >= 101.5 and dis < 104.5 Then
buy("b2",AtMarket);
if stime >= 140000 and stime < 140300 and dis >= 101.5 and dis < 104.5 Then
buy("b3",AtMarket);
if stime >= 141500 and stime < 141800 and dis >= 101.5 and dis < 104.5 Then
buy("b4",AtMarket);
if stime >= 143000 and stime < 143300 and dis >= 101.5 and dis < 104.5 Then
buy("b5",AtMarket);
if stime >= 144500 and stime < 144800 and dis >= 101.5 and dis < 105.0 Then
buy("b6",AtMarket);
if stime >= 144500 and stime < 144800 and c < Pivot and dis >= 101.5 and dis < 105.5 Then
buy("b7",AtMarket);
}
답변 1
예스스탁 예스스탁 답변
2014-02-03 16:08:50
안녕하세요
예스스탁입니다.
input : P(5);
var : cnt(0),sum(0),sum1(0),mav(0),mav1(0),dis(0),dis1(0),daycnt(0),PredayVol(0);
Var : Pivot(0),R1(0),R2(0),S1(0),S2(0);
Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3;
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;
for cnt = 1 to 1000 {
if stime == stime[cnt] and sdate != sdate[cnt] then{
PredayVol = DayVolume[cnt];
cnt = 1001;
}
}
if date != date[1] Then{
Daycnt = daycnt+1;
var1 = dayopen/mav*100;
}
if MarketPosition == 0 and
dayopen <= DayClose(1)*1.02 and
dayhigh <= dayopen*1.04 and
dis1 >= 103 and
ExitDate(1) != sdate and
DayVolume < PredayVol*1 and
var1 > 100 Then{
if stime >= 133000 and stime < 133300 and dis >= 101.5 and dis < 104.0 Then
buy("b1",AtMarket);
if stime >= 134500 and stime < 134800 and dis >= 101.5 and dis < 104.5 Then
buy("b2",AtMarket);
if stime >= 140000 and stime < 140300 and dis >= 101.5 and dis < 104.5 Then
buy("b3",AtMarket);
if stime >= 141500 and stime < 141800 and dis >= 101.5 and dis < 104.5 Then
buy("b4",AtMarket);
if stime >= 143000 and stime < 143300 and dis >= 101.5 and dis < 104.5 Then
buy("b5",AtMarket);
if stime >= 144500 and stime < 144800 and dis >= 101.5 and dis < 105.0 Then
buy("b6",AtMarket);
if stime >= 144500 and stime < 144800 and c < Pivot and dis >= 101.5 and dis < 105.5 Then
buy("b7",AtMarket);
}
if MarketPosition == 1 and EntryDate == sdate Then{
if C >= EntryPrice*1.045 Then
ExitLong("bx1");
}
if MarketPosition == 1 and EntryDate > sdate Then{
if C >= EntryPrice*1.10 then
ExitLong("bx2");
if stime == 950000 Then
ExitLong("bx");
}
즐거운 하루되세요
> 쌀사비팔 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 아래식에 추가 부탁드립니다. 현물 1분봉, 감사합니다.
<매수 당일 청산>
-매수가 대비 4.5% 상승하면, 첫봉에 청산
<매수 +1일에 청산>
-전일종가 대비 10%상승시, 첫봉에 청산
-09:50시 이후 첫봉에 청산
-------------------------------------------------------------------
input : P(5);
var : cnt(0),sum(0),sum1(0),mav(0),mav1(0),dis(0),dis1(0),daycnt(0),PredayVol(0);
Var : Pivot(0),R1(0),R2(0),S1(0),S2(0);
Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3;
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;
for cnt = 1 to 1000 {
if stime == stime[cnt] and sdate != sdate[cnt] then{
PredayVol = DayVolume[cnt];
cnt = 1001;
}
}
if date != date[1] Then{
Daycnt = daycnt+1;
var1 = dayopen/mav*100;
}
if MarketPosition == 0 and
dayopen <= DayClose(1)*1.02 and
dayhigh <= dayopen*1.04 and
dis1 >= 103 and
ExitDate(1) != sdate and
DayVolume < PredayVol*1 and
var1 > 100 Then{
if stime >= 133000 and stime < 133300 and dis >= 101.5 and dis < 104.0 Then
buy("b1",AtMarket);
if stime >= 134500 and stime < 134800 and dis >= 101.5 and dis < 104.5 Then
buy("b2",AtMarket);
if stime >= 140000 and stime < 140300 and dis >= 101.5 and dis < 104.5 Then
buy("b3",AtMarket);
if stime >= 141500 and stime < 141800 and dis >= 101.5 and dis < 104.5 Then
buy("b4",AtMarket);
if stime >= 143000 and stime < 143300 and dis >= 101.5 and dis < 104.5 Then
buy("b5",AtMarket);
if stime >= 144500 and stime < 144800 and dis >= 101.5 and dis < 105.0 Then
buy("b6",AtMarket);
if stime >= 144500 and stime < 144800 and c < Pivot and dis >= 101.5 and dis < 105.5 Then
buy("b7",AtMarket);
}