通达信霸王枪指标 短趋势 长趋势 底部
源码
霸王枪1:=0;
短趋势:=((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-50)*1.032+50),COLORRED;
VDDAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VDDAR3:=LLV(LOW,34);
VDDAR4:=HHV(HIGH,34);
长趋势:=EMA((VDDAR2-VDDAR3)/(VDDAR4-VDDAR3)*100,13),COLOR00FF00;
判断底:=SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5;
VDDAR5:=CROSS(短趋势,长趋势)AND 长趋势<25;
底部:=STICKLINE(短趋势<10 AND 判断底>0,0,30,6,1);
{STICKLINE(VDDAR5,0,20,1,0) ,COLORRED;
DRAWICON(VDDAR5 AND 判断底>0,60,1);}
霸王枪:IF(COUNT(短趋势<10 AND 判断底>0,8) AND VDDAR5,5,0),STICK,LINETHICK2,COLORBLUE;