커뮤니티

변환 부탁드립니다.

프로필 이미지
회원
2010-02-26 18:14:18
830
글번호 28439
답변완료
사이보스 트레이더를 보니 기본적인 퇴출전략이 있던데요. 공부하게 예스 트레이더로 변환부탁드립니다. 감사합니다. if floor< hhv(1,high,barnumsinceentry+1) then call exitlong("traillingstop", atstop, hhv(1,high,barnumsinceentry+1)*(1-0.02)) end if if entryprice*(1+0.5) < hhv(1,high,barnumsinceentry+1) then call exitlong("bigprofitstop",atstop, llv(1,low,2)) end if
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2010-03-02 08:44:45

안녕하세요 예스스탁입니다. 예스랭귀지에서는 floor는 소수부분을 내림한 정수값을 나타내게 됩니다. 하지만 대신랭귀지에 floor라는 함수나 예약어는 없습니다. 아마도 수식상 어떤 계산에 의한 혹은 외부에서 직접입력을 통한 저항대의 값이 아닌가 생각됩니다. 외부변수로 처리해 드렸습니다. input : Floor(1); if floor< NthHighest(1,high,BarsSinceEntry+1) then exitlong("traillingstop", atstop, NthHighest(1,high,BarsSinceEntry+1)*(1-0.02)); if entryprice*(1+0.5) < NthHighest(1,high,BarsSinceEntry+1) then exitlong("bigprofitstop",atstop, NthLowest(1,low,2)); 즐거운 하루되세요 > WT_mocomo 님이 쓴 글입니다. > 제목 : 변환 부탁드립니다. > 사이보스 트레이더를 보니 기본적인 퇴출전략이 있던데요. 공부하게 예스 트레이더로 변환부탁드립니다. 감사합니다. if floor< hhv(1,high,barnumsinceentry+1) then call exitlong("traillingstop", atstop, hhv(1,high,barnumsinceentry+1)*(1-0.02)) end if if entryprice*(1+0.5) < hhv(1,high,barnumsinceentry+1) then call exitlong("bigprofitstop",atstop, llv(1,low,2)) end if