커뮤니티
질문 있습니다
2006-08-24 18:21:12
1016
글번호 10693
setstoptrailing에서 진입조건이 다른경우 별도의 청산식을 적용하려고 할 경우
if marketposition()==1 then{
if isentryname("buy1") then
setstoptrailing(0.5, 1, pointstop);
else if isentryname("buy2") then
setstoptrailing(0.5,2,pointstop);
else
setstoptrailing(0,0);
}
if marketposition()==-1 then{
if isentryname("sell1") then
setstoptrailing(0.5, 1, pointstop);
else if isentryname("sell2") then
setstoptrailing(0.5,2,pointstop);
else
setstoptrailing(0,0);
}
이렇게 하면 되나요
답변 1
예스스탁 예스스탁 답변
2006-08-25 09:02:41
안녕하세요
예스스탁입니다.
불필요한 부분이 있어 수식을 수정했습니다.
if isentryname("buy1") then
setstoptrailing(0.5, 1, pointstop);
else if isentryname("buy2") then
setstoptrailing(0.5,2,pointstop);
else if isentryname("sell1") then
setstoptrailing(0.5, 1, pointstop);
else if isentryname("sell2") then
setstoptrailing(0.5,2,pointstop);
else
setstoptrailing(0,0);
즐거운 하루되세요
> 공부중 님이 쓴 글입니다.
> 제목 : 질문 있습니다
> setstoptrailing에서 진입조건이 다른경우 별도의 청산식을 적용하려고 할 경우
if marketposition()==1 then{
if isentryname("buy1") then
setstoptrailing(0.5, 1, pointstop);
else if isentryname("buy2") then
setstoptrailing(0.5,2,pointstop);
else
setstoptrailing(0,0);
}
if marketposition()==-1 then{
if isentryname("sell1") then
setstoptrailing(0.5, 1, pointstop);
else if isentryname("sell2") then
setstoptrailing(0.5,2,pointstop);
else
setstoptrailing(0,0);
}
이렇게 하면 되나요