源码
NN:=20;N:=6;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7,0);
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,4,0);
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2,0);
STICKLINE(CLOSE>=OPEN,HIGH,LOW,0,0);
STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,7,0);
STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,4,0);
STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,2,0);
STICKLINE(CLOSE<=OPEN,HIGH,LOW,0,0);
Var1:=REF(CLOSE,1);
MA20: MA(CLOSE,NN);
Var2:=MA(CLOSE,5);
Var3:=SMA(MAX(CLOSE-Var1,0),N,1)/SMA(ABS(CLOSE-Var1),N,1)*100;
Var4:=SMA(MAX(CLOSE-Var1,0),12,1)/SMA(ABS(CLOSE-Var1),12,1)*100;
Var5:=SMA(MAX(CLOSE-Var1,0),24,1)/SMA(ABS(CLOSE-Var1),24,1)*100;
Var6:=IF(CROSS(Var3,Var5),LOW,REF(LOW,BARSLAST(CROSS(Var3,Var5))));
Var7:=IF(CROSS(Var5,Var3),HIGH,REF(HIGH,BARSLAST(CROSS(Var5,Var3))));
Var8:=IF(CLOSE>=MA(CLOSE,NN),80,50);
Var9:=IF(CLOSE>=MA(CLOSE,NN),50,20);
VarA:=IF(Var3=Var8,HHV(REF(HIGH,1),BARSLAST(Var3>=Var8 AND REF(Var3,1)=Var8 AND REF(Var3,1)
VarB:=IF(HIGH>VarA,LOW,REF(LOW,BARSLAST(HIGH>VarA)));
VarC:=IF(HIGH>VarA,Var3,REF(Var3,BARSLAST(HIGH>VarA)));
VarD:=IF(HIGH>VarB AND Var3VarB AND Var3
VarE:=IF(Var3>Var9 AND REF(Var3,1)<=Var9,LLV(REF(LOW,1),BARSLAST(Var3<=Var9 AND REF(Var3,1)>Var9)-1),REF(LLV(REF(LOW,1),BARSLAST(Var3<=Var9 AND REF(Var3,1)>Var9)-1),BARSLAST(Var3>Var9 AND REF(Var3,1))));
VarF:=IF(LOW
Var10:=IF(LOW
Var11:=IF(LOWVar10 AND Var3>Var5,LOW,REF(LOW,BARSLAST(LOWVar10 AND Var3>Var5)));
多防线: Var11;
空防线: VarD;
Var12:=AMOUNT/VOL/100;
Var13:=Var12>HIGH OR Var12
STICKLINE(Var13<1,Var12-0.002,Var12+0.002,8,1);
SAR(10,2,20),CIRCLEDOT;
评论(0)