通达信主图指标直效主图(附源码) ![]() {直效副图 M1:6; M2:18} MA1:MA(CLOSE,M1); MA1升:IF(MA1>=REF(MA1,1),MA1,DRAWNULL),COLORRED,LINETHICK1; MA1降:IF(MA1<REF(MA1,1),MA1,DRAWNULL),COLORGREEN,LINETHICK1; MA2:MA(CLOSE,M2),LINETHICK2; MA2升:IF(MA2>=REF(MA2,1),MA2,DRAWNULL),COLORMAGENTA,LINETHICK2; MA2降:IF(MA1<REF(MA2,1),MA2,DRAWNULL),COLORBLUE,LINETHICK2; MA3:MA(CLOSE,M3); MA18:=MA(CLOSE,18); DRAWICON(C>=REF(MA18,1) AND MA1>=REF(MA1,1) AND MA2>=REF(MA2,1), MA18*0.7, 1); DRAWICON(C<REF(MA18,1) AND MA1<REF(MA1,1)AND MA2<REF(MA2,1), MA18*1.2, 2); DRAWICON(C>MA18 AND LOW<=MA18*1.004,MA18*0.9,5); DRAWICON(CROSS(MA1,MA2),MA18*0.8,9); DRAWICON(C>MA2 AND {(LOW-MA2)/MA2<=0.01 OR} (C-MA2)/MA2<=0.01,MA18*0.8,7); DRAWICON(C>MA2 AND {(LOW-MA2)/MA2>=0.28 OR} (C-MA2)/MA2>=0.33,C*1.2,8); 参考买入价:IF(MA1>=MA2 AND C>MA2,MA18*1.004,0),COLORYELLOW,NODRAW; MA38:MA(C,38),COLORYELLOW; MA120:MA(C,120),COLORLIBLUE; MA250:MA(C,250); {见好就收} {LC:=REF(CLOSE,1); JH:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(CROSS(84,JH),HIGH*1.02,'☆见好就收'),COLOR00FF00;}; ![]() |
|