源码
N:=60;N2:=80;N3:=10;N4:=10;
Var1:=1;
Var2:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100*Var1;
Var3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100*Var1;
Var4:=MA(CLOSE,20);
Var5:=MA(CLOSE,5);
Var6:=LLV(LOW,N)*Var1;
涨1: Var6*1.236*Var1;
涨2: Var6*1.382*Var1;
涨3: Var6*1.618;
涨4: Var6*1.764;
Var7:=Var6*1.855;
Var8:=Var6*2;
Var9:=Var6*2.382;
VarA:=HHV(HIGH,N)*Var1;
跌1: VarA*0.855*Var1;
跌2: VarA*0.764*Var1;
跌3: VarA*0.618;
跌4: VarA*0.5;
跌5: VarA*0.382;
VarB:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VarC:=SMA(VarB,5,1)*Var1;
VarD:=SMA(VarC,3,1)*Var1;
VarE:=3*VarC-2*VarD*Var1;
头部: IF(CROSS(VarD,VarC) AND VarD>N2 AND Var2>N3,Var9*1.5,Var9)*Var1;
DRAWTEXT(CROSS(VarD,VarC) AND VarD>N2 AND Var2>N3,Var9*1.4,'头部');
底部: REVERSE(IF(CROSS(VarC,VarD) AND VarD<-30,跌5*2,-5))*Var1;
DRAWTEXT(REVERSE(CROSS(VarC,VarD)) AND VarD<-30,跌5-5,'底部');
VarF:=MA(CLOSE,5)*Var1;
Var10:=MA(CLOSE,10)*Var1;
Var11:=MA(CLOSE,20)*Var1;
Var12:=MA(CLOSE,30)*Var1;
Var13:=MA(VOL,5);
Var14:=MA(VOL,34);
Var15:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
Var16:=EMA(CLOSE,3);
Var17:=(Var16-Var15)*20;
Var18:=MA(Var17,3);
Var19:=(Var18-REF(Var18,10))/REF(Var18,10)*0.5;
Var1A:=0+(CROSS(Var17,Var18) AND Var18<-15 AND Var2<-24)*10*Var1;
Var1B:=(CROSS(Var17,Var18) AND Var3>4.5 AND Var2<-26 AND Var13>Var14)*20*Var1;
DRAWTEXT(Var1B,LOW,'<---成功率84.07%.')*Var1;
DRAWTEXT(CROSS(Var18,Var17) AND Var18>10 AND Var2>5,Var9*1.3,'<---头部 ')*Var1;