紧密:本计较源码用于文采财经赢顺wh6、睿期wh7软件。01计较源码1SHORT:=12;LONG:=26;M:=9;HH:HHV(H,20);LL:LLV(L,20);MID:(HH+LL)/2;DIFF :=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA := EMA(DIFF,M);MACD:=2*(DIFF-DEA),COLORSTICK;JC:=CROSS(DIFF,DEA);SC:=CROSSDOWN(DIFF,DEA);JC1:=CROSS(DIFF,0);SC1:=CROSSDOWN(DIFF,0);N1:=BARSLAST(JC)+1;N2:=BARSLAST(SC)+1;HHA:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(H,N1));HH2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HHA,1));MHD:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(MACD,N1));MHD2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD,1));LLA:=VALUEWHEN(CROSS(DIFF,DEA),LLV(L,N2));LL2:=VALUEWHEN(CROSS(DIFF,DEA),REF(LLA,1));MLD:=VALUEWHEN(CROSS(DIFF,DEA),LLV(MACD,N2));MLD2:=VALUEWHEN(CROSS(DIFF,DEA),REF(MLD,1));A:=CROSSDOWN(DIFF,DEA)&&HHA>HH2&&MHD<MHD2;B:=CROSS(DIFF,DEA)&&LLA<LL2&&MLD>MLD2;AA:=JC&&DIFF>0&&DEA>0