飞狐源码:
DRAWGBK(C>O, COLORRGB(1,100,125),COLORRGB(1,30,10),0);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), COLORCYAN,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;
DRAWICON(CROSS(天1,个股J),天1,5),ALIGN1;
DRAWTEXT(CROSS(天1,个股J),天1+28,'预警'),ALIGN1,COLORFFFF00;
DRAWICON(CROSS(个股J,0),个股J+3,4),ALIGN1;
STICKLINE(CROSS(个股J,0),个股J+20,个股J,0,0),colorgreen,LINETHICK2;
DRAWTEXT(CROSS(个股J,0),个股J+28,'预喜'),ALIGN1,colorred;
DRAWTEXT(天=1,36,' 年'), colorgreen;
DRAWTEXT(天=1,20,' 月'), colorgreen;
DRAWTEXT(天=1,10,' 日'), colorgreen;
DRAWTEXT(天=1,36,NUMTOSTR(YEAR,0)),ALIGN2, colorred;
DRAWTEXT(天=1,20,NUMTOSTR(MONTH,0)),ALIGN2, colorred;
DRAWTEXT(天=1,10,NUMTOSTR(DAY,0)),ALIGN2,colorred;
STICKLINE(个股J>0 AND 个股J>=REF(100,1),20,10,8,0),colorwhite;
STICKLINE(个股J>0 AND 个股J<=REF(100,1),-10,0,8,0),colorGREEN;
STICKLINE(个股J>=0 AND 个股J>=REF(个股K,1),10,0,8,0),COLORRED;
STICKLINE(个股J<=0 AND 个股J<=REF(个股K,1),-10,0,10,0),coloryellow;
大智慧L2源码:
DRAWGBK(V>1,STRIP(RGB(1,100,125),RGB(1,30,10),0));
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), COLORCYAN,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;
DRAWICON(CROSS(天1,个股J),天1,5),ALIGN1;
DRAWTEXT(CROSS(天1,个股J),天1+28,'预警'),ALIGN1,COLORFFFF00;
DRAWICON(CROSS(个股J,0),个股J+3,4),ALIGN1;
STICKLINE(CROSS(个股J,0),个股J+20,个股J,0,0),colorgreen,LINETHICK2;
DRAWTEXT(CROSS(个股J,0),个股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(个股J>0 AND 个股J>=REF(100,1),20,10,8,0),colorwhite;
STICKLINE(个股J>0 AND 个股J<=REF(100,1),-10,0,8,0),colorGREEN;
STICKLINE(个股J>=0 AND 个股J>=REF(个股K,1),10,0,8,0),COLORRED;
STICKLINE(个股J<=0 AND 个股J<=REF(个股K,1),-10,0,10,0),coloryellow;
|