以下是通达信MACD EXPMA共振主图幅图选股
主图
E8:EXPMA(C,8),COLORLIRED;
P:=PSY.PSY;
MP:=PSY.PSYMA;
T:=BARSLAST(CROSS(P,MP));
T8:=BARSLAST(CROSS(C,E8));
TM:=BARSLAST(CROSS(MACD.DIF,MACD.DEA));
XG1:=T>15 AND T8=0 AND TM=0;
STICKLINE(XG1,L,H,0,0),COLORFF0088;
STICKLINE(XG1,CLOSE,OPEN,3,0),COLORFF0011;
STICKLINE(XG1,CLOSE,OPEN,2.8,0),COLORFF0022;
STICKLINE(XG1,CLOSE,OPEN,2.5,0),COLORFF0033;
STICKLINE(XG1,CLOSE,OPEN,2.2,0),COLORFF0044;
STICKLINE(XG1,CLOSE,OPEN,1.7,0),COLORFF0055;
STICKLINE(XG1,CLOSE,OPEN,1.2,0),COLORFF0066;
STICKLINE(XG1,CLOSE,OPEN,0.7,0),COLORFF0077;
STICKLINE(XG1,CLOSE,OPEN,0.2,0),COLORFF0088;
DRAWICON(XG1,L*0.94,7);
幅图
E8:=EXPMA(C,8);
P:=PSY.PSY;
MP:=PSY.PSYMA;
T:=BARSLAST(CROSS(P,MP));
T8:=BARSLAST(CROSS(C,E8));
TM:=BARSLAST(CROSS(MACD.DIF,MACD.DEA));
XG1:=T>15 AND T8=0 AND TM=0;
STICKLINE(XG1,0,8,3,0),COLORFF0011;
STICKLINE(XG1,0,8,2.8,0),COLORFF0022;
STICKLINE(XG1,0,8,2.5,0),COLORFF0033;
STICKLINE(XG1,0,8,2.2,0),COLORFF0044;
STICKLINE(XG1,0,8,1.7,0),COLORFF0055;
STICKLINE(XG1,0,8,1.2,0),COLORFF0066;
STICKLINE(XG1,0,8,0.7,0),COLORFF0077;
STICKLINE(XG1,0,8,0.2,0),COLORFF0088;
选股
E8:=EXPMA(C,8);
P:=PSY.PSY;
MP:=PSY.PSYMA;
T:=BARSLAST(CROSS(P,MP));
T8:=BARSLAST(CROSS(C,E8));
TM:=BARSLAST(CROSS(MACD.DIF,MACD.DEA));
T>15 AND T8=0 AND TM=0;