커뮤니티
수식문의
2006-12-26 14:26:35
1065
글번호 11576
장시작 후 시가+1포인트면 매수
장시작 후 시가- 1포인트면 매도
(손절)
1포인트 손절
(트레일링스탑)
1포인트 이익 확정 후 0.5포인트 내려오면 손절
(재진입)
청산 후 청산시점에서 1포인트 이상 상승 후 최고점에서 다시 50% 내려올 때 재매도
청산 후 청산시점에서 1포인트 이상 하락 후 최저점에서 다시 50% 올라갈 때 재매수
종가청산
감사합니다.
답변 3
예스스탁 예스스탁 답변
2006-12-27 16:52:26
안녕하세요
예스스탁입니다.
문의하신 식은 다음과 같습니다.
var :cnt(0);
if date != date[1] then
cnt = 0;
if marketposition() == 0 and dayindex() > 0 then{
if C >= dayopen()+1 and cnt < 1 then{
buy("매수");
cnt = 1;
}
if C <= dayopen()-1 and cnt < 1 then{
sell("매도");
cnt = 1;
}
}
setstoploss(1,pointstop);
SetStopTrailing(0.5,1,pointstop,1);
SetStopEndofday(1500);
if cnt == 1 and marketposition() == 0 then{
if marketposition(1) == 1 and highest(c,barssinceexit(1)) >= exitPrice(1)+1 and
C <= highest(C,barssinceexit(1)+1)-0.5 then{
sell("재매도");
}
if marketposition(1) == -1 and Lowest(c,barssinceexit(1)) <= exitPrice(1)-1 and
C >= Lowest(C,barssinceexit(1)+1)+0.5 then{
buy("재매수");
}
}
즐거운 하루되세요
> 디모데 님이 쓴 글입니다.
> 제목 : 수식문의
> 장시작 후 시가+1포인트면 매수
장시작 후 시가- 1포인트면 매도
(손절)
1포인트 손절
(트레일링스탑)
1포인트 이익 확정 후 0.5포인트 내려오면 손절
(재진입)
청산 후 청산시점에서 1포인트 이상 상승 후 최고점에서 다시 50% 내려올 때 재매도
청산 후 청산시점에서 1포인트 이상 하락 후 최저점에서 다시 50% 올라갈 때 재매수
종가청산
감사합니다.
디모데
2006-12-28 00:57:54
제가 여쭤본건 재진입시 최고/저점 대비 50%하락 혹은 상승일때를 말씀드린건데 짜주신 수식은 최고/저점 대비 0.5포인트로 짜주신거 아닌가요? %로 하는 방법을 알려주시면 감사하겠습니다.
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 수식문의
> 안녕하세요
예스스탁입니다.
문의하신 식은 다음과 같습니다.
var :cnt(0);
if date != date[1] then
cnt = 0;
if marketposition() == 0 and dayindex() > 0 then{
if C >= dayopen()+1 and cnt < 1 then{
buy("매수");
cnt = 1;
}
if C <= dayopen()-1 and cnt < 1 then{
sell("매도");
cnt = 1;
}
}
setstoploss(1,pointstop);
SetStopTrailing(0.5,1,pointstop,1);
SetStopEndofday(1500);
if cnt == 1 and marketposition() == 0 then{
if marketposition(1) == 1 and highest(c,barssinceexit(1)) >= exitPrice(1)+1 and
C <= highest(C,barssinceexit(1)+1)-0.5 then{
sell("재매도");
}
if marketposition(1) == -1 and Lowest(c,barssinceexit(1)) <= exitPrice(1)-1 and
C >= Lowest(C,barssinceexit(1)+1)+0.5 then{
buy("재매수");
}
}
즐거운 하루되세요
> 디모데 님이 쓴 글입니다.
> 제목 : 수식문의
> 장시작 후 시가+1포인트면 매수
장시작 후 시가- 1포인트면 매도
(손절)
1포인트 손절
(트레일링스탑)
1포인트 이익 확정 후 0.5포인트 내려오면 손절
(재진입)
청산 후 청산시점에서 1포인트 이상 상승 후 최고점에서 다시 50% 내려올 때 재매도
청산 후 청산시점에서 1포인트 이상 하락 후 최저점에서 다시 50% 올라갈 때 재매수
종가청산
감사합니다.
예스스탁 예스스탁 답변
2006-12-28 11:30:01
안녕하세요
예스스탁입니다.
수정하여 올려드립니다.
var :cnt(0);
if date != date[1] then
cnt = 0;
if marketposition() == 0 and dayindex() > 0 then{
if C >= dayopen()+1 and cnt < 1 then{
buy("매수");
cnt = 1;
}
if C <= dayopen()-1 and cnt < 1 then{
sell("매도");
cnt = 1;
}
}
setstoploss(1,pointstop);
SetStopTrailing(0.5,1,pointstop,1);
SetStopEndofday(1500);
if cnt == 1 and marketposition() == 0 then{
if marketposition(1) == 1 and highest(c,barssinceexit(1)) >= exitPrice(1)+1 and
C <= highest(C,barssinceexit(1)+1)-abs(highest(c,barssinceexit(1))-exitPrice(1))*0.5 then{
sell("재매도");
}
if marketposition(1) == -1 and Lowest(c,barssinceexit(1)) <= exitPrice(1)-1 and
C >= Lowest(C,barssinceexit(1)+1)+abs(lowest(c,barssinceexit(1))-exitPrice(1))*0.5 then{
buy("재매수");
}
}
즐거운 하루되세요
> 디모데 님이 쓴 글입니다.
> 제목 : Re : Re : 수식문의
>
제가 여쭤본건 재진입시 최고/저점 대비 50%하락 혹은 상승일때를 말씀드린건데 짜주신 수식은 최고/저점 대비 0.5포인트로 짜주신거 아닌가요? %로 하는 방법을 알려주시면 감사하겠습니다.
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 수식문의
> 안녕하세요
예스스탁입니다.
문의하신 식은 다음과 같습니다.
var :cnt(0);
if date != date[1] then
cnt = 0;
if marketposition() == 0 and dayindex() > 0 then{
if C >= dayopen()+1 and cnt < 1 then{
buy("매수");
cnt = 1;
}
if C <= dayopen()-1 and cnt < 1 then{
sell("매도");
cnt = 1;
}
}
setstoploss(1,pointstop);
SetStopTrailing(0.5,1,pointstop,1);
SetStopEndofday(1500);
if cnt == 1 and marketposition() == 0 then{
if marketposition(1) == 1 and highest(c,barssinceexit(1)) >= exitPrice(1)+1 and
C <= highest(C,barssinceexit(1)+1)-0.5 then{
sell("재매도");
}
if marketposition(1) == -1 and Lowest(c,barssinceexit(1)) <= exitPrice(1)-1 and
C >= Lowest(C,barssinceexit(1)+1)+0.5 then{
buy("재매수");
}
}
즐거운 하루되세요
> 디모데 님이 쓴 글입니다.
> 제목 : 수식문의
> 장시작 후 시가+1포인트면 매수
장시작 후 시가- 1포인트면 매도
(손절)
1포인트 손절
(트레일링스탑)
1포인트 이익 확정 후 0.5포인트 내려오면 손절
(재진입)
청산 후 청산시점에서 1포인트 이상 상승 후 최고점에서 다시 50% 내려올 때 재매도
청산 후 청산시점에서 1포인트 이상 하락 후 최저점에서 다시 50% 올라갈 때 재매수
종가청산
감사합니다.
다음글
이전글