简单的通达信波段之星公式,简单最好
简单的通达信波段之星公式,简单最好
第一个.波段之星
VAR2:=(HIGH+LOW+CLOSE*2)/4;
VAR3:=EMA(VAR2,21);
VAR4:=STD(VAR2,21);
VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;
VAR6:=(EMA(VAR5,5)-25)*1.56;
K: EMA(VAR6,2)*1.22;
D: EMA(K,2);
J: 3*K-2*D;
130,COLORFFFF33,LINETHICK2;
底部区:STICKLINE(C>0,-20,-21,8,0),COLOREE3300;
DRAWTEXT(CROSS(J,-25),-21*1.01,"●买"),COLORMAGENTA;
DRAWTEXT(CROSS(145,J),130*1.11,"●卖"),COLORGREEN;
=====================================================
第2个.CCI买卖
{N 2 100 14}
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),COLORRED;
顶:220,COLOR9966FF,LINETHICK1;
底:-190,COLOR9966FF,LINETHICK1;
顶1:280,COLOR9966FF,LINETHICK1;
底1:-250,COLOR9966FF,LINETHICK1;
DRAWTEXT(CROSS(CCI,-201),-201*1.01,"●买一点"),COLORMAGENTA;
DRAWTEXT(CROSS(顶,CCI),顶*1.11,"●卖一点"),COLORGREEN;
买入:IF(CCI<=-180 AND CCI<-180,CCI,DRAWNULL) COLORBLUE,LINETHICK2;
卖出:IF(CCI>=220 AND CCI>220,CCI ,DRAWNULL)COLORGREEN,LINETHICK3;
DRAWTEXT(CROSS(CCI,250),250,"风险");
DRAWTEXT(CROSS(CCI,-200),-230,"短买");
- 上一篇公式:通达信分时资金趋势判断买卖公式
- 下一篇公式:通达信贝塔系数选股公式