主力攻击:=EMA(CLOSE,5),COLORRED;
主力攻击线:=(MA(CLOSE,4)+MA(CLOSE,6)+MA(CLOSE,5)+MA(CLOSE,10))/4,COLORWHITE;
主力控盘线:=EMA(CLOSE, 21),COLORYELLOW,LINETHICK2;
攻击控盘买:=crOSS(主力攻击,主力攻击线)AND REF(主力攻击,1)创业板块XG:={主力攻击线>主力控盘线 AND} C>REF(C,1)*1.045 AND C主力攻击线,COLORMAGENTA;
TTA:=(2*CLOSE+OPEN+HIGH+LOW)*100;
FFA:=TTA/EMA(TTA,4)-1;
趋势动能:=ROUND2(FFA*100,1);
趋势龙头:=CROSS(趋势动能,2) AND 趋势动能>=5 AND IF(CODELIKE('300'),1,0),COLORGREEN;
趋势龙头XG:趋势龙头 OR 创业板块XG;