커뮤니티
추가해서 부탁염
2004-03-24 19:56:39
1087
글번호 2898
1372번 글올렸는데염..
거기에 추가루...
시간을 전일 2시30분에서 3시
당일 9시에서 9시30...9시30분에서 50분
9시30분에서 10시...10시에서 10시20분..이런식으루..
당일 3시까지 식을 만들려면 어떻게 해야 하나여..
부탁드림다
답변 1
예스스탁 예스스탁 답변
2004-03-25 09:30:54
안녕하세요..예스스탁입니다.
의도를 정확히 알지는 못하겠지만 다음과 같이 작성해 보았습니다.
[지표식]
//30분 단위 거래량누적
if stime == 090000 then var1 = 0;
if stime >= 090000 and stime < 093000 then var1 = var1+V;
if stime == 093000 then var1 = 0;
if stime >= 093000 and stime < 100000 then var1 = var1+V;
if stime == 100000 then var1 = 0;
if stime >= 100000 and stime < 103000 then var1 = var1+V;
if stime == 103000 then var1 = 0;
if stime >= 103000 and stime < 110000 then var1 = var1+V;
if stime == 110000 then var1 = 0;
if stime >= 110000 and stime < 113000 then var1 = var1+V;
if stime == 113000 then var1 = 0;
if stime >= 113000 and stime < 120000 then var1 = var1+V;
if stime == 120000 then var1 = 0;
if stime >= 120000 and stime < 123000 then var1 = var1+V;
if stime == 123000 then var1 = 0;
if stime >= 123000 and stime < 130000 then var1 = var1+V;
if stime == 130000 then var1 = 0;
if stime >= 130000 and stime < 133000 then var1 = var1+V;
if stime == 133000 then var1 = 0;
if stime >= 133000 and stime < 140000 then var1 = var1+V;
if stime == 140000 then var1 = 0;
if stime >= 140000 and stime < 143000 then var1 = var1+V;
if stime == 143000 then var1 = 0;
if stime >= 143000 then var1 = var1+V;
//20분단위 거래량 누적
if stime == 090000 then var2 = 0;
if stime >= 090000 and stime < 092000 then var2 = var2+V;
if stime == 093000 then var2 = 0;
if stime >= 093000 and stime < 095000 then var2 = var2+V;
if stime == 100000 then var2 = 0;
if stime >= 100000 and stime < 102000 then var2 = var2+V;
if stime == 103000 then var2 = 0;
if stime >= 103000 and stime < 105000 then var2 = var2+V;
if stime == 110000 then var2 = 0;
if stime >= 110000 and stime < 112000 then var2 = var2+V;
if stime == 113000 then var2 = 0;
if stime >= 113000 and stime < 115000 then var2 = var2+V;
if stime == 120000 then var2 = 0;
if stime >= 120000 and stime < 122000 then var2 = var2+V;
if stime == 123000 then var2 = 0;
if stime >= 123000 and stime < 125000 then var2 = var2+V;
if stime == 130000 then var2 = 0;
if stime >= 130000 and stime < 132000 then var2 = var2+V;
if stime == 133000 then var2 = 0;
if stime >= 133000 and stime < 135000 then var2 = var2+V;
if stime == 140000 then var2 = 0;
if stime >= 140000 and stime < 142000 then var2 = var2+V;
if stime == 143000 then var2 = 0;
if stime >= 143000 and stime < 145000 then var2 = var2+V;
plot1(var1); //30분 단위 거래량 누적 출력
plot2(var2); //20분 단위 거래량 누적 출력
> CJ_8esther 님이 쓴 글입니다.
> 제목 : 추가해서 부탁염
> 1372번 글올렸는데염..
거기에 추가루...
시간을 전일 2시30분에서 3시
당일 9시에서 9시30...9시30분에서 50분
9시30분에서 10시...10시에서 10시20분..이런식으루..
당일 3시까지 식을 만들려면 어떻게 해야 하나여..
부탁드림다