九毛八公式指标
公式模块:
short:=12;long:=26;M:=9;
DIFF1:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA1:=EMA(DIFF1,M);
macd:2*(DIFF1-DEA1),linethick0;
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),colorff00ff,linethick0;
DEA : EMA(DIFF1,M),colorwhite,linethick0;
A1:=BArslAST(REF(crOSS(DIFF,DEA),1));
选股:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),0.1,0),COLORFFFF00;
MA1:MA(C,5);
MA2:MA(C,10);
short:=12;long:=26;M:=9;
DIFF1:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA1:=EMA(DIFF1,M);
MacD:2*(DIFF1-DEA1),linethick0;
DIFF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),linethick0;
DEA:=EMA(DIFF1,M);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
选股:REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),linethick0;
DRAWTEXT(选股,C,'选股'),COLOR00FFFF;