以下是通达信选股指标 狙击涨停
别的地方搞来的 大家可以看看 可以当参考
公式如下:
STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,3.5,0),COLORBLUE;
STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,3.5,0),COLORCYAN;
半年开盘价:REF(O,BArslAST(MOD(MONTH,6)=0)-1),COLORLImaGENTA,LINETHICK1;
DRAWTEXT(ISLASTBAR,半年开盘价,'半年开盘价'),COLORWHITE;
VAR1:=ma(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,20);
VAR4:=MA(CLOSE,30);
VAR5:=MA(CLOSE,60);
F1:=VAR1>REF(VAR1,1);
F2:=VAR2>REF(VAR2,1);
F3:=VAR2>REF(VAR2,1);
F4:=VAR2>REF(VAR2,1);
F5:=VAR2>REF(VAR2,1);
x1:=ema(C,7);
drawtext(filter(var3andvar2andcount(x1<ref(x1,1),5)>2andx1>ref(x1,1),3),l-0.01,'短↑多'),ColorFFFFFF;
LC:=REF(CLOSE,1);
rsi:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;
DRAWTEXT(crOSS(75,RSI),HIGH*1.035,''),Color00FF00;
B1:=REF(CLOSE,1);B2:=REF(CLOSE,2);B3:=REF(CLOSE,3);B4:=REF(CLOSE,4);
CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);
STICKLINE(CLOSE=CMAXAND(B1>=B2ORB1>=B3)ORB1=CMAXAND(B2=CMINORB3=CMIN)ANDCLOSE>=B2OR
B2=CMAXANDB3=CMINANDCLOSE>=B1ORB3=CMAXANDCLOSE>=B1ANDCLOSE>=B2,B1,CLOSE,8,0),COLOR000099;
STICKLINE(CLOSE=CMAXAND(B1>=B2ORB1>=B3)ORB1=CMAXAND(B2=CMINORB3=CMIN)ANDCLOSE>=B2OR
B2=CMAXANDB3=CMINANDCLOSE>=B1ORB3=CMAXANDCLOSE>=B1ANDCLOSE>=B2,B1,CLOSE,5,0),COLOR0000BB;
STICKLINE(CLOSE=CMAXAND(B1>=B2ORB1>=B3)ORB1=CMAXAND(B2=CMINORB3=CMIN)ANDCLOSE>=B2OR
B2=CMAXANDB3=CMINANDCLOSE>=B1ORB3=CMAXANDCLOSE>=B1ANDCLOSE>=B2,B1,CLOSE,3,0),COLOR0000FF;
STICKLINE(CLOSE=CMAXANDB1=CMIN,B2,CLOSE,8,0),COLOR000099;
STICKLINE(CLOSE=CMAXANDB1=CMIN,B2,CLOSE,5,0),COLOR0000BB;
STICKLINE(CLOSE=CMAXANDB1=CMIN,B2,CLOSE,3,0),COLOR0000FF;
STICKLINE(CLOSE=CMINAND(B1<B2ORB1<B3)ORB1=CMINAND(B2=CMAXORB3=CMAX)ANDCLOSE<B2OR
B2=CMINANDB3=CMAXANDCLOSE<B1ORB3=CMINANDCLOSE<B1ANDCLOSE<B2,B1,CLOSE,8,0),COLOR009900;
STICKLINE(CLOSE=CMINAND(B1<B2ORB1<B3)ORB1=CMINAND(B2=CMAXORB3=CMAX)ANDCLOSE<B2OR
B2=CMINANDB3=CMAXANDCLOSE<B1ORB3=CMINANDCLOSE<B1ANDCLOSE<B2,B1,CLOSE,5,0),COLOR00BB00;
STICKLINE(CLOSE=CMINAND(B1<B2ORB1<B3)ORB1=CMINAND(B2=CMAXORB3=CMAX)ANDCLOSE<B2OR
B2=CMINANDB3=CMAXANDCLOSE<B1ORB3=CMINANDCLOSE<B1ANDCLOSE<B2,B1,CLOSE,3,0),COLOR00FF00;
STICKLINE(B1=CMAXANDCLOSE=CMIN,B2,CLOSE,8,0),COLOR009900;
STICKLINE(B1=CMAXANDCLOSE=CMIN,B2,CLOSE,5,0),COLOR00BB00;
STICKLINE(B1=CMAXANDCLOSE=CMIN,B2,CLOSE,3,0),COLOR00FF00;
STICKLINE(B1=CMINANDCLOSE>=B2OR(B2=CMINANDB1<=B3OR
B3=CMINANDB1<=B2)ANDB2<B4ANDCLOSE>=B1,B1,B2,8,0),COLORFF9900;
STICKLINE(B1=CMINANDCLOSE>=B2OR(B2=CMINANDB1<=B3OR
B3=CMINANDB1<=B2)ANDB2<B4ANDCLOSE>=B1,B1,B2,5,0),COLORFFBB00;
STICKLINE(B1=CMINANDCLOSE>=B2OR(B2=CMINANDB1<=B3OR
B3=CMINANDB1<=B2)ANDB2<B4ANDCLOSE>=B1,B1,B2,3,0),COLORFFFF00;
STICKLINE(B1=CMAXANDCLOSE<B2OR(B2=CMAXANDB1>B3OR
B3=CMAXANDB1>B2)ANDB2>=B4ANDCLOSE<B1,B1,B2,8,0),COLOR000099;
STICKLINE(B1=CMAXANDCLOSE<B2OR(B2=CMAXANDB1>B3OR
B3=CMAXANDB1>B2)ANDB2>=B4ANDCLOSE<B1,B1,B2,5,0),COLOR0000BB;
STICKLINE(B1=CMAXANDCLOSE<B2OR(B2=CMAXANDB1>B3OR
B3=CMAXANDB1>B2)ANDB2>=B4ANDCLOSE<B1,B1,B2,3,0),COLOR0000FF;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1);vB1:=FILTER(A1,10);C1:=BacKSET(vB1,10+1);HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);vB2:=FILTER(A2,10);C2:=BACKSET(vB2,10+1);LD:=FILTER(C2,10);
A:=REF(C,BArslAST(HD));B:=REF(C,BARSLAST(LD));
t1:=BARSLAST(HD)<BARSLAST(LD)ANDNOT(HD);
t2:=BARSLAST(HD)>BARSLAST(LD)ANDNOT(LD);
波峰:IF(t1,A,A),POINTDOT,Color00FFFF;
STICKLINE(t1,A,A,5,0),ColorFF00FF;
波谷:IF(t2,B,B),POINTDOT,Color80FF00;
STICKLINE(t2,B,B,5,0),Color80FF00;
评论(0)