组合一个实用的通达信倍量过左峰主图公式源码
注意:把源码复制后把参数填上去,否则通不过!参数, N1:最小:1,最大:20,缺省值5, N2:最小:1,最大50,缺省值:5;
源码如下:
A: MA(C,21),COLORRED,LINETHICK2;
B: (EMA(C,N1)*7+EMA(C,N2)*3)/10,COLORWHITE,LINETHICK2;
STICKLINE(B>A,A,B,0.1,1)COLORBLUE;
STICKLINE(B<A,A,B,0.1,1),COLOR777777;
JJ:=(CLOSE+HIGH+LOW)/3;
E:=EMA(JJ,5);
D:=REF(E,1);
持股:STICKLINE(E>D,E,D,3,0),COLORFF00FF;
AA:=REF(HIGH,9)=HHV(HIGH,2*9+1);
BB:=FILTER(AA,9);
AB:=BACKSET(BB,9+1);
HD:=FILTER(AB,9);
前高:=REF(H,BARSLAST(HD));
倍量:=VOL/REF(VOL,1)>=1.3;
突破前高:=CROSS(C,前高);
XG:= 倍量 AND 突破前高;
YX:=DRAWLINE(XG,L,XG,L,1);
STICKLINE(CURRBARSCOUNT<100 AND XG,YX,YX,50,0),COLORYELLOW;
STICKLINE(XG,OPEN,CLOSE,1.2,0),COLOR00FFFF;
DRAWTEXT(XG,L*0.98,'倍量过左峰'),COLORYELLOW;