散人线主图结合-精品通达信指标公式源码分享

通达信免费指标 09-09 阅读:120 评论:0

image.png

生命线:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),45),COLORYELLOW,LINETHICK2;   

IF(C<生命线,生命线,DRAWNULL),COLORGREEN,LINETHICK2;   

AAA:=CONST(HHV(H,90));   

R1:=MA(CLOSE,1);   

R2:=MA(CLOSE,3);   

R3:=(MA(R2,1)*1);   

R4:=(MA(R2,3)*1);   

DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'B'),COLORRED;   

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

DD:=TOTALCAPITAL;   

SS1:=FINANCE(7);   

GG:=FINANCE(33);   

TH:=DYNAINFO(39);   

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);   

LC:=REF(CLOSE,1);   

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

FF:=EMA(CLOSE,3);   

MA15:=EMA(CLOSE,21);   

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.002),'S'),COLORGREEN;   

双线持币:HHV(MA(HIGH,(3)),2),LINETHICK1,COLOR00FF00;   

单线持股:LLV(MA(HIGH,(3)),1),LINETHICK1,COLOR0000FF;   

轻仓:IF(单线持股>=双线持币 AND 双线持币<生命线,单线持股,DRAWNULL),COLORYELLOW,LINETHICK1;   

减弱:IF(单线持股<双线持币,单线持股,DRAWNULL),COLORYELLOW,LINETHICK1;   

走熊:IF(单线持股<双线持币 AND 单线持股<生命线,单线持股,DRAWNULL),COLORGREEN,LINETHICK1;     

获利%:WINNER(CLOSE)*100,NODRAW,COLORRED;   

VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);   

VAR2:=CROSS(VAR1,0.9);   

VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);   

VAR4:=CROSS(VAR3,0.9);   

STICKLINE(VAR2,HIGH,HIGH*1.0001,1,0),COLORGREEN;   

STICKLINE(VAR4,LOW,LOW*0.9999,1,0),COLORRED;   

VAR5:=IF(VAR2,HIGH,IF(VAR4,LOW,0));   

PLOYLINE(VAR5,VAR5),COLORMAGENTA;   

VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),1);   

VAR7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),1);   

VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)   

AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),1);   

VAR9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),1);   

VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),1);   

VARB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)   

AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),1);   

坚定: STICKLINE(CROSS(VAR6,0.9),HIGH,HIGH*1.0001,0,0),COLORRED;   

STICKLINE(CROSS(VAR9,0.9),LOW,LOW*0.9999,0,0),COLORRED;   

犹豫: STICKLINE(CROSS(VAR7,0.9),HIGH,HIGH*1.0001,0,0),COLORYELLOW;   

STICKLINE(CROSS(VARA,0.9),LOW,LOW*0.9999,0,0),COLORYELLOW;   

等待: STICKLINE(CROSS(VAR8,0.9),HIGH,HIGH*1.0001,0,0),COLORGREEN;   

STICKLINE(CROSS(VARB,0.9),LOW,LOW*0.9999,0,0),COLORGREEN;   

压力: REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLORRED;   

STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),3,0),COLORRED;   

支撑: REF(LOW,BARSLAST(VAR4)), POINTDOT,COLORMAGENTA;   

STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),3,0),COLORMAGENTA;   

现价:CLOSE,POINTDOT,COLORWHITE;    

VAR11:=(CLOSE*2+HIGH+LOW)/4;   

SK:= EMA(VAR11,13)-EMA(VAR11,73);   

SD:= EMA(SK,2);   

{DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短线'),COLORFF66FF;}   

STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0,0),COLORRED;   

STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,2,0),LINETHICK3,COLORRED;   

转向:SAR(4,2,20),LINETHICK0;   

H均线:=(5*H+4*REF(H,1)+3*REF(H,2)+2*REF(H,3)+1*REF(H,4))/(5+4+3+2+1);   

L均线:=(5*L+4*REF(L,1)+3*REF(L,2)+2*REF(L,3)+1*REF(L,4))/(5+4+3+2+1);   

WHK涨跌分离线:=IF(C>REF(H均线,1),L均线,IF(C<REF(L均线,1),H均线,L均线));   

看多就买:C>WHK涨跌分离线,NODRAW,COLOR0000FF;   

看空全抛:C<=WHK涨跌分离线,NODRAW,COLOR00FF00;   

看空周期:=BARSLAST(看多就买);   

看多周期:=BARSLAST(看空全抛);   

开始试买:看多周期=1,COLOR00FFFF,NODRAW;   

全部抛掉:看空周期=1,COLORBLUE,NODRAW;   

A2:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));   

B2:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);   

分水岭:IF(MA(CLOSE,17)<B2,B2,MA(CLOSE,17)),COLORMAGENTA,NODRAW;   

操作线:分水岭-(EMA(C,3)-分水岭),COLORGREEN,NODRAW;   

STICKLINE(C>WHK涨跌分离线,H,L,0,0),COLORRED;   

STICKLINE(C>WHK涨跌分离线,O,C,0.5,0),COLORRED;   

STICKLINE(C>WHK涨跌分离线 AND C<O,O,C,0.5,1),COLORRED;   

STICKLINE(C<=WHK涨跌分离线,H,L,0,0),COLOR00FF00;   

STICKLINE(C<=WHK涨跌分离线,O,C,0.5,0),COLOR00FF00;   

STICKLINE(C<=WHK涨跌分离线 AND C>O,O,C,0.5,1),COLOR00FF00;   

STICKLINE(开始试买,O,(C+O)/2,2,0),COLOR00FFFF;   

STICKLINE(全部抛掉,O,(C+O)/2,2,0),COLORBLUE;   

VAR21:=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);   

VAR22:=8;    

SS:=CROSS(VAR21,VAR22);    

DRAWTEXT(SS,L*0.999,'买'),COLORRED; 


版权声明

本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!

服务热线

18020657357

微信客服

微信客服