{ 股票指标 }
DIF:Ema(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9),COLOR888888;
macd:(DIF-DEA)*2,COLORstICK;
NOTEXT5:IF(DIF>=DEA, DIF,DRAWNULL),COLORRED;
NOTEXT6:IF(DIF<dea, dif,drawnull),colorwhite;<br="">
AT1:=BArslAST(REF(crOSS(DIF,DEA),1));
BT1:=REF(C,AT1+1)>C AND REF(DIF,AT1+1)
AT2:=BARSLAST(REF(CROSS("kdj.K"(9,3,3),"kdJ.D"(9,3,3)),1));
CT1:=BARSLAST(REF(CROSS(DEA,DIF),1));
DT1:=REF(C,CT1+1)DIF AND CROSS(DEA,DIF);
MacD底背:IF(BT1>0,-0.1,0),COLORRED;
MACD顶背:IF(DT1>0,0.1,0),COLOR00FF00;
STICKLINE(BT1>0,0.5*DIF,0,2,0),COLORRED;
STICKLINE(DT1>0,0.5*DIF,0,2,0),COLOR00FF00;
标签:BT1,求财,DIF,CROSS,通达信,源码,DEA,REF,MACD From: https://www.cnblogs.com/zhibiao/p/18061706