K版线:=EMA(C,3),COLORWHITE;
K版跟随主力线:=EMA(C,5),COLORYELLOW;
K版辅助主力线:=EMA(C,7),COLORBROWN;
K回踩支撑:=EMA(C,10),COLORLIGREEN;
K版启动线:=EMA(C,20),COLORRED,LINETHICK2;
SS:=CROSS(K版主力线,K版跟随主力线) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(K版跟随主力线,K版辅助主力线) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(K版跟随主力线,K短线回踩支撑) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(K版主力线,K版辅助主力线) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(K版主力线,K短线回踩支撑) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(K版跟随主力线,K版辅助主力线) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(K版跟随主力线,K版启动线) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(K版辅助主力线,K短线回踩支撑) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(K版跟随主力线,K版启动线) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018 AND CROSS(K版主力线,K版启动线);
DRAWTEXT(SS,L-0.04,'老K狙击'),COLORMAGENTA;
DRAWICON(SS,L-0.99,9);
M:=.MacD;
M5:=ma(C,5);
F:=MACD.DIF;
D:=MACD.DEA;
TJF:=EVERY(BETWEEN(F,0,0.35),18);
TJD:=EVERY(BETWEEN(D,0,0.30),18);
TJM:=M5 REF(M5,1);
XG:=EVERY(BETWEEN(M,0,0.23),30)ANDTJFANDTJDANDTJM;
XG1:=crOSS(XG,0.5);
stICKLINE(XG1,L,H,0,0),COLOR0088EE;
STICKLINE(XG1,CLOSE,OPEN,3,0),COLOR0055AA;
STICKLINE(XG1,CLOSE,OPEN,2.8,0),COLOR0066BB;
STICKLINE(XG1,CLOSE,OPEN,2.5,0),COLOR0077CC;
STICKLINE(XG1,CLOSE,OPEN,2.2,0),COLOR0088DD;
STICKLINE(XG1,CLOSE,OPEN,1.7,0),COLOR0099EE;
STICKLINE(XG1,CLOSE,OPEN,1.2,0),COLOR00AAFF;
STICKLINE(XG1,CLOSE,OPEN,0.7,0),COLOR00CCFF;
STICKLINE(XG1,CLOSE,OPEN,0.2,0),COLOR00FFFF;
DRAWICON(XG1,L*0.95,1);
选股公式:
M:=MACD.MACD;
M5:=MA(C,5);
F:=MACD.DIF;
D:=MACD.DEA;
TJF:=EVERY(BETWEEN(F,0,0.35),18);
TJD:=EVERY(BETWEEN(D,0,0.30),18);
TJM:=M5 REF(M5,1);
XG:EVERY(BETWEEN(M,0,0.23),30)ANDTJFANDTJDANDTJM;
}