通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信一阳穿三线后洗盘指标公式
T1:=REF(C>O,3);
T2:=REF(C<O,2);
T3:=REF(C<O,1);
T4:=C>O;
T5:=C>REF(O,2)ANDC>REF(O,1);
T6:=VOL>REF(VOL,1)ANDVOL>REF(VOL,2);
T7:=REF(VOL,3)>REF(VOL,2)ANDREF(VOL,3)>REF(VOL,1);
一阳盖双阴:T1ANDT2ANDT3ANDT4ANDT5ANDT6ANDT7;
MA30:=MA(C,30);
MA60:=MA(C,60);
MA90:=MA(C,90);
MA120:=MA(C,120);
MA240:=MA(C,240);
EMA30:EMA(C,30);
EMA60:EMA(C,60);
EMA90:EMA(C,90);
EMA120:EMA(C,120);
EMA240:EMA(C,240);
Y1:=MAX(MAX(MAX(EMA60,EMA90),EMA120),EMA240);
X1:=MIN(MIN(MIN(EMA60,EMA90),EMA120),EMA240);
黏合1:=Y1/X1<=1.05;
Y2:=MAX(MAX(MAX(EMA30,EMA60),EMA90),EMA120);
X2:=MIN(MIN(MIN(EMA30,EMA60),EMA90),EMA120);
黏合2:=Y2/X2<=1.05;
SS:=CROSS(EMA30,EMA120)AND黏合2;
DD:=CROSS(EMA30,EMA240)AND黏合1;
C3:=REF(C,1);
半涨:=IF((C-C3)*100/C3>=(5-0.01*100/C3)OR(C-C3)*100/C3<=(9.9-0.01*100/C3),1,0);
STICKLINE(半涨ANDCLOSE>OPENANDEMA30<HIGHANDEMA60<HIGHANDEMA90>LOWANDEMA90<HIGHANDEMA120>LOWANDEMA120<HIGHOR
CLOSE>OPENANDEMA60<HIGHANDEMA90>LOWANDEMA90<HIGHANDEMA120>LOWANDEMA120<HIGHANDEMA240>LOWANDEMA240<HIGH,L,H,2,0),COLORYELLOW;
DRAWTEXT(半涨ANDCLOSE>OPENANDEMA30<HIGHANDEMA60<HIGHANDEMA90>LOWANDEMA90<HIGHANDEMA120>LOW
ANDEMA120<HIGHORCLOSE>OPENANDEMA60<HIGHANDEMA90>LOWANDEMA90<HIGHANDEMA120>LOWANDEMA120<HIGHANDEMA240>LOWANDEMA240<HIGH,H+0.05,'穿5线');
V0:=EMA(C,30)>REF(EMA(C,60),1)ANDEMA(C,60)>REF(EMA(C,90),1)ANDEMA(C,90)>REF(EMA(C,120),1);
角度MA30:=ATAN((EMA30/REF(EMA30,1)-1)*100)*180/3.1416;
角度MA60:=ATAN((EMA60/REF(EMA60,1)-1)*100)*180/3.1416;
角度MA90:=ATAN((EMA90/REF(EMA90,1)-1)*100)*180/3.1416;
DRAWTEXT(角度MA30>15AND角度MA60>10AND角度MA90>5ANDV0ANDMA(C,30)>=MA(C,240)ANDC<=MA(C,240)*1.15,Y1+0.2,'多'),COLORFF00FF;
DRAWTEXT(C>=MA(C,30)*1.8ORC>=MA(C,240)*3.5,MA30,'§'),COLORRED;
{一阳指选股}
A1:=REF(C,1)/REF(O,1)>1.03ANDREF(C,1)>REF(O,1)ANDREF(H,1)>REF(C,1)ANDREF(L,1)=REF(O,1);
A2:=REF(L,2)/REF(L,1)>1.02ANDL<REF(H,1);
A3:=C>REF(C,1)ANDC>MA(C,5);
A4:=REF(L,1)=LLV(L,7);
A5:=H>MA(C,5)ANDH>MA(C,10)ANDH>MA(C,20)ANDH>MA(C,60);
XG:A1ANDA2ANDA3ANDA4ANDA5;
突破买点:(LLV(L,6)=LLV(L,14)ANDREF(HHV(H,14),1)=REF(HHV(H,20),1)
ANDCROSS(C,REF(HHV(C,14),1)))OR(REF(HHV(H,5),1)=REF(HHV(H,9),1)
ANDCROSS(C,REF(HHV(C,5),1))ANDL>REF(L,1)ANDREF(LLV(L,2),1)=LLV(L,20))
OR(REF(HHV(H,16),1)=REF(HHV(H,22),1)ANDCROSS(C,REF(HHV(C,16),1))
ANDL>REF(L,1)ANDREF(LLV(L,6),1)=LLV(L,20))COLORMAGENTA;
[源码注释]通达信公式动态翻译结果
输出ZT:"880006$收盘价",COLOR0000CC
每日通达信公式解答:
编写条件:
昨天跳空高开今天开盘价大于昨天收盘价,并且今天光头阳线的选股公式。
编写方法:
XG:REF(O>REF(H,1),1)ANDO>REF(C,1)ANDC=HANDC>O;
评论(0)