以下是界文K白副图源码
界文K白副图源码
DIF:=EMA(CLOSE,12) – EMA(CLOSE,26);
DEA:=EMA(DIF,9);
AAAA:=COUNT(MA(CLOSE,20)>MA(CLOSE,10),10)=10;
GX:=MAX(MA(CLOSE,5),MAX(MA(CLOSE,20),MA(CLOSE,10)));
DX:=MIN(MA(CLOSE,5),MIN(MA(CLOSE,20),MA(CLOSE,10)));
BBBB:=ABS(GX/DX-1)*100<=15;
MACD:=2*(DIF-DEA);
CCCC:=COUNT(MACD<0,10)=10;
DDDD:=IF(AAAA AND BBBB AND CCCC,5,0);
CROSS(0.1,DDDD) AND CROSS(MACD,0);