【通达信免费源码】八大蓝筹指标 副图 无未来函数 操盘控盘
VAR0:=("999999$C");
VAR1:=("880472$C");
VAR2:=("880324$C");
VAR3:=("880471$C");
VAR4:=("880310$C");
VAR5:=("880301$C");
VAR6:=("880318$C");
VAR7:=("880482$C");
VAR8:=("880473$C");
VAR9:=("399001$C");
上证:=(VAR0/REF(VAR0,1)-1)*100;
深圳:=(VAR9/REF(VAR9,1)-1)*100;
证券:=(VAR1/REF(VAR1,1)-1)*100;
有色:=(VAR2/REF(VAR2,1)-1)*100;
银行:=(VAR3/REF(VAR3,1)-1)*100;
石油:=(VAR4/REF(VAR4,1)-1)*100;
煤炭:=(VAR5/REF(VAR5,1)-1)*100;
钢铁:=(VAR6/REF(VAR6,1)-1)*100;
地产:=(VAR7/REF(VAR7,1)-1)*100;
保险:=(VAR8/REF(VAR8,1)-1)*100;
T1:=MAX(证券,有色);
T2:=MAX(银行,T1);
T3:=MAX(石油,T2);
T4:=MAX(煤炭,T3);
T5:=MAX(钢铁,T4);
T6:=MAX(地产,T5);
T7:=MAX(保险,T6);
A1:=IF(证券=T7,0,证券);
A2:=IF(有色=T7,0,有色);
A3:=IF(银行=T7,0,银行);
A4:=IF(石油=T7,0,石油);
A5:=IF(煤炭=T7,0,煤炭);
A6:=IF(钢铁=T7,0,钢铁);
A7:=IF(地产=T7,0,地产);
A8:=IF(保险=T7,0,保险);
T8:=MAX(A1,A2);
T9:=MAX(A3,T8);
T10:=MAX(A4,T9);
T11:=MAX(A5,T10);
T12:=MAX(A6,T11);
T13:=MAX(A7,T12);
T14:=MAX(A8,T13);
B1:=IF(证券=T14,0,A1);
B2:=IF(有色=T14,0,A2);
B3:=IF(银行=T14,0,A3);
B4:=IF(石油=T14,0,A4);
B5:=IF(煤炭=T14,0,A5);
B6:=IF(钢铁=T14,0,A6);
B7:=IF(地产=T14,0,A7);
B8:=IF(保险=T14,0,A8);
T15:=MAX(B1,B2);
T16:=MAX(B3,T15);
T17:=MAX(B4,T16);
T18:=MAX(B5,T17);
T19:=MAX(B6,T18);
T20:=MAX(B7,T19);
T21:=MAX(B8,T20);
上证涨幅:上证,DOTLINE,COLORRED;
深圳涨幅:深圳,DOTLINE,COLORCYAN;
%涨幅榜首:T7,COLORRED,NODRAW;
%涨幅次位:T14,COLORYELLOW,NODRAW;
%涨幅三位:T21,COLORGREEN,NODRAW;
%:0,COLORWHITE;设定幅度:1.5,DOTLINE,COLORWHITE;
STICKLINE(T7>0,0,T7,2,1),COLORRED;
STICKLINE(T14>0,0,T14,1.5,1),COLORYELLOW;
STICKLINE(T21>0,0,T21,0.5,0)COLORGREEN;
DRAWTEXT(证券=T7 AND 证券>0,0-0.5,'①证券'),COLORRED;
DRAWTEXT(有色=T7 AND 有色>0,0-0.5,'①有色'),COLORRED;
DRAWTEXT(银行=T7 AND 银行>0,0-0.5,'①银行'),COLORRED;
DRAWTEXT(石油=T7 AND 石油>0,0-0.5,'①石油'),COLORRED;
DRAWTEXT(煤炭=T7 AND 煤炭>0,0-0.5,'①煤炭'),COLORRED;
DRAWTEXT(钢铁=T7 AND 钢铁>0,0-0.5,'①钢铁'),COLORRED;
DRAWTEXT(地产=T7 AND 地产>0,0-0.5,'①地产'),COLORRED;
DRAWTEXT(保险=T7 AND 保险>0,0-0.5,'①保险'),COLORRED;
DRAWTEXT(证券=T14 AND 证券>0,0-1,'②证券'),COLORYELLOW;
DRAWTEXT(有色=T14 AND 有色>0,0-1,'②有色'),COLORYELLOW;
DRAWTEXT(银行=T14 AND 银行>0,0-1,'②银行'),COLORYELLOW;
DRAWTEXT(石油=T14 AND 石油>0,0-1,'②石油'),COLORYELLOW;
DRAWTEXT(煤炭=T14 AND 煤炭>0,0-1,'②煤炭'),COLORYELLOW;
DRAWTEXT(钢铁=T14 AND 钢铁>0,0-1,'②钢铁'),COLORYELLOW;
DRAWTEXT(地产=T14 AND 地产>0,0-1,'②地产'),COLORYELLOW;
DRAWTEXT(保险=T14 AND 保险>0,0-1,'②保险'),COLORYELLOW;
DRAWTEXT(证券=T21 AND 证券>0,0-1.5,'③证券'),COLORGREEN;
DRAWTEXT(有色=T21 AND 有色>0,0-1.5,'③有色'),COLORGREEN;
DRAWTEXT(银行=T21 AND 银行>0,0-1.5,'③银行'),COLORGREEN;
DRAWTEXT(石油=T21 AND 石油>0,0-1.5,'③石油'),COLORGREEN;
DRAWTEXT(煤炭=T21 AND 煤炭>0,0-1.5,'③煤炭'),COLORGREEN;
DRAWTEXT(钢铁=T21 AND 钢铁>0,0-1.5,'③钢铁'),COLORGREEN;
DRAWTEXT(地产=T21 AND 地产>0,0-1.5,'③地产'),COLORGREEN;
DRAWTEXT(保险=T21 AND 保险>0,0-1.5,'③保险'),COLORGREEN;
DRAWICON(T7>=1.5 AND T14>=1.5 AND T21>=1.5,2.5,1);
DRAWTEXT(T7>=1.5 AND T14>=1.5 AND T21>=1.5,3,'蓝筹参与');
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!