커뮤니티

재매수 관련 식 수정 부탁드립니다.

프로필 이미지
nadogaja
2011-08-21 13:40:10
729
글번호 42078
답변완료
var: 재매수확인(false); if crossup(c,ma(c,20)) then buy(); if crossdown(c,ma(c,20) then exitlong(); #---------------재매수------------------------# if exitDate(1) == date then{ if BarsSinceExit(1)>=1 then{ 재매수준비=true; } } if entryDate(0) != date Then{ if BarsSinceEntry(0) >= 1 then{ 재매수준비=False; } } if 재매수준비==true Then{ buy("재매수",AtStop,exitprice(1)); } 위와 같이 재매수 식을 작성했는데 주문이 제대로 나가지 않습니다. 수정부탁드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-08-22 11:46:33

안녕하세요 예스스탁입니다. 작성하신 식이 직전청산이 당일이거 직전청산가보다 높은 시세가 발생하면 재매수하고자 하시면 아래와 같이 수정하시면 됩니다. if crossup(c,ma(c,20)) then buy(); if crossdown(c,ma(c,20)) then exitlong(); if MarketPosition == 0 and ExitDate(1) == sdate and stime < 150000 Then{ buy("재매수",AtStop,exitprice(1)); } 즐거운 하루되세요 var : 재매수준비(false); if crossup(c,ma(c,20)) then buy(); if crossdown(c,ma(c,20)) then exitlong(); #---------------재매수------------------------# if exitDate(1) == date then{ if BarsSinceExit(1)>=1 then{ 재매수준비=true; } } if entryDate(0) != date Then{ if BarsSinceEntry(0) >= 1 then{ 재매수준비=False; } } if 재매수준비==true Then{ buy("재매수",AtStop,exitprice(1)); } > nadogaja 님이 쓴 글입니다. > 제목 : 재매수 관련 식 수정 부탁드립니다. > var: 재매수확인(false); if crossup(c,ma(c,20)) then buy(); if crossdown(c,ma(c,20) then exitlong(); #---------------재매수------------------------# if exitDate(1) == date then{ if BarsSinceExit(1)>=1 then{ 재매수준비=true; } } if entryDate(0) != date Then{ if BarsSinceEntry(0) >= 1 then{ 재매수준비=False; } } if 재매수준비==true Then{ buy("재매수",AtStop,exitprice(1)); } 위와 같이 재매수 식을 작성했는데 주문이 제대로 나가지 않습니다. 수정부탁드립니다.