当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:红线横盘,短线狙击,做空指标

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

红线横盘:

日:=200;昨前:=7;

高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.5;
上轨:REFDATE(高1,DATE),COLORGREEN,CROSSDOT,LINETHICK2;
中轨:REFDATE(H1,DATE),COLORRED,LINETHICK2;
下轨:REFDATE(低1,DATE),COLORRED,CROSSDOT,LINETHICK2;
B1:=MA(C,1);
 B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);
 SMA2:=MA(B2,3);
 A13:=EMA(CLOSE,55);
 A14:=MA(CLOSE,75);
 A15:=EMA(A14,3);
 A16:=EMA(A15,3);
 A17:=(HIGH + LOW) / 5;
 A18:=(MA(A17,4)) - (MA(A17,34));
 A19:=CROSS(A18,0);
 A20:=CROSS(0,A18);
 A21:=BARSLAST(A19);
 A22:=BARSLAST(A20);
 A23:=REF(A19,1);
 A24:=REF(A20,1);
 A25:=BARSLAST(A23);
 A26:=BARSLAST(A24);
 A27:=IF((A25 < A26),(REF((HHV(HIGH,2)),A25)),(REF((LLV(LOW,2)),A26)));
 A28:=(((REF(CLOSE,1)) <= (REF(A27,1))) AND (CLOSE > A27)) AND (A21 < A22);
 A29:=(((REF(CLOSE,1)) >= (REF(A27,1))) AND (CLOSE < A27)) AND (A22 < A21);
 A30:=A28 AND ((COUNT(A28,A21)) = 1);
 A31:=A29 AND ((COUNT(A29,A22)) = 1);
 A32:=A30 AND ((REF(BARSLAST(A31),1)) < (REF(BARSLAST(A30),1)));
 A33:=A31 AND ((REF(BARSLAST(A31),1)) > (REF(BARSLAST(A30),1)));
 DRAWTEXT(A32,SMA2*0.99,'←追啊'),COLORGREEN;
AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);
AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0);
AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);
B1万元:=VOL*CLOSE/100;
B2万元:=VOL*CLOSE/100;
B2比:=B2万元/REF(B2万元,1);
净流入万元:=(AAA2-AAA3-0.5*AAA4);
PM:=MA(净流入万元,1);
PMA:=PM/REF(PM,1)>1;
PMB:=REF(PMA,1)<1 AND PMA; 
密码:=(EMA(MA(B1万元,2),2))/100000;
二日比:=密码/REF(密码,1);
选股:=PMB AND 密码>REF(密码,1) AND 二日比>1 ;
均价线Q:=AMOUNT/V/100;
均价线2:=MA(均价线Q,3);
突破:=C>均价线2 AND 均价线2<REF(均价线2,1) AND REF(均价线2,1)<REF(均价线2,2)
AND  REF(均价线2,2)<REF(均价线2,3) AND 选股;
STICKLINE(突破,O,C,1.3,0),LINETHICK1,COLORYELLOW;
DRAWICON(突破,(H+L)/2,7);
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖跟我冲'),COLORYELLOW;
DRAWTEXT_FIX(1,0.4,1,0,'股价运行在下框或上框时,底线是买点,顶线是卖点!'),COLORGREEN;




短线狙击:

MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:=MA(CLOSE,60);
BB:=REF(INDEXC,1)<REF(INDEXC,2) AND REF(C,2)*0.95>=REF(C,1) AND REF(O,1)/REF(C,1)>=1.05
AND REF(C,1)<REF(O,1) AND C>O AND C/O>=1.05 AND C>REF(O,1)
AND REF(VOL,1)<REF(VOL,2);
DRAWTEXT(BB,6,'追!'),COLORYELLOW;
VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
VAR2:=8;
CC:=CROSS(VAR1,VAR2);
DRAWTEXT(CC,5,'狙击!'),COLOR0099FF;
STICKLINE(CC,3,6,1,0),COLORRED; 




做空指标;

用来逃顶最好了( 顶尖财经 股票学院: http://www.58188.com )


{公式名称: 做空指标}

 
VAR1:=HIGH>REF(HHV(HIGH,30),1);
VAR2:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.6 AND OPEN>CLOSE;
DYX:OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1) AND VAR1;
XH:VAR1 AND VAR2;

上一篇:通达信源码:超级拐点,买卖MACD 主力清洗,龙头股

下一篇:通达信源码:板块指数,百日就翻番,狙击通道