M1:=MA(C,5);
M2:=MA(C,20);
BS:=1;
MA7:=MA(CLOSE,BS);
转强:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/(6+5+4+3+2+1);
转弱:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/(6+5+4+3+2+1);
BB2:=IF(C>REF(转强,1),1,IF(C<REF(转弱,1),-1,0));
DD2:=BARSLAST(NOT(BB2=0));
B:=IF(BB2=0,REF(BB2,DD2),BB2);
中短:=IF(B=-1,MA(HIGH,6),MA(LOW,6));
B点:=CROSS(MA7,中短) AND REF(MACD.DIF,1)<=REF(macd.DIF,2)
AND MACD.DIF>REF(MACD.DIF,1) AND M1<M2 AND L>=M1 AND C>M2;{最好是一阳穿5,和20线}
{指标金叉}买点1:CROSS(MA7,中短) AND CROSS(MACD.DIF,MACD.DEA);
{指标昨金叉}买点2:=CROSS(MA7,中短) AND MACD.DIF>MACD.DEA{要在低位昨刚金叉或前天刚金叉}
AND MACD.MACD>0 AND MACD.DIF<0;{最好是一阳穿5,和20线}
{MACD要求是从绿柱群刚转成低位金叉或是低位将要金叉时,
切不可是红柱群后的高位两线粘合或将要粘合,这样的票才稳};
{提示:希望用哪种条件买入时就将后边的=号去掉,将别的条件加上=号即可}