"用量來判斷方向--附 HTS & TS 的程式原碼"
不管您用 5分k 或是用 15 或 30 分 k,每根 k 都會有成交量,所以技術指
標就有分成價的或是以量為基礎。
本指標就是以量為基礎的技術指標。
這觀念很簡單,就是找出某段區間成交量大量的K線,以這根K的高低
點來當做支撐與壓力分界線,算是一個滿實用的指標。
TS新增指標(Indicator)
指標不會跟著股價連動?
TS程式碼:
inputs: Length(20) ;
vars: index(0), HL(0), LL(0), value(0);
value = highest(volume,Length);
for index = 0 to Length begin
if volume[index] = value then begin
LL = low[index];
HL = high[index];
end;
end;
plot1(LL[1], "Low Line");
plot2(HL[1], "High Line");
HTS程式碼:
parameter: Length(20)
vars: index(0), HL(0), LL(0), value(0)
value = highest(volume,Length)
for index = 0 to Length
if volume[index] = value then
LL = low[index]
HL = high[index]
end if
end for
draw1(LL[1], "Low Line")
draw2(HL[1], "High Line")
此指標顯示圖形
大大,您好!
回覆刪除prarmter應是parameter才對, 否則無法檢查完成.
非常感謝指出錯誤..^^
回覆刪除已經修正了