您現(xiàn)在的位置: 南方財富網(wǎng) >> 股票知識 >> 股票公式 >> 正文
南財搜索

通達(dá)信板塊指數(shù)公式

2012-5-5 9:40:16   來源:不詳   佚名
    
{板塊指數(shù) N 1/120/10 M 1/60/3}
n:=10;
m:=3;
VAR1:=("399139$C");
VAR2:=("399190$C");
VAR3:=("399132$C");
VAR4:=("399150$C");
VAR5:=("399138$C");
VAR6:=("399200$C");
VAR7:=("399110$C");
VAR8:=("399136$C");
VAR9:=("399135$C");
VAR10:=("399130$C");
VAR11:=("399160$C");
VAR12:=("999999$C");
VAR13:=("399137$C");
醫(yī)藥:=SUM((VAR1/REF(VAR1,1)-1)*100,0);
金融:=SUM((VAR2/REF(VAR2,1)-1)*100,0);
紡織:=SUM((VAR3/REF(VAR3,1)-1)*100,0);
建筑:=SUM((VAR4/REF(VAR4,1)-1)*100,0);
機(jī)械:=SUM((VAR5/REF(VAR5,1)-1)*100,0);
地產(chǎn):=SUM((VAR6/REF(VAR6,1)-1)*100,0);
農(nóng)林:=SUM((VAR7/REF(VAR7,1)-1)*100,0);
電子:=SUM((VAR8/REF(VAR8,1)-1)*100,0);
石化:=SUM((VAR9/REF(VAR9,1)-1)*100,0);
制造:=SUM((VAR10/REF(VAR10,1)-1)*100,0);
運(yùn)輸:=SUM((VAR11/REF(VAR11,1)-1)*100,0);
上證:SUM((VAR12/REF(VAR12,1)-1)*100,0),COLORWHITE,LINETHICK2;
金屬:=SUM((VAR13/REF(VAR13,1)-1)*100,0);
VAR17:=CONST(MA(醫(yī)藥,N));
VAR18:=CONST(MA(金融,N));
VAR19:=CONST(MA(紡織,N));
VAR20:=CONST(MA(建筑,N));
VAR21:=CONST(MA(機(jī)械,N));
VAR22:=CONST(MA(地產(chǎn),N));
VAR23:=CONST(MA(農(nóng)林,N));
VAR24:=CONST(MA(電子,N));
VAR25:=CONST(MA(石化,N));
VAR26:=CONST(MA(制造,N));
VAR27:=CONST(MA(運(yùn)輸,N));
VAR28:=CONST(MA(上證,N));
VAR29:=CONST(MA(金屬,N));
PQ:=VAR29-20;
P1:=IF(BARSLAST(CURRBARSCOUNT=4),1,0);
P2:=IF(BARSLAST(CURRBARSCOUNT=6),1,0);
P3:=IF(BARSLAST(CURRBARSCOUNT=8),1,0);
P4:=IF(BARSLAST(CURRBARSCOUNT=10),1,0);
P5:=IF(BARSLAST(CURRBARSCOUNT=12),1,0);
P6:=IF(BARSLAST(CURRBARSCOUNT=14),1,0);
P7:=IF(BARSLAST(CURRBARSCOUNT=16),1,0);
P8:=IF(BARSLAST(CURRBARSCOUNT=18),1,0);
P9:=IF(BARSLAST(CURRBARSCOUNT=20),1,0);
P10:=IF(BARSLAST(CURRBARSCOUNT=22),1,0);
P11:=IF(BARSLAST(CURRBARSCOUNT=24),1,0);
P12:=IF(BARSLAST(CURRBARSCOUNT=26),1,0);
P13:=IF(BARSLAST(CURRBARSCOUNT=28),1,0);
P14:=IF(BARSLAST(CURRBARSCOUNT=2),1,0);
STICKLINE(醫(yī)藥,PQ,IF(P2-P1,CONST(MA(醫(yī)藥,M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(金融,PQ,IF(P3-P2,CONST(MA(金融,M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(紡織,PQ,IF(P4-P3,CONST(MA(紡織,M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(建筑,PQ,IF(P5-P4,CONST(MA(建筑,M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(機(jī)械,PQ,IF(P6-P5,CONST(MA(機(jī)械,M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(地產(chǎn),PQ,IF(P7-P6,CONST(MA(地產(chǎn),M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(農(nóng)林,PQ,IF(P8-P7,CONST(MA(農(nóng)林,M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(電子,PQ,IF(P9-P8,CONST(MA(電子,M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(石化,PQ,IF(P10-P9,CONST(MA(石化,M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(制造,PQ,IF(P11-P10,CONST(MA(制造,M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(運(yùn)輸,PQ,IF(P12-P11,CONST(MA(運(yùn)輸,M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(金屬,PQ,IF(P13-P12,CONST(MA(金屬,M)),DRAWNULL),4,0),COLORYELLOW;
STICKLINE(上證,上證,IF(P1-P14,VAR28,DRAWNULL),5,-1),COLORYELLOW;
STICKLINE(醫(yī)藥,PQ,IF(P2-P1,VAR17,DRAWNULL),4,0),COLORRED;
STICKLINE(金融,PQ,IF(P3-P2,VAR18,DRAWNULL),4,0),COLORRED;
STICKLINE(紡織,PQ,IF(P4-P3,VAR19,DRAWNULL),4,0),COLORRED;
STICKLINE(建筑,PQ,IF(P5-P4,VAR20,DRAWNULL),4,0),COLORRED;
STICKLINE(機(jī)械,PQ,IF(P6-P5,VAR21,DRAWNULL),4,0),COLORRED;
STICKLINE(地產(chǎn),PQ,IF(P7-P6,VAR22,DRAWNULL),4,0),COLORRED;
STICKLINE(農(nóng)林,PQ,IF(P8-P7,VAR23,DRAWNULL),4,0),COLORRED;
STICKLINE(電子,PQ,IF(P9-P8,VAR24,DRAWNULL),4,0),COLORRED;
STICKLINE(石化,PQ,IF(P10-P9,VAR25,DRAWNULL),4,0),COLORRED;
STICKLINE(制造,PQ,IF(P11-P10,VAR26,DRAWNULL),4,0),COLORRED;
STICKLINE(運(yùn)輸,PQ,IF(P12-P11,VAR27,DRAWNULL),4,0),COLORRED;
STICKLINE(金屬,PQ,IF(P13-P12,VAR29,DRAWNULL),4,0),COLORRED;
STICKLINE(醫(yī)藥,PQ,IF(P2-P1,CONST(醫(yī)藥),DRAWNULL),0.8,0),COLORDD0555;
STICKLINE(金融,PQ,IF(P3-P2,CONST(金融),DRAWNULL),0.8,0),COLORBLUE;
STICKLINE(紡織,PQ,IF(P4-P3,CONST(紡織),DRAWNULL),0.8,0),COLORBLUE;
STICKLINE(建筑,PQ,IF(P5-P4,CONST(建筑),DRAWNULL),0.8,0),COLORBLUE;
STICKLINE(機(jī)械,PQ,IF(P6-P5,CONST(機(jī)械),DRAWNULL),0.8,0),COLORBLUE;
STICKLINE(地產(chǎn),PQ,IF(P7-P6,CONST(地產(chǎn)),DRAWNULL),0.8,0),COLORBLUE;
STICKLINE(農(nóng)林,PQ,IF(P8-P7,CONST(農(nóng)林),DRAWNULL),0.8,0),COLORBLUE;
STICKLINE(電子,PQ,IF(P9-P8,CONST(電子),DRAWNULL),0.8,0),COLORBLUE;
STICKLINE(石化,PQ,IF(P10-P9,CONST(石化),DRAWNULL),0.8,0),COLORBLUE;
STICKLINE(制造,PQ,IF(P11-P10,CONST(制造),DRAWNULL),0.8,0),COLORBLUE;
STICKLINE(運(yùn)輸,PQ,IF(P12-P11,CONST(運(yùn)輸),DRAWNULL),0.8,0),COLORBLUE;
STICKLINE(金屬,PQ,IF(P13-P12,CONST(金屬),DRAWNULL),0.8,0),COLORBLUE;
DRAWTEXT(P2-P1,PQ-2,'醫(yī)藥'),COLORYELLOW;
DRAWTEXT(P3-P2,PQ-2,'金融'),COLORYELLOW;
DRAWTEXT(P4-P3,PQ-2,'紡織'),COLORYELLOW;
DRAWTEXT(P5-P4,PQ-2,'建筑'),COLORYELLOW;
DRAWTEXT(P6-P5,PQ-2,'機(jī)械'),COLORYELLOW;
DRAWTEXT(P7-P6,PQ-2,'地產(chǎn)'),COLORYELLOW;
DRAWTEXT(P8-P7,PQ-2,'農(nóng)林'),COLORYELLOW;
DRAWTEXT(P9-P8,PQ-2,'電子'),COLORYELLOW;
DRAWTEXT(P10-P9,PQ-2,'石化'),COLORYELLOW;
DRAWTEXT(P11-P10,PQ-2,'制造'),COLORYELLOW;
DRAWTEXT(P12-P11,PQ-2,'運(yùn)輸'),COLORYELLOW;
DRAWTEXT(P13-P12,PQ-2,'金屬'),COLORYELLOW;

[1] [2] 下一頁

(南方財富網(wǎng)SOUTHMONEY.COM)
    南方財富網(wǎng)聲明:股市資訊來源于合作媒體及機(jī)構(gòu),屬作者個人觀點,僅供投資者參考,并不構(gòu)成投資建議。投資者據(jù)此操作,風(fēng)險自擔(dān)。
延伸閱讀
商務(wù)進(jìn)行時
每日必讀
學(xué)院24小時排行
證券導(dǎo)讀
熱圖推薦

關(guān)于南方財富網(wǎng)版權(quán)聲明誠聘英才廣告服務(wù)網(wǎng)站地圖友情鏈接
特此聲明:廣告商的言論與行為均與南方財富網(wǎng)無關(guān)
2dayisday1.com
南方財富網(wǎng) © 版權(quán)所有 閩ICP備09035581號