VAR1:=(3*CLOSE+HIGH+LOW+OPEN)/6;
VAR2:=EMA(VAR1,35);
VAR3:=(HHV(VAR2,10)+HHV(VAR2,30)+HHV(VAR2,90))/3;
VAR4:=(LLV(VAR2,10)+LLV(VAR2,30)+LLV(VAR2,90))/3;
VAR5:=(HHV(VAR3,5)+HHV(VAR3,15)+HHV(VAR3,30))/3;
VAR6:=(LLV(VAR4,5)+LLV(VAR4,15)+LLV(VAR4,30))/3;
VAR7:=expma(CLOSE,6);
VAR8:=EXPMA(CLOSE,18);
M1:=500*(VAR7-VAR8)/VAR8+2,COLORYELLOW,LINETHICK2;
ZZ:=M1 2 AND EMA(EMA(VAR1,2),2) VAR6;
共振追涨紫:ZZ AND ZZ =REF(ZZ,1),NODRAW,COLORMAGENTA ;
STICKLINE(共振追涨紫,4,8,1,0),COLORMAGENTA ;
DRAWTEXT(共振追涨紫,7.7,'紫'),COLORYELLOW;
X_1:=INDEXH;
X_2:=INDEXO;
X_3:=INDEXL;
X_4:=INDEXC;
X_5:=INDEXV;
X_6:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_7:=EMA(X_6,35);
X_8:=(HHV(X_7,5)+HHV(X_7,15)+HHV(X_7,30))/3;
X_9:=(LLV(X_7,5)+LLV(X_7,15)+LLV(X_7,30))/3;
牛线:=(HHV(X_8,5)+HHV(X_8,15)+HHV(X_8,30))/3,COLORYELLOW;
X_10:=(LLV(X_9,5)+LLV(X_9,15)+LLV(X_9,30))/3;
X_11:=X_4/EMA(X_4,120);
大盘中线:=EMA(EMA(CLOSE,120)*X_11,2),COLORRED;
X_12:=X_6 =牛线 AND X_6 =大盘中线;
强势起爆紫:X_12=1,NODRAW,COLORMAGENTA;
STICKLINE(强势起爆紫,4,7,3.5,0),COLORMAGENTA ;
DRAWTEXT(强势起爆紫,6.7,'紫'),COLORYELLOW;
TT:=(2*CLOSE+OPEN+HIGH+LOW)*100;
FF:=TT/EMA(TT,4)-1;
动能2红:FF REF(FF,1) AND FF 0,NODRAW,COLORRED ;
STICKLINE(动能2红,4,6,4,0),COLORRED ;
DRAWTEXT(动能2红,5.7,'红'),COLORYELLOW;
动能2黄:FF REF(FF,1) AND FF 0 ,NODRAW,COLORYELLOW ;
STICKLINE(动能2黄,4,6,2,0),COLORYELLOW ;
DRAWTEXT(动能2黄,5.7,'黄'),COLORRED;
{庄家控盘}
VAR1A:=EMA(EMA(C,8),39),NODRAW;
控盘度:=((VAR1A-REF(VAR1A,1))/REF(VAR1A,1)*1000)+50,NODRAW;
低控盘:IF(控盘度 50 AND 控盘度 58,控盘度,0),NODRAW,COLORYELLOW;
STICKLINE(控盘度 50 ,4,5,5,0),COLORYELLOW;
DRAWTEXT(控盘度 50,4.7,'黄'),COLORRED;HJ_1:=CLOSE/REF(CLOSE,1) =1.098 AND C=H;
HJ_22:=COUNT(HJ_1,2) =1 AND NOT(COUNT(HJ_1,3)
妖启:=FILTER(HJ_22,13),COLORDDDDDD;
HJ_23:=COUNT(HJ_1,3) =2 AND NOT(COUNT(HJ_1,4)
龙头启动:妖启 AND COUNT(妖启,18)=1 AND (IF(CODELIKE('60'),1,0) OR IF(CODELIKE('00'),1,0)),NODRAW,COLORBLUE;
STICKLINE(龙头启动,0,0.75,6,0),COLORBLUE;
DRAWTEXT(龙头启动,0.35,'龙头启动'),COLORWHITE;
DRAWTEXT(龙头启动,0.35,' 火箭'),COLORRED;
妖升:=FILTER(HJ_23,13),COLORGREEN;
龙头主升:妖升 AND COUNT(妖升,18)=1 AND (IF(CODELIKE('60'),1,0) OR IF(CODELIKE('00'),1,0)),NODRAW,COLORWHITE;
STICKLINE(龙头主升,1,1.75,6,0),COLORWHITE;
DRAWTEXT(龙头主升,1.35,'龙头主升'),COLORRED;
DRAWTEXT(龙头主升,1.35,' '),COLORYELLOW;
主力攻击:=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) REF(主力控盘线,1);
创业板块XG:={主力攻击线 主力控盘线 AND} C REF(C,1)*1.045 AND C REF(C,1)*1.07 AND L 主力攻击线 AND IF(CODELIKE('300'),1,0) 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),NODRAW,COLORGREEN;
STICKLINE(趋势龙头 OR 创业板块XG,0,1,6,0),COLORGREEN;
DRAWTEXT(趋势龙头 OR 创业板块XG,0.65,'趋势龙头'),COLORRED;
DRAWTEXT(趋势龙头 OR 创业板块XG,0.65,' 旗帜'),COLORYELLOW;
0,COLORWHITE;
4,COLORYELLOW;
DRAWTEXT_FIX(1,0,0.05,0, STRCAT(HYBLOCK,STRCAT(' + ', STRCAT(GNBLOCK,STRCAT('+ ', EXTERNSTR(0,1)))))),COLORWHITE;
紫紫红黄:=共振追涨紫 AND 强势起爆紫 AND 动能2红 AND 控盘度
首紫紫红黄:=紫紫红黄 AND REF(紫紫红黄,1) 1;
STICKLINE(首紫紫红黄,2.85,3.5,0,0),COLORRED;
DRAWTEXT(首紫紫红黄,3.41,'参考买点'),COLORRED;
首动能2黄:=动能2黄 AND REF(动能2黄,1) 1;
STICKLINE(首动能2黄,2,2.5,0,0),COLORYELLOW;
DRAWTEXT(首动能2黄,2.5,'参考卖点'),COLORYELLOW;