https://www.xq.com.tw/xstrader/%e7%a8%8b%e5%bc%8f%e4%ba%a4%e6%98%93%e5%9c%a8%e5%9f%ba%e9%87%91%e6%8a%95%e8%b3%87%e4%b8%8a%e7%9a%84%e6%87%89%e7%94%a8%e4%b9%8b%e5%9b%9b-%e5%83%b9%e6%bc%b2%e9%87%8f%e5%a2%9e%ef%bc%88obv%e6%8c%87/
variable: obvolume(0);
if CurrentBar = 1 then
obvolume = 0
else
begin
if close > close[1] then
obvolume = obvolume[1] + volume
else
begin
if close < close[1] then
obvolume = obvolume[1] - volume
else
obvolume = obvolume[1];
end;
end;
value1=average(obvolume,20);
if obvolume crosses over value1*1.3
and GetSymbolField("tse.tw","收盤價","W")
>average(GetSymbolField("tse.tw","收盤價","W"),13)
then ret=1;
outputField1(date,"date");
outputField2(obvolume,"obv");
1 評論