通达信上升内径线 谦穗主图源码

[复制链接]
查看68 | 回复0 | 2021-8-20 18:18:27 | 显示全部楼层 |阅读模式

以下是通达信上升内径线 谦穗主图源码(无源码的请下载附件导入)

A1:=CONST(REF(H,N1))+(N1+1-CURRBARSCOUNT)*M1/100;

A2:=CONST(REF(H,N2))+(N2+1-CURRBARSCOUNT)*M2/100;

A3:=CONST(REF(H,N3))+(N3+1-CURRBARSCOUNT)*M3/100;

H1:IF(CURRBARSCOUNT<N1,A1,DRAWNULL);

H2:IF(CURRBARSCOUNT<N2,A2,DRAWNULL);

H3:IF(CURRBARSCOUNT<N3,A3,DRAWNULL);

STICKLINE(1,H1,MA(H1,5),0,0),COLORYELLOW;

STICKLINE(1,H2,MA(H2,5),0,0),COLORYELLOW;

STICKLINE(1,H3,MA(H3,5),0,0),COLORYELLOW;

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

STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,3,8),LINETHICK2,COLOR00FFFF;

STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,3,8),LINETHICK2,COLORGREEN;

DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'底背离'),COLOR0000FF;

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR00FFFF;

{买线:=EMA(C,2);

卖线:=EMA(SLOPE(C,21)*20+C,42);  

BU:=CROSS(买线,卖线);

SEL:=CROSS(卖线,买线);

STICKLINE(买线>=卖线,LOW,HIGH,1,0),COLORRED;

STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLOR0000AA;

STICKLINE(买线>=卖线,CLOSE,OPEN,2.5,0),COLOR0000CC;

STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000CC;

STICKLINE(买线>=卖线,CLOSE,OPEN,1.8,0),COLOR0000EE;

STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORAAAA00;

STICKLINE(买线<卖线,CLOSE,OPEN,2.5,0),COLORBBBB00;

STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORCCCC00;

STICKLINE(买线<卖线,CLOSE,OPEN,1.8,0),COLOREEEE00;

STICKLINE(买线<卖线,LOW,HIGH,1,0),COLORFFFF00;

STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,3,0),COLOR00FFFF;}

一发千钧指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),LINETHICK1,COLORFFFFFF;

谦穗临界点: MA(CLOSE,27),LINETHICK1,COLOR00FFFF;

{涨跌停K线}

STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,2.8,0),COLORF00FF0;

STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,2.8,0),COLORWHITE;

DRAWICON(IF(HHV(SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4),5)>4 AND CROSS(2,SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4)) AND C>=O,1,0),L*0.98,11);

Z:=20;

M:=32;

P1:=80;

P2:=100;

VAR111:=(C+H+O+L)/4;

压力线:XMA(VAR111,Z)*(1+P1/1000)  POINTDOT  LINETHICK3 ;

支撑线:XMA(VAR111,M)*(1-P2/1000) POINTDOT  LINETHICK3  ;

上中轨:压力线-(压力线-支撑线)*0.33   POINTDOT  LINETHICK3  COLORLIGRAY;

下中轨:支撑线+(压力线-支撑线)*0.33   POINTDOT LINETHICK3 COLORGRAY;

AA:压力线*1.008 POINTDOT  LINETHICK4 COLORGRAY;

BB:支撑线*0.992 POINTDOT  LINETHICK4  COLORGRAY;

XG5:=CROSS(C ,支撑线) OR (L<支撑线 AND C>支撑线);

DRAWICON (XG5,L*0.9998,23),COLORRED;

工作线:=EXPMA(CLOSE,12),COLORRED,LINETHICK0;

生命线:=EXPMA(CLOSE,50),COLORMAGENTA,LINETHICK0;

{等待:=IF(MA3>工作线,工作线,MA3);

IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK0,COLOR00FFFF;

IF(工作线>REF(工作线,1),工作线,DRAWNULL),LINETHICK0,COLOR0000FF;

IF(工作线<REF(工作线,1),工作线,DRAWNULL),COLOR00FF00;

IF(生命线>REF(生命线,1),生命线,DRAWNULL),LINETHICK0,COLORFF00FF;

IF(生命线<REF(生命线,1),生命线,DRAWNULL),COLOR669933; }

XG1:=CROSS(C,工作线) AND CROSS(C,生命线);

XG2:=CROSS(工作线,生命线);

XG3:=CROSS(C,工作线) AND XG2 ;

XG4:=CROSS(C,工作线) AND XG5;

DRAWTEXT(XG1,L*0.9998,''),COLORRED;

DRAWICON(XG3,L*0.9998,5),COLORRED;

DRAWTEXT (XG4,L*0.998, '【重点关注】'),COLORRED;

DRAWTEXT (XG4,L*0.95, '【稳抓黑马】'),COLORRED;

N:=10;

T1:=CONST(HHVBARS(V,10)),COLOR0000FF,LINETHICK1;

量能平台:IF(CURRBARSCOUNT<=N+15,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL)COLOR0000FF,LINETHICK2;

新量能点:IF(CURRBARSCOUNT=T1+1,量能平台,DRAWNULL),CIRCLEDOT,COLORLIGRAY,LINETHICK2;

DRAWTEXT(ISLASTBAR,量能平台,' 量能平台');

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2;

VAR113:=HHV(HIGH,60);

VAR114:=LLV(LOW,30);

VAR115:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;

VAR116:=(VAR113+VAR114+VAR115)/3;

VAR117:=EMA(VAR116,5);

K01:=EMA(VAR117,5)*2, COLORFF00FF;

D01:=EMA(K01,5),  COLORWHITE;

J01:=K01*3-D01*2, COLORYELLOW;

ENTERLONG:=CROSS(K01,D01);

EXITLONG:=CROSS(D01,K01);

B01:=(DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))

AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),L*0.98,1))*D01*2/3;

B02:=IF(TROUGHBARS(3,15,1)=1 AND HIGH>LOW+0.01,20,0);

超B:=L2_AMO(0,2)/10000.0;

大B:=L2_AMO(1,2)/10000.0;

中B:=L2_AMO(2,2)/10000.0;

小B:=L2_AMO(3,2)/10000.0;

超S:=L2_AMO(0,3)/10000.0;

大S:=L2_AMO(1,3)/10000.0;

中S:=L2_AMO(2,3)/10000.0;

小S:=L2_AMO(3,3)/10000.0;

TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);

大宗进:=(超B)+(大B),NODRAW;

大宗出:=(超S)+(大S),NODRAW;

非大宗进:=(中B)+(小B),NODRAW;

非大宗出:=(中S)+(小S),NODRAW;

大宗进限制:=IF((超B+大B)=0,0,大宗进);

大宗出限制:=IF((超S+大S)=0,0,大宗出);

非大宗进限制:=IF(中B+小B=0,0,非大宗进);

非大宗出限制:=IF(中S+小S=0,0,非大宗出);

主力净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;

散户净流入:=(中B+小B)-(中S+小S),COLORRED,NODRAW;

净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),COLORRED,NODRAW;

必买:=(B01 AND B02) AND 净流入>0;

必卖:=IF(PEAKBARS(3,15,1)=1,80,100),COLORGREEN,LINETHICK1;

QQ:=必卖=80;

B03:=((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)));

VV1:=EMA(CLOSE,60)-EMA(CLOSE,300);

VV2:=EMA(VV1,300);

VV3:=(CLOSE-(LOW,8))/((HIGH,8)-LLV(LOW,8))*100;

VV4:=SMA(VV3,2,1),NODRAW;

VV5:=SMA(VV4,2,1),NODRAW;

VV6:=CLOSE/REF(CLOSE,3)>=1.1;

VV7:=BACKSET(VV6,3);

大涨:=(VV7 AND COUNT(VV7,3)=1);

DRAWICON(必买,L-0.16,11);

DRAWICON(大涨,L-0.18,9);

DRAWICON(大涨 AND 必买,L-0.185,1);

DRAWICON(QQ,H+0.1,6);

LOWN:=5;

AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);

QY1:=BACKSET(AA1,LOWN+1);

CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);

DRAWICON(CC1,L*0.98,9);

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'出局'),COLORGREEN;

VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;

DRAWTEXT(CROSS(84,VARC),H*1.01,'逃');

 

627344399.png

627344399.png

627399497.png

627399497.png

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则