当前位置: 爱约股 > 通达信答疑 > > 将【3日内买入】附图中当天出现(买入)信号时做一个选股公式
将【3日内买入】附图中当天出现(买入)信号时做一个选股公式
来源:Internet,编辑:爱约股,2012-10-27
编写要求:
V1:=EMA(CLOSE,60)-EMA(CLOSE,300); V2:=EMA(V1,300); V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; V4:SMA(V3,2,1); V5:SMA(V4,2,1); V6:=CLOSE/REF(CLOSE,3)>=1.1; V7:=BACKSET(V6,3); 买入:IF((V7 AND COUNT(V7,3)=1),30,0),COLORYELLOW,LINETHICK3; DRAWTEXT(买入,35,'买入 '),COLORYELLOW,LINETHICK3;
爱约股解答:
V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2:=EMA(V1,300);
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
V4:=SMA(V3,2,1);
V5:=SMA(V4,2,1);
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
买入:V7 AND COUNT(V7,3)=1;