在线检测未来函数

通达信大单买卖指标公式

来源:Internet,编辑:股旁网,2013-04-07

N1:=3;N2:=5;
MR:=BUYVOL*C/100;
ZMR:=SUM(MR,0);
MC:=SELLVOL*C/100;
ZMC:=SUM(MC,0);
RCH:=ZMR+ZMC;
RCC:=ZMR-ZMC;
MR0:=IF(MR<5,MR,0);
ZMR0:=SUM(MR0,0);
MC0:=IF(MC<5 ,MC,0);
ZMC0:=SUM(MC0,0);
MR5:=IF(MR<10 AND MR>=5 ,MR,0);
ZMR5:=SUM(MR5,0);
MC5:=IF(MC<10 AND MC>=5,MC,0);
ZMC5:=SUM(MC5,0);
MR10:=IF(MR<25 AND MR>=10 ,MR,0);
ZMR10:=SUM(MR10,0);
MC10:=IF(MC<25 AND MC>=10 ,MC,0);
ZMC10:=SUM(MC10,0);
MR25:=IF(MR<50 AND MR>=25 ,MR,0);
ZMR25:=SUM(MR25,0);
MC25:=IF(MC<50 AND MC>=25 ,MC,0);
ZMC25:=SUM(MC25,0);
MR50:=IF(MR<75 AND MR>=50 ,MR,0);
ZMR50:=SUM(MR50,0);
MC50:=IF(MC<75 AND MC>=50 ,MC,0);
ZMC50:=SUM(MC50,0);
MR75:=IF(MR<100 AND MR>=75,MR,0);
ZMR75:=SUM(MR75,0);
MC75:=IF(MC<100 AND MC>=75,MC,0);
ZMC75:=SUM(MC75,0);
MR101:=IF(MR>=100 AND MR<200,MR,0);
ZMR100:=SUM(MR101,0);
MC101:=IF(MC>=100 AND MR<200,MC,0),COLORCYAN;
ZMC100:=SUM(MC101,0);
JG:=10*N2;
MR201:=IF(MR>JG ,MR,0),COLORRED;
ZMR200:=SUM(MR201,0);
{n1=1,100,2;n2=1,10,20;}
MC201:=IF(MC>JG,MC,0),COLORCYAN;
ZMC200:=SUM(MC201,0);
MMC200:=ZMR200-ZMC200;
MMC0:=ZMR0-ZMC0;
MMC5:=ZMR5-ZMC5;
MMC10:=ZMR10+ZMR25+ZMR50-ZMC10-ZMC25-ZMC50;
MMC75:=ZMR75+ZMR100-ZMC75-ZMC100;
MRL:=SUM(BUYVOL,0);
MCL:=SUM(SELLVOL,0);
DYDD:=100*N1;
TDDR:=SUM(IF(BUYVOL>800,BUYVOL,0),0);
TDDC:=SUM(IF(SELLVOL>800,SELLVOL,0),0);
DDR:=SUM(IF(BUYVOL>DYDD,BUYVOL,0),0);
DDC:=SUM(IF(SELLVOL>DYDD,SELLVOL,0),0);
XDR:=MRL-DDR;
XDC:=MCL-DDC;
DR:=SUM(IF(BUYVOL>DYDD,BUYVOL,0)*C,0);
DRJ:=DR/DDR;
DC:=SUM(IF(SELLVOL>DYDD,SELLVOL,0)*C,0);
DCJ:=DC/DDC;
散户买:BUYVOL-MR201,NODRAW;
散户卖:SELLVOL-MC201,NODRAW;
DRAWBAND(MR201,255,LLV(MR201,60),255);
DRAWBAND(MC201,RGB(34,139,34),LLV(MC201,60),RGB(34,139,34));
MR100:=INTPART(MR101),LINETHICK2,COLORYELLOW;
MC100:=INTPART(MC101),LINETHICK1;
DDB:INTPART(MR201),LINETHICK2;
DDS:INTPART(MC201),LINETHICK2;

通达信大单买卖指标公式

 

相关文章