金猪建仓 Var1:=(HHV(HIGH,9)-LLV(LOW,9)); Var2:=(HHV(HIGH,9)-CLOSE); Var3:=(CLOSE-LLV(LOW,9)); Var4:=Var2/Var1*100-70 ; Var5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; Var6:=(2*C+H+L)/4; Var7:=SMA((Var3/Var1*100),3,1); Var8:=LLV(LOW,34); Var9:=SMA(Var7,3,1)-SMA(Var4,9,1); Var10:= IF(Var9>100,Var9-100,0); VarA:=HHV(HIGH,34); 防线B:EMA((Var6-Var8)/(VarA-Var8)*100,8),COLORF0F000; B1:=EMA(防线B,5); 一进一出:STICKLINE(防线B-B1>0,防线B,B1,6,1), COLORRED; 妙趣横生:STICKLINE(防线B-B1<0,防线B,B1,6,1),COLORF0F000; 龙势:3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2* SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1),CIRCLEDOT,colorff9900 ; 大底:IF(CROSS( 龙势,20),100,0),colorred; 中底:IF((TROUGHBARS(3,15,1)=0) AND (HIGH>LOW+0.01),80,(-0)); a:=(3*CLOSE+LOW+OPEN+HIGH)/6; D1:=(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))/211; D2:=EMA(D1,2); D3:=EMA(D2,2); K1:=EMA(D3,2); TJ:=FILTER(CROSS(D1,K1) AND D1<50,20); 金猪:=if(TJ,60,0); STICKLINE(TJ,60,0,3,0),COLORYELLOW,LINETHICK2; DRAWTEXT(TJ,70,'建仓' ),COLORYELLOW ; TJ1:=FILTER(CROSS(D1,K1) AND D1<60,30); 金猪1:=if(TJ1,50,0); STICKLINE(TJ1,50,0,3,0),COLORRED,LINETHICK2; DRAWTEXT(TJ1,55,'加仓' ),COLORRED ; q:20; w:50; m:80; |
