DPZX:=EMA(C,1),NODRAW; GGZX:=AMOUNT/V/100; 重心:=IF(C<300,GGZX,DPZX),NODRAW; 今重心:LLV(重心,2)COLORGREEN,NODRAW; ZC1:=CONST(LLV(重心,2)); ZC2:=CONST(LLV(重心,4)); VAR1:=(C+H+O+L)/4; MA5:=MA(C,5),COLOR000099; MA10:=MA(C,10),COLOR006600; MA20:=MA(C,20),COLOR005555; ZB1:=EMA(C,34); 長期趨勢:EMA(ZB1,13),COLORRED,LINETHICK3; SQX:=(C-MA(CLOSE,13))*100; DIFF:=EMA(MA(SQX,7),1),COLORWHITE; DEA:=EMA(DIFF,7),COLORYELLOW; MACD:=(DIFF-DEA)*2,COLORSTICK; FF:=EMA(CLOSE,3); DRAWTEXT_FIX(CURRBARSCOUNT=120,0.4,0.01,0,'【微信公眾號:程序化指標 】'),COLORGREEN; MA15:=EMA(CLOSE,21); TTJ:=CROSS(FF,MA15); 上:=EMA(C,3),COLORBLUE,LINETHICK1; 中:=EMA(C,5),COLORWHITE,LINETHICK1; 下:=EMA(中,5),COLOR00FF00,LINETHICK1; QQ:= C<中; MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ; V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); V2:=(1-7/100)*(DMA(CLOSE,V1)); V3:=(1+7/100)*(DMA(CLOSE,V1)); V5:=MA((LOW+HIGH+CLOSE)/3,5); MA1Q:=MEMA(CLOSE,5); MA2Q:=ATAN((MA1Q/REF(MA1Q,1)-1)*100)*180/3.1416; MA3Q:=IF(MA2Q>0,MA2Q,MA2Q); MA5Q:=MA(CLOSE,5),COLOR888899; MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2; VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2); VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4); VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<ref(c,3)) or REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<ref(c,2);< span=""> VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2) VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1); VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2); VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN; VAR08:=VAR07 AND COUNT(VAR06,2); VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); VAR10:=EMA(MA(C,13),13); VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND CROSS(VAR09,MA(VAR09,2)))=1,5); VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND CROSS(MA(VAR09,2),VAR09))=1,1); VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10; VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3); VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18)); VAR16:=VAR08 AND NOT(REF(VAR08,1)); RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSVQ,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 金叉:=CROSS(J,D); 死叉:=CROSS(D,J); 買1:=(VAR14 OR VAR15) AND VAR11; 買2:=(VAR14 OR VAR15) AND VAR04; 買3:=(VAR14 OR VAR15) AND VAR02; 買4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11); 買5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11); TTJ0:=VAR16; TTJ1:=買1 OR 買2 OR 買3 OR 買4 OR 買5 AND MM; XG0:=TTJ AND TTJ0; XG1:=TTJ AND TTJ1; XG11:=XG0 OR XG1; XGQ:=XG11; 牛:XGQ,COLORRED,NODRAW; DRAWTEXT(XGQ,L*0.99,'●牛'),COLORRED; DA:=(3*CLOSE+OPEN+LOW+HIGH)/6,POINTDOT; X2:=(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+15*REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+10*REF(DA,10)+9*REF(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+5*REF(DA,15)+4*REF(DA,16)+3*REF(DA,17)+2*REF(DA,18)+REF(DA,20))/210,COLORF0F000; X3:=MA(X2,5),COLORYELLOW,LINETHICK1; X1:=(C+L+H)/3; 買:=CROSS(X2,X3); 賣:=CROSS(X3,X2); DRAWICON(買,L*0.95,1); DRAWICON(CROSS(X2,X3),L*0.97,7); DRAWICON(賣,H*1.04,2); DRAWICON(CROSS(X3,X2),H*1.02,8); STICKLINE(X2>=X3,LOW,HIGH,0,1),COLORRED; STICKLINE(X2>=X3,CLOSE,OPEN,3.2,2),COLORRED; STICKLINE(X2<X3,LOW,HIGH,0,1),COLOR00FF00; STICKLINE(X2<X3,CLOSE,OPEN,3.2,2),COLOR00FF00; STICKLINE(CROSS(X3,X2),OPEN,CLOSE,3.2,0),COLOR00FF00; STICKLINE(CROSS(X2,X3),OPEN,CLOSE,3.2,0),COLORRED; STICKLINE((CLOSE>OPEN) AND (X2<X3),CLOSE,OPEN,3.2,2)COLOR00FF00; STICKLINE((CLOSE>OPEN) AND (X2>=X3),CLOSE,OPEN,3.2,2)COLORRED; STICKLINE((CLOSE<OPEN) AND (X2<x3),close,open,3.2,0)color00ff00;< span=""> STICKLINE((CLOSE<OPEN) AND (X2>=X3),CLOSE,OPEN,3.2,0)COLORRED; 友情提醒:有安裝就多多分享,好指標你我共享。你的分享是我的動力! |