九毛八公式指标
全仓主图指标源码: HR:=HHV(HIGH,55); HRY:=LLV(LOW,55); HRY11:=HR*HRY; HRY33:SQRT(HRY11),COLORGREEN,LINETHICK2; IF(C>HRY33 AND HRY33 >=REF(HRY33 ,1), HRY33 ,DRAWNULL),LINETHICK2,COLORRED; WLT1:=EMA(C,3); WLT2:=EMA(C,5); WLT3:=EMA(WLT2,5); DRAWBAND(WLT1,RGB(255,255,0),WLT2,RGB(0,0,220)); HP:=(HHV(CLOSE,10)-LLV(CLOSE,10))/CLOSE<0.10; LB:=VOL/MA(VOL,5); X1:=(C+L+H)/3; BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10; EMA3:=EMA(C,3); DRAWTEXT(FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10), LOW*0.99,'★∠45'),COLORFFFFFF; TT:=FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10); MM:=WLT1>REF(WLT1,1) AND REF(WLT1,1)=3; WLT93:=CCI>WLT91; WLT96:=CROSS(CCI,100); TJ91:=WLT95 AND WLT96; JLP:=FILTER(TJ91,5); 超买:=MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHICK2; 超卖:=MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORRED,LINETHICK2; TEND:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4; DD:=TEND>REF(TEND,1) AND REF(TEND,1) >REF(TEND,2); GG2:=CROSS(WLT1,TEND); HRY1:=LLV(LOW,55); HRY2:=HHV(HIGH,21); GG3:=C
公式模块:
TYP:= (HIGH + LOW + CLOSE)/3;
cci1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5)); CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10)); CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20)); CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30)); CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60)); CCI:=(CCI1+CCI2+CCI3+CCI4+CCI5)/2; WLT92:=LLV(CCI,13)<-100; WLT95:=COUNT(WLT92,13)>=3; WLT96:=crOSS(CCI,100); TJ91:=WLT95 AND WLT96; JLP:=FILTER(TJ91,5); HRY1:=LLV(LOW,55); HRY2:=HHV(HIGH,21); HR:=HHV(HIGH,55); HRY:=LLV(LOW,55); HRY11:=HR*HRY; HRY33:=SQRT(HRY11); WLT1:=EMA(C,3); WLT2:=EMA(C,5); GG1:=CROSS(WLT1,WLT2); LB:=vol/MA(VOL,5); GG3:=C<HRY2*0.8 AND C>HRY33; JJ1:=C<HRY1*1.62; TJ1:=GG1; TJ3:=GG1 AND GG3 ; XG:=TJ1 OR TJ3 ; XG2:=C<HRY2*0.86 OR LB>1; XG1:XG AND XG2 AND C>HRY33 AND JLP;