《通达信板块动态指标公式.docx》由会员分享,可在线阅读,更多相关《通达信板块动态指标公式.docx(27页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、通达信板块动态指标公式_正点财经STICKLINE(1=1,15,-5,18,0),COLOR878787;上证量比:=CONST(999999$VOL/REF(MA(999999$VOL,5),1)*10);深证量比:=CONST(399001$VOL/REF(MA(399001$VOL,5),1)*10);量比:STICKLINE(1=1,IF(CURR=55,上证量比*1.05,IF(CURR=20,深证量比*1.05,DRAWNULL),0,39,-1),COLOR00FFFF;STICKLINE(1=1,IF(CURR=55,上证量比,IF(CURR=20,深证量比,DRAWNULL
2、),0,38,0),COLOR00BBBB;大盘股量比:=CONST(399372$VOL/REF(MA(399372$VOL,5),1)*10);大盘C:=(399372$C大盘H:=(399372$H大盘L:=(399372$L大盘O:=(399372$O大盘股涨跌:=CONST(大盘C-REF(大盘C,1)/REF(大盘C,1)*200);大盘偏差:=(2*大盘C+大盘H+大盘L+大盘O)/5-(MA(大盘C,3)+MA(大盘C,6)+MA(大盘C,12)+MA(大盘C,24)/4;大盘R:=(大盘偏差-LLV(大盘偏差,N)/(HHV(大盘偏差,N)-LLV(大盘偏差,N)*10;大盘
3、K:=SMA(大盘R,M1,1);大盘D:=SMA(大盘K,M2,1);大盘股0:=3*大盘K-2*大盘D;大盘股J:=CONST(大盘股0);中盘股量比:=CONST(399374$VOL/REF(MA(399374$VOL,5),1)*10);中盘C:=(399374$C中盘H:=(399374$H中盘L:=(399374$L中盘O:=(399374$O中盘股涨跌:=CONST(中盘C-REF(中盘C,1)/REF(中盘C,1)*200);中盘偏差:=(2*中盘C+中盘H+中盘L+中盘O)/5-(MA(中盘C,3)+MA(中盘C,6)+MA(中盘C,12)+MA(中盘C,24)/4;中盘R
4、:=(中盘偏差-LLV(中盘偏差,N)/(HHV(中盘偏差,N)-LLV(中盘偏差,N)*10;中盘K:=SMA(中盘R,M1,1);中盘D:=SMA(中盘K,M2,1);中盘股0:=3*中盘K-2*中盘D;中盘股J:=CONST(中盘股0);小盘股量比:=CONST(399376$VOL/REF(MA(399376$VOL,5),1)*10);小盘C:=(399376$C小盘H:=(399376$H小盘L:=(399376$L小盘O:=(399376$O小盘股涨跌:=CONST(小盘C-REF(小盘C,1)/REF(小盘C,1)*200);小盘偏差:=(2*小盘C+小盘H+小盘L+小盘O)/
5、5-(MA(小盘C,3)+MA(小盘C,6)+MA(小盘C,12)+MA(小盘C,24)/4;小盘R:=(小盘偏差-LLV(小盘偏差,N)/(HHV(小盘偏差,N)-LLV(小盘偏差,N)*10;小盘K:=SMA(小盘R,M1,1);小盘D:=SMA(小盘K,M2,1);小盘股0:=3*小盘K-2*小盘D;小盘股J:=CONST(小盘股0);农林量比:=CONST(399110$VOL/REF(MA(399110$VOL,5),1)*10);农林C:=(399110$C农林H:=(399110$H农林L:=(399110$L农林O:=(399110$O农林涨跌:=CONST(农林C-REF(农
6、林C,1)/REF(农林C,1)*200);农林偏差:=(2*农林C+农林H+农林L+农林O)/5-(MA(农林C,3)+MA(农林C,6)+MA(农林C,12)+MA(农林C,24)/4;农林R:=(农林偏差-LLV(农林偏差,N)/(HHV(农林偏差,N)-LLV(农林偏差,N)*10;农林K:=SMA(农林R,M1,1);农林D:=SMA(农林K,M2,1);农林0:=3*农林K-2*农林D;农林J:=CONST(农林0);采掘量比:=CONST(399120$VOL/REF(MA(399120$VOL,5),1)*10);采掘C:=(399120$C采掘H:=(399120$H采掘L:
7、=(399120$L采掘O:=(399120$O采掘涨跌:=CONST(采掘C-REF(采掘C,1)/REF(采掘C,1)*200);采掘偏差:=(2*采掘C+采掘H+采掘L+采掘O)/5-(MA(采掘C,3)+MA(采掘C,6)+MA(采掘C,12)+MA(采掘C,24)/4;采掘R:=(采掘偏差-LLV(采掘偏差,N)/(HHV(采掘偏差,N)-LLV(采掘偏差,N)*10;采掘K:=SMA(采掘R,M1,1);采掘D:=SMA(采掘K,M2,1);采掘0:=3*采掘K-2*采掘D;采掘J:=CONST(采掘0);制造量比:=CONST(399130$VOL/REF(MA(399130$V
8、OL,5),1)*10);制造C:=(399130$C制造H:=(399130$H制造L:=(399130$L制造O:=(399130$O制造涨跌:=CONST(制造C-REF(制造C,1)/REF(制造C,1)*200);制造偏差:=(2*制造C+制造H+制造L+制造O)/5-(MA(制造C,3)+MA(制造C,6)+MA(制造C,12)+MA(制造C,24)/4;制造R:=(制造偏差-LLV(制造偏差,N)/(HHV(制造偏差,N)-LLV(制造偏差,N)*10;制造K:=SMA(制造R,M1,1);制造D:=SMA(制造K,M2,1);制造0:=3*制造K-2*制造D;制造J:=CONS
9、T(制造0);食品量比:=CONST(399131$VOL/REF(MA(399131$VOL,5),1)*10);食品C:=(399131$C食品H:=(399131$H食品L:=(399131$L食品O:=(399131$O食品涨跌:=CONST(食品C-REF(食品C,1)/REF(食品C,1)*200);食品偏差:=(2*食品C+食品H+食品L+食品O)/5-(MA(食品C,3)+MA(食品C,6)+MA(食品C,12)+MA(食品C,24)/4;食品R:=(食品偏差-LLV(食品偏差,N)/(HHV(食品偏差,N)-LLV(食品偏差,N)*10;食品K:=SMA(食品R,M1,1);
10、食品D:=SMA(食品K,M2,1);食品0:=3*食品K-2*食品D;食品J:=CONST(食品0);纺织量比:=CONST(399132$VOL/REF(MA(399132$VOL,5),1)*10);纺织C:=(399132$C纺织H:=(399132$H纺织L:=(399132$L纺织O:=(399132$O纺织涨跌:=CONST(纺织C-REF(纺织C,1)/REF(纺织C,1)*200);纺织偏差:=(2*纺织C+纺织H+纺织L+纺织O)/5-(MA(纺织C,3)+MA(纺织C,6)+MA(纺织C,12)+MA(纺织C,24)/4;纺织R:=(纺织偏差-LLV(纺织偏差,N)/(H
11、HV(纺织偏差,N)-LLV(纺织偏差,N)*10;纺织K:=SMA(纺织R,M1,1);纺织D:=SMA(纺织K,M2,1);纺织0:=3*纺织K-2*纺织D;纺织J:=CONST(纺织0);创投量比:=CONST(399958$VOL/REF(MA(399958$VOL,5),1)*10);创投C:=(399958$C创投H:=(399958$H创投L:=(399958$L创投O:=(399958$O创投涨跌:=CONST(创投C-REF(创投C,1)/REF(创投C,1)*200);创投偏差:=(2*创投C+创投H+创投L+创投O)/5-(MA(创投C,3)+MA(创投C,6)+MA(创
12、投C,12)+MA(创投C,24)/4;创投R:=(创投偏差-LLV(创投偏差,N)/(HHV(创投偏差,N)-LLV(创投偏差,N)*10;创投K:=SMA(创投R,M1,1);创投D:=SMA(创投K,M2,1);创投0:=3*创投K-2*创投D;创投J:=CONST(创投0);金融量比:=CONST(399190$VOL/REF(MA(399190$VOL,5),1)*10);金融C:=(399190$C金融H:=(399190$H金融L:=(399190$L金融O:=(399190$O金融涨跌:=CONST(金融C-REF(金融C,1)/REF(金融C,1)*200);金融偏差:=(2
13、*金融C+金融H+金融L+金融O)/5-(MA(金融C,3)+MA(金融C,6)+MA(金融C,12)+MA(金融C,24)/4;金融R:=(金融偏差-LLV(金融偏差,N)/(HHV(金融偏差,N)-LLV(金融偏差,N)*10;金融K:=SMA(金融R,M1,1);金融D:=SMA(金融K,M2,1);金融0:=3*金融K-2*金融D;金融J:=CONST(金融0);石化量比:=CONST(399135$VOL/REF(MA(399135$VOL,5),1)*10);石化C:=(399135$C石化H:=(399135$H石化L:=(399135$L石化O:=(399135$O石化涨跌:=
14、CONST(石化C-REF(石化C,1)/REF(石化C,1)*200);石化偏差:=(2*石化C+石化H+石化L+石化O)/5-(MA(石化C,3)+MA(石化C,6)+MA(石化C,12)+MA(石化C,24)/4;石化R:=(石化偏差-LLV(石化偏差,N)/(HHV(石化偏差,N)-LLV(石化偏差,N)*10;石化K:=SMA(石化R,M1,1);石化D:=SMA(石化K,M2,1);石化0:=3*石化K-2*石化D;石化J:=CONST(石化0);电子量比:=CONST(399136$VOL/REF(MA(399136$VOL,5),1)*10);电子C:=(399136$C电子H
15、:=(399136$H电子L:=(399136$L电子O:=(399136$O电子涨跌:=CONST(电子C-REF(电子C,1)/REF(电子C,1)*200);电子偏差:=(2*电子C+电子H+电子L+电子O)/5-(MA(电子C,3)+MA(电子C,6)+MA(电子C,12)+MA(电子C,24)/4;电子R:=(电子偏差-LLV(电子偏差,N)/(HHV(电子偏差,N)-LLV(电子偏差,N)*10;电子K:=SMA(电子R,M1,1);电子D:=SMA(电子K,M2,1);电子0:=3*电子K-2*电子D;电子J:=CONST(电子0);金属量比:=CONST(399137$VOL/
16、REF(MA(399137$VOL,5),1)*10);金属C:=(399137$C金属H:=(399137$H金属L:=(399137$L金属O:=(399137$O金属涨跌:=CONST(金属C-REF(金属C,1)/REF(金属C,1)*200);金属偏差:=(2*金属C+金属H+金属L+金属O)/5-(MA(金属C,3)+MA(金属C,6)+MA(金属C,12)+MA(金属C,24)/4;金属R:=(金属偏差-LLV(金属偏差,N)/(HHV(金属偏差,N)-LLV(金属偏差,N)*10;金属K:=SMA(金属R,M1,1);金属D:=SMA(金属K,M2,1);金属0:=3*金属K-
17、2*金属D;金属J:=CONST(金属0);机械量比:=CONST(399138$VOL/REF(MA(399138$VOL,5),1)*10);机械C:=(399138$C机械H:=(399138$H机械L:=(399138$L机械O:=(399138$O机械涨跌:=CONST(机械C-REF(机械C,1)/REF(机械C,1)*200);机械偏差:=(2*机械C+机械H+机械L+机械O)/5-(MA(机械C,3)+MA(机械C,6)+MA(机械C,12)+MA(机械C,24)/4;机械R:=(机械偏差-LLV(机械偏差,N)/(HHV(机械偏差,N)-LLV(机械偏差,N)*10;机械K:
18、=SMA(机械R,M1,1);机械D:=SMA(机械K,M2,1);机械0:=3*机械K-2*机械D;机械J:=CONST(机械0);医药量比:=CONST(399139$VOL/REF(MA(399139$VOL,5),1)*10);医药C:=(399139$C医药H:=(399139$H医药L:=(399139$L医药O:=(399139$O医药涨跌:=CONST(医药C-REF(医药C,1)/REF(医药C,1)*200);医药偏差:=(2*医药C+医药H+医药L+医药O)/5-(MA(医药C,3)+MA(医药C,6)+MA(医药C,12)+MA(医药C,24)/4;医药R:=(医药偏差
19、-LLV(医药偏差,N)/(HHV(医药偏差,N)-LLV(医药偏差,N)*10;医药K:=SMA(医药R,M1,1);医药D:=SMA(医药K,M2,1);医药0:=3*医药K-2*医药D;医药J:=CONST(医药0);地产量比:=CONST(399200$VOL/REF(MA(399200$VOL,5),1)*10);地产C:=(399200$C地产H:=(399200$H地产L:=(399200$L地产O:=(399200$O地产涨跌:=CONST(地产C-REF(地产C,1)/REF(地产C,1)*200);地产偏差:=(2*地产C+地产H+地产L+地产O)/5-(MA(地产C,3)
20、+MA(地产C,6)+MA(地产C,12)+MA(地产C,24)/4;地产R:=(地产偏差-LLV(地产偏差,N)/(HHV(地产偏差,N)-LLV(地产偏差,N)*10;地产K:=SMA(地产R,M1,1);地产D:=SMA(地产K,M2,1);地产0:=3*地产K-2*地产D;地产J:=CONST(地产0);服务量比:=CONST(399210$VOL/REF(MA(399210$VOL,5),1)*10);服务C:=(399210$C服务H:=(399210$H服务L:=(399210$L服务O:=(399210$O服务涨跌:=CONST(服务C-REF(服务C,1)/REF(服务C,1
21、)*200);服务偏差:=(2*服务C+服务H+服务L+服务O)/5-(MA(服务C,3)+MA(服务C,6)+MA(服务C,12)+MA(服务C,24)/4;服务R:=(服务偏差-LLV(服务偏差,N)/(HHV(服务偏差,N)-LLV(服务偏差,N)*10;服务K:=SMA(服务R,M1,1);服务D:=SMA(服务K,M2,1);服务0:=3*服务K-2*服务D;服务J:=CONST(服务0);电力量比:=CONST(399140$VOL/REF(MA(399140$VOL,5),1)*10);电力C:=(399140$C电力H:=(399140$H电力L:=(399140$L电力O:=
22、(399140$O电力涨跌:=CONST(电力C-REF(电力C,1)/REF(电力C,1)*200);电力偏差:=(2*电力C+电力H+电力L+电力O)/5-(MA(电力C,3)+MA(电力C,6)+MA(电力C,12)+MA(电力C,24)/4;电力R:=(电力偏差-LLV(电力偏差,N)/(HHV(电力偏差,N)-LLV(电力偏差,N)*10;电力K:=SMA(电力R,M1,1);电力D:=SMA(电力K,M2,1);电力0:=3*电力K-2*电力D;电力J:=CONST(电力0);建筑量比:=CONST(399150$VOL/REF(MA(399150$VOL,5),1)*10);建筑
23、C:=(399150$C建筑H:=(399150$H建筑L:=(399150$L建筑O:=(399150$O建筑涨跌:=CONST(建筑C-REF(建筑C,1)/REF(建筑C,1)*200);建筑偏差:=(2*建筑C+建筑H+建筑L+建筑O)/5-(MA(建筑C,3)+MA(建筑C,6)+MA(建筑C,12)+MA(建筑C,24)/4;建筑R:=(建筑偏差-LLV(建筑偏差,N)/(HHV(建筑偏差,N)-LLV(建筑偏差,N)*10;建筑K:=SMA(建筑R,M1,1);建筑D:=SMA(建筑K,M2,1);建筑0:=3*建筑K-2*建筑D;建筑J:=CONST(建筑0);IT业量比:=C
24、ONST(399170$VOL/REF(MA(399170$VOL,5),1)*10);IT业C:=(399170$CIT业H:=(399170$HIT业L:=(399170$LIT业O:=(399170$OIT业涨跌:=CONST(IT业C-REF(IT业C,1)/REF(IT业C,1)*200);IT业偏差:=(2*IT业C+IT业H+IT业L+IT业O)/5-(MA(IT业C,3)+MA(IT业C,6)+MA(IT业C,12)+MA(IT业C,24)/4;IT业R:=(IT业偏差-LLV(IT业偏差,N)/(HHV(IT业偏差,N)-LLV(IT业偏差,N)*10;IT业K:=SMA(I
25、T业R,M1,1);IT业D:=SMA(IT业K,M2,1);IT业0:=3*IT业K-2*IT业D;IT业J:=CONST(IT业0);批零量比:=CONST(399180$VOL/REF(MA(399180$VOL,5),1)*10);批零C:=(399180$C批零H:=(399180$H批零L:=(399180$L批零O:=(399180$O批零涨跌:=CONST(批零C-REF(批零C,1)/REF(批零C,1)*200);批零偏差:=(2*批零C+批零H+批零L+批零O)/5-(MA(批零C,3)+MA(批零C,6)+MA(批零C,12)+MA(批零C,24)/4;批零R:=(批零
26、偏差-LLV(批零偏差,N)/(HHV(批零偏差,N)-LLV(批零偏差,N)*10;批零K:=SMA(批零R,M1,1);批零D:=SMA(批零K,M2,1);批零0:=3*批零K-2*批零D;批零J:=CONST(批零0);传播量比:=CONST(399220$VOL/REF(MA(399220$VOL,5),1)*10);传播C:=(399220$C传播H:=(399220$H传播L:=(399220$L传播O:=(399220$O传播涨跌:=CONST(传播C-REF(传播C,1)/REF(传播C,1)*200);传播偏差:=(2*传播C+传播H+传播L+传播O)/5-(MA(传播C,
27、3)+MA(传播C,6)+MA(传播C,12)+MA(传播C,24)/4;传播R:=(传播偏差-LLV(传播偏差,N)/(HHV(传播偏差,N)-LLV(传播偏差,N)*10;传播K:=SMA(传播R,M1,1);传播D:=SMA(传播K,M2,1);传播0:=3*传播K-2*传播D;传播J:=CONST(传播0);物流量比:=CONST(399160$VOL/REF(MA(399160$VOL,5),1)*10);物流C:=(399160$C物流H:=(399160$H物流L:=(399160$L物流O:=(399160$O物流涨跌:=CONST(物流C-REF(物流C,1)/REF(物流C
28、,1)*200);物流偏差:=(2*物流C+物流H+物流L+物流O)/5-(MA(物流C,3)+MA(物流C,6)+MA(物流C,12)+MA(物流C,24)/4;物流R:=(物流偏差-LLV(物流偏差,N)/(HHV(物流偏差,N)-LLV(物流偏差,N)*10;物流K:=SMA(物流R,M1,1);物流D:=SMA(物流K,M2,1);物流0:=3*物流K-2*物流D;物流J:=CONST(物流0);军工量比:=CONST(399368$VOL/REF(MA(399368$VOL,5),1)*10);军工C:=(399368$C军工H:=(399368$H军工L:=(399368$L军工O
29、:=(399368$O军工涨跌:=CONST(军工C-REF(军工C,1)/REF(军工C,1)*200);军工偏差:=(2*军工C+军工H+军工L+军工O)/5-(MA(军工C,3)+MA(军工C,6)+MA(军工C,12)+MA(军工C,24)/4;军工R:=(军工偏差-LLV(军工偏差,N)/(HHV(军工偏差,N)-LLV(军工偏差,N)*10;军工K:=SMA(军工R,M1,1);军工D:=SMA(军工K,M2,1);军工0:=3*军工K-2*军工D;军工J:=CONST(军工0);新能源量比:=CONST(399941$VOL/REF(MA(399941$VOL,5),1)*10)
30、;新能C:=(399941$C新能H:=(399941$H新能L:=(399941$L新能O:=(399941$O新能源涨跌:=CONST(新能C-REF(新能C,1)/REF(新能C,1)*200);新能偏差:=(2*新能C+新能H+新能L+新能O)/5-(MA(新能C,3)+MA(新能C,6)+MA(新能C,12)+MA(新能C,24)/4;新能R:=(新能偏差-LLV(新能偏差,N)/(HHV(新能偏差,N)-LLV(新能偏差,N)*10;新能K:=SMA(新能R,M1,1);新能D:=SMA(新能K,M2,1);新能源0:=3*新能K-2*新能D;新能源J:=CONST(新能源0);S
31、TICKLINE(1=1,IF(CURR=2,食品涨跌,IF(CURR=5,建筑涨跌,IF(CURR=8,纺织涨跌,IF(CURR=11,物流涨跌,IF(CURR=14,农林涨跌,IF(CURR=17,制造涨跌,IF(CURR=20,电子涨跌,IF(CURR=23,机械涨跌,IF(CURR=26,医药涨跌,IF(CURR=29,金属涨跌,IF(CURR=32,石化涨跌,IF(CURR=35,地产涨跌,IF(CURR=38,金融涨跌,IF(CURR=41,服务涨跌,IF(CURR=44,电力涨跌,IF(CURR=47,采掘涨跌,IF(CURR=50,传播涨跌,IF(CURR=53,IT业涨跌,I
32、F(CURR=56,军工涨跌,IF(CURR=59,新能源涨跌,IF(CURR=62,创投涨跌,IF(CURR=65,批零涨跌,IF(CURR=68,大盘股涨跌,IF(CURR=71,中盘股涨跌,IF(CURR=74,小盘股涨跌,DRAWNULL),0,10,0),COLOR8E2368;食品:IF(CURR=2,食品J,IF(CURR=37,金融量比,DRAWNULL),STICK,LINETHICK8,COLOR6666FF;建筑:IF(CURR=5,建筑J,IF(CURR=52,IT业量比,DRAWNULL),STICK,LINETHICK8,COLORAA9966;纺织:IF(CURR
33、=8,纺织J,IF(CURR=49,传播量比,DRAWNULL),STICK,LINETHICK8,COLORCC66FF;物流:IF(CURR=11,物流J,IF(CURR=64,批零量比,DRAWNULL),STICK,LINETHICK8,COLORFFFFFF;农林:IF(CURR=14,农林J,IF(CURR=43,电力量比,DRAWNULL),STICK,LINETHICK8,COLOR33FF66;制造:IF(CURR=17,制造J,IF(CURR=40,服务量比,DRAWNULL),STICK,LINETHICK8,COLORCCCCCC;电子:IF(CURR=20,电子J,I
34、F(CURR=73,小盘股量比,DRAWNULL),STICK,LINETHICK8,COLOR00BBFF;机械:IF(CURR=23,机械J,IF(CURR=70,中盘股量比,DRAWNULL),STICK,LINETHICK8,COLORFFCC00;医药:IF(CURR=26,医药J,IF(CURR=67,大盘股量比,DRAWNULL),STICK,LINETHICK8,COLOR553388;金属:IF(CURR=29,金属J,IF(CURR=46,采掘量比,DRAWNULL),STICK,LINETHICK8,COLORFFFF66;石化:IF(CURR=32,石化J,IF(CUR
35、R=61,创投量比,DRAWNULL),STICK,LINETHICK8,COLORFF9988;地产:IF(CURR=35,地产J,IF(CURR=58,新能源量比,DRAWNULL),STICK,LINETHICK8,COLORAAAAFF;金融:IF(CURR=38,金融J,IF(CURR=55,军工量比,DRAWNULL),STICK,LINETHICK8,COLOR00FFFF;服务:IF(CURR=41,服务J,IF(CURR=34,地产量比,DRAWNULL),STICK,LINETHICK8,COLORFF66CC;电力:IF(CURR=44,电力J,IF(CURR=31,石化
36、量比,DRAWNULL),STICK,LINETHICK8,COLORFF2200;采掘:IF(CURR=47,采掘J,IF(CURR=28,金属量比,DRAWNULL),STICK,LINETHICK8,COLOR6F0000;传播:IF(CURR=50,传播J,IF(CURR=16,制造量比,DRAWNULL),STICK,LINETHICK8,COLOR6F00F0;IT业:IF(CURR=53,IT业J,IF(CURR=22,机械量比,DRAWNULL),STICK,LINETHICK8,COLOR000000;军工:IF(CURR=56,军工J,IF(CURR=19,电子量比,DRA
37、WNULL),STICK,LINETHICK8,COLOR6666FF;新能源:IF(CURR=59,新能源J,IF(CURR=25,医药量比,DRAWNULL),STICK,LINETHICK8,COLOR00AA33;创投:IF(CURR=62,创投J,IF(CURR=13,农林量比,DRAWNULL),STICK,LINETHICK8,COLORFF00FF;批零:IF(CURR=65,批零J,IF(CURR=10,物流量比,DRAWNULL),STICK,LINETHICK8,COLOR005500;大盘:IF(CURR=68,大盘股J,IF(CURR=7,纺织量比,DRAWNULL)
38、,STICK,LINETHICK8,COLORAAAAFF;中盘:IF(CURR=71,中盘股J,IF(CURR=4,建筑量比,DRAWNULL),STICK,LINETHICK8,COLOR00FFFF;小盘:IF(CURR=74,小盘股J,IF(CURR=1,食品量比,DRAWNULL),STICK,LINETHICK8,COLORFF66CC;板块:=IF(食品=食品J,食品,IF(建筑=建筑J,建筑,IF(纺织=纺织J,纺织,IF(物流=物流J,物流,IF(农林=农林J,农林,IF(制造=制造J,制造,IF(电子=电子J,电子,IF(机械=机械J,机械,IF(医药=医药J,医药,IF(
39、金属=金属J,金属,IF(石化=石化J,石化,IF(地产=地产J,地产,IF(金融=金融J,金融,IF(服务=服务J,服务,IF(电力=电力J,电力,IF(采掘=采掘J,采掘,IF(传播=传播J,传播,IF(IT业=IT业J,IT业,IF(军工=军工J,军工,IF(新能源=新能源J,新能源,IF(创投=创投J,创投,IF(大盘=大盘股J,大盘,IF(中盘=中盘股J,中盘,IF(小盘=小盘股J,小盘,IF(批零=批零J,批零,DRAWNULL);DRAWTEXT(食品=食品JOR建筑=建筑JOR纺织=纺织JOR物流=物流JOR农林=农林JOR制造=制造JOR电子=电子JOR机械=机械JOR医药=
40、医药JOR金属=金属JOR石化=石化JOR地产=地产JOR金融=金融JOR服务=服务JOR电力=电力JOR采掘=采掘JOR传播=传播JORIT业=IT业JOR军工=军工JOR新能源=新能源JOR创投=创投JOR大盘=大盘股JOR中盘=中盘股JOR批零=批零JOR小盘=小盘股J,0,板块),COLORFFFFFF;上证C:=(999999$C上证H:=(999999$H上证L:=(999999$L上证O:=(999999$O上证偏差:=(2*上证C+上证H+上证L+上证O)/5-(MA(上证C,3)+MA(上证C,6)+MA(上证C,12)+MA(上证C,24)/4;上证R:=(上证偏差-LLV
41、(上证偏差,N)/(HHV(上证偏差,N)-LLV(上证偏差,N)*10;上证K:=SMA(上证R,M1,1);上证D:=SMA(上证K,M2,1);上证J:3*上证K-2*上证D,COLORRED;深证C:=(399001$C深证H:=(399001$H深证L:=(399001$L深证O:=(399001$O深证偏差:=(2*深证C+深证H+深证L+深证O)/5-(MA(深证C,3)+MA(深证C,6)+MA(深证C,12)+MA(深证C,24)/4;深证R:=(深证偏差-LLV(深证偏差,N)/(HHV(深证偏差,N)-LLV(深证偏差,N)*10;深证K:=SMA(深证R,M1,1);深
42、证D:=SMA(深证K,M2,1);深证J:3*深证K-2*深证D,COLORFF0000;个股偏差:=(2*C+H+L+O)/5-(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24)/4;个股R:=(个股偏差-LLV(个股偏差,N)/(HHV(个股偏差,N)-LLV(个股偏差,N)*10;个股K:=SMA(个股R,M1,1);个股D:=SMA(个股K,M2,1);个股J:3*个股K-2*个股D,COLOR66CCFF,LINETHICK2;IF(CURR=12,CONST(上证J),DRAWNULL),COLORRED;IF(CURR=10,CONST(深证J),DRAWNU
43、LL),COLORFF0000;IF(CURR=8,CONST(个股J),DRAWNULL),COLOR66CCFF;DRAWTEXT(CURR=12ORCURR=10ORCURR=8,IF(CURR=12,CONST(上证J),IF(CURR=10,CONST(深证J),IF(CURR=8,CONST(个股J),DRAWNULL),IF(CURR=12,上证J,IF(CURR=10,深证J,IF(CURR=8,个股J,DRAWNULL),COLORFFFF00;DRAWTEXT(CURR=83,8,紫方柱板块涨跌幅DRAWTEXT(CURR=83,6,第1柱板块J线DRAWTEXT(CURR
44、=83,4,第2柱板块量比DRAWTEXT(CURR=55ORCURR=20,IF(CURR=55,上证量比*IF(上证量比0,1.3,1),IF(CURR=20,深证量比*IF(深证量比0,1.3,1),DRAWNULL),IF(CURR=55,上证量比,IF(CURR=20,深证量比,DRAWNULL),COLORFF00FF;DRAWTEXT(IF(食品JCONST(REF(食品0,1),CURR=2,DRAWNULL)ORIF(建筑JCONST(REF(建筑0,1),CURR=5,DRAWNULL)ORIF(纺织JCONST(REF(纺织0,1),CURR=8,DRAWNULL)ORI
45、F(物流JCONST(REF(物流0,1),CURR=11,DRAWNULL)ORIF(农林JCONST(REF(农林0,1),CURR=14,DRAWNULL)ORIF(制造JCONST(REF(制造0,1),CURR=17,DRAWNULL)ORIF(电子JCONST(REF(电子0,1),CURR=20,DRAWNULL)ORIF(机械JCONST(REF(机械0,1),CURR=23,DRAWNULL)ORIF(医药JCONST(REF(医药0,1),CURR=26,DRAWNULL)ORIF(金属JCONST(REF(金属0,1),CURR=29,DRAWNULL)ORIF(石化JC
46、ONST(REF(石化0,1),CURR=32,DRAWNULL)ORIF(地产JCONST(REF(地产0,1),CURR=35,DRAWNULL),0,),COLOR0000FF;DRAWTEXT(IF(CONST(REF(金融0,1)=金融J,CURR=38,DRAWNULL)ORIF(CONST(REF(服务0,1)=服务J,CURR=41,DRAWNULL)ORIF(CONST(REF(电力0,1)=电力J,CURR=44,DRAWNULL)ORIF(CONST(REF(采掘0,1)=采掘J,CURR=47,DRAWNULL)ORIF(CONST(REF(传播0,1)=传播J,CUR
47、R=50,DRAWNULL)ORIF(CONST(REF(IT业0,1)=IT业J,CURR=53,DRAWNULL)ORIF(CONST(REF(军工0,1)=军工J,CURR=56,DRAWNULL)ORIF(CONST(REF(新能源0,1)=新能源J,CURR=59,DRAWNULL)ORIF(CONST(REF(创投0,1)=创投J,CURR=62,DRAWNULL)ORIF(CONST(REF(大盘股0,1)=大盘股J,CURR=65,DRAWNULL)ORIF(CONST(REF(中盘股0,1)=中盘股J,CURR=68,DRAWNULL)ORIF(CONST(REF(批零0,1)=批零J,CURR=71,DRAWNULL)ORIF(CONST(REF(小盘股0,1)=小盘股J,CURR=74,DRAWNULL),0,),COLOR0000FF;通达信板块