M1:MA(CLOSE,13),COLORYELLOW,LINETHICK2;
M2:MA(CLOSE,34),LINETHICK2,COLORWHITE;
M3:MA(CLOSE,55),COLORGREEN,LINETHICK2;
A:MA(C,5)COLORBLUE,LINETHICK3;
B:=A<ref(a,1);
IF(B-1,A,DRAWNULL)COLORRED,LINETHICK3;
DRAWTEXT(LAST(C<o,3,0) and="" last(vol<ref(vol,1),3,0),l*0.975,'三阴\n缩量\n一阳');<br="">
DRAWTEXT(CROSS("DMI.PDI","DMI.MDI") AND CROSS("DMI.PDI","DMI.ADX") AND CROSS("DMI.PDI","DMI.ADXR") AND C>REF(C,1)*1.05 AND VOL>REF(VOL,1),L*0.975,'DMI\N捉暴涨');
DRAWTEXT(LAST(MA(C,5)<ma(c,10),5,0) and="" "cci.cci"="">REF("CCI.CCI",1) AND CROSS("CCI.CCI",-100),L*0.975,'CCI\N背离底');
DRAWTEXT(LAST((H-L)/REF(C,1)<0.1,5,0) AND VOL>REF(VOL,1)*2 AND C>REF(C,1)*1.05,L*0.975,'一二一\N平台起');
DRAWTEXT(LAST(MA(C,5)<ma(c,10),5,0) and="" c="">REF(C,1)*1.098,L*0.975,'山谷\N停板');
DRAWTEXT((LAST(C<o,6,3) and="" last(c="">O,2,0)) OR (LAST(C<o,6,3) and="" c="">O AND REF(C,1)<ref(o,1) and="" ref(c,2)="">REF(O,2)),L*0.975,'拨云\N见日');
DRAWTEXT(CROSS((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100,(CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*100) AND MA(C,40)>REF(MA(C,40),1),L*0.98,'BIAS\N绝密买点');
DRAWTEXT(CREF(VOL,1)*1.5 AND LAST(VOL<ref(vol,1),5,1),l*0.975,'南天\n一柱');
DRAWTEXT((C>O AND V>REF(V,1)*2.5 AND CROSS(C,MA(C,5))) OR (C>O AND V>REF(V,1)*10),L*0.975,'顶天\N立地');
标签:MA,DMI,DRAWTEXT,主图,通达信,源码,CLOSE,REF,LAST From: https://www.cnblogs.com/zhibiao/p/17994307