同花顺选股公式
源码
RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
FASTK:=SMA(RSV,3,1);
K:SMA(FASTK,3,1);
D:SMA(K,5,1),colorwhite;
A1:=LLV(LOW,999999);
A2:=HHV(HIGH,999999);
A3:=100/(A2-A1);
80,POINTDOT,linethick2;
20,POINTDOT,linethick2;
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
EMA(EMA(EMA(HIGH,5),5),4),colorwhite;
反弹: 0.9,coloryellow,linethick2;
多空:0.85,color00ff00;
止赢: 1.1,colorred;
获利: 1.05,colorf00ff0;
回挡: 0.95, color00ff00 ;
止赢2:EMA(EMA(EMA(HIGH,5),5),4)*1.15,coloryellow;
var1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
var2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
STICKLINE(var1,C,O,6,0),coloryellow,linethick2;
STICKLINE(var1,C,O,3,0),coloryellow,linethick2;
STICKLINE(var1,H,L,1,0),coloryellow,linethick2;
STICKLINE(var2,C,O,6,0),colorff00ff,linethick2;
STICKLINE(var2,C,O,3,0),colorff00ff,linethick2;
STICKLINE(var2,H,L,1,0),colorff00ff,linethick2;
y:=CLOSE/REF(CLOSE,1)>1.07;
x:=VOL>MA(VOL,8);a1:=y AND x;
攻击涨停:IF(a1,6,0),colorff3399;
K1:=BARSLAST(L>REF(H,1) AND C/O>1.05);
K2:=L<REF(H,K1+1) AND COUNT(L<REF(H,K1+1),K1)=1;
缺口回补:IF(K2,6,0),colorffcc66;
zdf:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(zdf>9.5,O,C,6,0),colorred;
STICKLINE(zdf<-9.5,O,C,6,0),colorblue;
ty:=C;
hd:=FILTER(BACKSET(FILTER(REF(ty,10)=HHV(ty,2*10+1),10),10+1),10);
ld:=FILTER(BACKSET(FILTER(REF(ty,10)=LLV(ty,2*10+1),10),10+1),10);
a:=REF(C,BARSLAST(hd));
b:=REF(C,BARSLAST(ld));
t1:=BARSLAST(hd)<BARSLAST(ld) AND NOT(hd) ;
t2:=BARSLAST(hd)>BARSLAST(ld) AND NOT(ld);
波浪顶:IF(t1,a,a),colorff00ff,POINTDOT,linethick1;
STICKLINE(t1,a,a,9,0),colorff00ff;
波浪底:IF(t2,b,b),color80ff00,POINTDOT,linethick1;
上收:=C;
va1:=EMA(上收,8);
va2:=EMA(上收,20);
DRAWTEXT(CROSS(va2,va1),va1*1.10,'*止损'),coloryellow;
lc:=REF(CLOSE,1);
rsv:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
k:=SMA(rsv,3,1);
d:=SMA(k,3,1);
kk:=HHV(k,5);
dd:=HHV(d,5);
d1:=REF(d,1);{ K1:=REF(k,1);}
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.04,'★卖');