主力追板,
出现紫色线才考虑
这指标网上搜集回来是加密的。觉得可以,就解开出来
指标源码:
DU:=DATE+19000000<=99240815;
A1:=EMA((C - REF(C,1)) / REF(C,3),10) * 100*DU;
A2:=EMA(EMA(EMA(EMA(A1,2),2),2),3)*DU;
A3:=(C - MA(C,26)) / MA(C,26) * 100*DU;
0,LINETHICK2;
A4:=1*DU;
A5:IF(MA((C - MA(C,28)) / MA(C,28),3) * 100 > 0 AND MA(C,5) > MA(C,10) AND A3 > EMA(MA((C - MA(C,28)) / MA(C,28),3) * 100,5) AND A2 > REF(A2,1),MA((C - MA(C,28)) / MA(C,28),3) * 100,0) * A4*DU;
持股线:(MA((C - MA(C,28)) / MA(C,28),3) * 100 > 0 AND MA(C,5) > MA(C,10) AND A3 > EMA(MA((C - MA(C,28)) / MA(C,28),3) * 100,5)) * A5 * A4*DU,LINETHICK1,COLORRED;
VARD1:=MA((C - MA(C,28)) / MA(C,28),3) * 100*DU;
A6:=(MA(C,3) + MA(C,6) + MA(C,12) + MA(C,24)) / 4*DU;
A7:=A6*DU + 3 * STD(A6,10)*DU;
A8:=MA(C,26)*DU + 2 * STD(C,26)*DU;
卖点:(V > 0 AND CROSS(0.5,持股线)) * REVERSE(MA((C - MA(C,28)) / MA(C,28),3) * 100) * A4,COLORGREEN;
STICKLINE(卖点,卖点,0,3,0),COLOR009900;
ABC1:=(V > 0 AND A5 > 0 AND A2 > REF(A2,1)) * EMA(A5,5),COLOR005999;
STICKLINE(ABC1,ABC1,0,2,0),COLORRED;
ABC2:=(V > 0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(EMA(C,2),HHV(EMA(C,5),26))) * EMA(A5,2),COLOR000999;
STICKLINE(ABC2,ABC2,0,3,0),COLORWHITE;
ABC3:=(V > 0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(EMA(C,2),HHV(EMA(C,5),26))) * -3,COLOR009999;
STICKLINE(ABC3,ABC3,0,6,0),COLORYELLOW;
STICKLINE(ABC3,ABC3,0,2,0),COLOR005555;
STICKLINE(ABC3,ABC3,0,1,0),COLOR007777;
STICKLINE(ABC3,ABC3,0,0.2,0),COLOR009999;
短线起爆:(V > 0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(EMA(C,2),HHV(EMA(C,5),26))) * 10 * A4*DU;
ABC4:=(V > 0 AND EMA((C - MA(C,28)) / MA(C,28),2) > MA((C - MA(C,28)) / MA(C,28),4) AND MA((C - MA(C,28)) / MA(C,28),4) > REF(MA((C - MA(C,28)) / MA(C,28),4),1) AND SMA(MAX(C - REF(C,1),0),14,1) / SMA(ABS(C - REF(C,1)),14,1) * 100 > 64.5 AND EMA(C,1) > (A7 OR A8)) * EMA(A5,5) / 2.5 * A4,COLORRED;
STICKLINE(ABC4,ABC4,0,3,0),COLORYELLOW;
起爆:=BARSLASTCOUNT(ABC1 AND ABC4)=1;
DRAWICON(起爆,MA((C - MA(C,28)) / MA(C,28),3) * 100 * 2,9);
ABC5:=(V > 0 AND EMA((C - MA(C,28)) / MA(C,28),2) > MA((C - MA(C,28)) / MA(C,28),4) AND MA((C - MA(C,28)) / MA(C,28),4) > REF(MA((C - MA(C,28)) / MA(C,28),4),1) AND (V > 0 AND A5 > 0 AND A2 > REF(A2,1)) * EMA(A5,5) = 0) * A3 * A4,COLORADA899;
IF(EMA(C,2) > HHV(EMA(C,5),26) AND A5 > 0 * A4,持股线,DRAWNULL),LINETHICK3,COLORMAGENTA;
A9:=EMA((EMA(C * V,3) / EMA(V,3) + EMA(C * V,6) / EMA(V,6) + EMA(C * V,12) / EMA(V,12) + EMA(C * V,24) / EMA(V,24)) / 4,13);
A10:=1.06 * A9 * A4;
A11:=(C - REF(C,1)) / REF(C,1) * 100;
DRAWTEXT(A11 > 8.5 AND CROSS(MA(C,1),EMA(H,10) * (1 + 5 / 100)) AND CROSS(MA(C,1),A10) > 0,MA((C - MA(C,28)) / MA(C,28),3) * 100 * 2,'追'),COLORYELLOW,DRAWABOVE;
DRAWICON(A11 > 8.5 AND CROSS(MA(C,1),EMA(H,10) * (1 + 5 / 100)) AND CROSS(MA(C,1),A10) > 0,MA((C - MA(C,28)) / MA(C,28),3) * 100 * 2,23);
DRAWICON(短线起爆,短线起爆,23);
DRAWTEXT_FIX(ISLASTBAR,0.90,0.95,0,'和*专属福利');