커뮤니티
다음 수식 무슨 차이가 있는거죠?
2003-07-16 00:00:00
660
글번호 442
1.
----------------------------------------------------------------------
Input : V_mount(5000000000), period_1(0);
Var : temp_mount(0), temp_1(0), value_1(0);
temp_mount = 0;
for temp_1 = 1 to 3
{
temp_mount = temp_mount + Volume[period_1+temp_1];
}
temp_mount = temp_mount/3*Open[period_1];
if temp_mount > V_mount then value_1 = 1;
else value_1 = 0;
Find(value_1);
----------------------------------------------------------------------
2.
----------------------------------------------------------------------
Input : V_mount(5000000000), period_1(0);
Var : temp_mount(0), temp_1(0), value_1(0);
temp_mount = 0;
for temp_1 = 1 to 3
{
temp_mount = temp_mount + DayVolume(period_1+temp_1);
}
temp_mount = temp_mount/3*DayOpen(period_1);
if temp_mount > V_mount then value_1 = 1;
else value_1 = 0;
Find(value_1);
----------------------------------------------------------------------
제 생각에는 두가지가 같은 결과를 보여야 할 것 같은데요.
2번째 수식은 종목을 검색 하질 못하더군요. 해당 데이타가 없습니다...이런식으로
궁금한것은 Day???? 시리즈 함수들입니다. 이것을 이용하여 종목 검색을 수식을 만들 경우,
의도한 대로 결과를 얻을 수가 없습니다.
무엇이 문제인지요?
답변 1
리서치팀 예스스탁 답변
2003-07-18 00:00:00
안녕하세요? 예스스탁입니다....
dayvolume()이나 기타 dayhigh() 등과 같은 데이터는 1년치가 제공되고 있는데 일간 차트를 이용해서 사용자님께서 문의하신 식들을 비교해 본 결과, 결과치가 같게 나왔습니다.
하지만, 분차트에서 두 식을 비교했을 때에는 결과가 틀리게 나왔습니다.
이유는, 하나는 단지 전봉의 거래량(V[0], V[1], V[2])을 체크하는 반면 다른 하나는
전일, 혹은 그 이전일의 거래량(dayvolume(0), dayvolume(1), dayvolume(2))을 체크했기 때문입니다.
즐거운 하루 되세요...
> 버티기 님이 쓴 글입니다.
> 제목 : 다음 수식 무슨 차이가 있는거죠?
> 1.
> ----------------------------------------------------------------------
> Input : V_mount(5000000000), period_1(0);
> Var : temp_mount(0), temp_1(0), value_1(0);
>
> temp_mount = 0;
>
> for temp_1 = 1 to 3
> {
> temp_mount = temp_mount + Volume[period_1+temp_1];
> }
> temp_mount = temp_mount/3*Open[period_1];
>
> if temp_mount > V_mount then value_1 = 1;
> else value_1 = 0;
>
> Find(value_1);
> ----------------------------------------------------------------------
>
>
> 2.
> ----------------------------------------------------------------------
> Input : V_mount(5000000000), period_1(0);
> Var : temp_mount(0), temp_1(0), value_1(0);
>
> temp_mount = 0;
>
> for temp_1 = 1 to 3
> {
> temp_mount = temp_mount + DayVolume(period_1+temp_1);
> }
> temp_mount = temp_mount/3*DayOpen(period_1);
>
> if temp_mount > V_mount then value_1 = 1;
> else value_1 = 0;
>
> Find(value_1);
> ----------------------------------------------------------------------
>
> 제 생각에는 두가지가 같은 결과를 보여야 할 것 같은데요.
>
> 2번째 수식은 종목을 검색 하질 못하더군요. 해당 데이타가 없습니다...이런식으로
>
> 궁금한것은 Day???? 시리즈 함수들입니다. 이것을 이용하여 종목 검색을 수식을 만들 경우,
>
> 의도한 대로 결과를 얻을 수가 없습니다.
>
> 무엇이 문제인지요?
다음글