DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
macd:(DIF-DEA)*2,COLORSTICK;
金叉K:=crOSS(DIF,DEA);
AKKAMK:=REF(DEA,BArslAST(金叉K));
金叉位K:=REF(DEA+(AKKAMK-DEA),BARSLAST(金叉K));
金叉:=金叉位K>=REF(金叉位K,1) AND 金叉K;
DRAWTEXT(金叉,0.1,'抬高'),COLORCYAN;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
macd:(DIF-DEA)*2,COLORSTICK;
金叉K:=crOSS(DIF,DEA);
AKKAMK:=REF(DEA,BArslAST(金叉K));
金叉位K:=REF(DEA+(AKKAMK-DEA),BARSLAST(金叉K));
金叉:=金叉位K>=REF(金叉位K,1) AND 金叉K;
DRAWTEXT(金叉,0.1,'抬高'),COLORCYAN;