源码
N:=7;P:=5;X:=8;Q:=6;
0,,coloryellow;
BBI: (MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORwhite;
UPR: BBI+3*STD(BBI,10),LINETHICK2,COLORYELLOW;
DWN: BBI-3*STD(BBI,10),LINETHICK2,colorFF10FF;
A1:=(EMA(CLOSE,2.7)+MA(CLOSE,6)+MA(CLOSE,10.8))/3;
A2:=(EMA(CLOSE,3)+MA(CLOSE,7.5)+MA(CLOSE,13))/3;
A3:=(EMA(CLOSE,4)+MA(CLOSE,8.5)+MA(CLOSE,16.5))/3;
A4:=(EMA(CLOSE,4.8)+MA(CLOSE,10.2)+MA(CLOSE,18.6))/3;
A5:=(EMA(CLOSE,6.5)+MA(CLOSE,11.8)+MA(CLOSE,21))/3;
安全线: MA(CLOSE,60), CIRCLEDOT,color4361FF;
Var1:=REF(CLOSE,1);
Var2:=SMA(MAX(CLOSE-Var1,0),6,1)/SMA(ABS(CLOSE-Var1),6,1)*100;
卖:if(CROSS(84,Var2),HIGH,0), ,colorf00f00;
Var3:=(2*CLOSE+HIGH+LOW)/4;
Var4:=LLV(LOW,34);
Var5:=HHV(HIGH,34);
Var6:=EMA((Var3-Var4)/(Var5-Var4)*100,N);
Var7:=EMA(0.667*REF(Var6,1)+0.333*Var6,P);
Var8:=LLV(LOW,120);
Var9:=HHV(HIGH,60);
箱顶: Var8,LINETHICK2,color43FF10;
箱底: Var9,LINETHICK2,color43FF10;
买:if(IF(COUNT(CLOSE<REF(CLOSE,1),X)/X>Q/10 AND VOL>=1.5*MA(VOL,5) AND COUNT(Var6>=Var7,3) AND REF(LOW,1)=LLV(LOW,120),1,0),HIGH,0), ,COLORf000ff;
买进:if (IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>0.6 AND COUNT(Var6>Var7,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND
REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),high,0), , COLORYELLOW;
VarA:=MA(CLOSE,80)-MA(CLOSE,10)/3;
抄底:if(IF(CLOSE<VarA AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),HIGH,0), , COLOR00ff00;
VarB:=OPEN<A1 OR OPEN<A5 OR OPEN<BBI;
VarC:=CLOSE>MAX(A1,MAX(BBI,A5));
VarD:=VOL/MA(VOL,30)>1.2;
VarE:=CLOSE/REF(CLOSE,1)>1.03;
孤独出击:if(IF(VarB AND VarC AND VarD AND VarE AND VOL/240>MA(VOL,5)/240 AND REF(CLOSE,3)<MA(CLOSE,60),1,0),LOW,0), ,colorFFFF47 ;