波段趋势金叉是买入点死叉是卖出点_通达信指标公式_通达信公式

短线提前起爆通达信指标 副图 源码 测试图

{波段趋势}
波段趋势:0,COLOR666666;
金叉介入死叉跑:0,COLOR666666;
红带启动绿带逃:0,COLOR666666;
上扬加速头部跑:0,COLOR666666;
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
DRAWBAND(EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),RGB(148,0,211),
EMA(0.667*REF(EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),1)+0.333*EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),2),RGB(60,179,113));
快线:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),LINETHICK2,COLORRED;
慢线:EMA(0.667*REF(快线,1)+0.333*快线,2),COLOR00FF00,DOTLINE;
超买区域:80,COLOR00FF00,DOTLINE;
强弱分界线:50,COLORFFFFFF,DOTLINE;
超卖区域:20,COLOR8000FF,DOTLINE;
KVD1:=IF(CLOSE>REF(CLOSE,1),88,0);
KVD2:=IF(CLOSE/REF(CLOSE,1)>1.01 AND HIGH/CLOSE<1.010 AND KVD1>0,91,0)>1;
KVD3:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4;
KVD4:=(KVD3-REF(KVD3,1))>1;
KVD5:=C/REF(C,1)<1.2;
AR1:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;
AR2:=(SMA(AR1,5,1)+2*STD(CLOSE,37))<50;
ECP1:=KVD2 AND KVD4 AND KVD5 AND AR2;
ECP:=CROSS(快线,慢线) AND 快线<35 AND KVD2 AND KVD4 AND KVD5 AND AR2;
WRN:=(CROSS(慢线,快线) AND 慢线>75) OR (CROSS(快线,65) AND 慢线<快线);
起动:CROSS(快线,慢线) AND 快线<22,COLORLIGREEN,NODRAW;
买入:IF(ECP,25,5),LINETHICK1,COLORFF8080;
卖出:IF(WRN,80,90),LINETHICK1,COLOR00FFFF;
DRAWICON(CROSS(快线,慢线)AND 快线<18.6,慢线,56);
DRAWICON(CROSS(慢线,快线)AND 快线>78.6,慢线,15);
DRAWTEXT(CROSS(快线,慢线) AND 快线<22,20,'起动'),LINETHICK2,COLOR0099FF;
DRAWICON(CROSS(快线,慢线) AND 快线<22,25,1);
DRAWTEXT(CROSS(快线,30) AND 慢线<快线,40,'上扬'),LINETHICK2,COLOR00CCFF;
DRAWICON(CROSS(快线,30) AND 慢线<快线,35,1);
DRAWTEXT(CROSS(快线,65) AND 慢线<快线,55,'冲顶'),LINETHICK2,COLOR9933FF;
DRAWICON(CROSS(快线,65) AND 慢线<快线,70,2);
DRAWTEXT(CROSS(快线,75) AND 慢线<快线,67,'小心被套'),LINETHICK2,COLORFF8080;
DRAWICON(CROSS(快线,75) AND 慢线<快线,80,2);
DRAWTEXT(CROSS(慢线,快线) AND 慢线>75,80,'头部'),COLORYELLOW;
DRAWICON(CROSS(慢线,快线) AND 慢线>75,85,2);

绝密操盘线通达信主图指标源码