커뮤니티
시스템 매매식 부탁
2004-08-26 21:00:17
1248
글번호 4951
예스트레이더 사용을 좀 했었는데,
프로로 바뀌었네요.
매매식 부탁 드립니다
한번 해 주시면 혼자서도 조금씩 할수 있겠습니다(2개)
- 1. 시스템트레이딩-문의.doc (0.03 MB)
답변 1
예스스탁 예스스탁 답변
2004-08-27 09:20:44
안녕하세요
예스스탁입니다.
문의하신 식은 다음과 같습니다.
##매매식1. (주어진 조건 충족 시 macd 오실레이터 상승/ 하락 반전 활용)
Input : af(0.02), maxAF(0.2),shortPeriod(12), longPeriod(26), Period(12);
var : value(0), macdosc(0);
value = MACD(shortPeriod, longPeriod);
macdosc = ema(value,Period);
if dayindex() == 0 then
var1 = value;
if dayindex() == 1 then{
var2 = value;
var3 = c;
}
if stime >= 90000 and stime <= 144500 then{
if (macdosc > macdosc[1] and macdosc[1] < macdosc[2] and c > dayopen()) or
(c > dayhigh()-0.5 and highest(H, 15)-lowest(L,15) >= 0.5) or
(c < Sar(af,maxAF)) or
(var1 < var2 and var3 > Sar(af,maxAF)) then
buy("매수");
}
if macdosc < macdosc[1] and macdosc[1] > macdosc[2] then
exitlong("매수청산");
if stime >= 90000 and stime <= 144500 then{
if (macdosc < macdosc[1] and macdosc[1] > macdosc[2] and c > dayopen()) or
(c > daylow()-0.5 and highest(H, 15)-lowest(L,15) >= 0.5) or
(c > Sar(af,maxAF)) or
(var1 > var2 and var3 < Sar(af,maxAF)) then
sell("매도");
}
if macdosc > macdosc[1] and macdosc[1] < macdosc[2] then
exitshort("매도청산");
if stime == 150000 then{
exitlong();
exitshort();
}
###매매식2. (주어진 조건 충족 시 Parabolic 상승/ 하락 반전 활용)
Input : af(0.02), maxAF(0.2);
if stime >= 90000 and stime <= 144500 then{
if c > dayopen() and c[1] > Sar(af,maxAF)[1] and c < Sar(af,maxAF) then
buy();
}
if c[1] < Sar(af,maxAF)[1] and c > Sar(af,maxAF) then
exitlong();
if stime >= 90000 and stime <= 144500 then{
if c < dayopen() and c[1] > Sar(af,maxAF)[1] and c < Sar(af,maxAF) then
sell();
}
if c[1] < Sar(af,maxAF)[1] and c > Sar(af,maxAF) then
exitshort();
if stime == 150000 then{
exitlong();
exitshort();
}
즐거운 하루되세요
> pinetree 님이 쓴 글입니다.
> 제목 : 시스템 매매식 부탁
>
예스트레이더 사용을 좀 했었는데,
프로로 바뀌었네요.
매매식 부탁 드립니다
한번 해 주시면 혼자서도 조금씩 할수 있겠습니다(2개)
이전글