BOLL简单指标
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

编写一个BOLL简单指标

解答:

 N:=20;

MID:=MA(C,N);
VART1:=POW((C-MID),2);
VART2:=MA(VART1,N);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
BOLL:REF(MID,1),COLORFFFFFF;
UB:REF(UPPER,1),COLOR00FFFF;
LB:REF(LOWER,1),COLORFF00FF;
AA:=(UB-LLV(UB,20))/(HHV(UB,20)-LLV(UB,20));
CC:=(LB-LLV(LB,20))/(HHV(LB,20)-LLV(LB,20));
DD:=CROSS(MA(UB,5),UB) AND HHV(AA,3)>=0.98;
EE:=CROSS(MA(LB,5),REF(MA(LB,5),1)) AND LLV(CC,3)<=0.1 AND HHV(C,3)>BOLL;
DRAWICON(EE,LB,1);
DRAWICON(DD,UB,2);

选股票看什么指标最好 >股票指标网