A:=(3*C+L+O+H)/6; FLY1:(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6) +13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210; FLY2:MA(FLY1,30),COLORB53AC8; XL1:=(2*C+H+L)/4; XL2:=LLV(LOW,34); XL3:=HHV(HIGH,34); XL4:=EMA((XL1-XL2)/(XL3-XL2)*XL3,7); XL5:=EMA(0.667*REF(XL4,2)+0.333*XL4,1); XL6:=CROSS(XL4,MA(XL4,10)); L1:=(INDEXC-HHV(INDEXC,8))/HHV(INDEXC,8)<-0.05 AND MA(INDEXA,125)/MA(INDEXV,125)/(MA(INDEXA,5)/MA(INDEXV,5))>1.12; L2:=BARSLAST(L1)<13, ; L3:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)<-0.07; X1:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55); X2:=EMA(CLOSE,3); X3:=(2*CLOSE+LOW+HIGH)/4; X4:=X1-X2; 海底: EMA(X3,89)*0.74,LINETHICK2,COLOR4DA1FF; 水平面: EMA(X3,89)*0.84,LINETHICK2,COLOREE8400; 天际: EMA(X3,134)*0.98,POINTDOT,LINETHICK7,COLOR0000FF; 半:=XL6 AND FLY1<=水平面 AND C>=海底; 全:=XL6 AND C<=海底; DRAWTEXT(XL6 AND C>水平面 AND L2,LOW-LOW*0.01,'⊙←买 '),COLORB53AC8; DRAWTEXT(XL6 AND C>水平面 AND L3,LOW-LOW*0.01,'⊙←买 '),COLORB53AC8; DRAWTEXT(半,LOW+LOW*0.02,'⊙←半仓买'),COLOR00FF00; DRAWTEXT(全 AND L2,LOW+LOW*0.02,'⊙←全仓买 '),COLOR0000FF; LC0:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC0,0),6,1)/SMA(ABS(CLOSE-LC0),6,1)*100; DRAWTEXT(CROSS(84,RSI) , HIGH,'→小鸡快跑'),COLORBLUE ; VAR1:=1; VAR2:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0)*VAR1; VAR3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100; VAR4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100; VAR5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100; VAR6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5; VAR7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5; VAR8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5; VAR9:=(VAR3+VAR4+VAR5+VAR6+VAR7+VAR8)/6; VARA:=EMA(VAR9,3); VARB:=ABS(VAR6-VAR8); VARC:=(VAR9+VARB)/2; VARD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50; VARE:=VARD+VARC; VARF:=IF(VAR2>0 AND VARE<0,200,0); VAR10:=IF(VARC<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0); VAR11:=IF(VARE<0 AND VAR10=-50,100,0); VAR12:=REF(CLOSE,2)*0.865; VAR13:=REF(CLOSE,13)*0.772; VAR14:=MIN(VAR12,VAR13); VAR15:=100*VOL/CAPITAL; VAR16:=IF((CLOSE-VAR14)/CLOSE<0.03 AND SUM(VAR15,5)/5<1.8,1,0); VAR17:=IF(VAR16>0 AND (VAR10<0 OR VAR2>0),100,0); VAR18:=(VARF>0 AND VAR11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR16>0) AND (VAR10<0 OR VAR2>0); VAR19:=VARF>0 AND VAR11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR16>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902; VAR1A:=VAR18 OR VAR19; VAR1B:=VAR17 OR VAR1A; VAR1C:=VAR17; VAR1D:=MA(CLOSE,80)-MA(CLOSE,10)/3; VAR1E:=IF(VAR1B>0,87,0); VAR1F:=IF(VAR1C>0,91,0); VAR20:=IF(VAR17>0 AND CLOSE<VAR1D,97,0); VAR21:=MAX(MAX(VAR20,VAR1E),VAR1F); VAR22:=MA(CLOSE,80)-MA(CLOSE,13)/3; VAR23:=MA((CLOSE-VAR22)/VAR22,1); VAR24:=EMA(VAR23,12)*0.7; VAR25:=EMA(VAR23,3); VAR26:=IF(LLV(VAR25-VAR24,12)>0,0,-30); VAR27:=REF(CLOSE,1)*VAR1; VAR28:=SMA(MAX(CLOSE-VAR27,0),6,1)/SMA(ABS(CLOSE-VAR27),6,1)*100*VAR1; DRAWICON(IF(CROSS(76,VAR28),1,0),H*1.01,2); |
