TAG:选股

 网友求助:

Var1:=BARSCOUNT(CLOSE);
Var2:=(HHV(HIGH,200)-LLV(LOW,200))/40;
STICKLINE(Var1/30=FLOOR(Var1/30),HIGH+Var2,HIGH+Var2*4,8,0), ,COLORYELLOW;
STICKLINE(Var1/30=FLOOR(Var1/30),HIGH+Var2,HIGH+Var2*3,8,0), , COLORRED;
Var3:=REF(CLOSE,1);
Var4:=REF(CLOSE,2);
Var5:=REF(CLOSE,3);
Var6:=REF(CLOSE,4);
Var7:=HHV(CLOSE,4);
Var8:=LLV(CLOSE,4);
Var9:=CLOSE=Var7 AND (Var3>=Var4 OR Var3>=Var5) OR Var3=Var7 AND CLOSE>=Var4 OR Var4=Var7 AND Var5=Var8 AND CLOSE>=Var3 OR Var5=Var7 AND CLOSE>=Var3 AND CLOSE>=Var4;
红色持股: STICKLINE(Var9,Var3,CLOSE,5,1), ,COLORRED;
VarA:=CLOSE=Var7 AND Var3=Var8;
品红变盘: STICKLINE(VarA,Var4,CLOSE,5,1), , COLORMAGENTA;
VarB:=CLOSE=Var8 AND (Var3<Var4 OR Var3<Var5) OR Var3=Var8 AND CLOSE<Var4 OR Var4=Var8 AND Var3<>Var7 AND CLOSE<Var3 OR Var5=Var8 AND CLOSE<Var3 AND CLOSE<Var4;
黄色下跌: STICKLINE(VarB,Var3,CLOSE,5,0), , COLORYELLOW;
VarC:=Var3=Var8 AND CLOSE>=Var4 OR Var4=Var8 AND Var3<=Var5 AND Var4<Var6 AND CLOSE>=Var3;
绿色买: STICKLINE(VarC,Var3,Var4,5,0), , COLORGREEN;
VarD:=Var3=Var7 AND CLOSE<Var4 OR (Var4=Var7 AND Var3>Var5 OR Var5=Var7 AND Var3>Var4) AND Var4>=Var6 AND CLOSE<Var3;
兰色抛售: STICKLINE(VarD,Var3,Var4,5,1), , COLORBLUE;
生命线: FORCAST(CLOSE,30), ,COLORWHITE;
支撑: MA(CLOSE,13)*0.955, , COLORCYAN;
 

 

解答如下:

Var3:=REF(CLOSE,1);
Var4:=REF(CLOSE,2);
Var5:=REF(CLOSE,3);
Var6:=REF(CLOSE,4);
Var7:=HHV(CLOSE,4);
Var8:=LLV(CLOSE,4);
xg:Var3=Var8 AND CLOSE>=Var4 OR Var4=Var8 AND Var3<=Var5 AND Var4<Var6 AND CLOSE>=Var3;