八大蓝筹包括证券、有色、银行、石油、煤炭、钢铁、地产、保险,此指标为幅图指标,操作时方便大家看清蓝筹资金是否参与行情。黄柱代表涨幅榜首,黄柱中白柱代表涨幅次位。
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");
上证1:=(VAR0-REF(VAR0,1))/REF(VAR0,1)*100;
证券1:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*100;
有色1:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100;
银行1:=(VAR3-REF(VAR3,1))/REF(VAR3,1)*100;
石油1:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;
煤炭1:=(VAR5-REF(VAR5,1))/REF(VAR5,1)*100;
钢铁1:=(VAR6-REF(VAR6,1))/REF(VAR6,1)*100;
地产1:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*100;
保险1:=(VAR8-REF(VAR8,1))/REF(VAR8,1)*100;
MAX1:=MAX(证券1,有色1);
MAX2:=MAX(银行1,MAX1);
MAX3:=MAX(石油1,MAX2);
MAX4:=MAX(煤炭1,MAX3);
MAX5:=MAX(钢铁1,MAX4);
MAX6:=MAX(地产1,MAX5);
MAX7:=MAX(保险1,MAX6);
A1:=IF(证券1=MAX7,0,证券1);
A2:=IF(有色1=MAX7,0,有色1);
A3:=IF(银行1=MAX7,0,银行1);
A4:=IF(石油1=MAX7,0,石油1);
A5:=IF(煤炭1=MAX7,0,煤炭1);
A6:=IF(钢铁1=MAX7,0,钢铁1);
A7:=IF(地产1=MAX7,0,地产1);
A8:=IF(保险1=MAX7,0,保险1);
MAXA1:=MAX(A1,A2);
MAXA2:=MAX(A3,MAXA1);
MAXA3:=MAX(A4,MAXA2);
MAXA4:=MAX(A5,MAXA3);
MAXA5:=MAX(A6,MAXA4);
MAXA6:=MAX(A7,MAXA5);
MAXA7:=MAX(A8,MAXA6);
上证涨幅:上证1,DOTLINE,COLORRED;
%涨幅榜首:MAX7,NODRAW;
%涨幅次位:MAXA7,NODRAW;
⑤:-2,COLOR0000FF;%:0,COLORFFFFFF;2,DOTLINE,COLORWHITE;
STICKLINE(MAX7 AND MAX7>0,0,MAX7,2,1),COLORYELLOW;
STICKLINE(MAXA7 AND MAXA7>0,0,MAXA7,0.1,0),COLORWHITE;
DRAWTEXT(证券1=MAX7 AND 证券1>0,0-1,'①证券'),COLORRED;
DRAWTEXT(有色1=MAX7 AND 有色1>0,0-1,'①有色'),COLORRED;
DRAWTEXT(银行1=MAX7 AND 银行1>0,0-1,'①银行'),COLORRED;
DRAWTEXT(石油1=MAX7 AND 石油1>0,0-1,'①石油'),COLORRED;
DRAWTEXT(煤炭1=MAX7 AND 煤炭1>0,0-1,'①煤炭'),COLORRED;
DRAWTEXT(钢铁1=MAX7 AND 钢铁1>0,0-1,'①钢铁'),COLORRED;
DRAWTEXT(地产1=MAX7 AND 地产1>0,0-1,'①地产'),COLORRED;
DRAWTEXT(保险1=MAX7 AND 保险1>0,0-1,'①保险'),COLORRED;
DRAWTEXT(证券1=MAXA7 AND 证券1>0,0-1.5,'②证券'),COLORYELLOW;
DRAWTEXT(有色1=MAXA7 AND 有色1>0,0-1.5,'②有色'),COLORYELLOW;
DRAWTEXT(银行1=MAXA7 AND 银行1>0,0-1.5,'②银行'),COLORYELLOW;
DRAWTEXT(石油1=MAXA7 AND 石油1>0,0-1.5,'②石油'),COLORYELLOW;
DRAWTEXT(煤炭1=MAXA7 AND 煤炭1>0,0-1.5,'②煤炭'),COLORYELLOW;
DRAWTEXT(钢铁1=MAXA7 AND 钢铁1>0,0-1.5,'②钢铁'),COLORYELLOW;
DRAWTEXT(地产1=MAXA7 AND 地产1>0,0-1.5,'②地产'),COLORYELLOW;
DRAWTEXT(保险1=MAXA7 AND 保险1>0,0-1.5,'②保险'),COLORYELLOW;
DRAWICON(MAX7>2,2,1);
DRAWICON(MAX7>2 AND MAXA7>2,2.5,9);