同花顺巫山顶副图指标
源码
OBV:=SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),0)/100000;
a1:=OBV-REF(OBV,1);
a:=MA(OBV,5);
b:=REF(a,1);
b5:=a1/b*10;
c1:=(b5-REF(b5,1))/REF(b5,1);
RSV2:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
K:=SMA(RSV2,5,1);
D:=SMA(K,3,1);
pp:=BARSLAST(H=HHV(H,20));
p2:=IF(H=HHV(H,20) OR pp 3,1,0);
p1:=BARSLAST(CROSS(c1,0.5));
Var13:=(LOW+HIGH+CLOSE)/3;
CB:= MA(Var13,5);
A5:= HHV(CB,20);
A2:= HHV(CB,60);
B1:= LLV(CB,20);
B2:= LLV(LOW,60)*1.02;
A3:= HHV(HIGH,60)*0.98;
短顶:REF(c1,1) 0.5 AND c1 REF(c1,1) AND H REF(H,1) AND k 30 AND k d, colorred;
ty:=IF(c1 -8 OR H/LLV(L,3) 1.5,1,0);
单阳背离:c1 0 AND c1=LLV(c1,13) AND C O AND ty=1,colorf000f0;
tu1:=IF((a5 REF(a5,1) AND REF(a5,1) REF(a5,2) )OR (REF(a5,1) REF(a5,2) AND REF(a5,2) REF(a5,3)),1,0);
tu:=IF((c1 0 AND REF(c1,1) 0 AND REF (c1,2) 0 AND COUNT(C O,3)=3 AND L REF(L,1) AND REF(L,1) REF(L,2) ) OR (c1 0 AND c1 REF(c1,1)
AND REF(C,1) REF(O,1) AND REF(C,2) REF(O,2) AND REF(C,3) REF(O,3) AND REF(L,1) REF(L,2) AND REF(L,2) REF(L,3)),1,0);
三阳背离: tu=1 AND k d AND tu1=1,coloryellow;
逃顶:k 80 AND k d AND CROSS(-0.5,c1) AND p1 5 AND p2=1,color00ff00;
顶:k 80 AND CROSS(d,k) AND CROSS(-0.5,c1) AND p1 5 AND p2=1,colorgreen;
Var11:=REF(CLOSE,1);
Var12:=SMA(MAX(CLOSE-Var11,0),6,1)/SMA(ABS(CLOSE-Var11),6,1)*100;
卖出:IF( CROSS(80,Var12),1.5,0),colorff0f00;