通达信指标8优化源码:
X_1:=MA(CLOSE,5);
X_2:=MA(CLOSE,10);
X_3:=MA(CLOSE,20);
X_4:=BARSLAST(CLOSE REF(CLOSE,1)*1.04);
X_5:=X_1 =REF(X_1,1) AND X_2 =REF(X_2,1) AND X_3 =REF(X_3,1);
X_6:=RANGE(CLOSE,X_2*0.93,X_1);
X_7:=EVERY(HIGH/CLOSE 1.06,2) AND HIGH/CLOSE 1.04;
X_8:=MIN(CLOSE,OPEN) =MA(CLOSE,6);
X_9:=SUM(SSRP,10) 25 AND TRIX(3,3) TRIX.MATRIX(3,3) AND DMI.PDI(7,7) =REF(DMI.PDI(7,7),1);
X_10:=CLOSE MIKE.STOR AND (CLOSE-MIKE.STOR)/MIKE.STOR*100 1 AND (CLOSE-MIKE.STOR)/MIKE.STOR*100
X_11:=X_4 12 AND REF(X_6,1) AND X_9 AND X_10 AND X_7 AND X_5 AND X_8;
STICKLINE(X_11,94,115,0,0),COLORRED;
STICKLINE(X_11,92,94,1.5,0),COLOR333333;
STICKLINE(X_11,92,94,1.2,0),COLOR444444;
STICKLINE(X_11,92,94,1,0),COLOR555555;
STICKLINE(X_11,92,94,0.5,0),COLOR666666;
STICKLINE(X_11,92,94,0.02,0),COLOR777777;
STICKLINE(X_11,92,94,0,0),COLORCCCCCC;
STICKLINE(X_11,90,92,2,0),COLOR333333;
STICKLINE(X_11,90,92,1.5,0),COLOR444444;
STICKLINE(X_11,90,92,1,0),COLOR555555;
STICKLINE(X_11,90,92,0.5,0),COLOR666666;
STICKLINE(X_11,90,92,0.02,0),COLOR777777;
STICKLINE(X_11,90,92,0,0),COLORCCCCCC;
STICKLINE(X_11,88,90,3,0),COLOR333333;
STICKLINE(X_11,88,90,2.5,0),COLOR444444;
STICKLINE(X_11,88,90,2,0),COLOR555555;
STICKLINE(X_11,88,90,1.5,0),COLOR666666;
STICKLINE(X_11,88,90,0.02,0),COLOR777777;
STICKLINE(X_11,88,90,0,0),COLORCCCCCC;
STICKLINE(X_11,85,88,4,0),COLOR333333;
STICKLINE(X_11,85,88,3.5,0),COLOR444444;
STICKLINE(X_11,85,88,2,0),COLOR555555;
STICKLINE(X_11,85,88,0.5,0),COLOR666666;
STICKLINE(X_11,85,88,0.02,0),COLOR777777;
STICKLINE(X_11,85,88,0,0),COLORCCCCCC;
STICKLINE(X_11,82,85,4.5,0),COLOR333333;
STICKLINE(X_11,82,85,4,0),COLOR444444;
STICKLINE(X_11,82,85,2.5,0),COLOR555555;
STICKLINE(X_11,82,85,1,0),COLOR666666;
STICKLINE(X_11,82,85,0.05,0),COLOR777777;
STICKLINE(X_11,82,85,0,0),COLORCCCCCC;
STICKLINE(X_11,78,82,5,0),COLOR333333;
STICKLINE(X_11,78,82,4,0),COLOR444444;
STICKLINE(X_11,78,82,3.5,0),COLOR555555;
STICKLINE(X_11,78,82,1.5,0),COLOR666666;
STICKLINE(X_11,78,82,0.05,0),COLOR777777;
STICKLINE(X_11,78,82,0,0),COLORCCCCCC;
STICKLINE(X_11,73,78,5.5,0),COLOR333333;
STICKLINE(X_11,73,78,4,0),COLOR444444;
STICKLINE(X_11,73,78,2.5,0),COLOR555555;
STICKLINE(X_11,73,78,1,0),COLOR666666;
STICKLINE(X_11,73,78,0.05,0),COLOR777777;
STICKLINE(X_11,73,78,0,0),COLORCCCCCC;
STICKLINE(X_11,68,73,6,0),COLOR333333;
STICKLINE(X_11,68,73,4.5,0),COLOR444444;
STICKLINE(X_11,68,73,3,0),COLOR555555;
STICKLINE(X_11,68,73,1.5,0),COLOR666666;
STICKLINE(X_11,68,73,0.05,0),COLOR777777;
STICKLINE(X_11,68,73,0,0),COLORCCCCCC;
STICKLINE(X_11,60,68,7,0),COLOR0055AA;
STICKLINE(X_11,60,68,5.9,0),COLOR0066BB;
STICKLINE(X_11,60,68,4.8,0),COLOR0077CC;
STICKLINE(X_11,60,68,3.8,0),COLOR0088DD;
STICKLINE(X_11,60,68,2.5,0),COLOR0099EE;
STICKLINE(X_11,60,68,1.5,0),COLOR00AAFF;
STICKLINE(X_11,60,68,1,0),COLOR00CCFF;
STICKLINE(X_11,60,68,0.05,0),COLORYELLOW;
STICKLINE(X_11,60,68,0,0),COLORWHITE;
STICKLINE(X_11,23,60,7,0),COLOR000066;
STICKLINE(X_11,23,60,5.5,0),COLOR000099;
STICKLINE(X_11,23,60,4,0),COLORRED;
STICKLINE(X_11,23,60,2.5,0),COLOR0033FF;
STICKLINE(X_11,23,60,1,0),COLOR3333FF;
STICKLINE(X_11,23,60,0.6,0),COLOR6633FF;
STICKLINE(X_11,23,60,0.01,0),COLOR9933FF;
STICKLINE(X_11,23,60,0,0),COLORCC99CC;
STICKLINE(X_11,15,23,7,0),COLOR0055AA;
STICKLINE(X_11,15,23,5.5,0),COLOR0066BB;
STICKLINE(X_11,15,23,4.5,0),COLOR0077CC;
STICKLINE(X_11,15,23,3.8,0),COLOR0088DD;
STICKLINE(X_11,15,23,2.5,0),COLOR0099EE;
STICKLINE(X_11,15,23,1.5,0),COLOR00AAFF;
STICKLINE(X_11,15,23,1,0),COLOR00CCFF;
STICKLINE(X_11,15,23,0.05,0),COLORYELLOW;
STICKLINE(X_11,15,23,0,0),COLORWHITE;
STICKLINE(X_11,0,15,6,0),COLOR333333;
STICKLINE(X_11,0,15,4.5,0),COLOR444444;
STICKLINE(X_11,0,15,3,0),COLOR555555;
STICKLINE(X_11,0,15,1.5,0),COLOR666666;
STICKLINE(X_11,0,15,0.05,0),COLOR777777;
STICKLINE(X_11,0,15,0,0),COLORCCCCCC;
DRAWTEXT(X_11,31,3),COLORYELLOW;
DRAWTEXT(X_11,41,4),COLORYELLOW;
DRAWTEXT(X_11,51,5),COLORYELLOW;