以下是同花顺趋势角度指标公式

//趋势角度压力支撑主图

//20151123 五线多头排列

流通股:SHGZG/10000/10000,coloryellow,NODRAW;

资本公积:GJJ/ZGB,colorgreen,NODRAW;

利润:WFPLR/ZGB,2,colormagenta,NODRAW;

净资产:MGJZC,2,colorff7f00,NODRAW;

N:=EMA((C+L+H)/3,5);

角度:((ATAN((N – REF(N,1))) * 3.14159) * 10),colorcyan,NODRAW;

SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);

AA10:MA(CLOSE,8),COLOR0000FF;

AA12:MA(CLOSE,12),colorcyan;

BB10:=((ATAN((AA10 – REF(AA10,1))) * 3.1416) * 10);

BB12:=((ATAN((AA12 – REF(AA12,1))) * 3.1416) * 10);

MA13:=MA(CLOSE,13);

STICKLINE((((AA12 <= AA10) AND (BB12 >= 1)) AND (BB10 >= 1)),AA10,AA12,4,0),COLOR0080FF;

STICKLINE((((AA12 >= AA10) AND (BB10 <= 1)) AND (BB10 <= 1)),AA10,AA12,4,0),COLOR00FF00;

X1:=(C+L+H)/3;

BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;

EMA8:=EMA(C,8);

DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,’∠45上升’),colorwhite;

压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;

支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;

AA1:=AMOUNT/V;

BB1:=L<AA1*0.9;

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;

DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;

A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);

黑马线:=EMA(A51,5);

A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;

趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));

LC:=REF(CLOSE,1);

RSI:=((SMA(MAX((CLOSE – LC),0),3,1) / SMA(ABS((CLOSE – LC)),3,1)) * 100);

VAR2:=LLV(LOW,27);

VAR3:=HHV(HIGH,34);

VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*25;

MTM:=C-REF(C,1);

DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);

//五线刚走顺

MA5:=MA(C,5);

MA10:=MA(C,10);

MA20:=MA(C,20);

MA30:=MA(C,30);

MA60:=MA(C,60);

N:=(MA5>MA10 AND MA10>MA20 AND MA20>MA30 AND MA30>MA60) AND REF(MA5>MA10 AND MA10>MA20 AND MA20>MA30 AND MA30<MA60,1);

DRAWTEXT(N,MAX(AA10,AA12)*1.5,’五线’),colormagenta;

AA:=(C*2+H+L+O)/5;

A0:=MA(C,5);

A1:=(EMA(AA,4)+MA(AA,8)+MA(AA,16))/3,colorwhite;

A2:=(EMA(AA,9)+MA(AA,18)+MA(AA,36))/3,COLORFF00FF;

A3:=(EMA(AA,13)+MA(AA,26)+MA(AA,52))/3,COLOR00FF00;

A4:=(EMA(AA,24)+MA(AA,48)+MA(AA,96))/3,COLOR0000FF;

A5:=EMA(100*(C-LLV(L,100))/(HHV(H,100)-LLV(L,100)),5);

A6:=A5/4;

A7:=MAX(MAX(A1,A2),MAX(A3,A4));

A8:=MIN(MIN(A1,A2),MIN(A3,A4));

A9:=MIN(MIN(A1,A2),A3);

A10:=MAX(MAX(A1,A2),A3);

DRAWICON(A6>22.5 AND REF(A0,1)>REF(A0,2)AND A0<REF(A0,1),H+0.2,2);

DRAWICON(CROSS(A2,A4)AND A3>REF(A3,1)AND A0>REF(A0,2)AND (A1-A4)/A4<0.02,A2,1);

DRAWICON(CROSS(A1,A4)AND CROSS(A2,A3),A1,10);

DRAWTEXT(FILTER(H>A7 AND L<A8 AND A1>REF(A1,1)AND A2>REF(A2,1)AND A4>REF(A4,2)AND (A7-A8)/A8<0.04 AND C>O AND (H-C)/(C-O)<0.4,3),压力*1.05,’穿四线’),colorred;

DRAWTEXT(LONGCROSS(A1,A3,30)AND (A4-A3)/A3<0.05 AND A10<A4,压力*1.05,’圆弧底’),Culor00aaff;

DRAWTEXT(LONGCROSS(A1,A2,15)AND CROSS(A2,A3),压力*1.05,’双交叉’),colormagenta;

DRAWTEXT((A1-A2)/A2>0.04 AND A2>A3 AND L>A1 AND O>C AND O=H,压力*1.05+0.2,’顶’),colorgreen;

DRAWTEXT(FILTER(A4>REF(A4,2)AND REF(A1,3)<REF(A3,3)AND C>O AND(A10-A9)/A9<0.005,5),压力*1.05,’三线粘合’),colorred;

//均线粘合突破选股公式

N:=35;

M:=50;

X1:=MIN(MIN(MA(C,5),MA(C,10)),MIN(MA(C,20),MA(C,30)));

X2:=MIN(X1,MA(C,40));

X3:=MAX(MAX(MA(C,5),MA(C,10)),MAX(MA(C,20),MA(C,30)));

X4:= MAX(X3,MA(C,40));

X5:=1000*(X4/X2-1)<=N;

//偏离值N=30 2%<=N<=5%; 量比M=50 1<=M<=8

均线粘合突破:=MA(C,5)>REF(MA(C,5),1) AND X5 AND CROSS(C,X4) AND 10*DYNAINFO(17)>M;

DRAWTEXT(均线粘合突破,压力*1.5,’粘合突破’),colorgreen;

//均线粘合向上发散主图和选股指标 主图指标

V1:=EMA(C,5);

V2:=EMA(C,13);

V3:=EMA(C,34);

V4:=EMA(C,55);

M1:=1000*V1/V4<=1015 AND 1000*V1/V4>=975;

M2:=1000*V2/V4<=1020 AND 1000*V2/V4>=980;

M3:=1000*V3/V4<=1015 AND 1000*V3/V4>=985;

M4:=M1 AND M2 AND M3 AND CROSS(V1,V2);

M5:=M1 AND M2 AND M3 AND CROSS(V1,V3);

粘合:=M4 OR M5;

DRAWTEXT(粘合,压力*1.05,’粘’),coloryellow;

MA1:=MA(CLOSE,5);

MA2:=MA(CLOSE,10);

MA3:=MA(CLOSE,20);

A11:=COUNT(CROSS(MA2,MA3),2)=1;

A222:=COUNT(CROSS(MA1,MA3),2)=1;

Y1:=MA1>=REF(MA1,1);

ZZ:=A11 AND A222 AND Y1;

DRAWTEXT(ZZ,压力*1.05,’金蜘蛛’),color00aaff;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。