通达信趋势,买卖,趋势买卖主副图同发源码

[复制链接]
查看56 | 回复0 | 2022-7-24 04:24:42 | 显示全部楼层 |阅读模式

趋势买卖源码

H1:EMA(C,8);
 H2:EMA(H1,20);
 VAR1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;
 VAR2:=SMA(VAR1,5,1);
 VAR3:=SMA(VAR2,8,1);
 VAR4:=CROSS(VAR2,VAR3) AND VAR3< 20;
 VAR5:=C>LLV(C,60)*1.13 AND VAR4;
 VAR6:=IF(C>200,VAR4,VAR5);
 STICKLINE(H1>H2,H1,H2,0,1),COLORRED;
 STICKLINE(H1< H2,H1,H2,0,1),COLORGREEN;
阻力:CLOSE*1.17 LINETHICK1 COLORWHITE;
强阻力:CLOSE*1.2 LINETHICK1 COLORYELLOW;

买卖天机(副图)
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交量:VOL,LINETHICK0;
主动买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH- OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;
主动卖盘:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;
 STICKLINE(VOL>0,VOL,0,2,1),COLORWHITE;
 STICKLINE(主动买盘>0,0,主动买盘,2,0),COLORRED;
 STICKLINE(主动卖盘<0,0,主动卖盘,2,0),COLORGREEN;

629322063.jpg

629322063.jpg
 

 

回复

使用道具 举报

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

本版积分规则