커뮤니티
시스템식 문의드립니다
2012-03-02 13:16:24
283
글번호 48461
안녕하세요
시스템식 문의드립니다.
질의] 아래와같은 조건식에서 추가로 Condition1안에 과거 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]);
if Condition1 or Condition2 Then buy();
Condition3 = c - o < -0.60;
Condition4 = CrossDown(C,ma(C,20)) and c - o < -0.15;
if Condition3 or Condition4 Then ExitLong();
감사합니다.
답변 1
예스스탁 예스스탁 답변
2012-03-02 16:17:11
안녕하세요
예스스탁입니다.
Condition11 = C == Lowest(L,20);
value1 = countif(Condition11,15);
Condition1 = ma(C,3) > ma(C,5) and ma(C,5) > ma(C,7) and ma(C,7) > ma(C,9) and value1[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]);
if Condition1 or Condition2 Then buy();
Condition3 = c - o < -0.60;
Condition4 = CrossDown(C,ma(C,20)) and c - o < -0.15;
if Condition3 or Condition4 Then ExitLong();
즐거운 하루되세요
> 새마귀 님이 쓴 글입니다.
> 제목 : 시스템식 문의드립니다
> 안녕하세요
시스템식 문의드립니다.
질의] 아래와같은 조건식에서 추가로 Condition1안에 과거 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]);
if Condition1 or Condition2 Then buy();
Condition3 = c - o < -0.60;
Condition4 = CrossDown(C,ma(C,20)) and c - o < -0.15;
if Condition3 or Condition4 Then ExitLong();
감사합니다.
다음글
이전글