조건: 분봉에서 2개봉 이상 매수볼륨이 매도볼륨보다 40%많은 종목을 검색이 조건값인데
파워종목검색을 돌려보면
결과값에는 40%미만인 종목과 매도볼륨이 더 많은 종목 등이 검색 되네요
조건값이 제대로 나오게 코드 수정 가능할까요?
Variables: total_range(0), candle_body_length(0), upper_wick_length(0), lower_wick_length(0),
percent_body_length(0), percent_upper_wick(0), percent_lower_wick(0),
buying_volume(0), selling_volume(0), buying_dominant(false),
consec_buying_dominant_bars(0);
if Volume > 0 and High > Low then
begin
total_range = High - Low;
candle_body_length = AbsValue(Close - Open);
upper_wick_length = High - MaxList(Open, Close);
lower_wick_length = MinList(Open, Close) - Low;
if total_range > 0 then
begin
percent_body_length = candle_body_length / total_range;
percent_upper_wick = upper_wick_length / total_range;
percent_lower_wick = lower_wick_length / total_range;
// IFF 함수 사용한 볼륨 계산
buying_volume = iff(Close > Open,
(percent_body_length + (percent_upper_wick + percent_lower_wick)/2) * Volume,
((percent_upper_wick + percent_lower_wick)/2) * Volume);
selling_volume = iff(Close < Open,
(percent_body_length + (percent_upper_wick + percent_lower_wick)/2) * Volume,
((percent_upper_wick + percent_lower_wick)/2) * Volume);
// 매수우위 판단
if selling_volume > 0 then
begin
buying_dominant = buying_volume >= selling_volume * 1.4;
end
else
begin
buying_dominant = false;
end;
// 연속 봉 계산
if buying_dominant then
begin
consec_buying_dominant_bars = consec_buying_dominant_bars[1] + 1;
end
else
begin
consec_buying_dominant_bars = 0;
end;
end;
end;
// 최종 조건
if consec_buying_dominant_bars >= 2 then
begin
Find(1);
end;
답변 1
예스스탁
예스스탁 답변
2025-08-13 10:56:38
안녕하세요
예스스탁입니다.
해당식 분봉과 일봉에서 검색해 보았지만
모두 조건이 충족하는 종목이 검색되고 있습니다.
수식도 별도로 수정해 드릴부분이 없습니다.
즐거운 하루되세요
> 허밍스타 님이 쓴 글입니다.
> 제목 : 수식 부탁드립니다.
> 조건: 분봉에서 2개봉 이상 매수볼륨이 매도볼륨보다 40%많은 종목을 검색이 조건값인데
파워종목검색을 돌려보면
결과값에는 40%미만인 종목과 매도볼륨이 더 많은 종목 등이 검색 되네요
조건값이 제대로 나오게 코드 수정 가능할까요?
Variables: total_range(0), candle_body_length(0), upper_wick_length(0), lower_wick_length(0),
percent_body_length(0), percent_upper_wick(0), percent_lower_wick(0),
buying_volume(0), selling_volume(0), buying_dominant(false),
consec_buying_dominant_bars(0);
if Volume > 0 and High > Low then
begin
total_range = High - Low;
candle_body_length = AbsValue(Close - Open);
upper_wick_length = High - MaxList(Open, Close);
lower_wick_length = MinList(Open, Close) - Low;
if total_range > 0 then
begin
percent_body_length = candle_body_length / total_range;
percent_upper_wick = upper_wick_length / total_range;
percent_lower_wick = lower_wick_length / total_range;
// IFF 함수 사용한 볼륨 계산
buying_volume = iff(Close > Open,
(percent_body_length + (percent_upper_wick + percent_lower_wick)/2) * Volume,
((percent_upper_wick + percent_lower_wick)/2) * Volume);
selling_volume = iff(Close < Open,
(percent_body_length + (percent_upper_wick + percent_lower_wick)/2) * Volume,
((percent_upper_wick + percent_lower_wick)/2) * Volume);
// 매수우위 판단
if selling_volume > 0 then
begin
buying_dominant = buying_volume >= selling_volume * 1.4;
end
else
begin
buying_dominant = false;
end;
// 연속 봉 계산
if buying_dominant then
begin
consec_buying_dominant_bars = consec_buying_dominant_bars[1] + 1;
end
else
begin
consec_buying_dominant_bars = 0;
end;
end;
end;
// 최종 조건
if consec_buying_dominant_bars >= 2 then
begin
Find(1);
end;