通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
公式解读:
DIFW:= quot;.DIF#WEEK quot;(12,26,9);DEAW:= quot;macd.DEA#WEEK quot;(12,26,9);:FILTER(CROSS(DIFW,DEAW)ANDREF(DEAW,1) 0,13)ANDC O;
AA05:MA(C,5),LINETHICK3,COLOR0099CC;
五日乖离率:=(C-AA05)/AA05*100;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);
加速度5:EMA((速度5-REF(速度5,1)),3),NODRAW;
IF(BB05 30ANDAA05 REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORCYAN;
AA10:MA(C,10);AA20:=MA(C,20);
BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;
IF(BB05 0ANDAA05 REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORYELLOW;
V1:=V/MA(REF(V,1),5);V2:=INDEXV/MA(REF(INDEXV,1),5);LT:=(CAPITAL/100)/10000 =10;V0:=V1/V2;ZF:=O/REF(C,1);角05:=ATAN((EMA(C,7)/REF(EMA(C,7),1)-1)*100)*57.3;角13:=ATAN((EMA(C,13)/REF(EMA(C,13),1)-1)*100)*57.3;角34:=ATAN((EMA(C,34)/REF(EMA(C,34),1)-1)*100)*57.3;XG:LTAND角05 50AND角13 35AND角34 17ANDV0 3.5ANDZF 1ANDZF 1.05ANDC O;
AA30:MA(C,30);
ZT:=C REF(C,1)*1.095ANDC=H;T:=BARSLAST(ZT);TJ:=MAX(C,O)/MIN(C,O) 1.03;TJ1:=EVERY(TJ,T)AND(T=4ORT=5);XG:REF(TJ1,1)ANDC=HHV(MAX(C,O),REF(T,1)+1);
三拾日乖离率:(C-AA30)/AA30*100,NODRAW;
VAR1:=(AA20-AA30) REF((AA20-AA30),1)ANDAA20 REF(AA20,1)ANDAA30 REF
(AA30,1);
VAR2:=(AA30-AA20) REF((AA30-AA20),1)ANDAA20 REF(AA20,1)ANDAA30 REF
(AA30,1);
BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;
IF(BB30 15ANDAA30 REF(AA30,1),AA30,DRAWNULL),LINETHICK3,COLORFF00FF;
强势狙击:=FILTER(BB30 30ANDBB10 45ANDCROSS(BB05,60),10);
加仓:=FILTER(COUNT(CROSS(BB05,30),5) =1ANDAA05 REF(AA05,1)AND三拾日乖离率 REF(三拾日乖离率,1)ANDAA10 REF(AA10,1)
AND加速度5 REF(加速度5,1)AND速度5 REF(速度5,1),10);
清仓:=FILTER(COUNT(CROSS(30,BB05),5) =1AND(C AA30ORO AA30)AND
AA05 REF(AA05,1)AND三拾日乖离率 REF(三拾日乖离率,1)ANDAA10 REF
(AA10,1),10);
DRAWTEXT(加仓,LOW*0.98, ←加仓 ),COLORRED;
JC:=CROSS(0,五日乖离率)AND三拾日乖离率 REF(三拾日乖离率,1)AND
AA10 REF(AA10,1);
减仓:=FILTER(JC,10);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=(SMA(RSV,3,1));KK:=INTPART(SMA(RSV,3,1));DD:=INTPART(SMA(K,3,1));N:=KK+DD;预:CROSS(N,100),COLORCYAN;
MR:=COUNT(CROSS(五日乖离率,0),3) =1AND三拾日乖离率 REF(三拾日乖离率,1)ANDAA05 REF(AA05,1)AND(C/REF(C,1)-1)*100 5ANDREF(C,1) AA30;
买入:=FILTER(MR,10);
DRAWTEXT(减仓,HIGH*1.02, ←减仓 ),COLORCYAN;
DRAWTEXT(买入,LOW*0.98, ←买入 ),COLORYELLOW;
DRAWTEXT(清仓,HIGH*1.02, ←清仓 ),COLORGREEN;
DRAWTEXT(强势狙击,LOW*0.98, ←强势狙击 ),COLORYELLOW;
VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;
DRAWTEXT(MV 6ANDL =LLV(L,10),L*0.95, ←异动 ),COLORCYAN;
ZT:=C/REF(C,1) 1.095ANDC=H;TJ1:=COUNT(ZT,2) 0ANDC REF(C,1);TJ2:=REF(C,1) =REF(HHV(H,60),1);XG:TJ1ANDTJ2;
STICKLINE(VOL/CAPITAL*100 =3,0,3,5,0),COLOR600000;3,DOTLINE,COLORLIMAGENTA;:V,COLORWHITE,NODRAW;换手:VOL/CAPITAL*100,VOLSTICK;STICKLINE(换手 3,3,换手,2.7,0),COLORRED;STICKLINE(换手 10,10,换手,2.7,0),COLORGREEN;百日低换手:LLV(换手,100)=换手,NODRAW,COLORGREEN;DRAWICON(百日低换手,0,23);MA5:MA(换手,5),COLORLIBLUE;MA135:MA(换手,135),LINETHICK1,COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0,0,0, ★大于3红柱!! ),COLORRED;DRAWTEXT_FIX(ISLASTBAR,0.12,0,0, ★大于10绿柱!! ),COLOR00FF00;DRAWTEXT_FIX(ISLASTBAR,0.24,0,0, ★股价低位红柱绿柱进货!! ),COLORLIBLUE;DRAWTEXT_FIX(ISLASTBAR,0.38,0,0, ★股价高位绿柱拉高出货!! ),COLORMAGENTA;
600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);风险:EMA(猛虎,7),COLORRED;笼顶:(WINNER(120*C/100)-WINNER(100*C/100))*100,COLORGREEN;笼底:-100*(WINNER(120*C/100)-WINNER(100*C/100))+5,COLORF00FF0;底部区:=猛虎 笼顶AND猛虎 笼底;打压吸筹区:STICKLINE(底部区,猛虎+10,猛虎-10,2,0),COLOR669933;底成:=(CLOSE-MA(CLOSE,28))/MA(CLOSE,28)*100 -23;STICKLINE(底成,笼底+40,笼底-50,3,0),COLOR00FF00;DRAWTEXT(底成,笼底-40, ★:底成 ),COLOR00FF00;VARX:=LLV(LOW,75);VARX1:=HHV(HIGH,75);VARX2:=(VARX1-VARX)/100;VARX3:=SMA((CLOSE-VARX)/VARX2,20,1);VARX4:=3*VARX3-2*SMA(VARX3,15,1);VARX5:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARX6:=SMA(VARX5,3,1);VARX7:=SMA(VARX6,3,1);DBX:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;要涨:=(CROSS(DBX,-5.4)AND(8+DBX)*10 =29AND(100-VARX4) 49AND(VARX4 SUM(VARX4,20)/20ANDVARX7 REF(VARX7,1)))*10;STICKLINE(要涨,笼底-10,笼底+50,4,0),COLORBLUE;DRAWTEXT(要涨,笼底+40, ★:要涨 ),COLORBLUE;求设:风险大于笼顶,猛虎上穿风险预警
公式解读:
每日通达信公式解答:
编写要求:
前两日换手率总合大于后两日换手率总合30%以上的选股公式。
解答:
AA:=SUM(V,2);
AA REF(AA,2);