〈盛唐参考〉中的数据除DZH2收盘前大单对比图中当天柱图是用预测数据
作图外,其它全是接收到的数据作出。
第一个指标是需要建立一个引用指标:
{分时引2 DZH2}
实际V:= VOL ;
Var1:=DYNAINFO(17)*REF(MA(VOL,5),1);
Var2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
Var3:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
预测V1:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,Var1,Var2);
预测V:=IF(实际V>=预测V1,实际V,预测V1);
预比昨:预测V/REF(实际V,1),LINETHICK0;
比1:=预测V/实际V;
比比:=BETWEEN(比1,0.8,1.2);
比:=IF(比比,1,比1);
人气:EXTDATA(11),LINETHICK0;
大单买:EXTDATA(12),LINETHICK0;
总:IF(CATEGORY=0,AMOUNT/10000,V),LINETHICK0;
日总诤:IF(CATEGORY=0,人气*总/100,FRACPART(人气)*总);
大单卖:大单买-日总诤,LINETHICK0;
总买入:=(总-日总诤)/2+日总诤;
总卖出:=(总-日总诤)/2;
咋总诤:REF(日总诤,1);
前总诤:REF(日总诤,2);
大前诤:REF(日总诤,3);
总净换:IF(CATEGORY=0,人气,日总诤/capital*100);
咋换:REF(总净换,1);
前换:REF(总净换,2);
大前换:REF(总净换,3);
三日总量:=SUM(总,3);
五日总量:=SUM(总,5);
九日总量:=SUM(总,9);
二一总量:=SUM(总,21);
三日总诤:SUM(日总诤,3);
咋三:REF(三日总诤,1);
前三:REF(三日总诤,2);
三天总人气:=三日总诤/三日总量*100;
总净换3:IF(CATEGORY=0,三天总人气,三日总诤/capital*100);
咋换3:REF(总净换3,1);
前换3:REF(总净换3,2);
五日总诤:SUM(日总诤,5);
咋五:REF(五日总诤,1);
前五:REF(五日总诤,2);
五天总人气:=五日总诤/三日总量*100;
总净换5:IF(CATEGORY=0,五天总人气,五日总诤/capital*100);
咋换5:REF(总净换5,1);
前换5:REF(总净换5,2);
九日总诤:SUM(日总诤,9);
咋九:REF(九日总诤,1);
前九:REF(九日总诤,2);
九天总人气:=九日总诤/九日总量*100;
总净换9:IF(CATEGORY=0,九天总人气,九日总诤/capital*100);
咋换9:REF(总净换9,1);
前换9:REF(总净换9,2);
二一总诤:SUM(日总诤,21);
咋二一:REF(二一总诤,1);
前二一:REF(二一总诤,2);
二一总人气:=二一总诤/二一总量*100;
换21:IF(CATEGORY=0,二一总人气,二一总诤/capital*100);
咋换21:REF(换21,1);
前换21:REF(换21,2);
VVH:=MAX(总*比,REF(总,1),REF(总,2),REF(总,3));
mm:=900/VVH;
mm3:mm*总*比,LINETHICK0;
mm31:mm*总买入*比,LINETHICK0 ;
mm32:mm*总卖出*比,LINETHICK0 ;
mm2:mm*REF(总,1),LINETHICK0 ;
mm21:mm*REF(总买入,1),LINETHICK0 ;
mm22:mm*REF(总卖出,1),LINETHICK0 ;
mm1:mm*REF(总,2) ,LINETHICK0;
mm11:mm*REF(总买入,2),LINETHICK0 ;
mm12:mm*REF(总卖出,2),LINETHICK0 ;
mm0:mm*REF(总,3),LINETHICK0 ;
mm01:mm*REF(总买入,3),LINETHICK0 ;
mm02:mm*REF(总卖出,3) ,LINETHICK0;
下面是主公式:{盛唐参考 DZH2}
FILLRGN(1,1000,1),color333333;
总:"分时引2.总#day",LINETHICK0;
人气:="分时引2.人气#day";
大单买:"分时引2.大单买#day",LINETHICK0;
大单:=IF(CATEGORY=0,人气*总/100,FRACPART(人气)*总);
大单卖:"分时引2.大单卖#day",LINETHICK0;
S3:="分时引2.三日总诤#day";
S3换:="分时引2.总净换3#day";
昨S3:="分时引2.咋三#day";
昨S3换:="分时引2.咋换3#day";
前S3:="分时引2.前三#day";
前S3换:="分时引2.前换3#day";
S5:="分时引2.五日总诤#day";
S5换:="分时引2.总净换5#day";
昨S5:="分时引2.咋五#day";
昨S5换:="分时引2.咋换5#day";
前S5:="分时引2.前五#day";
前S5换:="分时引2.前换5#day";
S9:="分时引2.九日总诤#day";
S9换:="分时引2.总净换9#day";
二一总诤:="分时引2.二一总诤#day";
咋二一:="分时引2.咋二一#day";
换21:="分时引2.换21#day";
咋换21:="分时引2.咋换21#day";
大单净量:="分时引2.日总诤#day";
大单换:="分时引2.总净换#day";
昨大单净:="分时引2.咋总诤#day";
昨大单换:="分时引2.咋换#day";
前大单净:="分时引2.前总诤#day";
前大单换:="分时引2.前换#day";
DRAWTEXTREL(710,90,' 三日总净量:'+NUMTOSTRN(S3,2)),COLORFFFFFF,LAYER0;
DRAWTEXTREL(890,90,'换%:'+NUMTOSTRN(S3换,2)),COLORFFFFFF,LAYER0;
DRAWTEXTREL(710,320,' 昨三日总净:'+NUMTOSTRN(昨S3,2)),coloryellow,LAYER0;
DRAWTEXTREL(890,320,'换%:'+NUMTOSTRN(昨S3换,2)),coloryellow,LAYER0;
DRAWTEXTREL(710,550,' 前三日总净:'+NUMTOSTRN(前S3,2)),coloryellow,LAYER0;
DRAWTEXTREL(890,550,'换%:'+NUMTOSTRN(前S3换,2)),coloryellow,LAYER0;
DRAWTEXTREL(710,780,' 大单净量 :'+NUMTOSTRN(大单净量,0)),ColorFFFFFF,LAYER0;
DRAWTEXTREL(890,780,'换%:'+NUMTOSTRN(大单换,2)),ColorFFFFFF,LAYER0;
DRAWTEXTREL(425,90,' 五日总净量:'+NUMTOSTRN(S5,2)),COLORFFFFFF,LAYER0;
DRAWTEXTREL(605,90,'%:'+NUMTOSTRN(S5换,2)),COLORFFFFFF,LAYER0;
DRAWTEXTREL(425,320,' 昨五日总净:'+NUMTOSTRN(昨S5,2)),coloryellow,LAYER0;
DRAWTEXTREL(605,320,'%:'+NUMTOSTRN(昨S5换,2)),coloryellow,LAYER0;
DRAWTEXTREL(425,550,' 前五日总净:'+NUMTOSTRN(前S5,2)),coloryellow,LAYER0;
DRAWTEXTREL(605,550,'%:'+NUMTOSTRN(前S5换,2)),coloryellow,LAYER0;
DRAWTEXTREL(425,780,' 昨大单净 :'+NUMTOSTRN(昨大单净,2)),ColorFFFFFF,LAYER0;
DRAWTEXTREL(605,780,'%:'+NUMTOSTRN(昨大单换,2)),ColorFFFFFF,LAYER0;
DRAWTEXTREL(105,90,' 九日总净量:'+NUMTOSTRN(S9,2)),COLORFFFFFF,LAYER0;
DRAWTEXTREL(295,90,'%:'+NUMTOSTRN(S9换,2)),COLORFFFFFF,LAYER0;
DRAWTEXTREL(105,320,' 二一日总诤:'+NUMTOSTRN(二一总诤,2)),coloryellow,LAYER0;
DRAWTEXTREL(295,320,'%:'+NUMTOSTRN(换21,2)),coloryellow,LAYER0;
DRAWTEXTREL(105,550,' 咋二一总诤:'+NUMTOSTRN(咋二一,2)),coloryellow,LAYER0;
DRAWTEXTREL(295,550,'%:'+NUMTOSTRN(咋换21,2)),coloryellow,LAYER0;
DRAWTEXTREL(105,780,' 前大单净 :'+NUMTOSTRN(前大单净,2)),ColorFFFFFF,LAYER0;
DRAWTEXTREL(295,780,'%:'+NUMTOSTRN(前大单换,2)),ColorFFFFFF,LAYER0;
百日总:=SUM(总,100);
百日总换:=百日总/capital*100;
DRAWTEXTREL(15,950,' 百日总换:'+NUMTOSTRN(百日总换,2)+'%'),coloryellow;
DRAWTEXTREL(690,950,' 人气:'+NUMTOSTRN(人气,3)),COLORFFFFFF;
市盈率:=DYNAINFO(39);
DRAWTEXTREL(490,950,' 市盈率:'+NUMTOSTRN(市盈率,3)),COLORFFFFFF;
mm0:="分时引2.mm0#day";
mm01:="分时引2.mm01#day";
mm02:="分时引2.mm02#day";
mm1:="分时引2.mm1#day";
mm11:="分时引2.mm11#day";
mm12:="分时引2.mm12#day";
mm2:="分时引2.mm2#day";
mm21:="分时引2.mm21#day";
mm22:="分时引2.mm22#day";
mm3:="分时引2.mm3#day";
mm31:="分时引2.mm31#day";
mm32:="分时引2.mm32#day";
DRAWRECTREL(10,900-mm0,15,900 ,RGB(0,200,200)),COLORFFFFFF,LAYER1;
DRAWRECTREL(10,900-mm01,15,900 ,RGB(200,0,0)),COLORFFFFFF,LAYER1;
DRAWRECTREL(15,900-mm02,20,900 ,RGB(0,200,200)),COLORFFFFFF,LAYER1;
DRAWRECTREL(25,900-mm1,30,900 ,RGB(0,200,200)),COLORFFFFFF,LAYER1;
DRAWRECTREL(25,900-mm11,30,900 ,RGB(200,0,0)),COLORFFFFFF,LAYER1;
DRAWRECTREL(30,900-mm12,35,900 ,RGB(0,200,200)),COLORFFFFFF,LAYER1;
DRAWRECTREL(40,900-mm2,45,900 ,RGB(0,200,200)),COLORFFFFFF,LAYER1;
DRAWRECTREL(40,900-mm21,45,900 ,RGB(200,0,0)),COLORFFFFFF,LAYER1;
DRAWRECTREL(45,900-mm22,50,900 ,RGB(0,200,200)),COLORFFFFFF,LAYER1;
DRAWRECTREL(55,900-mm3,60,900 ,RGB(0,200,200)),COLORFFFFFF,LAYER1;
DRAWRECTR |