通达信趋势突破副图指标(趋势强度 强势 起爆 暴涨)
通达信趋势突破副图指标(趋势强度 强势 起爆 暴涨)
源码
上趋势:MA(LOW,20)*1.2,COLOR0080FF,LINETHICK2;
次上趋势:MA(LOW,20)*1.1,COLORYELLOW;
次下趋势:MA(HIGH,20)*0.9,COLORWHITE;
下趋势:MA(HIGH,20)*0.8,COLORGREEN,LINETHICK2;
ZD:=(C-REF(C,1))/REF(C,1)*100;
HDZ,:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C<次上趋势,2,IF(C<下趋势,0,1)));
STICKLINE(趋势强度=0,H,L,4,1),COLORBLUE;
STICKLINE(趋势强度=1,H,L,4,1),COLORGREEN;
STICKLINE(趋势强度=2,H,L,4,1),COLORGRAY;
STICKLINE(趋势强度=3,H,L,4,1),COLORYELLOW;
STICKLINE(趋势强度=4,H,L,4,1),COLORMAGENTA;
STICKLINE(趋势强度=0,C,O,3,0),COLORBLUE;
STICKLINE(趋势强度=1,C,O,3,0),COLORGREEN;
STICKLINE(趋势强度=2,C,O,3,0),COLORGRAY;
STICKLINE(趋势强度=3,C,O,3,0),COLORYELLOW;
STICKLINE(趋势强度=4,C,O,3,0),COLORMAGENTA;
T1:=O<次上趋势 AND C>次上趋势 AND C/REF(C,1)>1.093;
T2:=O<上趋势 AND C>上趋势 AND C/REF(C,1)>1.093;
强势:=T1 OR T2;
DRAWTEXT(强势,L*0.99,"↖暴涨"),COLORYELLOW,LINETHICK2;
DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIF,9);
AAA:=(DIF-DEA)*2*60;
起爆:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2;
DRAWTEXT(起爆,L*0.99,"↖暴涨"),COLORYELLOW,LINETHICK2;
- 上一篇公式:通达信根据平方根理论《未来压力线》主图指标
- 下一篇公式:通达信RSI顶底主图源码贴图