幅图画线取MACD高位死叉为画线起点,终点取MACD死叉不破零轴且死叉点的DEA与高位DEA之差大于N画延长线。DEA在画线形成后突破这条延长线出信号。考虑画线函数带未来性质,请同学们实盘观察划线形成后发出信号再考虑介入。最好是确认有效突破,好票 不差一时半会。 {主图信号} DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; T:=BARSLAST(CROSS(DEA,DIF)); HT:=BARSLAST( HHV(DEA,15)=DEA); GT:=BARSLAST(T=0 AND REF(HT,1)=0 AND DEA>0); GM:=REF(DEA,GT); EXT:=DRAWLINE(GT=0,DEA,T=0 AND (REF(GM,1)-DEA)>0.75 AND DEA>0,REF(DEA,T),1); XG:=CROSS(DEA,EXT); DRAWICON(XG,L*0.95,1); STICKLINE(XG,C,O,2,0),COLORYELLOW; STICKLINE(XG,H,L,0,0),COLORYELLOW; {MACD看盘幅图} DIF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIF,9); MACD:(DIF-DEA)*2,COLORSTICK; T:=BARSLAST(CROSS(DEA,DIF)); HT:=BARSLAST( HHV(DEA,15)=DEA); GT:=BARSLAST(T=0 AND REF(HT,1)=0 AND DEA>0); GM:=REF(DEA,GT); EXT:DRAWLINE(GT=0,DEA,T=0 AND (REF(GM,1)-DEA)>0.75 AND DEA>0,REF(DEA,T),1); XG:=CROSS(DEA,EXT); DRAWICON(XG,DEA-0.05,1); {选股} DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; T:=BARSLAST(CROSS(DEA,DIF)); HT:=BARSLAST( HHV(DEA,15)=DEA); GT:=BARSLAST(T=0 AND REF(HT,1)=0 AND DEA>0); GM:=REF(DEA,GT); EXT:=DRAWLINE(GT=0,DEA,T=0 AND (REF(GM,1)-DEA)>0.75 AND DEA>0,REF(DEA,T),1); XG:CROSS(DIF,EXT); |
