当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺源码:金叉缠论+主力拉升+穿云第三箭

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

金叉缠论 --- 趋势线、次金叉、放量金叉、暴量:

DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),colorwhite,LINETHICK1;

DEA  : EMA(DIFF,M),LINETHICK1;
中心:0 ,colorgray,LINETHICK1;
多头区:IF( 2*(DIFF-DEA) >中心 AND 2*(DIFF-DEA) > 0,2*(DIFF-DEA), DRAWNULL  ), colorred,LINETHICK2;
空头区:IF( 2*(DIFF-DEA) < 中心 AND 2*(DIFF-DEA)< 0,2*(DIFF-DEA),DRAWNULL  ), colorgreen,LINETHICK2;
建仓:=DIFF,牛熊,colorwhite,LINETHICK1;
DRAWTEXT(CROSS(DIFF,0),-0.03,'建仓'), colorred;
次金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
DRAWTEXT(次金叉,DIFF,'次叉') ,coloryellow;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
放量金叉=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
DRAWTEXT(放量金叉,-0.11,'金叉'),colormagenta;
DRAWICON(放量金叉,DEA*0.30,1) ;
A1=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
底背=DRAWLINE(A1=0,DEA,底背离,DEA,0),colorwhite,LINETHICK4;
DRAWTEXT(底背离,DIFF,' 底背离') ,colorlired;
A2=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
顶背=DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorwhite,LINETHICK4;
DRAWTEXT(顶背离,DEA,'顶背离') ,colorwhite;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),
VOL/2)),colorred, LINETHICK0;
卖量:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),coloryellow,LINETHICK0;
进出量:买量+卖量,colormagenta;
 



主力拉升:

LC:=REF(CLOSE,1);

RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
卖点雷达:CROSS(85,RSI1)*30;
DRAWTEXT(CROSS(85,RSI1),80,'顶');
Varb:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
Varc:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
Vard:=BARSCOUNT(CLOSE);
买点雷达:(Varb< 20 AND Varc< 25 AND Vard> 50 AND AR<70 AND VOL<VOL[1] AND VOL[1]<VOL[2] AND VOL[2]<VOL[3])*30;
DRAWTEXT(CROSS(RSI1,25),-100,'底');
主力:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5;
散户:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5;
DRAWTEXT(CROSS(主力,散户) AND 主力<-10,-60,'升');
DRAWICON(CROSS(主力,散户) AND 主力<-10 AND 散户>REF(散户,1) OR CROSS(主力,散户) AND 散户<-35 ,-15,222);
DRAWTEXT(CROSS(RSI1,20)AND 散户<-20 AND 买点雷达 ,-60,'底');
正负量比:1200*(WINNER(C)-WINNER(O));
STICKLINE(100*V/CAPITAL>= 3 AND 100*V/CAPITAL<7,100*V/CAPITAL*2,100,7,0);
STICKLINE(100*V/CAPITAL>= 7,100,100*V/CAPITAL*2,7,0);
 



穿云第三箭(顶尖财经 股票学院: http://58188.com):

MA1:=MA(C,20);

MA2:=MA(C,30);
MA3:=MA(C,60);
A1:=O<MA1 OR O<MA2 OR O<MA3;
A2:=C>MAX(MA1,MAX(MA2,MA3));
A3:=V/MA(V,30)>1.2;
A4:=C/REF(C,1)>1.049;
穿云第三箭:A1 AND A2 AND A3 AND A4;
 

上一篇:同花顺源码:妖股暴力+神奇布林均线+高低组合指标

下一篇:同花顺源码:奖金海洋寻底+波段+反转888