通达信主力开口指标主图

[复制链接]
查看103 | 回复0 | 2021-8-20 07:55:42 | 显示全部楼层 |阅读模式

以下是通达信主力开口指标主图(无源码的请下载附件导入)

M1:=3;M2:=6;M3:=9;M4:=18;M5:=21;M6:=24;M7:=48;M8:=55;M9:=62;
 PBX1:(EMA(CLOSE,M1)+MA(CLOSE,M1*2)+MA(CLOSE,M1*4))/3 COLORGREEN DOTLINE;
 PBX2:(EMA(CLOSE,M2)+MA(CLOSE,M2*2)+MA(CLOSE,M2*4))/3 COLORGREEN DOTLINE;
 PBX3:(EMA(CLOSE,M3)+MA(CLOSE,M3*2)+MA(CLOSE,M3*4))/3 COLORGREEN DOTLINE;
 PBX4:(EMA(CLOSE,M4)+MA(CLOSE,M4*2)+MA(CLOSE,M4*4))/3 COLORFF9900 DOTLINE;
 PBX5:(EMA(CLOSE,M5)+MA(CLOSE,M5*2)+MA(CLOSE,M5*4))/3 COLORFF9900 DOTLINE;
 PBX6:(EMA(CLOSE,M6)+MA(CLOSE,M6*2)+MA(CLOSE,M6*4))/3 COLORFF9900 DOTLINE;
 PBX7:(EMA(CLOSE,M7)+MA(CLOSE,M7*2)+MA(CLOSE,M7*4))/3 COLORGREEN DOTLINE;
 PBX8:(EMA(CLOSE,M8)+MA(CLOSE,M8*2)+MA(CLOSE,M8*4))/3 COLORGREEN DOTLINE;
 PBX9:(EMA(CLOSE,M9)+MA(CLOSE,M9*2)+MA(CLOSE,M9*4))/3 COLORGREEN DOTLINE;
 IF(PBX1>=REF(PBX1,1),PBX1,DRAWNULL),COLORRED,LINETHICK1 DOTLINE;
 IF(PBX2>=REF(PBX2,1),PBX2,DRAWNULL),COLORRED,LINETHICK1 DOTLINE;
 IF(PBX3>=REF(PBX3,1),PBX3,DRAWNULL),COLORRED,LINETHICK1 DOTLINE;
 IF(PBX4>=REF(PBX4,1),PBX4,DRAWNULL),COLOR0080FF,LINETHICK1 DOTLINE;
 IF(PBX5>=REF(PBX5,1),PBX5,DRAWNULL),COLOR0080FF,LINETHICK1 DOTLINE;
 IF(PBX6>=REF(PBX6,1),PBX6,DRAWNULL),COLOR0080FF,LINETHICK1 DOTLINE;
 IF(PBX7>=REF(PBX7,1),PBX7,DRAWNULL),COLORFF00FF,LINETHICK1 DOTLINE;
 IF(PBX8>=REF(PBX8,1),PBX8,DRAWNULL),COLORFF00FF,LINETHICK1 DOTLINE;
 IF(PBX9>=REF(PBX9,1),PBX9,DRAWNULL),COLORFF00FF,LINETHICK1 DOTLINE;
 {涨停}
STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;
 {跌停}
STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN;
 {蓝}
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;
 STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;
 STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;
 STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;
 {红}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
 STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
 STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;
 STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
 {量比5分钟}主力量能:=(VOL+REF(V,2)+REF(V,3)+REF(V,4)+REF(V,5))/3.3 COLOR00FFFF LINETHICK1 DOTLINE;
 {量比10}市场量能:=(REF(V,6)+REF(V,7)+REF(V,8)+REF(V,9)+REF(V,10)+REF(V,11)+REF(V,12)+REF(V,13)+REF(V,14)+REF(V,15))/3.3 COLORFF9900,DOTLINE;
 QQ:=PBX1>PBX3 AND V>主力量能 AND PBX1>REF(PBX1,1);
 STICKLINE(QQ,C,O,4,0),COLOR00CCFF;

Z1A:=STRCAT(HYBLOCK,' ');
 Z2A:=STRCAT(Z1A,FGBLOCK);
 Z3A:=STRCAT(Z2A,DYBLOCK);
 Z4A:=STRCAT(Z3A,' ');
 DRAWTEXT_FIX(ISLASTBAR,0.25,0.99,0,STRCAT(Z4A,GNBLOCK)),COLORCYAN;

{T+1止赢、止损}
CC:=IF(CURRBARSCOUNT<21,CONST(REF(C,2)),DRAWNULL),COLORWHITE;
止赢:=1.05*CC,COLORYELLOW;
止损:=0.97*CC,COLORFF6EC7;
 STICKLINE(CC,CC,CC,3,1),COLORFF8918;
 STICKLINE(止赢,止赢,止赢,3,1),COLORYELLOW;
 STICKLINE(止损,止损,止损,3,1),COLORWHITE;

MA10:=MA(C,10)COLOR00FF00 LINETHICK1 DOTLINE;
 BB05:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
 IF(BB05>25,MA10,DRAWNULL),LINETHICK3,COLORFF9900 ;
 IF(BB05>35,MA10,DRAWNULL),LINETHICK3,COLORGREEN;
 IF(BB05>50,MA10,DRAWNULL),LINETHICK3,COLORRED;

819166413.jpg

819166413.jpg

回复

使用道具 举报

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

本版积分规则