AA1:=MA(CLOSE,5);
AA2:=MA(CLOSE,10);
AA3:=MA(CLOSE,20);
AA4:=MA(CLOSE,30);
AA5:=(AA1+AA2+AA3+AA4)/(4);
AA6:=((AA5-REF(AA5,15))/(REF(AA5,15)))*(100);
AA7:=AA6 1*REF(AA6,1);
AA8:=AA6 1*REF(AA6,1);
AA9:=( 999999$C /REF( 999999$C ,1)-1)*100;
AA10:=( 399001$C /REF( 399001$C ,1)-1)*100;
AA11:=( 399006$C /REF( 399006$C ,1)-1)*100;
AA12:=( 000688$C /REF( 000688$C ,1)-1)*100;
AA13:=( 000300$C /REF( 000300$C ,1)-1)*100;
AA14:=( 000905$C /REF( 000905$C ,1)-1)*100;
AA15:= 880006$C
AA16:= 880006$O
STICKLINE(AA7 =1,18,22,3,0),COLOR0000FF;
STICKLINE(AA8 =1,18,22,3,1),COLOR00FF00;
STICKLINE(AA9 =0.01 ,12,16,3,0),COLORC0C0C0;
STICKLINE(AA9 =0.1,12,16,3,1),COLORFFFFFF;
STICKLINE(AA10 =0.01 ,6,10,3,0),COLORC0C0C0;
STICKLINE(AA10 =0.1,6,10,3,1),COLORFFFFFF;
STICKLINE(AA11 =0.01 ,0,4,3,0),COLORC0C0C0;
STICKLINE(AA11 =0,0,4,3,1),COLORFFFFFF;
STICKLINE(AA12 =0.01 ,-6,-2,3,0),COLORC0C0C0;
STICKLINE(AA12 =0,-6,-2,3,1),COLORFFFFFF;
STICKLINE(AA13 =0.01 ,-12,-8,3,0),COLORC0C0C0;
STICKLINE(AA13 =0,-12,-8,3,1),COLORFFFFFF;
STICKLINE(AA14 =0.01 ,-18,-14,3,0),COLORC0C0C0;
STICKLINE(AA14 =0,-18,-14,3,1),COLORFFFFFF;
STICKLINE(AA15 (AA16*1.5),-24,-20,3,0),COLOR0000FF;
STICKLINE(AA15 AA16,-24,-20,3,1),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=98,20,'红持股绿持币'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=98,14,'上证指数'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=98,8,'深证成指'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=98,2,'创业扳指'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=98,-4,'科创50'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=98,-10,'沪深300'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=98,-16,'中证500'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=98,-22,'涨停情绪'),COLORFFFFFF;