同花顺布林极限副图指标
源码
VARAA:=MA(CLOSE,20);
布林极限:100*(CLOSE-VARAA)/STD(CLOSE,20),colorddddff;
布林K值:EMA(布林极限,10),color00ff00;
VARAB:=EMA(布林极限,5);
VARAC:=EMA(布林K值,5);
VAR1:=EMA(HHV(HIGH,500),21);
VAR2:=EMA(HHV(HIGH,250),21);
VAR3:=EMA(HHV(HIGH,90),21);
VAR4:=EMA(LLV(LOW,500),21);
VAR5:=EMA(LLV(LOW,250),21);
VAR6:=EMA(LLV(LOW,90),21);
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);
可以考虑出击了:IF(HYS1<REF(HYS1,1) AND REF(HYS1,1)>REF(HYS1,2) AND REF(HYS1,2)>REF(HYS1,3) AND HYS2<REF(HYS2,1) AND REF(HYS2,1)>REF(HYS2,2) AND REF(HYS2,2)>REF(HYS2,3) AND REF(HYS2,1)>0,200,0),linethick2,colorcyan;
STICKLINE(CROSS(RPY,MYP) AND CROSS(布林极限,布林K值) AND CLOSE>=OPEN AND BDC<=50 AND BDD<=50 AND BDA>=BDC AND BDB>=BDD,200,0),linethick2,colorff00bb;
STICKLINE(CROSS(REF(RPY,1),REF(MYP,1)) AND CROSS(布林极限,布林K值) AND CLOSE>=OPEN AND BDC<=50 AND BDD<=50 AND BDA>=BDC AND BDB>=BDD,200,0),linethick2,color00ffcc;
STICKLINE(CROSS(REF(MYP,1),REF(MYL,1)) AND CROSS(布林极限,布林K值) AND CLOSE>=OPEN AND BDC<=50 AND BDD<=50 AND BDA>=BDC AND BDB>=BDD,200,0),linethick2,color0099ff;
100,POINTDOT,color99ffcc;
-100,POINTDOT,color99ffcc;
170,color99ffcc;
-170,color99ffcc;
STICKLINE(布林极限>=布林K值,布林极限,布林K值,6,0),colorred;
STICKLINE(布林极限<布林K值,布林K值,布林极限,6,0),colorff00ff;
STICKLINE(VARAB>=VARAC,VARAB,VARAC,6,0),colorgreen;
STICKLINE(VARAB<VARAC,VARAC,VARAB,6,0),coloryellow;
STICKLINE(CROSS(布林极限,布林K值),布林极限,布林K值,6,0),colorblue;
STICKLINE(布林极限>=170,布林极限,布林K值,6,0),colorwhite;