P:=17;N:=1; VAR1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21)))); VAR2:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34)); STICKLINE((VAR1<MA(VAR2,6)),CLOSE,OPEN,7,1),COLORBLUE; STICKLINE((VAR1<MA(VAR2,6)),LOW,(MIN(OPEN,CLOSE)*1.001),0.6,0),COLORBLUE; STICKLINE((VAR1<MA(VAR2,6)),MAX(OPEN,CLOSE),HIGH,0.6,0),COLORBLUE; STICKLINE((VAR1>MA(VAR2,6)),OPEN,CLOSE,7,1),COLORRED; STICKLINE((VAR1>MA(VAR2,6)),HIGH,MAX(CLOSE,OPEN),0.6,0),COLORRED; STICKLINE((VAR1>MA(VAR2,6)),LOW,(MIN(CLOSE,OPEN)*1.001),0.8,0),COLORRED; STICKLINE(((OPEN>CLOSE) AND (VAR1>MA(VAR2,6))),(OPEN*0.998),(CLOSE*1.0025),4.5,0),COLORRED; STICKLINE(((OPEN<CLOSE) AND (VAR1<MA(VAR2,6))),(CLOSE*0.998),(OPEN*1.0025),4.5,0),COLORBLUE; STICKLINE(((OPEN>CLOSE) AND (VAR1<MA(VAR2,6))),CLOSE,OPEN,7,0),COLORBLUE; DRAWTEXT(CROSS(VAR1,MA(VAR2,6)),(LOW*0.984),'B'),COLORRED; DRAWTEXT(CROSS(MA(VAR2,6),VAR1),(HIGH*1.035),'S'),COLORGREEN; 操作線:MA(CLOSE,P),LINETHICK2,COLORFF00FF;AA:=CLOSE/REF(CLOSE,1)>=1.09; STICKLINE(AA,OPEN,CLOSE,8,0),COLORYELLOW; STICKLINE(AA,LOW,HIGH,0.5,0),COLORYELLOW; MA3:=MA(C,3); MA5:=MA(C,5); ZX:=(MA3+MA5)/2; MA30:=MA(C,30); QSXS:=MA5>=MA30 AND MA30>REF(MA30,1); GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2); YB:=C>REF((O-C)/2+C,2); 買進(jìn):=CROSS(C,ZX) AND (GD OR YB) AND QSXS; 優(yōu):=買進(jìn) AND MA5>REF(MA5,1); DRAWTEXT(買進(jìn) OR 優(yōu),L*0.99,'買進(jìn)'),COLORCYAN; V1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; V2:=SMA(V1,7,1); V3:=SMA(V2,12,1); V4:=CROSS(V3,V2); V5:=V3>88 OR V2>88; V6:=V4 AND V5;{微信公眾號:程序化指標(biāo)源碼:WWW.KXMMGZH.COM} STICKLINE(V6 OR CROSS(REF(V2,1),V2) AND V2>95,(HIGH+0.5),(HIGH+1.2),8,0),COLOR00FF00; DRAWTEXT(V6 OR CROSS(REF(V2,1),V2) AND V2>95,H+1.2,'逃頂'),COLOR00FF00; V7:=REF(CLOSE,1);V8:=SMA(MAX(CLOSE-V7,0),6,1)/SMA(ABS(CLOSE-V7),6,1)*100; DRAWTEXT(CROSS(84,V8),HIGH*1.03,'見頂'),COLORYELLOW; V9:=SMA(MAX(CLOSE-V7,0),12,1)/SMA(ABS(CLOSE-V2),12,1)*100; DRAWTEXT(CROSS(V9,20),LOW*0.98,'見底'),COLORGREEN; 多空生命線:EMA(CLOSE,55),LINETHICK2,COLORCYAN; 瘋牛:DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),VOL),LINETHICK2,COLORYELLOW; 年線:DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,250),VOL),LINETHICK2,COLOR30CC00; V10:=(C+L+H)/3; V11:=EMA(V10,6); V12:=EMA(V11,5); A1:=CROSS(V11,V12) AND C>O; DRAWTEXT(A1,L*0.96,'出擊'),COLORRED; A2:=MA(C,10)>REF(MA(C,10),1) AND CROSS(C,MA(C,5)); DRAWTEXT(A2=1,L*0.98,'強(qiáng)勢買'),COLORRED; MA10:=MA(C,10); MA20:=MA(C,20); BM:=COUNT(MA5>REF(MA5,1),N)=N AND MA5>MA10 AND MA10>MA20 AND MA20>MA30; 奔牛:=BM*5; DRAWTEXT(奔牛>0,MA30-0.02,'牛'),COLOR00FFFF; 量:=REF(C,REF(HHVBARS(V,21),0)); M1:=MA(CLOSE,1); A:=V>1*REF(V,1) AND (C/REF(C,1)-1)*100>9.5 AND M1>=量; DRAWICON(CROSS(A,1),L*0.98,3),COLORWHITE; DRAWTEXT(A,L*0.97,'進(jìn)攻買'),LINETHICK1,COLORYELLOW; VAR5:=(ZIG(3,10)<REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1)>REF(ZIG(3,10),2)); VAR6:=(ZIG(3,10)>REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1)<REF(ZIG(3,10),2)); DRAWTEXT(VAR5,HIGH*1.05,'撤退跑'),COLORCYAN; DRAWTEXT(VAR6 AND (DATE<1070804),LOW*0.95,'注意'),COLORCYAN;
|