커뮤니티

아래의 CT시스템식을 예스로 변환 부탁합니다

프로필 이미지
경복궁
2007-02-21 12:31:04
978
글번호 11975
답변완료
Var1=hhv(1,high,40) var2=llv(1,low,40) var5=slowd(5,3,3) if tdate(1)<>tdate then var6=currententrynum end if if cirrententrynum<var6+2 then if ttime>0930 then if position=0 then if slowd(5,3,3)>50 and crossup(close,var1) then call buy("buy",atmarket,1) end if if slowd(5,3,3)<40 and crossdn(close,var2) then call sell("sell",atmarket,1) end if end if end if end if if position=1 then if slowd(5,3,3)<=25 and barnumsinceentry=11 then call exitlong("el1", atmarket) end if end if if position=-1 then if slowd(5,3,3,)>=75 and barnumsinceentry=11 then call exitshort("es1",atmarket) end if end if
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2007-02-21 17:58:54

안녕하세요 예스스탁입니다. 안녕하세요 예스스탁입니다. 식을 변환해 봤습니다. 어떤 용도의 함수인지 불명확한 함수가 있습니다. currententrynum 위 함수외에 식을 수정했습니다. Var1=nthhighest(1,high,40); var2=nthlowest(1,low,40); var5=StochasticsD(5,3,3); if date[1] <> date then { var6 = currententrynum; } if currententrynum < var6+2 then { if time > 0930 then { if marketposition() == 0 then { if StochasticsD(5,3,3)>50 and crossup(close,var1) then { buy("buy",atmarket,1); } if StochasticsD(5,3,3)<40 and crossdown(close,var2) then sell("sell",atmarket,1); } } } if marketposition() == 1 then { if StochasticsD(5,3,3)<=25 and barssinceentry() == 11 then { exitlong("el1", atmarket); } } if marketposition() == -1 then { if StochasticsD(5,3,3) >= 75 and barssinceentry() ==11 then { exitshort("es1",atmarket); } } 즐거운 하루되세요 > 경복궁 님이 쓴 글입니다. > 제목 : 아래의 CT시스템식을 예스로 변환 부탁합니다 > Var1=hhv(1,high,40) var2=llv(1,low,40) var5=slowd(5,3,3) if tdate(1)<>tdate then var6=currententrynum end if if cirrententrynum<var6+2 then if ttime>0930 then if position=0 then if slowd(5,3,3)>50 and crossup(close,var1) then call buy("buy",atmarket,1) end if if slowd(5,3,3)<40 and crossdn(close,var2) then call sell("sell",atmarket,1) end if end if end if end if if position=1 then if slowd(5,3,3)<=25 and barnumsinceentry=11 then call exitlong("el1", atmarket) end if end if if position=-1 then if slowd(5,3,3,)>=75 and barnumsinceentry=11 then call exitshort("es1",atmarket) end if end if