[求助]
作者:金字塔 來源:cxh99.com 發布時間:2017年02月19日
- 咨詢內容:
INPUT:N(20,10,200,10);//定義序列變量 fc 為收盤價
for i=1 to N-1 do begin
if i=1 then begin
r:=c/c[BARPOS-(i)]-1;
end else begin
r:=c[BARPOS-(i)]/c[BARPOS-(i+1)]-1;
end; a:=POW(r,2);?r如何求20日的數據和end;
- 金字塔客服:
在原來的代碼后面加上
ss:sum(a,20);