通达信成交量买卖线主图源码

[复制链接]
查看133 | 回复0 | 2021-8-19 18:09:14 | 显示全部楼层 |阅读模式

以下是通达信成交量买卖线主图源码(无源码的请下载附件导入)

AMV0:=VOL*(O+C)/2;
BS:SUM(AMV0,88)/SUM(VOL,88),COLORMAGENTA,LINETHICK3;
CG:MA(C,17),COLORCYAN,LINETHICK3;
FL:HHV(CG,2),COLORGREEN;
FS:CG-(FL-CG),COLORYELLOW,LINETHICK2;
MA6:MA(C,6),COLORWHITE,LINETHICK0;
MA18:MA(C,18),COLOR0099FF,LINETHICK0;
买线:=EMA(C,2); 
卖线:=EMA(SLOPE(C,21)*20+C,42);   
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),COLORRED; 
STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLORRED; 
{STICKLINE(买线<卖线,LOW,HIGH,0.1,0),COLOR148A14;}
STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLOR148A14; 
F:=100*(C-REF(C,1))/REF(C,1); 
今小昨:=IF(C<0,1,0); 
P1:=今小昨; 
今小前:=IF(C<0,1,0); 
P2:=今小前; 
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),OPEN,CLOSE,3,0),COLORMAGENTA; 
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),H,L,0.3,0),COLORMAGENTA; 
STICKLINE(TROUGHBARS(3,3,1)=0 AND HIGH>LOW+0.01,O,C,3,0),COLORBLUE ;
STICKLINE(TROUGHBARS(3,3,1)=0 AND HIGH>LOW+0.01,H,L,0.3,0),COLORBLUE ;

720222813.jpg

720222813.jpg

回复

使用道具 举报

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

本版积分规则