N:=5;
大盘情绪:="880005$C";{总上涨家数}
大盘情绪1:"SZ399001$ADVANCE"+"SH000001$ADVANCE";{总上涨家数};
2400,COLORLIRED,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,2400,' '),COLORFFFFFF;
800,COLORLIBLUE,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,800,' '),COLORLIBLUE;
500,COLOR66FFFF,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,500,' '),COLOR66FFFF;
A:="880812$AMOUNT"*0.00000001;
A1:=IF(A<25,1,0);
A2:=IF(A>154 AND A<180,1,0);
A3:=IF(A>200 AND 大盘情绪1<2000 ,1,0);
A4:=IF(A/MA(A,20)>1.5,1,0);
A5:=IF(A>200 AND 大盘情绪1>1800 ,1,0);
DRAWTEXT(A2,2000,'弱分歧'),COLORRED;
DRAWTEXT(A5,3000,'高潮期');
DRAWTEXT(A3,1000,'强分歧'),COLORGREEN;
D:="880770$H"*0.1;
DD:="880770$L"*0.1;
DD1:="880770$C"*0.1;
DD2:="880770$O"*0.1;
DD3:"880770$V"/REF("880770$V",1);
DD4:DD2/REF(DD1,1);
D1:=HHV(D,N);
D2:D1/DD;
D5:D1/DD*100;
D6:DD2/REF(DD1,1);
D3:=crOSS(DD1,MA(DD1,5)) AND CROSS(DD1,MA(DD1,10));
DRAWTEXT(D2>1.088,2500,'接力'),COLORRED;
DRAWTEXT(D3 AND 大盘情绪1>1500,2000,'强共振点');
DRAWTEXT(D6<0.98 AND DD1<DD2,2000,'衰退'),COLORGREEN;
D4:CROSS(A,MA(A,20));
A/MA(A,20);
AAAA:="880772$H";
AA:="880772$C";
AA1:="880772$O";
AA11:="880772$L";
AAA11:="880772$V";
AD1:=MA(AA,20);
AD2:(AD1-AAAA)<2 AND MA(AA,5)<AD1 AND 大盘情绪<1500;
AA3:=AA11/REF(AA,1)<0.97 AND AA<AA1;
AAA3:CROSS(MA(AAA11,5),MA(AAA11,20));
F:BArslAST(AAA3);
F1:F>0 AND AAA11/MA(AAA11,20)>1.7;
F2:CROSS(MA(AA,3),MA(AA,7));
F3:MA(AA,3)<MA(AA,7) AND AAA11<MA(AAA11,20);
DRAWTEXT(AA3,1500,'切换'),COLORGREEN;
DRAWTEXT(AAA3,1500,'主胜预警'),COLORRED;
DRAWTEXT(F1,400,'主升阶段'),COLORRED;
{DRAWTEXT(AD2,3000,'爆头'),COLORRED;}
STICKLINE(AAA3,0,100,3,0),COLORRED;
STICKLINE(F1,0,300,3,0),COLORRED;
STICKLINE(F3,0,-150,3,0),COLORGREEN;
STICKLINE(F2,0,300,3,0),COLORYELLOW;