九毛八公式指标
编写一个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);