M:=3;
VA:=IF(CLOSE>REF(MAX(O,C),1),vol,
IF(CLOSE
((C-L)-(H-C))/(H-L)*V));
obv:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MaoBV:MA(OBV,M);
M:=3;
VA:=IF(CLOSE>REF(MAX(O,C),1),vol,
IF(CLOSE
((C-L)-(H-C))/(H-L)*V));
obv:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MaoBV:MA(OBV,M);