在网上看到;[通达信]交易系统,好长的指标
HJX:=MA(C,20);
XHJX:=(MA(CLOSE,20)+MA(CLOSE,30))/2,COLORYELLOW;
EXP1:=EXPMA(CLOSE,12);
EXP2:=EXPMA(CLOSE,50);
EXP3:=EXPMA(CLOSE,7);
VAR20:=LLV(LOW,10);
VAR30:=HHV(HIGH,25);
动力线:= EMA((CLOSE-VAR20)/(VAR30-VAR20)*4,4);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
BOLL:=MA(CLOSE,20);
UPPER:=BOLL+2*STD(CLOSE,20);
LOWER:=BOLL-2*STD(CLOSE,20);
GK1:=EMA(CLOSE,13),COLORYELLOW;
GK2:=EMA(CLOSE,21),COLORYELLOW;
GK3:=EMA(CLOSE,34),COLORYELLOW;
GK4:=EMA(CLOSE,55),COLORRED;
GK5:=EMA(CLOSE,89),COLORRED;
GK6:=EMA(CLOSE,144),COLORRED;
GK7:=EMA(CLOSE,233);
GK8:=EMA(CLOSE,377);
GK9:=EMA(CLOSE,610);
反弹阻力1:=MA(CLOSE,5) ;
反弹阻力2:=MA(CLOSE,10) ;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BIAS:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIASMA:=MA(BIAS,6);
MACD:=(DIF-DEA)*2;
T1:=1;
M3:=EMA(CLOSE,3);
M8:=EMA(CLOSE,8);
M13:=EMA(M8,13);
M62:=EMA(M8,55);
VAR1:=EMA(M13,62);
M81:=EMA(M62,81);
M144:=EMA(VAR1,144);
M250:=EMA(VAR1,250);
VAR2:=(CLOSE+HIGH+LOW)/(3);
VAR3:=(EMA(VAR2,13))*(T1);
VAR4:=(REF(VAR3,2))*(T1);
VAR300:=(EMA(VAR2,12))*(T1);
VAR400:=(REF(VAR300,1))*(T1);
VAR3000:=(EMA(VAR2,13))*(T1);
VAR4000:=(REF(VAR3000,1))*(T1);
VAR310:=(EMA(VAR2,16))*(T1);
VAR410:=(REF(VAR310,1))*(T1);
DRAWTEXT((GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6 AND (REF(OPEN,1)<REF(C,2) OR REF(OPEN,2)<REF(C,3) OR OPEN<REF(C,1) OR C<OPEN) AND (REF(CLOSE,1)-REF(CLOSE,2))/REF(CLOSE,2)<0.09 AND (C-REF(C,1))/REF(C,1)<0.08 AND (CROSS(VAR3,VAR4) AND ((REF(CLOSE,1)>GK1 AND REF(CLOSE,1)<GK2 AND LOW>GK1 AND C>REF(C,1) AND (H-C)/C<0.015 OR (LOW<GK1 AND HIGH>GK3 AND CLOSE>REF(CLOSE,1) AND (HIGH-CLOSE)/CLOSE<0.015)) OR (REF(CLOSE,1)>GK2 AND REF(CLOSE,1)<GK3 AND LOW>GK2 AND C>REF(C,1) AND (H-C)/C<0.015 OR (LOW<GK1 AND HIGH>GK3 AND CLOSE>REF(CLOSE,1) AND (HIGH-CLOSE)/CLOSE<0.015) ) OR (REF(CLOSE,1)>GK3 AND REF(CLOSE,1)<GK4 AND LOW>GK3 AND C>REF(C,1) AND (H-C)/C<0.015 OR (LOW<GK1 AND HIGH>GK3 AND CLOSE>REF(CLOSE,1) AND (HIGH-CLOSE)/CLOSE<0.015)) OR ((OPEN-LOW)/OPEN<0.002 AND CLOSE>REF(CLOSE,1) AND (HIGH-CLOSE)/CLOSE<0.015 )) OR (CROSS(VAR3,VAR4) AND (CLOSE<REF(CLOSE,1) OR CLOSE<OPEN AND CLOSE>GK1))) OR (CROSS(VAR300,VAR400) AND (REF(CLOSE,2)-REF(LOW,2))/REF(CLOSE,2)<0.035 AND (CEILING(CLOSE)>FLOOR(GK1) OR CEILING(CLOSE)=FLOOR(GK1)) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<0.035 AND GK1>GK2 AND GK2>GK3 AND GK3>GK4 AND GK4>GK5 AND GK5>GK6)),LOW*0.98,'转'),COLORYELLOW ;
DRAWTEXT((CROSS(VAR4,VAR3) OR (CROSS(VAR400,VAR300) AND GK1>GK2 AND GK2>GK3 AND GK3>GK4 AND GK4>GK5 AND GK5>GK6) AND TFILTER((CROSS(VAR4,VAR3)) OR (CROSS(VAR400,VAR300) AND GK1>GK2 AND GK2>GK3 AND GK3>GK4 AND GK4>GK5 AND GK5>GK6) ,((CROSS(VAR4,VAR3)) OR (CROSS(VAR400,VAR300) AND GK1>GK2 AND GK2>GK3 AND GK3>GK4 AND GK4>GK5 AND GK5>GK6)),2)) OR (CROSS(VAR4000,VAR3000)),HIGH*1.02,'转'),COLORGREEN;
DRAWTEXT(CROSS(VAR3000,VAR4000) && GK1>REF(GK1,1) && ((REF(C,1)<REF(C,2) OR REF(C,2)<REF(C,3) OR (GK1>GK2) OR (GK1<GK2 && GK2>GK3 && GK1>GK3) OR GK1<GK2) OR (EVERY(C>REF(C,1) && OPEN<CLOSE && C-O<REF(C,1)-REF(OPEN,1),2)) OR (CROSS(C,GK1) && CROSS(C,GK2) && O<GK1 && (EVERY(C>REF(C,1) && C>O AND C-O>REF(C,1)-REF(O,1),2)) && GK1<GK2 && GK2<GK3)) && (H-C)/C<0.025 && C>REF(C,1) && ((O-REF(C,1))/REF(C,1)<0.01 OR ((C-REF(C,1))/REF(C,1)>0.045 && GK1<GK4 && GK2<GK4 && GK3<GK4)) && ((GK4>GK5 && GK5>GK6) OR (GK4>GK6 && GK5<GK6) OR (GK4<GK5 && GK5>GK6) OR (GK4>GK5 && GK5<GK6)),LOW*0.98,'转'),COLORYELLOW;
DRAWTEXT((CROSS(VAR310,VAR410) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)<0.015 AND OPEN<CLOSE AND ((GK1>GK2 AND GK2>GK3 AND GK4<GK5 AND GK5<GK6) OR (GK1<GK2 AND GK2>GK3 AND GK4<GK5 AND GK5<GK6) OR (GK1<GK2 AND GK1>GK3 AND GK2>GK3 AND GK4<GK5 AND GK5<GK6))) OR (CLOSE>REF(CLOSE,1) AND LOW<GK1 AND CLOSE>GK3 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.04 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<0.05 AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6),LOW*0.98,'转'),COLORYELLOW;
DRAWICON(SUM((REF(CLOSE,1)-CLOSE)/REF(CLOSE,1),2)>0.1 AND J<0 AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3)),LOW,25);
DRAWICON(SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),2)>0.07 AND GK1<GK2 AND GK2<GK3 AND GK4<GK5 AND GK4>GK6 AND GK5>GK6,HIGH,26);
DRAWICON(SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),4)>0.09 AND FILTER(SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),4)>0.095 AND GK1<GK2 AND GK2<GK3 AND GK4<GK5 AND GK4<GK6 AND GK5>GK6,1)AND GK1<GK2 AND GK2<GK3 AND GK4<GK5 AND GK4<GK6 AND GK5>GK6,HIGH,26);
DRAWICON(SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),3)>0.04 AND CLOSE<EXP3 AND C<GK1 AND C<GK2 AND C<GK3 AND C<GK4 AND C<GK5 AND C<GK6 AND GK1<GK2 AND GK2<GK3 AND GK4>GK5 AND GK4>GK6 AND GK5>GK6,HIGH,26);
DRAWICON((CLOSE-LOW)/LOW>0.04 AND DOWNNDAY(CLOSE,3) AND REF(CLOSE,3)>REF(CLOSE,4) AND J<20 AND CLOSE>OPEN AND CLOSE<REF(CLOSE,1) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3)) OR (REF(C,1)<REF(C,2) AND ABS(REF(C,1)-REF(O,1))/REF(C,1)<0.002 AND ((REF(H,1)-REF(C,1))/REF(C,1)>0.003 OR (REF(C,1)-REF(L,1))/REF(L,1)>0.003) AND C<REF(C,1) AND C<REF(L,1) AND C<REF(L,2) AND REF(C,1)>REF(O,2) AND REF(L,1)>REF(O,2) AND REF(H,1)<REF(H,2) AND REF(O,1)<REF(C,2) AND REF(O,1)>REF(O,2) AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK5<GK6),LOW,25);
DRAWICON(ABS(GK3-CLOSE)/GK3<0.005 AND J>115 AND OPEN>CLOSE AND (OPEN-CLOSE)/OPEN<0.005 AND GK1<GK2 AND GK2<GK3 AND GK1<GK3,HIGH,26);
DRAWICON((DOWNNDAY(CLOSE,7) AND J<0 AND SUM((REF(CLOSE,1)-CLOSE)/REF(CLOSE,1),7)>0.07 AND (DOWNNDAY(J,2) OR J<-8) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3))) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3)) ,LOW,25);
DRAWICON(LAST(CLOSE>REF(CLOSE,1),2,0) AND LAST(OPEN<CLOSE,2,0) AND LAST((CLOSE-OPEN)<(REF(CLOSE,1)-REF(OPEN,1)),1,0) AND J>120 AND GK1>GK2 AND GK1>GK3 AND GK2<GK3,HIGH,26);
DRAWICON(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.025) OR ((CLOSE-REF(CLOSE,2))/REF(CLOSE,2)>0.025) OR ((CLOSE-REF(CLOSE,3))/REF(CLOSE,3)>0.025) AND ((GK1<GK2 AND GK2<GK3 AND GK4>GK5 AND GK5>GK6 AND GK3<GK4 AND GK1<GK4 AND GK3>GK6 AND GK2<GK6) OR ((GK1<GK2 AND GK2<GK3 AND GK4<GK5 AND GK5<GK6 AND GK3>GK4)) AND ((GK1>GK4) OR (GK1>GK5) OR (GK1>GK6) OR (GK2>GK4) OR (GK2>GK5) OR (GK2>GK6) OR (GK3>GK4) OR (GK3>GK5) OR (GK3>GK6))),HIGH,26);
DRAWICON(REF(J,3) |