板块风神榜(回报理想论坛){源码 副图 贴图}

2011-02-15 16:57:00来源:本站整理浏览:152

VAR1:=EMA(INDEXDATA("399190",&CLOSE),3);
VAR2:=EMA(INDEXDATA("399200",&CLOSE),3);
VAR3:=EMA(INDEXDATA("399137",&CLOSE),3);
VAR4:=EMA(INDEXDATA("399139",&CLOSE),3);
VAR5:=EMA(INDEXDATA("399136",&CLOSE),3);
VAR6:=EMA(INDEXDATA("399110",&CLOSE),3);
VAR7:=EMA(INDEXDATA("399135",&CLOSE),3);
VAR8:=EMA(INDEXDATA("399132",&CLOSE),3);
VAR9:=EMA(INDEXDATA("399150",&CLOSE),3);
VAR10:=EMA(INDEXDATA("399138",&CLOSE),3);
VAR11:=EMA(INDEXDATA("399130",&CLOSE),3);
VAR12:=EMA(INDEXDATA("399160",&CLOSE),3);
VAR13:=EMA(INDEXDATA("399131",&CLOSE),3);
VAR14:=EMA(INDEXDATA("399140",&CLOSE),3);
VAR15:=EMA(INDEXDATA("399210",&CLOSE),3);

金融:SUM((VAR1/REF(VAR1,1)-1)*100,0),colorred;
地产:SUM((VAR2/REF(VAR2,1)-1)*100,0),colormagenta;
金属:SUM((VAR3/REF(VAR3,1)-1)*100,0),COLORLIRED;
医药:SUM((VAR4/REF(VAR4,1)-1)*100,0),colorwhite;
电子:SUM((VAR5/REF(VAR5,1)-1)*100,0),colorcyan;
农林:SUM((VAR6/REF(VAR6,1)-1)*100,0),colorgreen;
石化:SUM((VAR7/REF(VAR7,1)-1)*100,0),coloryellow;
纺织:SUM((VAR8/REF(VAR8,1)-1)*100,0),colorblue;
建筑:SUM((VAR9/REF(VAR9,1)-1)*100,0),colorwhite;
机械:SUM((VAR10/REF(VAR10,1)-1)*100,0),COLORLIRED;
制造:SUM((VAR11/REF(VAR11,1)-1)*100,0),colormagenta;
运输:SUM((VAR12/REF(VAR12,1)-1)*100,0),colorcyan;
食品:SUM((VAR13/REF(VAR13,1)-1)*100,0),colorgreen;
水电:SUM((VAR14/REF(VAR14,1)-1)*100,0),coloryellow;
服务:SUM((VAR15/REF(VAR15,1)-1)*100,0),colorred;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,3)),0.5),金融,'金融'),colorred;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,4)),0.5),地产,'地产'),colormagenta;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,5)),0.5),金属,'金属'),colorblue;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,6)),0.5),医药,'医药'),colorwhite;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,7)),0.5),电子,'电子'),colorcyan;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,8)),0.5),农林,'农林'),colorgreen;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,9)),0.5),石化,'石化'),coloryellow;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,10)),0.5),纺织,'纺织'),colorblue;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,11)),0.5),建筑,'建筑'),colorwhite;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,12)),0.5),机械,'机械'),COLOR009fff;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,13)),0.5),制造,'制造'),colormagenta;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,14)),0.5),运输,'运输'),colorcyan;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,15)),0.5),食品,'食品'),colorgreen;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,16)),0.5),水电,'水电'),coloryellow;
DRAWTEXT(CROSS(ISNULL(REFX(&CLOSE,17)),0.5),服务,'服务'),colorred;

 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式