TDX分时指标
2011-02-22 10:22:00来源:本站整理浏览:202
N:=380;M:=800;R:=40;
DIF:(EMA(CLOSE,N)-EMA(CLOSE,M))*50;
DEA:EMA(DIF,R);
MACD:(DIF-DEA)*5,COLORSTICK;
TT:=CROSS(DIF,DEA);
TB:=CROSS(DEA,DIF);
均价:=DYNAINFO(11),NODRAW;
三日均价:(HHV(C,3)+LLV(C,3))/2,NODRAW;
DRAWICON(FILTER(TT,360)=1&&DEA<4,DEA,1),COLORYELLOW;{绿色箭头向下}
DRAWTEXT(FILTER(TT,360)=1&&DEA<4,DEA,'买入'),LINETHICK3 ,COLORYELLOW;
DRAWICON(FILTER(TB,120)=1&&DEA>6,DEA,2),COLORYELLOW;{绿色箭头向下}
DRAWTEXT(FILTER(TB,120)=1&&DEA>6,DEA,'注意风险'),LINETHICK3 ,COLORYELLOW;