【大智慧】预告买卖(个股、预警)
A:=FILTER(BACKSET(BARSTATUS=2,34),34); 0,COLORMAGENTA;
B:=FILTER(BACKSET(BARSTATUS=2,100),100); 0,COLORMAGENTA;
起始:STICKLINE(A,0,70,3,0);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
天:BARSLAST(a);
天1:BARSLAST(B);
ALL(天,j);
个股J:if(天>0 ,J,0), COLORYELLOW,LINETHICK2;
个股K:if(天>0,k,0),colorgreen;
获利:=WINNER(c);
STICKLINE(CROSS(k,d),天+15,天,0,0),colorgreen,LINETHICK2; DRAWICON(CROSS(k,d),天+23,1),ALIGN1;
STICKLINE(CROSS(天1,个股J),天1+15,天1,0,0),colorred,LINETHICK2; STICKLINE(CROSS(d,k),天1+15,天1,0,0),colorgreen,LINETHICK2; DRAWICON(CROSS(d,k),天1+23,2),ALIGN1;
DRAWICON(CROSS(天1,个股J),天1+23,10),ALIGN1;
DRAWTEXT(CROSS(天1,个股J),天1+28,'预警'),ALIGN1,COLORFFFF00; DRAWICON(CROSS(个股J,0),个股J+3,7),ALIGN1;
STICKLINE(CROSS(个股J,0),个股J+20,个股J,0,0),colorgreen,LINETHICK2;
DRAWTEXT(CROSS(个股J,0),个股J+28,'预喜'),ALIGN1,colorred; DRAWICON(CROSS(个股J,天),天+20,7),ALIGN1;
STICKLINE(CROSS(个股J,天),天+20,个股J,0,0),colorgreen,LINETHICK2; DRAWTEXT(CROSS(个股J,天),天+28,'喜'),ALIGN1,colorred;
DRAWTEXT(天=1,36,' 年'), colorgreen;
DRAWTEXT(天=1,20,' 月'), colorgreen;
DRAWTEXT(天=1,10,' 日'), colorgreen;
DRAWTEXT(天=1,36,NUMTOSTRN(YEAR,0)),ALIGN2, colorred;
DRAWTEXT(天=1,20,NUMTOSTRN(MONTH,0)),ALIGN2, colorred;
DRAWTEXT(天=1,10,NUMTOSTRN(DAY,0)),ALIGN2,colorred;
STICKLINE(ma(c,5)>ref(ma(c,5),1),天,天,18,0),colorred;