奇狐社區論壇
在這個頁面顯示本主題全部的 2 個文章

奇狐社區論壇 (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=23201)


由 cffyz168 在 2021-12-13 13:49 發表:

成交量劃線

DECK:=tradedate<>ref(tradedate,1);
DESP:=barslast(DECK);
HPCK:=v>ref(v,1) and v>refx(v,1) and DESP>0 and refx(DESP,1)>0;
HPVV:=V*HPCK;
DWCK:=HHV(HPVV,DESP+1)=HPVV and HPVV>0;
DWLEN:=DWCK*0;
IsEndK:=refx(DECK,1) or islastbar;
for i=datacount downto lbound(DWCK) do begin
if IsEndK[i] then EndK:=i;
if DWCK[i] then DWLEN[i]:=EndK-i;
end;
VERTLINE(DWCK) color777777 linedot;
DRAWSL(DWCK,C,0,DWLEN,3) pxdn2;
請問版主,這個程式若要使用在主圖日線級數的成交量有創新高的,該怎麼修正,謝謝


由 cgjj 在 2021-12-13 14:02 發表:

回覆: 成交量劃線

引用:
最初由 cffyz168 發表
DECK:=tradedate<>ref(tradedate,1);
DESP:=barslast(DECK);
HPCK:=v>ref(v,1) and v>refx(v,1) and DESP>0 and refx(DESP,1)>0;
HPVV:=V*HPCK;
DWCK:=HHV(HPVV,DESP+1)=HPVV and HPVV>0;
DWLEN:=DWCK*0;
IsEndK:=refx(DECK,1) or islastbar;
for i=datacount downto lbound(DWCK) do begin
if IsEndK[i] then EndK:=i;
if DWCK[i] then DWLEN[i]:=EndK-i;
end;
VERTLINE(DWCK) color777777 linedot;
DRAWSL(DWCK,C,0,DWLEN,3) pxdn2;
請問版主,這個程式若要使用在主圖日線級數的成交量有創新高的,該怎麼修正,謝謝



這公式是寫給分線專用的!!!
不適用於日線


全部時間均為台灣時間, 現在時間為16:16
在這個頁面顯示本主題全部的 2 個文章


Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.

簡愛洋行 製作 Copyright 2003-. All Rights Reserved.