예스스탁
예스스탁 답변
2011-12-19 16:56:49
안녕하세요
예스스탁입니다.
if ExitDate(1) != sdate and MarketPosition == 0 Then{
if data1(dayindex+1 >= 1 and dayindex+1 <= 6) Then{
if data1(C >= dayopen and C < ma(c,10)) and
data4(C < OpenD(0)) And data5(C > OpenD(0)) And data6(C > OpenD(0)) And
data2(iff(C > OpenD(0),1,0))+data3(iff(C > OpenD(0),1,0))+data4(iff(C > OpenD(0),1,0)) >= 2 Then
buy();
}
if data1(dayindex+1 == 1) Then{
if data1(C < O and C < ma(c,10) and C < ma(c,20) and C < ma(c,40) and C < ma(c,60) and C < ma(c,120)) And
data2(C > O) and data3(C > O) and data4(C > O) and data5(C > O) and data6(C > O) And
data8(C >O or (C == O and C >= C[1])) then
buy();
}
if data1(dayindex+1 >= 1 and dayindex+1 <= 10) Then{
if data1(C > dayopen and C > ma(C,5) and C > ma(c,10)) and
data4(C < OpenD(0) and C < ma(C,10) and C < ma(C,15) and C < ma(C,20)) And
data5(C > OpenD(0) and C > ma(C,10) and C > ma(C,15) and C > ma(C,20)) And
data6(C > OpenD(0) and C > ma(C,10) and C > ma(C,15) and C > ma(C,20)) Then
buy();
}
if data1(dayindex+1 >= 11 and dayindex+1 <= 25) Then{
if data1(C > ma(C,5) and C > ma(c,10)) and
data4(C < OpenD(0) and C < ma(C,10) and C < ma(C,15) and C < ma(C,20)) And
data5(C > ma(C,10) and C > ma(C,15) and C > ma(C,20)) And
data6(C > ma(C,10) and C > ma(C,15) and C > ma(C,20)) Then
buy();
}
if data1(dayindex+1 >= 1 and dayindex+1 <= 6) Then{
if data1(C <= dayopen and C > ma(c,10)) and
data4(C > OpenD(0)) And data5(C < OpenD(0)) And data6(C < OpenD(0)) And
data2(iff(C < OpenD(0),1,0))+data3(iff(C < OpenD(0),1,0))+data4(iff(C < OpenD(0),1,0)) >= 2 Then
Sell();
}
if data1(dayindex+1 == 1) Then{
if data1(C > O and C > ma(c,10) and C > ma(c,20) and C > ma(c,40) and C > ma(c,60) and C > ma(c,120)) And
data2(C < O) and data3(C < O) and data4(C < O) and data5(C < O) and data6(C < O) And
data8(C < O or (C == O and C < C[1])) then
Sell();
}
if data1(dayindex+1 >= 1 and dayindex+1 <= 10) Then{
if data1(C < dayopen and C < ma(C,5) and C < ma(c,10)) and
data4(C > OpenD(0) and C > ma(C,10) and C > ma(C,15) and C > ma(C,20)) And
data5(C < OpenD(0) and C < ma(C,10) and C < ma(C,15) and C < ma(C,20)) And
data6(C < OpenD(0) and C < ma(C,10) and C < ma(C,15) and C < ma(C,20)) Then
Sell();
}
if data1(dayindex+1 >= 11 and dayindex+1 <= 25) Then{
if data1(C < ma(C,5) and C < ma(c,10)) and
data4(C > ma(C,10) and C > ma(C,15) and C > ma(C,20)) And
data5(C < ma(C,10) and C < ma(C,15) and C < ma(C,20)) And
data6(C < ma(C,10) and C < ma(C,15) and C < ma(C,20)) Then
Sell();
}
}
if MarketPosition == 1 Then{
if C >= EntryPrice*1.022 Then
ExitLong();
if data1(dayindex >= 30 and C < ma(C,10)) Then
ExitLong();
if data1(dayindex == 35) Then
ExitLong();
if C >= dayopen*1.003 and C >= EntryPrice*1.085 and (data8(C < OpenD(0)) or data9(C < OpenD(0))) Then
ExitLong();
}
if MarketPosition == -1 Then{
if C <= EntryPrice*0.978 Then
ExitShort();
if data1(dayindex >= 30 and C > ma(C,10)) Then
ExitShort();
if data1(dayindex == 35) Then
ExitShort();
if C <= dayopen*0.997 and C <= EntryPrice*0.915 and (data8(C > OpenD(0)) or data9(C > OpenD(0))) Then
ExitShort();
}
즐거운 하루되세요
> 강태공3 님이 쓴 글입니다.
> 제목 : 수식 부탁드립니다.
> <html>
<head>
<title>안녕하세요.</title>
<meta name="generator" content="Namo WebEditor v4.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p><font color="black"> </font></p>
<p><font color="black">안녕하세요.</font></p>
<p><font color="black"> </font></p>
<p><font color="black">수식좀 부탁드립니다.</font></p>
<p><font color="black"> </font></p>
<p><font color="red"><b>매수조건</b></font></p>
<p><font color="black">1. 금일 첫봉부터 6봉까지는 선물이 시초가보다 크거나 같고
10이평보다 작고 데이타4가 시초가보다 작고 데이타5,6이 시초가 보다 크고 데이타
2,3,4 중에서 시초가 보다 큰것이</font><font color="red"><b> </b>2개</font><font color="black">이상이면
매수</font></p>
<p><font color="black">2. 금일 첫봉에서 선물이 음봉이고 10,20,40,60,120 이평보다
작고 데이타2,3,4,5,6 이 양봉이고 데이타 8이 양봉이거나 양도지이면 매수</font></p>
<p><font color="black">3. 금일 첫봉부터 10봉까지는 선물이 시초가보다 크고 5와
10 이평보다 크고 시초가보다 크고 데이타4는 시초가보다 작고 10, 15,20 이평보다
작고 데이타5,6은 시초가보다 크고 10,15,20 이평보다 크면 매수</font></p>
<p><font color="black"> 금일 11봉부터 25봉까지는 선물이 5와
10 이평보다 크고 데이타4는 시초가보다 작고 10, 15,20 이평보다 작고 데이타5,6은
10,15,20 이평보다 크면 매수</font></p>
<p><font color="black"> </font></p>
<p><font color="black"> </font></p>
<p><font color="blue"><b>매도조건 </b></font></p>
<p><font color="black">1. 금일 첫봉부터 6봉까지는 선물이 시초가보다 작거나 같고
10이평보다 크고 데이타4가 시초가보다 크고 데이타5,6이 시초가 보다 작고 데이타
2,3,4 중에서 시초가 보다 작은것이 2개이상이면 매도</font></p>
<p><font color="black">2. 금일 첫봉에서 선물이 양봉이고 10,20,40,60,120 이평보다
크고 데이타2,3,4,5,6 이 음봉이고 데이타 8이 음봉이거나 음도지이면 매도</font></p>
<p><font color="black">3. 금일 첫봉부터 10봉까지는 선물이 시초가보다 작고 5와
10 이평보다 작고 데이타4는 시초가보다 크고 10, 15,20 이평보다 크고 데이타5,6은
시초가보다 작고 10,15,20 이평보다 작으면 매도</font></p>
<p><font color="black"> 금일 11봉부터 25봉까지는 선물이 5와
10 이평보다 작고 데이타4는 10, 15,20 이평보다 크고 데이타5,6은 10,15,20 이평보다
작으면 매도</font></p>
<p><font color="black"> </font></p>
<p><font color="black"> </font></p>
<p><font color="red"><b>청산조건</b></font></p>
<p><font color="black">1. 금일 수익이 종가로 진입가*2.2% 이상 이면 청산후 당일
매매종료</font></p>
<p><font color="black">2. 현 포지션이 매수이면 금일 30봉부터는 10이평선 보다
작으면 청산후 금일 매매종료</font></p>
<p><font color="black"> 현 포지션이 매도이면 금일 30봉부터는
10이평선 보다 크면 청산후 금일 매매종료</font></p>
<p><font color="black">3. 모든 포지션은 금일 35봉에서는 청산후 매매종료.</font></p>
<p><font color="black">4. 매수후 현재가가 시초가*1.003 보다 크고 현재 수익이
진입가*0.85% 이상이고 데이타8이나 9가 시초가보다 작으면 청산후 금일 매매종료</font></p>
<p><font color="black"> 매도후 현재가가 시초가*0.997보다 작고
현재 수익이 진입가*0.85% 이상이고 데이타8이나 9가 시초가보다 크면 청산후 금일
매매종료.</font></p>
<p><font color="black"> </font></p>
<p> </p>
<p> </p>
</body>
</html>