커뮤니티
지표 및 종목검색식 부탁드립니다
2014-12-08 10:08:39
113
글번호 81144
안녕하세요
몇가지 여쭤봅니다
0 종가상으로 전일종가보다크고, 양선이고, 거래량이 3배이상인 상황이
1=> 이상황이 어제, 그제는 일어나지 않았는데 오늘은 일어났다 ====> 지표 및 종목검색식
2=> 오늘부터 10일이전동안은일어나지않았는데 오늘 지금 일어났다====> 지표 및 종목검색식
3=> 일봉과 30분봉에 적용할 수 있는 방법좀 부탁드립니다
감사합니다
답변 1
예스스탁 예스스탁 답변
2014-12-08 15:08:56
안녕하세요
예스스탁입니다.
지표식으로는 조건만족시 어떤 값을 그리게 작성해야 할지 모르겠습니다.
검색식으로 올려드립니다.
작성하셔서 적용하시면 조건만족봉의 고가에 점을찍어 표시합니다.
기간은 외부변수 처리해 드립니다.
적용하실때 N을3이나 10으로 변경하시면 됩니다.
1.검색식(일봉)
input : N(3);
condition1 = C > C[1] and C > O and V >= V[1]*3;
if condition1 == true and countif(condition1==true,N) == 1 then
plot1(H);
2. 종목검색식(일봉)
input : N(3);
condition1 = C > C[1] and C > O and V >= V[1]*3;
if condition1 == true and countif(condition1==true,N) == 1 then
find(1);
3.검색식(분봉)
input : N(3);
var : cnt(0),count(0);
condition1 = dayclose > dayclose(1) and dayClose > dayOpen and dayVolume >= dayvolume(1)*3;
count = 0;
for cnt = 0 to N-1{
if dayclose(cnt) > dayclose(cnt+1) and
dayClose(cnt) > dayOpen(cnt) and
dayVolume(cnt) >= dayvolume(cnt+1)*3 then
count = count+1;
}
if condition1 == true and count == 1 then
plot1(H);
4 종목검색식(분봉);
input : N(3);
var : cnt(0),count(0);
condition1 = dayclose > dayclose(1) and dayClose > dayOpen and dayVolume >= dayvolume(1)*3;
count = 0;
for cnt = 0 to N-1{
if dayclose(cnt) > dayclose(cnt+1) and
dayClose(cnt) > dayOpen(cnt) and
dayVolume(cnt) >= dayvolume(cnt+1)*3 then
count = count+1;
}
if condition1 == true and count == 1 then
find(1);
즐거운 하루되세요
> qaz74 님이 쓴 글입니다.
> 제목 : 지표 및 종목검색식 부탁드립니다
>
안녕하세요
몇가지 여쭤봅니다
0 종가상으로 전일종가보다크고, 양선이고, 거래량이 3배이상인 상황이
1=> 이상황이 어제, 그제는 일어나지 않았는데 오늘은 일어났다 ====> 지표 및 종목검색식
2=> 오늘부터 10일이전동안은일어나지않았는데 오늘 지금 일어났다====> 지표 및 종목검색식
3=> 일봉과 30분봉에 적용할 수 있는 방법좀 부탁드립니다
감사합니다