{动量买入主图源码如下}
操作线:MA(CLOSE,10)DOTLINE;
DIF:=EMA(CLOSE,9)-EMA(CLOSE,13);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
好股网:=C>MA(C,10);
XG1:=MACD>0;
ABC1:=(EMA(CLOSE,5) - EMA(CLOSE,20));
ABC2:=EMA(ABC1,20);
ABC3:=BARSLAST(CROSS(ABC1,ABC2));
ABC4:=REF(ABC3,ABC3+3);
ABC5:=ABC2<REF(ABC2,ABC4);
ABC动作:=CROSS(ABC1,ABC2) AND ABC5;
DRAWTEXT(ABC动作>0 AND XG1 AND 好股网,L*0.99,' ★买'),COLORYELLOW;
STICKLINE(ABC动作>0 AND XG1 AND 好股网,O,C,2,0),LINETHICK1,COLORRED;
STICKLINE(ABC动作>0 AND XG1 AND 好股网,O,C,0.2,0),COLORYELLOW;
DRAWICON(ABC动作>0 AND XG1 AND 好股网,L,9);
{动量买入副图源码如下}
DIF:=EMA(CLOSE,9)-EMA(CLOSE,13);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
好股网:=C>MA(C,10);
XG1:=MACD>0;
ABC1:=(EMA(CLOSE,5) - EMA(CLOSE,20));
ABC2:=EMA(ABC1,20);
ABC3:=BARSLAST(CROSS(ABC1,ABC2));
ABC4:=REF(ABC3,ABC3+3);
ABC5:=ABC2<REF(ABC2,ABC4);
ABC动作:=CROSS(ABC1,ABC2) AND ABC5;
DRAWTEXT(ABC动作>0 AND XG1 AND 好股网,0.6,' ★买'),COLORYELLOW;
STICKLINE(ABC动作>0 AND XG1 AND 好股网,0,1,1,0),LINETHICK1,COLORRED;
DRAWICON(ABC动作>0 AND XG1 AND 好股网,1,9);