通达信 条件如下第1个和第2个组合一个:第一个:M1:=INBLOCK('ST板块')=0 AND VOL>0;N:=20;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));Q
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 08:34:43
通达信 条件如下第1个和第2个组合一个:第一个:M1:=INBLOCK('ST板块')=0 AND VOL>0;N:=20;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));Q
通达信 条件如下
第1个和第2个组合一个:
第一个:M1:=INBLOCK('ST板块')=0 AND VOL>0;N:=20;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHICK;DX:=MA(DDX,5)*N;DDX1:=SMA(DX,3,1),COLORFFFFFF;DDX2:=SMA(DDX1,3,1),COLOR00FFFF;DDX3:=EMA(DDX2,5),COLORFF00FF;预警一:DDX>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDX1,DDX2) AND M1;第2个:PN1:=DYNAINFO(8)>0;PN2:=DYNAINFO(17)>0;PN3:=DYNAINFO(22)>0;PN4:=DYNAINFO(23)>0;ST:=IF(NAMELIKE('ST')=1,0,IF(NAMELIKE('S ST')=1,0,IF(NAMELIKE('*ST')=1,0,1))); 去除:PN1*PN2*PN3*PN4*ST; {只选非ST类和当天非停牌的股------用于配合选股公式};
通达信 条件如下第1个和第2个组合一个:第一个:M1:=INBLOCK('ST板块')=0 AND VOL>0;N:=20;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));Q
M1:=INBLOCK('ST板块')=0 AND VOL>0;N:=20;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHICK;DX:=MA(DDX,5)*N;DDX1:=SMA(DX,3,1),COLORFFFFFF;DDX2:=SMA(DDX1,3,1),COLOR00FFFF;DDX3:=EMA(DDX2,5),COLORFF00FF;预警一:=DDX>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDX1,DDX2) AND M1;PN1:=DYNAINFO(8)>0;PN2:=DYNAINFO(17)>0;PN3:=DYNAINFO(22)>0;PN4:=DYNAINFO(23)>0;ST:=IF(NAMELIKE('ST')=1,0,IF(NAMELIKE('S ST')=1,0,IF(NAMELIKE('*ST')=1,0,1))); 去除:=PN1*PN2*PN3*PN4*ST;XG:预警一 AND 去除;
(这样即可)