커뮤니티

전략식 문의합니다.

프로필 이미지
mosaman
2020-06-10 17:53:35
2322
글번호 139721
답변완료
그동안 Cybos Trader만 사용해서 Yestrader는 왕초보 입니다. 아래 Cybos 전략식을 Yestrader로 작성해주시면 감사하겠습니다. 몇번 도와주시면 스스로 터득할 것 같습니다. Var1= mov(close,len1,s) Var2= mov(close,len2,s) Var3= mov(close,len3,s) If Var1>var2 And CCI(Clen1)>CCI(Clen2) Then Call buy("매수") Elseif Var1<var2 And CCI(Clen3)<CCI(Clen4) Then Call sell("매도") End If
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-06-11 13:25:35

안녕하세요 예스스탁입니다. input : len1(5),len2(20),len3(60),Clen1(10),Clen2(20),Clen3(30),Clen4(40); Var1 = ma(close,len1); Var2 = ma(close,len2); Var3 = ma(close,len3); value1 = CCI(CLen1); value2 = CCI(CLen2); value3 = CCI(CLen3); value4 = CCI(CLen3); If Var1>var2 And value1 > value2 Then buy("매수"); if Var1<var2 And value3 < value4 Then sell("매도"); 즐거운 하루되세요 > mosaman 님이 쓴 글입니다. > 제목 : 전략식 문의합니다. > 그동안 Cybos Trader만 사용해서 Yestrader는 왕초보 입니다. 아래 Cybos 전략식을 Yestrader로 작성해주시면 감사하겠습니다. 몇번 도와주시면 스스로 터득할 것 같습니다. Var1= mov(close,len1,s) Var2= mov(close,len2,s) Var3= mov(close,len3,s) If Var1>var2 And CCI(Clen1)>CCI(Clen2) Then Call buy("매수") Elseif Var1<var2 And CCI(Clen3)<CCI(Clen4) Then Call sell("매도") End If