커뮤니티
SetStopLoss(0,Pointstop);
2009-04-18 07:49:06
972
글번호 21766
(1) 스탑로스 3 point로 셋팅
SetStopLoss(3,Pointstop);
(2) 스탑로스 해제
SetStopLoss(0,Pointstop);
를 사용해서 스탑로스를 해제한 후에
(3) 다시 스탑로스 2 point로 셋팅
SetStopLoss(2,Pointstop);
을 사용하면 켜지지 않나요?.
스탑로스를 나름대로의 에너지량에 맞게 셋팅을 계속 변경하고 싶은데.
방법 좀 알려주세요.
답변 1
예스스탁 예스스탁 답변
2009-04-20 09:01:35
안녕하세요
예스스탁입니다.
1. 각 조건별로 스탑로스를 지정하시고
마지막에 해제시켜 주시기 바랍니다.
if Condition1 == true Then
SetStopLoss(3,PointStop);
else if Condition2 == true Then
SetStopLoss(2,PointStop);
Else
SetStopLoss(0);
1. 풀어서 작성한 식이니다.
condition1이나 condition2에 조건식을 할당해 주시면 됩니다.
if Condition1 == true Then{
if MarketPosition == 1 Then
exitlong("bL1",AtStop,EntryPrice-3);
if MarketPosition == -1 Then
exitlong("bL1",AtStop,EntryPrice+3);
}
if Condition2 == true Then{
if MarketPosition == 1 Then
exitlong("bL1",AtStop,EntryPrice-2);
if MarketPosition == -1 Then
exitlong("bL1",AtStop,EntryPrice+2);
}
즐거운 하루되세요
> lalabas 님이 쓴 글입니다.
> 제목 : SetStopLoss(0,Pointstop);
>
(1) 스탑로스 3 point로 셋팅
SetStopLoss(3,Pointstop);
(2) 스탑로스 해제
SetStopLoss(0,Pointstop);
를 사용해서 스탑로스를 해제한 후에
(3) 다시 스탑로스 2 point로 셋팅
SetStopLoss(2,Pointstop);
을 사용하면 켜지지 않나요?.
스탑로스를 나름대로의 에너지량에 맞게 셋팅을 계속 변경하고 싶은데.
방법 좀 알려주세요.