커뮤니티
시스템식 문의드립니다.
2012-04-02 14:00:19
253
글번호 49625
안녕하세요
시스템식 문의드립니다.
질의] 아래와같은 조건식에서 추가로 Condition1과 Condition2, Condition3 안에 공통
으로 과거 5일에서 20일사이의 종가가 20일 최저가일때 buy금지 조건을 붙일려고 합니다.
Condition1 = ma(C,3) > ma(C,5) and ma(C,5) > ma(C,7) and ma(C,7) > ma(C,9);
Condition2 = C > highest(c,12)[1] And o < var2 and c > var2 and
!(c[6]<lowest(c,20)[7] and v>highest(v,20)[1]);
Condition3 = ma(C,5) > ma(C,10) and ma(C,20);
if Condition1 or Condition2 or Condition3 Then buy();
Condition4 = c - o < -0.60;
Condition5 = CrossDown(C,ma(C,20)) and c - o < -0.15;
if Condition4 or Condition5 Then ExitLong();
감사합니다.
답변 1
예스스탁 예스스탁 답변
2012-04-02 15:32:10
안녕하세요
예스스탁입니다.
Condition1 = ma(C,3) > ma(C,5) and ma(C,5) > ma(C,7) and ma(C,7) > ma(C,9) and countif(C==lowest(L,20),15)[5] < 1;
Condition2 = C > highest(c,12)[1] And o < var2 and c > var2 and
!(c[6]<lowest(c,20)[7] and v>highest(v,20)[1])and countif(C==lowest(L,20),15)[5] < 1;
Condition3 = ma(C,5) > ma(C,10) and ma(C,20)and countif(C==lowest(L,20),15)[5] < 1;
if Condition1 or Condition2 or Condition3 Then buy();
Condition4 = c - o < -0.60;
Condition5 = CrossDown(C,ma(C,20)) and c - o < -0.15;
if Condition4 or Condition5 Then ExitLong();
즐거운 하루되세요
> 새마귀 님이 쓴 글입니다.
> 제목 : 시스템식 문의드립니다.
> 안녕하세요
시스템식 문의드립니다.
질의] 아래와같은 조건식에서 추가로 Condition1과 Condition2, Condition3 안에 공통
으로 과거 5일에서 20일사이의 종가가 20일 최저가일때 buy금지 조건을 붙일려고 합니다.
Condition1 = ma(C,3) > ma(C,5) and ma(C,5) > ma(C,7) and ma(C,7) > ma(C,9);
Condition2 = C > highest(c,12)[1] And o < var2 and c > var2 and
!(c[6]<lowest(c,20)[7] and v>highest(v,20)[1]);
Condition3 = ma(C,5) > ma(C,10) and ma(C,20);
if Condition1 or Condition2 or Condition3 Then buy();
Condition4 = c - o < -0.60;
Condition5 = CrossDown(C,ma(C,20)) and c - o < -0.15;
if Condition4 or Condition5 Then ExitLong();
감사합니다.
다음글