請問有 NOBV指標的寫法?
input:length(50);
variable:OBV1(0),OBV2(0),obvolume(0);
//value1=((O*2-L-H)/(L+H))*volume ;
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=((close-low)-(high-OPEN)) / (HIGH-low) * obvolume;
OBV1=average(value1,1);
OBV2=average(value1,50);
Plot1(OBV1, "NOBV1");
Plot2(OBV2, "NOBV2");
http://blog.cnyes.com/My/stocksway/article2628009
請問這是哪邊有錯?
是不是哪有寫錯?
我要寫的是改良OBV
1 評論