커뮤니티
청산후 3봉이내 재진입금지조건
2007-07-24 13:09:28
1079
글번호 13151
안녕하세요.수고하십니다.
돌파식에서 장중에 진입을 자주 나오게 신호를 만들고 있는중인데...
시스템 적용시 피라미딩탭에서 '모든진입 허용'을하니까 청산후에 marketposition=0
이기 때문에 바로 조건만족한다고 인식하여 재진입하는데...
"청산신호 후에 3봉이 경과 할때까지 재진이을 금지하라"라른 진입제어식을 부탁드립니다.
미리 감사합니다.
//참조식
input:Hp(30),Lp(30);
var:UPCH(0),DownCH(0);
var:B(0),S(0),ch(0),MP(0);
var1=highest(h,Hp);
var2=lowest(l,LP);
var5=highest(v,hp)[1];
//var6=lowest(v,Lp);
MP=marketposition();
//messagelog(" v %.f B %.f S %.f CH %.f" , var5,B,s,CH);
if stime>=090100 and Stime< 150300 and MP==0 then
{
Buy("B",atstop,var1[1]+0.01); // 현재 시세를 검색하면서 주문 standby를 할 수 있음!
}
if stime>=090100 and stime<150300 and MP==0 then
{
sell("S",atstop,lowest(L,Lp)[1]+0.01);
}
// ***** 당일청산**********
SetStoploss(0.3,pointstop);
SetStopProfittarget(0.7,pointstop);
SetStopEndofday(1504);
답변 1
예스스탁 예스스탁 답변
2007-07-24 17:35:13
안녕하세요
예스스탁입니다.
input:Hp(30),Lp(30);
var:UPCH(0),DownCH(0),PP(0);
var:B(0),S(0),ch(0),MP(0);
var1=highest(h,Hp);
var2=lowest(l,LP);
var5=highest(v,hp)[1];
//var6=lowest(v,Lp);
MP=marketposition();
if PP < 1 then
{
if stime>=090100 and Stime< 150300 and MP==0 then
{
Buy("B",atstop,var1[1]+0.01);
}
if stime>=090100 and stime<150300 and MP==0 then
{
sell("S",atstop,lowest(L,Lp)[1]+0.01);
}
}
if IsEntryName("B") or IsEntryName("S") Then
PP = 1;
if BarsSinceExit(1) > 3 then
{
if stime>=090100 and Stime< 150300 and MP==0 then
{
Buy("BB",atstop,var1[1]+0.01);
}
if stime>=090100 and stime<150300 and MP==0 then
{
sell("SS",atstop,lowest(L,Lp)[1]+0.01);
}
}
MessageLog("%.2f",PP);
// ***** 당일청산**********
SetStoploss(0.3,pointstop);
SetStopProfittarget(0.7,pointstop);
SetStopEndofday(1504);
즐거운 하루되세요
> 히말라야 님이 쓴 글입니다.
> 제목 : 청산후 3봉이내 재진입금지조건
> 안녕하세요.수고하십니다.
돌파식에서 장중에 진입을 자주 나오게 신호를 만들고 있는중인데...
시스템 적용시 피라미딩탭에서 '모든진입 허용'을하니까 청산후에 marketposition=0
이기 때문에 바로 조건만족한다고 인식하여 재진입하는데...
"청산신호 후에 3봉이 경과 할때까지 재진이을 금지하라"라른 진입제어식을 부탁드립니다.
미리 감사합니다.
//참조식
input:Hp(30),Lp(30);
var:UPCH(0),DownCH(0);
var:B(0),S(0),ch(0),MP(0);
var1=highest(h,Hp);
var2=lowest(l,LP);
var5=highest(v,hp)[1];
//var6=lowest(v,Lp);
MP=marketposition();
//messagelog(" v %.f B %.f S %.f CH %.f" , var5,B,s,CH);
if stime>=090100 and Stime< 150300 and MP==0 then
{
Buy("B",atstop,var1[1]+0.01); // 현재 시세를 검색하면서 주문 standby를 할 수 있음!
}
if stime>=090100 and stime<150300 and MP==0 then
{
sell("S",atstop,lowest(L,Lp)[1]+0.01);
}
// ***** 당일청산**********
SetStoploss(0.3,pointstop);
SetStopProfittarget(0.7,pointstop);
SetStopEndofday(1504);
이전글