日K:="kd.K"(9,3,3);
日D:="KD.D"(9,3,3);
日J:="kdj.J"(9,3,3);
KD金花:COUNT(crOSS(日K,日D) AND CROSS(日J,日D),2)>=1,LINETHICK0;
{macd买入条件}
XDIFF:="MacD.DIF"(26,12,9);XDEA:="MACD.DEA"(26,12,9);XMACD:="MACD.MACD"(26,12,9);
MACD金花:COUNT(CROSS(XDIFF,XDEA) AND XDIFF>XDEA,2)>=1,LINETHICK0;
价金花:COUNT(CROSS(MA(C,5),MA(C,10)) OR CROSS(MA(C,10),MA(C,20)),2)>=1,LINETHICK0 ;
量金花:COUNT(CROSS(MA(vol,5),MA(VOL,10)),2)>=1,LINETHICK0;
四朵金花: KD金花 AND MACD金花 AND 价金花 AND 量金花,COLORRED;