DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); JC:=C ROSS (DIF,DEA); ECJC:=JC AND C<REF(C,SUMBARS(JC,2)-1) AND DIF<REF(DIF,SUMBARS(JC,2)-1) AND DEA<REF(DEA,SUMBARS(JC,2)-1);{二次金叉及背离} 金叉背离:SUMBARS(JC,2)<=90 AND ECJC;
jc:=cross(dif,dea); ecjc:=jc and c<ref(c,sumbars(jc,2)-1) and dif<ref(dif,sumbars(jc,2)-1) and dea<ref(dea,sumbars(jc,2)-1);{二次金叉及背离} 金叉背离:sumbars(jc,2)<=90 and ecjc;