LC:=REF(C,1);
A1:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100;
A2:=SMA(MAX(C-LC,0),24,1)/SMA(ABS(C-LC),24,1)*100;
STICKLINE(A1>=A2,0.5,0,8,0),COLOR0000FF;
STICKLINE(A1>=70 AND A1>=A2 AND A1< 80,1,0,8,0),COLORFFFF00;
STICKLINE(A1>=70 AND A1>=A2 AND A1< 80,0.7,0,8,0),COLOR00FF00;
STICKLINE(A1>=70 AND A1>=A2 AND A1< 80,0.5,0,8,0),COLOR00FFFF;
STICKLINE(A1>=70 AND A1>=A2 AND A1< 80,0.3,0,8,0),COLOR000080;
STICKLINE(A1>=70 AND A1>=A2 AND A1< 80,0.1,0,8,0),COLOR0000FF;
STICKLINE(A1>=80 AND A1>A2,1.5,0,8,0),COLORFF00FF;
STICKLINE(A1>=80 AND A1>A2,1.2,0,8,0),COLORFF0000;
STICKLINE(A1>=80 AND A1>A2,1,0,8,0),COLORFFFF00;
STICKLINE(A1>=80 AND A1>A2,0.8,0,8,0),COLOR00FF00;
STICKLINE(A1>=80 AND A1>A2,0.6,0,8,0),COLOR00FFFF;
STICKLINE(A1>=80 AND A1>A2,0.4,0,8,0),COLOR000080;
STICKLINE(A1>=80 AND A1>A2,0.2,0,8,0),COLOR0000FF;
DRAWICON(A1>=70 AND A1>A2 AND V< REF(V,1) AND C< REF(C,1)*1.03,0.8,1);
STICKLINE(A1< A2,-0.5,0,8,0),COLORFFFFFF;
选股公式如下 :
LC:=REF(C,1);
A1:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100;
A2:=SMA(MAX(C-LC,0),24,1)/SMA(ABS(C-LC),24,1)*100;
选股:A1>=70 AND A1>A2 AND V< REF(V,1) AND C< REF(C,1)*1.03;