![]() |
在這個頁面顯示本主題全部的 4 個文章 |
奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- 問題交流 (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=28)
-- 求肋 (http://www.chiefox.com.tw/bbs/showthread.php?threadid=16010)
求肋
yy:=if(DATATYPE=6,weekday,if(DATATYPE=7,DAY,MONTH));
tj:=(yy-ref(yy,1)<>datediff(ref(date,1),date)) or barpos=1;;
if datacount>1 then for i=1 to datacount-1 do tj1[i]:=tj[i+1];
tj1[datacount]:=1;
老师:
请求帮肋用以上方法写出最高价,收盘价,最低价,开盘价,
回覆: 求肋
引用:
最初由 a666666 發表
yy:=if(DATATYPE=6,weekday,if(DATATYPE=7,DAY,MONTH));
tj:=(yy-ref(yy,1)<>datediff(ref(date,1),date)) or barpos=1;;
if datacount>1 then for i=1 to datacount-1 do tj1[i]:=tj[i+1];
tj1[datacount]:=1;
老师:
请求帮肋用以上方法写出最高价,收盘价,最低价,开盘价,
yy:=if(DATATYPE=6,weekday,if(DATATYPE=7,DAY,MONTH));
tj:=(yy-ref(yy,1)<>datediff(ref(date,1),date)) or barpos=1;;
if datacount>1 then for i=1 to datacount-1 do tj1[i]:=tj[i+1];
tj1[datacount]:=1;
fc:=c;fh:=h;fl:=l;fo:=o;pos:=0*close;
for i=1 to datacount do begin
if tj[i] then begin
hh:=fh[i]; ll:=fl[i]; oo:=fo[i]; p:=i;
end
else begin
fo[i]:=oo;
hh:=max(hh,fh[i]);
ll:=min(ll,fl[i]);
end;
if tj1[i] then begin
pos[(i+p)/2]:=1;
if i>1 then begin
for j=i downto 1 do begin
fc[j]:=fc[i]; fh[j]:=hh; fl[j]:=ll;
if tj[j] then break;
end;
end;
end;
end;
就是这公式
引用:
最初由 a666666 發表
yy:=if(DATATYPE=6,weekday,if(DATATYPE=7,DAY,MONTH));
tj:=(yy-ref(yy,1)<>datediff(ref(date,1),date)) or barpos=1;;
if datacount>1 then for i=1 to datacount-1 do tj1[i]:=tj[i+1];
tj1[datacount]:=1;
fc:=c;fh:=h;fl:=l;fo:=o;pos:=0*close;
for i=1 to datacount do begin
if tj[i] then begin
hh:=fh[i]; ll:=fl[i]; oo:=fo[i]; p:=i;
end
else begin
fo[i]:=oo;
hh:=max(hh,fh[i]);
ll:=min(ll,fl[i]);
end;
if tj1[i] then begin
pos[(i+p)/2]:=1;
if i>1 then begin
for j=i downto 1 do begin
fc[j]:=fc[i]; fh[j]:=hh; fl[j]:=ll;
if tj[j] then break;
end;
end;
end;
end;
就是这公式
全部時間均為台灣時間, 現在時間為16:36 | 在這個頁面顯示本主題全部的 4 個文章 |
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved.