커뮤니티

수식부탁드립니다.

프로필 이미지
아키
2015-09-16 13:11:46
125
글번호 90383
답변완료

첨부 이미지

var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } if stime < 095900 then{ var1 = dayhigh; var2 = daylow; } if stime >= 095900 and count < 1 and stime < 150000 Then{ buy("b",AtStop,var1); sell("s",AtStop,var2); } SetStopProfittarget(0.5,PointStop); SetStopLoss(0.5,PointStop); SetStopEndofday(145900); ------------ 위의 수식은 일정시간 9시~9시59분 최고 최저가에 터치시 바로진입하는건데, 제가 알고싶은것은. 최고 최저가에 터치하면 그시점에서 0.3위로 매수, 0.3아래로 매도 진입을 하고싶은데, 어떤식으로 수식을 짜야할까요 ------- 그림설명 해놨습니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-09-16 14:42:23

안녕하세요 예스스탁입니다. 수식안에서는 주문가격을 지정할수 없습니다. 그러므로 특정가격을 터치할때 그 가격+-N값으로 주문을 내게 작성할수는 없습니다. 최고가+0.3,최저가-0.3을 터치할때 신호가 발생하고 주문이 나가게 뿐이 작성이 되지 않습니다. var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } if stime < 095900 then{ var1 = dayhigh; var2 = daylow; } if stime >= 095900 and count < 1 and stime < 150000 Then{ buy("b",AtStop,var1+0.3); sell("s",AtStop,var2-0.3); } SetStopProfittarget(0.5,PointStop); SetStopLoss(0.5,PointStop); SetStopEndofday(145900); 즐거운 하루되세요 > 아키 님이 쓴 글입니다. > 제목 : 수식부탁드립니다. > var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } if stime < 095900 then{ var1 = dayhigh; var2 = daylow; } if stime >= 095900 and count < 1 and stime < 150000 Then{ buy("b",AtStop,var1); sell("s",AtStop,var2); } SetStopProfittarget(0.5,PointStop); SetStopLoss(0.5,PointStop); SetStopEndofday(145900); ------------ 위의 수식은 일정시간 9시~9시59분 최고 최저가에 터치시 바로진입하는건데, 제가 알고싶은것은. 최고 최저가에 터치하면 그시점에서 0.3위로 매수, 0.3아래로 매도 진입을 하고싶은데, 어떤식으로 수식을 짜야할까요 ------- 그림설명 해놨습니다