通达信突破20均线 主图/选股源码贴图

2016-10-10 21:11:00来源:本站整理浏览:269

股价突破20均线后回调洗盘,再次上攻后一般又一波涨幅。


 主图源码

M20:MA(C,20),COLORLIRED,DOTLINE;
 T1:=BARSLAST(CROSS(C>=M20,0.5));
 T2:=BARSLAST(CROSS(C<M20,0.5));
 T3:=SUMBARS(T1=0,2);
 ZF:=(C-REF(C,T1+1))/REF(C,T1+1)*100;
 HZF:=REF(HHV(ZF,T1+1),T2);
 DF:=(C-REF(C,T2+1))/REF(C,T2+1)*100;
 LDF:=LLV(DF,T2+1);
 L1:=LLV(L,T2+1);
 L2:=REF(L1,T3-1);
 AC:=COUNT(T2=0,T3)=1;
 AC1:=O<M20 AND C>=M20 AND HZF<15 AND LDF>-25 AND LDF<-10;
 AC2:=REF(T1,T2)>1 AND T2>1 AND MACD.DIF>MACD.DEA AND MACD.MACD>REF(HHV(MACD.DIF,2),1);
 AC3:=HSL<REF(HSL,T2) AND LLV(L,T2+1)>BOLL.LB*0.9 AND HHV(L,T2+1)<M20;
 AC4:=AMOUNT>REF(AMOUNT,1);
 XG:=AC AND AC1 AND AC2 AND AC3 AND AC4;
 DRAWICON(XG,L,1);


 

选股源码

M20:=MA(C,20);
 T1:=BARSLAST(CROSS(C>=M20,0.5));
 T2:=BARSLAST(CROSS(C<M20,0.5));
 T3:=SUMBARS(T1=0,2);
 ZF:=(C-REF(C,T1+1))/REF(C,T1+1)*100;
 HZF:=REF(HHV(ZF,T1+1),T2);
 DF:=(C-REF(C,T2+1))/REF(C,T2+1)*100;
 LDF:=LLV(DF,T2+1);
 L1:=LLV(L,T2+1);
 L2:=REF(L1,T3-1);
 AC:=COUNT(T2=0,T3)=1;
 AC1:=O<M20 AND C>=M20 AND HZF<15 AND LDF>-25 AND LDF<-10;
 AC2:=REF(T1,T2)>1 AND T2>1 AND MACD.DIF>MACD.DEA AND MACD.MACD>REF(HHV(MACD.DIF,2),1);
 AC3:=HSL<REF(HSL,T2) AND LLV(L,T2+1)>BOLL.LB*0.9 AND HHV(L,T2+1)<M20;
 AC4:=AMOUNT>REF(AMOUNT,1);
 XG:AC AND AC1 AND AC2 AND AC3 AND AC4;

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式