通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信倍量阳选股指标公式
AA1:CROSS(C,MA(C,5))ANDCROSS(C,MA(C,10))ANDCROSS(C,MA(C,20))ANDCROSS(C,MA(C,30));
AA2:=CROSS(MA(V,5),MA(V,10));
一阳穿四线:AA1ANDAA2;
Q:=20;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,30);
MA4:=MA(CLOSE,60);
MA5:=MA(CLOSE,120);
A:=MAX(MAX(MAX(MA1,MA2),MAX(MA3,MA4)),MA5);
B:=MIN(MIN(MIN(MA1,MA2),MIN(MA3,MA4)),MA5);
BARSLAST(O<=BANDC>=A)=Q;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
TUO:=COUNT(CROSS(MA1,MA2),21)=1AND
CROSS(MA2,MA3){COUNT(CROSS(MA2,MA3),21)=1}AND
COUNT(CROSS(MA1,MA3),21)=1AND
BARSLAST(CROSS(MA1,MA2))>BARSLAST(CROSS(MA1,MA3))AND
BARSLAST(CROSS(MA1,MA3))>BARSLAST(CROSS(MA2,MA3))AND
MA1>REF(MA1,1);
A1:=C>MAX(MA1,MAX(MA2,MA3))ANDO<MIN(MA1,MIN(MA2,MA3));
A2:=COUNT(A1,21)=1;
TUOANDA2;
量:vol,VOLstICK,colorligray;
几倍:V/REF(V,1),coloryellow,NODRAW;
倍数:=1.9;
倍量:VOL>=REF(V,1)*倍数AND(IF(C<O,C>REF(C,1),1)),coloryellow,NODRAW;
倍量:=vol>=REF(V,1)*1.4ANDVOL<=REF(V,1)*1.6ANDC>REF(C,1);stICKLINE(倍量,0,V,5,0),coloryellow;
量1:IF(ISNULL(REFX(&CLOSE,1))ANDstRFIND(PERIODNAME,"日线"),vol*240/FROMOPEN,0)/10000;
量2:VOL/10000,COLOR00ffff;
倍量:=VOL>=REF(V,1)*1.9ANDC>REF(C,1);
平量:Abs(V-HHV(REF(V,1),5))/HHV(REF(V,1),5)<=0.03ORABS(V-REF(V,1))/REF(V,1)<=0.03,colorwhite;
STICKLINE(ISNULL(REFX(&CLOSE,1))ANDSTRFIND(PERIODNAME,"日线"),量1*10000,0,11,1),COLORffffff;
STICKLINE(C>=O,0,V,9,0),color0000aa;
STICKLINE(C<O,0,V,9,0),color00aa00;
STICKLINE(倍量,0,V,7,0),coloryellow;
DRAWTEXT(倍量,V*1.05,'倍'),coloryellow;
STICKLINE(平量,0,V,7,0),colorwhite;
MA60:=MA(C,60);
UU:=1,VOL=LLV(VOL,34)ANDMA60>REF(MA60,1);
地量选股:1,REF(VOL,1)=LLV(VOL,34)ANDMA60>REF(MA60,1),COLORRED,LINETHICK3;
MA1:MA(CLOSE,34);
K1:=(C+H+L)/3;
D1:=MA(K1,4);
高:=REF(HHV(H,80),3);
低:=REF(LLV(L,80),3);
顶点:REFDATE(高,DATE),COLORGREEN,LINETHICK3;
低点:REFDATE(低,DATE),COLORRED,LINETHICK2;
AA05:MA(C,5),LINETHICK3,COLOR00CCFF;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
IF(BB05>30ANDAA05>REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORRED;
DRAWTEXT(REF(C,1)>D1ANDC<D1ANDD1>REF(D1,1),H*1.02,'←卖'),COLORGREEN;
DRAWTEXT(REF(C,1)<D1ANDC>D1ANDD1<REF(D1,1),L*0.98,'←买'),COLORRED;
[源码注释]通达信公式动态翻译结果
N赋值:9
M赋值:2
TJ赋值:最近M日成交量(手)连涨 AND 收盘价上穿收盘价的250日简单移动平均
输出XG:最近N日存在TJ AND 最近M日成交量(手)连跌 AND 最低价<收盘价的250日简单移动平均 AND 收盘价>收盘价的250日简单移动平均
每日通达信公式解答:
编写要求:
股价回踩60均线,DIFF大于0选股.
公式在线网解答:
REF(EVERY(C>=MA(C,60),2),1) AND L<=MA(C,60) AND C>MA(C,60) AND MACD.DIF>0;
评论(0)