不好意思,剛學習XS 請教一下我寫的OBV
input: MAOBV1(26);
SetInputName(1, "天數");
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;
Plot1(obvolume, "OBV");
運作是正常的
那麼想請教,如果我要標示今天的OBV創了近期XX天新高有辦法寫嗎?
2 評論