A1:=REPDATE(&GDZS,1,0); A2:=REPDATE(&GDZS,2,0); A3:=GDZS; A4:=LASTREP(&GDZS,2); A5:=SHGZG/A3; A6:=100*(A3/A4-1); A7:=100*(A4/A3-1); A8:=IF(COUNTTIME(A2,A1,3)>16,'☆',''); CON1:=GDZS!=REF(GDZS,1); POLYLINE(CON1,GDZS); T1:=GDZS!=REF(GDZS,1); T2:=IF(T1,IF(REFX(&GDZS,1)!=GDZS,1,IF(REFX(&GDZS,2)!=GDZS,2,IF(REFX(&GDZS,3)!=GDZS,3, IF(REFX(&GDZS,4)!=GDZS,4,IF(REFX(&GDZS,5)!=GDZS,5,IF(REFX(&GDZS,6)!=GDZS,6,IF(REFX(&GDZS,7)!=GDZS,7, IF(REFX(&GDZS,8)!=GDZS,8,IF(REFX(&GDZS,9)!=GDZS,9,IF(REFX(&GDZS,10)!=GDZS,10,IF(REFX(&GDZS,11)!=GDZS,11, IF(REFX(&GDZS,12)!=GDZS,12,0)))))))))))),0); T3:=(REFX(&GDZS,T2)-GDZS); T4:=IF(T3>0,0.95,1.05); DRAWTEXT(CON1,T4*GDZS,'←'+TOSTRING(GDZS,0)+A8),colorgreen; TIPTEXT(CON1,GDZS,TOSTRING(A5,0)+'股,较上期变动'+TOSTRING(A7,0)+'%'),colorgray; 鼠标所在:TOSTRING(GDZS,0)+'人(较上期变动'+A6+'%'+')'; 实际流通市值:IF(ISLASTBAR,TOSTRING(ZYLTGB*C/100000000,2)+'亿元',NULL); ▲:IF(ISLASTBAR,NULL,'鼠标移到最新K线可显示实际流通市值和活筹个数;鼠标停在"△"上可显示人均持股'); A1:=(STRLEFT(LTGDMC1,2)+STRMID(LTGDMC1,3,2)+STRRIGHT(LTGDMC1,2)=LTGDMC1) OR (STRLEFT(LTGDMC1,2)+STRRIGHT(LTGDMC1,2)=LTGDMC1); A2:=(STRLEFT(LTGDMC2,2)+STRMID(LTGDMC2,3,2)+STRRIGHT(LTGDMC2,2)=LTGDMC2) OR (STRLEFT(LTGDMC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LTCGS3/SHGZG<0.05; AL4:=A4 AND LTCGS4/SHGZG<0.05; AL5:=A5 AND LTCGS5/SHGZG<0.05; AL6:=A6 AND LTCGS6/SHGZG<0.05; AL7:=A7 AND LTCGS7/SHGZG<0.05; AL8:=A8 AND LTCGS8/SHGZG<0.05; AL9:=A9 AND LTCGS9/SHGZG<0.05; AL10:=A10 AND LTCGS10/SHGZG<0.05; 活筹个数:IF(ISLASTBAR,TOSTRING(AL1+AL2+AL3+AL4+AL5+AL6+AL7+AL8+AL9+AL10,0)+'个',NULL); Y1:=IF(AL1,0,255); Y2:=IF(AL2,0,255); Y3:=IF(AL3,0,255); Y4:=IF(AL4,0,255); Y5:=IF(AL5,0,255); Y6:=IF(AL6,0,255); Y7:=IF(AL7,0,255); Y8:=IF(AL8,0,255); Y9:=IF(AL9,0,255); Y10:=IF(AL10,0,255);
|