通达信趋势介入点公式副图源码


A1:=EMA(F1,3);
DIFK:=EMA(F1,3);
DKK:=4*F1-3*A1;
TRLSX1:=MAX(MAX((HHV(F1,13)-LLV(F1,13)),ABS(REF(F1,1)-HHV(F1,13))),ABS(REF(F1,1)-LLV(F1,13)));
TRLSX3:=REF(F1,1)-REF(TRLSX2,1);
RSV14:=(CLOSE - LLV(LOW,5))/(HHV(HIGH,5) - LLV(LOW,5))-0.5;
D14:=EMA(K14,3),COLORGREEN,NODRAW;
DRAWBAND(F1,RGB(200,50,55),A1,RGB(50,100,10));
STICKLINE(MACDXG2,YY*1.2,0,2.8,0),COLORRED;
STICKLINE(YY>REF(YY,1) AND YY>0,0,YY,1.1,0),COLOR000099;
STICKLINE(YY<=REF(YY,1) AND YY>0,0,YY,1.8,0),COLOR888888;
STICKLINE(YY<=REF(YY,1) AND YY>0,0,YY,0.6,0),COLORDDDDDD;
STICKLINE(YY>REF(YY,1) AND YY< 0,0,YY,1.1,0),COLOR3388BB;
STICKLINE(YY<=REF(YY,1) AND YY< 0,0,YY,1.8,0),COLORFF3300;
STICKLINE(YY<=REF(YY,1) AND YY< 0,0,YY,0.6,0),COLORFF7700;
KDJXG:=REF(COUNT(J14< REF(J14,1),5)>=3,1) AND REF(J14,1)< -0.4 AND J14>REF(J14,1);
准备介入点:=REF(CROSS(0,YY),3) AND COUNT(F1>0 AND YY< REF(YY,1),4)=4 ;