커뮤니티
두번부탁합니다
2014-04-08 18:43:56
157
글번호 74257
#강제청상시간별
if stime >= 090000 and stime < 092800 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.0,PointStop);
SetStopLoss(3,PointStop);
}
if stime >= 092800 and stime < 095600 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.5,PointStop);
SetStopLoss(1.2,PointStop);
}
if stime >= 095600 and stime < 143600 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.5,PointStop);
SetStopLoss(1.0,PointStop);
}
if stime >= 143600 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.0,PointStop);
SetStopLoss(1.0,PointStop);
}
그래도안되네요
첫09시는손절이엄뚱하계
뒤에아에는안나오네요
답변 1
예스스탁 예스스탁 답변
2014-04-09 09:36:46
안녕하세요
예스스탁입니다.
해당식 살펴봤지만 정상적으로 동작을 합니다.
강제청산도 신호타입으로 atstop이나 atlimit 종류이기 때문에
지정한 이후에 제설정되므로 아침의 첫봉은
아래 내용이 적용되고
if stime >= 143600 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.0,PointStop);
SetStopLoss(1.0,PointStop);
}
첫봉이후부터
if stime >= 090000 and stime < 092800 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.0,PointStop);
SetStopLoss(3,PointStop);
}
가 적용되게 됩니다.
14시 36분 이후에 설정값이 아침첫봉에 적용되지 않게 하시고자 하시면
14시 36분 이후는 당일 마지막봉 전까지만 적용되게 하고
마지막봉에서는 9시~9시 28분 설정이 적용되게 아래와 같이 수정하셔야 합니다.
차트의 주기에 따라 첫봉의 시간이 다르므로
사용하시는 차트의 주기에 맞게 마지막 시간 설정하셔야 합니다.
문의하신 내용 아래와 같이 작성하는 방법외에 따로 방법이 없습니다.
if stime == 151500 or (stime >= 090000 and stime < 092800) Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.0,PointStop);
SetStopLoss(3,PointStop);
}
if stime >= 092800 and stime < 095600 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.5,PointStop);
SetStopLoss(1.2,PointStop);
}
if stime >= 095600 and stime < 143600 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.5,PointStop);
SetStopLoss(1.0,PointStop);
}
if stime >= 143600 and stime < 151500 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.0,PointStop);
SetStopLoss(1.0,PointStop);
}
즐거운 하루되세요
> 큰바위얼굴 님이 쓴 글입니다.
> 제목 : 두번부탁합니다
> #강제청상시간별
if stime >= 090000 and stime < 092800 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.0,PointStop);
SetStopLoss(3,PointStop);
}
if stime >= 092800 and stime < 095600 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.5,PointStop);
SetStopLoss(1.2,PointStop);
}
if stime >= 095600 and stime < 143600 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.5,PointStop);
SetStopLoss(1.0,PointStop);
}
if stime >= 143600 Then{
SetStopTrailing(0.4,1.0,PointStop,0);
SetStopProfittarget(6.0,PointStop);
SetStopLoss(1.0,PointStop);
}
그래도안되네요
첫09시는손절이엄뚱하계
뒤에아에는안나오네요
다음글
이전글