{缺口}
stickline(L>REF(H,1),L,REF(H,1),50,1001),color0000FF;
stickline(REF(L,1)>H,ref(L,1),H,50,1001),color00FF00;
{买卖}
操作: MA((LOW+HIGH+CLOSE)/3,5),color00ffff;
拉升: HHV(操作,13),colorff00ff;
压力: HHV(操作,60),color00ff00;
买卖: LLV(操作,13),colorffffff;
支撑: LLV(LOW,60)*1.02,colorffff00;
顶: HHV(HIGH,60)*0.98,color0000ff;
A1:=REF(CLOSE,1)<REF(OPEN,2);
A2:=CLOSE>OPEN ;
A3:=REF(HIGH,1)<REF(LOW,2) ;
Aa4:=HIGH>REF(LOW,1);
stickline(A1 AND A2 AND A3 AND Aa4,(LOW - 0.4),(LOW -1.3),4,0),color00FFFF;
DRAWTEXT( A1 AND A2 AND A3 AND Aa4,(LOW - 0.3),'出击'),color00FFFF;
DRAWTEXT(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01 AND A1 AND A2=0 AND A3=0 AND Aa4=0,(LOW - 0.3),'震仓'),color0000FF;
B:=(SMA(LOW,5,2) * 0.96);
BB:=LLV(HIGH,36);
B2:=LLV(HIGH,30);
stickline(((((LOW <= B) AND (HIGH >= BB)) AND (CLOSE >=B2 )) AND ((CLOSE / OPEN) > 1.03)),(LOW - 0.2),(LOW -0.9),4,0),color0000FF;
DRAWTEXT(((((LOW <= B) AND (HIGH >= BB)) AND (CLOSE >=B2 )) AND ((CLOSE / OPEN) > 1.03)),(LOW - 0.08),'★抄底'),color0000FF;
Va1:=EMA(CLOSE,8);
Va2:=EMA(Va1,20);
Va3:=CROSS(Va1,Va2);
Va4:=VOL/SUM(VOL,13);
Va5:=DMA(CLOSE,Va4);
Va6:=Va1<MA(CLOSE,120);
A3a:=Va3 AND Va6 AND (CLOSE-Va5)/Va5*100/2.5>1.6;
A4a:=CROSS( (CLOSE-Va5)/Va5*100/2.5,0 ) and (CLOSE-Va5)/Va5*100/2.5>1.5 ;
DRAWTEXT(A4a>0 or A3a>0,l-0.3,'追涨'),COLORWHITE;
stickline(A4a>0 or A3a>0,(LOW - 0.2),(LOW -0.5),4,0),COLORWHITE;
VV1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VV2:=SMA(VV1,7,1);
VV3:=SMA(VV2,12,1);
VV4:=CROSS(VV3,VV2);
VV5:=VV3>88 OR VV2>88;
VV6:=VV4 AND VV5;
stickline(VV6 OR cross(REF(VV2,1),VV2) AND VV2>95,(HIGH + 0.5),(HIGH +1.2),8,0),COLOR00ff00;
drawtext(VV6 OR cross(REF(VV2,1),VV2) AND VV2>95,h+1.2,'逃顶'),color00ff00;
GLL:=-6;
C0:=(h+l+c)/3;
b1:=HHV(c0,4*15);
b2:=LLV(c0,4*15);
b3:=b1-b2;
b4:=ema((c0-b2)/b3,2)*100;
C1:=HHV(c0,16*15);
C2:=LLV(c0,16*15);
C3:=C1-C2;
C4:=ema((c0-C2)/C3,2)*100;
stickline((CROSS(C,买卖) AND c4>=20 AND VV3<75 AND c4>=20) OR ((CROSS(low,买卖) OR CROSS(low,支撑))AND VV2>VV3 AND b4>=15 AND c4>=20),(LOW - 0.5),(LOW -1.2),8,0),color0000FF;
DRAWTEXT((CROSS(C,买卖) AND c4>=20 AND VV3<75 AND c4>=20) OR ((CROSS(low,买卖) OR CROSS(low,支撑))AND VV2>VV3 AND b4>=15 AND c4>=20),L-0.7,'买'),color0000ff;
A4:=MA(CLOSE,20);
A5:=(CLOSE > MA(CLOSE,5));
A6:=(MA(CLOSE,5) > MA(CLOSE,10));
A7:=(CLOSE > MA(CLOSE,10));
A8:=(MA(CLOSE,5) > MA(CLOSE,20));
A9:=(CLOSE > MA(CLOSE,20));
A10:=REF(A4,1);
A11:=(A4 > A10);
AVX:=(((((IF(A5,10,(0 - 10)) + IF(A6,10,(0 - 10))) + IF(A7,10,(0 - 10))) + IF(A8,10,(0 - 10))) + IF(A9,10,(0 - 10))) + IF(A11,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
V1:=MA(VOL,5);
V2:=MA(VOL,10);
mc:=REF(c,1);
阻力位:=IF((CLOSE > 200),(CLOSE * 1.01),(CLOSE * 1.07));
阻力位1:=IF((CLOSE < 10),(CLOSE * 1.05),阻力位);
支撑位:=IF((CLOSE > 200),(CLOSE * 0.99),(CLOSE * 0.93));
支撑位1:=IF((CLOSE < 10),(CLOSE * 0.95),支撑位);
阻力位a:=IF((mc > 200),(mc * 1.01),(mc * 1.07));
阻力位2:=IF((mc < 10),(mc * 1.05),阻力位a);
支撑位b:=IF((mc > 200),(mc * 0.99),(mc * 0.93));
支撑位2:=IF((mc < 10),(mc * 0.95),支撑位b);
TJTS1:=BARSTATUS=2 and c<200;
TJTS2:=BARSTATUS=2 and c>200;
DRAWTEXTABS(58,80,'[昨/今日 支撑位 :'+NUMTOSTRn(支撑位b,2)+'/'+NUMTOSTRn(支撑位1,2)+'**]'),LINETHICK1,COLOR00FF00;
DRAWTEXTABS(58,95,'[昨/今日 阻力位 :'+NUMTOSTRn(阻力位2,2)+'/'+NUMTOSTRn(阻力位1,2)+']'),LINETHICK1,colorFEBAF5;
T := BARSLAST(DISPSTATUS=1)+1;