通达信钻石攻击踪迹选股指标公式是什么?
2016-5-3 13:59:16 股票入门 http://rumen.southmoney.com
通达信钻石攻击踪迹选股指标公式是什么?附:通达信MACD三项背离副图公式源码 南方财富网小编为您提供
【通达信钻石攻击踪迹选股指标公式】
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">攻击踪迹:=3*SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1)-2*SMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1),3,1),LINETHICK2,COLORYELLOW;
LOWV:=LLV(C,15);
HIGHV:=HHV(C,15);
RSV:=EMA((C-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
牛股1:=REF(攻击踪迹<=10,1) AND K>REF(K,1);
吸筹1:=攻击踪迹<=10;
N:=5;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK1;
牛股2:=CROSS(VAR1,8);
吸筹2:=VAR1<=8;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=IF(MA(CLOSE,34),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸筹3:=CROSS(VAR9>20,0.5);
N1:=9;
M1:=3;
M2:=3;
P:=9;
快线:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
慢线:=SMA(快线,M1,1);
空:=SMA(慢线,M2,1);
牛股3:=BARSLAST(CROSS(慢线,空))<P AND CROSS(慢线,空) AND 慢线<20;
攻击:=IF(CROSS(牛股1,0.5) OR 牛股2 OR 牛股3,58,0);
给:=EMA(C,2),COLORRED;
力:=EMA(SLOPE(C,9)*20+C,37);
买:=CROSS(给,力);
钻石启动:攻击 AND 买;
附:【通达信MACD三项背离副图公式源码】
{macd同时三背离(底背离,柱背离,积背离),机会不多,但很实用。}
MACD2:=2*(MACD.DIF-MACD.DEA); STICKLINE(MACD2>=0 AND MACD2>REF(MACD2,1),0,MACD2,1.2,0),COLOR0000A5; STICKLINE(MACD2>=0 AND MACD2<REF(MACD2,1),0,MACD2,1.2,0),COLORAA7800; STICKLINE(MACD2<0 AND MACD2<REF(MACD2,1),0,MACD2,1.2,0),COLOR00A500; STICKLINE(MACD2<0 AND MACD2>REF(MACD2,1),0,MACD2,1.2,0),COLORA500A5; DIF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIF,9); MACD:(DIF-DEA)*2,NODRAW; {MACD日线二次金叉} JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0)); 二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; DRAWTEXT(二次金叉,DEA*1.25,'零下二金'),COLORWHITE; {MACD日线底背离} A1:=BARSLAST(REF(CROSS(DIF,DEA),1)); 底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA); DRAWTEXT(底背离,DIF*0.5,'日底背'),COLORRED;A2:=BARSLAST(REF(CROSS(DEA,DIF),1)); 顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF); DRAWTEXT(顶背离,DIF*1.12,'日顶背'),COLORGREEN;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)); K:=SMA(RSV,9,3),NODRAW; D:=SMA(K,9,3),NODRAW; J:=3*K-2*D,NODRAW; M&K金共:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D); DRAWTEXT(M&K金共,DEA*1.12,'金叉共振'),COLORYELLOW; {MACD柱背离} MACD高:=HHV(MACD,5); C1:=BARSLAST(REF(CROSS(DEA,DIF),1)); E:=REF(C,C1+1)>C AND DEA>0 AND REF(MACD高,C1+1)<MACD高 AND CROSS(DEA,DIF) ; DRAWTEXT(E>0,-0.5,'柱顶背'),COLORCYAN; F:=REF(C,A1+1)>C AND DEA<0 AND REF(MACD高,A1+1)<MACD高 AND CROSS(DIF,DEA); DRAWTEXT(F>0,0.5,'柱底背'),COLORLIRED; {MACD积背离} JC:= DEA-DIF; 绿柱面积:=IF(MACD<0,SUM(MACD,BARSLAST(JC<0)),0); 红柱面积:=IF(MACD>0,SUM(MACD,BARSLAST(JC>0)),0); 本次最低价:=LLV(L,BARSLAST(JC<0)); 本次最高价:=HHV(H,BARSLAST(JC>0)); X1:=IF (MACD<0,BARSLAST(CROSS(DIF,DEA)),0); 前次绿柱面积:=REF(绿柱面积,X1+1); 前次最低价:=REF(本次最低价,X1+1); Y1:=IF((绿柱面积<0 AND ABS(绿柱面积)<ABS(前次绿柱面积) AND 本次最低价<前次最低价 ),1,0); RS1:= MACD<0 AND REF(MACD,1)<0 AND C<前次最低价 AND ABS(绿柱面积)<ABS(前次绿柱面积) AND ABS(MACD)<ABS(REF(MACD,1)); 底背驰:= IF (CROSS(DIF,DEA),REF(Y1,1),0); DRAWTEXT(底背驰,DEA*0.8,'积底背'),COLORFF80FF; X2:=IF (MACD>0,BARSLAST(CROSS(DEA,DIF)),0); 前次红柱面积:=REF(红柱面积,X2+1); 前次最高价:=REF(本次最高价,X2+1); Y2:=IF((红柱面积>0 AND 红柱面积<前次红柱面积 AND 本次最高价>前次最高价 ),1,0); RS2:= MACD>0 AND REF(MACD,1)>0 AND C>前次最高价 AND ABS(红柱面积)<ABS(前次红柱面积) AND ABS(MACD)<ABS(REF(MACD,1)); 顶背驰:= IF (CROSS(DEA,DIF),REF(Y2,1),0); DRAWTEXT(顶背驰,DEA*0.8,'积顶背'),COLORCYAN;
更多通达信指标公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。