KDJ_K:="KDJ.K"(39,3,3);KDJ_D:="KDJ.D"(39,3,3);KDJ_J:="KDJ.J"(39,3,3);
买1:=CROSS(KDJ_J,15) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<30);
买2:=CROSS("RSI.RSI1"(6,2,2),20) OR KDJ_D<50 AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
买3:=CROSS("MACD.DIF","macd.DEA") AND KDJ_D<55 OR CROSS("MACD.MACD",0);
买0:=买1+买2+买3;
买:IF(买0>1,买0,0);
九毛八公式解读
KDJ_K赋值:"KDJ的K"(39,3,3) KDJ_D赋值:"KDJ的D"(39,3,3) KDJ_J赋值:"KDJ的J"(39,3,3) 买1赋值:KDJ_J上穿15 OR (KDJ_J上穿KDJ_K AND KDJ_D<30) 买2赋值:"RSI的RSI1"(6,2,2)上穿20 OR KDJ_D<50 AND "RSI的RSI1"(6,12,24)上穿"RSI的RSI2"(6,12,24) 买3赋值:"平滑异同平均的DIF"上穿"平滑异同平均的DEA" AND KDJ_D<55 OR "平滑异同平均的MACD"上穿0 买0赋值:买1+买2+买3 输出买:如果买0>1,返回买0,否则返回0