VAR7:=EMA((Var4*0.96+Var5*0.96+Var6*0.96+Var1*0.558+Var2*0.558+Var3*0.558)/6,21);
VAR8:=EMA((Var4*1.25+Var5*1.23+Var6*1.2+Var1*0.55+Var2*0.55+Var3*0.65)/6,21);
VAR9:=EMA((Var4*1.3+Var5*1.3+Var6*1.3+Var1*0.68+Var2*0.68+Var3*0.68)/6,21);
VARA:=EMA((Var7*3+Var8*2+Var9)/6*1.738,21);
VARB:=REF(LOW,1);
VARC:=SMA(ABS(LOW-VarB),3,1)/SMA(MAX(LOW-VarB,0),3,1)*100;
VAR10:=IF(CLOSE*1.35 =VARA,VARC*10,VARC/10);
VARD:=EMA(VAR10,3);
VARE:=LLV(LOW,30);
VARF:=HHV(VarD,30);
VAR11:=IF(LOW =VARE,(VARD+VARF*2)/2,0);
VAR12:=EMA(VAR11,3)/500-100;
HYS1:=0.2*VAR12;
HYS2:=1.2*VAR12;
DY1:=(2*CLOSE+HIGH+LOW)/4;
DY2:=LLV(LOW,34);
DY3:=HHV(HIGH,34);
VAR13:=(DY1-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
BDA:=EMA(VAR13,3);
BDB:=EMA(BDA,3);
BDC:=EMA((DY1-DY2)/(DY3-DY2)*100,9);
BDD:=EMA((0.667*REF(BDC,1)+0.333*BDC),3);
VAR14:=LLV(H,240);
MYP:=100*(C-VAR14)/VAR14;
VAR15:=HHV(H,240);
MYL:=100*(VAR15-C)/C;
VAR16:=REF(HHV(C,60),1);
VAR17:=REF(LLV(C,60),1);
RPY:=100*(C-VAR17)/(VAR16-VAR17);
100,POINTDOT,color99ffcc;
-100,POINTDOT,color99ffcc;
170,color99ffcc;
-170,color99ffcc;
z:EMA(VARAB,5);
出手: ( HHVBARS(z,5)=1 )
, colorwhite;
DRAWTEXT(出手,10,'出手'),colorwhite
, colorwhite;
DRAWTEXT(CROSS(布林极限,(VARAB 布林值)) AND(布林极限 REF(布林极限,1)),VARAC*0.5,'买'),colorred;