同花顺四金叉主图指标
源码
z:=5;n1:=3;n2:=5;m1:=3;m2:=13;m3:=3;r:=13;
a:=(3*C+L+O+H)/6;
MAm:EMA(a,n1);
MAn:=EMA(a,n2);
PARTLINE(MAm,MAm REF(MAm,1),colorwhite,MAm REF(MAm,1),colorblue),LINETHICK1;
MAo:EMA(C,13);
PARTLINE(MAo,MAo REF(MAo,1),colorred,MAo REF(MAo,1),colorgreen),LINETHICK1;
MA34:MA(C,34);
MA55:MA(C,55),COLORFF00FF;
均线金叉:=CROSS(MAm,MAn);
AA:=COUNT(均线金叉,z)AND maM =REF(maM,1) AND MAn =REF(MAn,1)AND MAo =REF(MAo,3);
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
MAvM:=MA(主动买盘,n1);
MAvN:=MA(主动买盘,n2);
均量金叉:=CROSS(MAvM,MAvN);
AB:=COUNT(均量金叉,z);
DIFF:=EMA(CLOSE,m1) - EMA(CLOSE,m2);
DEA:= EMA(DIFF,m3);
MACD低位金叉:=CROSS(DIFF,DEA);
AC:=COUNT(MACD低位金叉,z)AND DIFF =REF(DIFF,1) AND DEA =REF(DEA,1);
RSV=(CLOSE-LLV(LOW,r))/(HHV(HIGH,r)-LLV(LOW,r))*100;
k=SMA(RSV,5,1);
d=SMA(k,3,1);
j=3*k-2*d;
KDJ低位金叉:=CROSS(K,D);
AE:=COUNT(KDJ低位金叉,z)AND K =REF(K,1) AND D =REF(D,1);
四金叉★:=AA AND AB AND AC AND AE ;
TIPTEXT(FILTER(四金叉★,4),LOW,'介入点'),coloryellow;
MA5:=MA(C,5),COLOR00FF00,LINETHICK2;
MA10:=MA(C,10),colorwhite;
MA20:=MA(C,20),COLORFF00FF;
MA30:=MA(C,30),coloryellow,LINETHICK2;
MA60:=MA(C,60);
MA120:=MA(C,120),colorred;
DTPL:=MA20 MA30 AND MA30 MA120;
QSXS:=MA30 REF(MA30,1);
BDGD:=C=HHV(C,10);
GDSJ:=BARSLAST(BDGD);
前高:=IF(GDSJ 0,REF(C,GDSJ),REF(C,GDSJ)),POINTDOT,COLOR00FF00,LINETHICK1;
TP:=CROSS(C,REF(前高,1));
突破:=TP AND COUNT(TP,5)=1,POINTDOT,COLORFF00FF,LINETHICK1;
TPSJ:=BARSLAST(突破);
HC:=CROSS(REF(前高,TPSJ+1),L) OR CROSS(REF(前高,TPSJ),C);
回踩:=HC AND TPSJ 1,COLOR00FF00,LINETHICK0;
优选:=(HC AND TPSJ 1 AND DTPL AND QSXS)*2,coloryellow,LINETHICK0;
DRAWTEXT(突破,L*0.98,'突破'),COLORFF00FF;
主力:=EMA( (CLOSE-MA(CLOSE,3))/MA(CLOSE,3),2);
散户:=EMA( (CLOSE-MA(CLOSE,20))/MA(CLOSE,20),7);
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
动能趋势线:=100*EMA((CLOSE-VAR2)/(VAR3-VAR2),4);
DRAWTEXT(CROSS(动能趋势线,70),HIGH*1.02,'风险'),colorgreen;
DRAWTEXT(CROSS(动能趋势线,80),HIGH*1.02,'减仓'),COLOR00FF00;
DRAWTEXT(CROSS(动能趋势线,87.5),HIGH*1.02,'出局'),colorwhite;
DRAWTEXT(CROSS(主力,散户) AND 主力 0 AND 散户 0,LOW*0.99,'见底'),colorred;