커뮤니티

질문 드립니다.

프로필 이미지
빛고을
2004-11-02 01:41:49
897
글번호 5593
답변완료
안녕하세요, 수고 많으십니다. 아래 식은 예전에 문의드린 수식입니다. 안녕하세요 예스스탁 입니다. 문의하신 식은 다음과 같습니다. Var : value1(0), value2(0), cnt(0); array : arrayindex[99](0), arrayc[99](0),ArrayL[99](0); value1 = ma(c,4); value2 = ma(c,20); if date != date[1] then{ cnt = 0; arrayindex[cnt] = 0; arrayc[cnt] = 0; } if crossup(value1, value2) then{ cnt = cnt +1; arrayindex[cnt] = index; arrayc[cnt] = c; ArrayL[cnt] = L[6]; } if index == arrayindex[2] and c > value1 and arrayL[2] > arrayl[1] then //당일 두번째 골든 크로스 buy(); if crossdown(value1, value2) then exitlong(); ========================================================== 위 식에서 첫번째 골드가 난 저점과 두번째 골드가 난 저점이 있는데... 1.이 두 저점 사이의 봉 갯수가 10 이상이어야 한다. 는 식과 2. 첫번째 골드난 지점과 두번째 골드난 지점 사이의 봉 갯수가 10개 이상이어야 한다는 식을 위 식에다 어떻게 삽입하는지 부탁드립니다. 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2004-11-02 17:04:08

안녕하세요 예스스탁입니다. 문의하신 식에 골든과 골든사이가 10봉이상 떨어져 있을 때 신호가 나오게 했습니다. Var : value1(0), value2(0), cnt(0); array : arrayindex[99](0), arrayc[99](0),ArrayL[99](0); value1 = ma(c,4); value2 = ma(c,20); if date != date[1] then{ cnt = 0; arrayindex[cnt] = 0; arrayc[cnt] = 0; } if crossup(value1, value2) then{ cnt = cnt +1; arrayindex[cnt] = index; arrayc[cnt] = c; ArrayL[cnt] = L[6]; } if index == arrayindex[2] /*and arrayindex[1] <= arrayindex[2]+10*/ and c > value1 and arrayL[2] > arrayl[1] then //당일 두번째 골든 크로스 buy(); if crossdown(value1, value2) then exitlong(); 저점 자체는 골든때의 저가이므로 골든사이의 봉을 10봉이상 나게 하면 자동적으로 10봉이상 떨어져 있게 됩니다. 즐거운 하루되세요 > 빛고을 님이 쓴 글입니다. > 제목 : 질문 드립니다. > 안녕하세요, 수고 많으십니다. 아래 식은 예전에 문의드린 수식입니다. 안녕하세요 예스스탁 입니다. 문의하신 식은 다음과 같습니다. Var : value1(0), value2(0), cnt(0); array : arrayindex[99](0), arrayc[99](0),ArrayL[99](0); value1 = ma(c,4); value2 = ma(c,20); if date != date[1] then{ cnt = 0; arrayindex[cnt] = 0; arrayc[cnt] = 0; } if crossup(value1, value2) then{ cnt = cnt +1; arrayindex[cnt] = index; arrayc[cnt] = c; ArrayL[cnt] = L[6]; } if index == arrayindex[2] and c > value1 and arrayL[2] > arrayl[1] then //당일 두번째 골든 크로스 buy(); if crossdown(value1, value2) then exitlong(); ========================================================== 위 식에서 첫번째 골드가 난 저점과 두번째 골드가 난 저점이 있는데... 1.이 두 저점 사이의 봉 갯수가 10 이상이어야 한다. 는 식과 2. 첫번째 골드난 지점과 두번째 골드난 지점 사이의 봉 갯수가 10개 이상이어야 한다는 식을 위 식에다 어떻게 삽입하는지 부탁드립니다. 감사합니다.