커뮤니티
특정 진입에만 손절 추가시
2011-04-29 11:37:25
643
글번호 38123
안녕하세요...
다음 수식이 맞는지 확인 부탁드립니다.
If dayindex==0 and count<1 and 조건1 then {
Buy("B1");
}
If 조건2 then {
ExitLong("Xb1");
}
If dayindex>=30 and marketposition==0 and 조건3 then {
Buy("B2");
}
If dayindex>=30 and marketposition==1 and 조건4 then {
ExitLong("Xb2");
}
위와 같이 한 시스템에 두가지 진입과 청산 방법이 있다고 가정할 경우,
"B1"에 대하여만 손절을 적용하고자 한다면 (count에 관한 내용은 생략하였슴)
If dayindex==0 and count<1 and 조건1 then {
Buy("B1");
}
If 조건2 then {
ExitLong("Xb1");
}
If IsEntryname("B1") then { #
SetStopLoss(1,pointstop); #
} #
If dayindex>=30 and marketposition==0 and 조건3 then {
Buy("B2");
}
If dayindex>=30 and marketposition==1 and 조건4 then {
ExitLong("Xb2");
}
이렇게 # 부분울 추가하면 되는지요?
그리고 이때 B1은 1회만 진입하게 되어 있는데, 손절을 위와 같이 추가할 때
1회이상 진입이 발생하는 경우가 있을지요?
이상입니다.
그럼 즐거운 주말되세요 !!!
감사합니다~
답변 1
예스스탁 예스스탁 답변
2011-04-29 11:39:01
안녕하세요
예스스탁입니다.
If IsEntryname("B1") then
SetStopLoss(1,pointstop);
else
SetStopLoss(0);#해제
위와 같이 작성되어야 합니다.
B1은 식상 한번이상 발생하지 않습니다.
즐거운 하루되세요
> 새로운세상 님이 쓴 글입니다.
> 제목 : 특정 진입에만 손절 추가시
> 안녕하세요...
다음 수식이 맞는지 확인 부탁드립니다.
If dayindex==0 and count<1 and 조건1 then {
Buy("B1");
}
If 조건2 then {
ExitLong("Xb1");
}
If dayindex>=30 and marketposition==0 and 조건3 then {
Buy("B2");
}
If dayindex>=30 and marketposition==1 and 조건4 then {
ExitLong("Xb2");
}
위와 같이 한 시스템에 두가지 진입과 청산 방법이 있다고 가정할 경우,
"B1"에 대하여만 손절을 적용하고자 한다면 (count에 관한 내용은 생략하였슴)
If dayindex==0 and count<1 and 조건1 then {
Buy("B1");
}
If 조건2 then {
ExitLong("Xb1");
}
If IsEntryname("B1") then { #
SetStopLoss(1,pointstop); #
} #
If dayindex>=30 and marketposition==0 and 조건3 then {
Buy("B2");
}
If dayindex>=30 and marketposition==1 and 조건4 then {
ExitLong("Xb2");
}
이렇게 # 부분울 추가하면 되는지요?
그리고 이때 B1은 1회만 진입하게 되어 있는데, 손절을 위와 같이 추가할 때
1회이상 진입이 발생하는 경우가 있을지요?
이상입니다.
그럼 즐거운 주말되세요 !!!
감사합니다~
다음글