N:=1;
月K:KDJ.K#MONTH,NODRAW,COLORRED;
月D:KDJ.D#MONTH,NODRAW,COLORBLUE;
月J:KDJ.J#MONTH,NODRAW,COLORmaGENTA;
周K:KDJ.K#WEEK,NODRAW,COLORRED;
周D:KDJ.D#WEEK,NODRAW,COLORBLUE;
周J:KDJ.J#WEEK,NODRAW,COLORLIMAGENTA;
日K:KDJ.K,NODRAW,COLORRED;
日D:KDJ.D,NODRAW,COLORBLUE;
日J:KDJ.J,NODRAW,COLORLIMAGENTA;
日金叉:=crOSS(日K,日D) AND (日D<40 OR 日D>60);
周金叉:=CROSS(周K,周D) AND (周D<40 OR 周D>60);
月金叉:=CROSS(月K,月D) AND (月D<40 OR 月D>60);
共振:=(周金叉 AND 日金叉) OR (周金叉 AND 月金叉) OR (日金叉 AND 月金叉)
OR (日金叉 AND 周金叉 AND 月金叉);
STICKLINE(共振,0,100,1,0),COLORWHITE;
NOTEXT月K:IF(N=3,月K,DRAWNULL),COLORRED;
NOTEXT月D:IF(N=3,月D,DRAWNULL),COLORBLUE;
NOTEXT月J:IF(N=3,月J,DRAWNULL),COLORLIMAGENTA;
NOTEXT周K:IF(N=2,周K,DRAWNULL),COLORRED;
NOTEXT周D:IF(N=2,周D,DRAWNULL),COLORBLUE;
NOTEXT周J:IF(N=2,周J,DRAWNULL),COLORLIMAGENTA;
NOTEXT日K:IF(N=1,日K,DRAWNULL),COLORRED;
NOTEXT日D:IF(N=1,日D,DRAWNULL),COLORBLUE;
NOTEXT日J:IF(N=1,日J,DRAWNULL),COLORLIMAGENTA;
STICKLINE(日K>=日D,-10,-15,3,0),COLORLIMAGENTA;
STICKLINE(日K< 日D,-10,-15,3,0),COLORGREEN;
STICKLINE(周K>=周D,-20,-25,3,0),COLORLICYAN;
STICKLINE(周K< 周D,-20,-25,3,0),COLORLIBLUE;
STICKLINE(月K>=月D,-30,-35,3,0),COLORLIMAGENTA;
STICKLINE(月K< 月D,-30,-35,3,0),COLORLIRED;
{
选股公式:
月K:=KDJ.K#MONTH;
月D:=KDJ.D#MONTH;
月J:=KDJ.J#MONTH;
周K:=KDJ.K#WEEK;
周D:=KDJ.D#WEEK;
周J:=KDJ.J#WEEK;
日K:=KDJ.K;
日D:=KDJ.D;
日J:=KDJ.J;
日金叉:=CROSS(日K,日D) AND (日D<40 OR 日D>60);
周金叉:=CROSS(周K,周D) AND (周D<40 OR 周D>60);
月金叉:=CROSS(月K,月D) AND (月D<40 OR 月D>60);
共振:(周金叉 AND 日金叉) OR (周金叉 AND 月金叉) OR (日金叉 AND 月金叉)
OR (日金叉 AND 周金叉 AND 月金叉);
}