OBV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,1);
obve:=ema(obv,3);
RSV:=(obve-LLV(obve,6))/(HHV(obve,6)-LLV(obve,6))*100;
K:SMA(RSV,2,1);
D:SMA(K,2,1);
J:3*K-2*D;
RSV1:=(obve-LLV(obve,N))/(HHV(obve,N)-LLV(obve,N))*100;
K1:SMA(RSV1,M1,1);
D1:SMA(K1,M2,1);
J1:=3*K1-2*D1;
{FILLRGN(K1,D1,K1>D1,RGB(255,0,0),K1<D1,rgb(0,255,0));}
rsv2:=(obve-LLV(obve,120))/(HHV(obve,120)-LLV(obve,120))*100;
K2:=SMA(RSV2,40,1);
D2:=SMA(K2,40,1);
dk:1.5*(k2-d2),linethick0;
stickline(dk>0,50+2*dk,50,0.8,0),colorred;
stickline(dk<0,50,50+2*dk,0.8,0),colorgreen;
黄金坑:=J<10 ;
stickline(黄金坑,J,0,5,0),coloryellow;
Var1:=hhv(c/ref(c,1),4)>1.05 and l>llv(c,4) and D<50;
选股:=if(Var1 and cross(K,D),50,0); |