编写要求:
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:MA(OBV,30);
底背离:=((LLV(LOW,20) = LOW) AND NOT((LLV(OBV,20) = OBV)));
DRAWTEXT(底背离,OBV,'底背离');
效果如123
解答:
?va:=if(close>ref(close,1),vol,-vol);
obv:=sum(if(close=ref(close,1),0,va),0);
标签: