BB指标源码 {用法:白线上穿0轴买进} N:=20;{=5,其他的要靠大家自己了。} MID:=MA(C,N){=5}; VART1:=POW((C-MID),2); VART2:=MA(VART1,N); VART3:=SQRT(VART2); UPPER:=MID+2*VART3; LOWER:=MID-2*VART3; BOLL:=REF(MID,1); UB:=REF(UPPER,1); LB:=REF(LOWER,1); LOWER1:=MID-VART3; LB1:=REF(LOWER1,1); BB:(C-LB1)/(UB-LB)*100; MA6:MA(BB,6); 0; 请老师将此公式做个选股谢谢! 条件如下; 1、金叉。 2、金叉这一天,BB线(白线)和MA6线(黄线)同时向上运行。 谢谢各位老师!
爱约股解答:
N:=20;{=5,其他的要靠大家自己了。}
MID:=MA(C,N){=5};
VART1:=POW((C-MID),2);
VART2:=MA(VART1,N);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
UB:=REF(UPPER,1);
LB:=REF(LOWER,1);
LOWER1:=MID-VART3;
LB1:=REF(LOWER1,1);
BB:=(C-LB1)/(UB-LB)*100;
MA6:=MA(BB,6);
CROSS(BB,MA6) AND BB>REF(BB,1) AND MA6>REF(MA6,1);