n:=3;n1:=10;N3:=34;
Var1:=EMA(EMA(EMA(CLOSE,N),N),N);
短线: Var1-REF(Var1,1)+Var1,color10FFFF;
中短: MA(短线,N1);
中线: EMA(CLOSE,N3),LINETHICK1,colorFFFFFF;
STICKLINE(短线>中短,中短,短线,0.10,1),color0000ff,LINETHICK1;
STICKLINE(中短>短线,短线,中短,0.10,1),LINETHICK1,color00ff00;
DRAWTEXT(CROSS(短线,中短){ and 中短>=ref(中短,1)},中短-0.2,'↑'), , COLOR00FFFF;
VarA:=AMOUNT/VOL/100;
VarB:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VarC:=SUM(AMOUNT,7)/VarA/100;
VarD:=DMA(VarB,VOL/VarC);
VarE:=(CLOSE-VarD)/VarD*100;
VarF:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
VarJ:=MA(VarE,20)+STD(VarE,20);
BIAS18:=(CLOSE-MA(CLOSE,18))/MA(CLOSE,18)*100;
K:=SMA(VarF,3,1);
顶:STICKLINE(REF(BIAS18,1)>=5 AND CROSS(VarJ,VarE) AND K>79 ,MA(CLOSE,25)*(1-6/100),MA(LOW,30)*(1-15/100),5,0),color0099ff;