源码
M:=66;N:=155;
Var1:=(2*CLOSE+HIGH+LOW)/4;
Var2:=LLV(LOW,N);
Var3:=HHV(HIGH,N);
Var4:=EMA((Var1-Var2)/(Var3-Var2)*100,13);
Var5:=SMA(Var4,2,1);
Var6:=BARSLAST(Var4>Var5);
Var7:=HHVBARS(Var1,N);
Var8:=IF(Var6=Var7,1,0);
IF(REF(Var8,1)=1 AND REF(Var8,2)=1 AND Var8<>1,1,0);
Var9:=BARSLAST(Var4
VarB:=IF(Var9=VarA,1,0);
IF(REF(VarB,1)=1 AND REF(VarB,2)=1 AND VarB<>1,1,0);