Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
短期趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK2;
中期趋势:EMA(Q3, 3),COLORRED,LINETHICK2;
逢高派发:IFF(CROSS(中期趋势,短期趋势) AND REF(短期趋势,1) 80,中期趋势,100),COLOR00FF00,LINETHICK2;
逢低关注:IFF(REF(CROSS(中期趋势,短期趋势),82) AND 中期趋势 1.3*短期趋势,短期趋势,0),COLOR00FFFF,LINETHICK2;
抄底:IFF(REF(CROSS(短期趋势,中期趋势),1) AND 短期趋势 1.3*中期趋势,MIN(短期趋势,中期趋势),0),COLORMAGENTA,LINETHICK2;
VAR3:=PEAKBARS(3,5,1) {www.9m8.cn 九毛八公式指标网}
VAR5:=IFF(VAR3==1,2,0);
顶:=IFF(VAR5==2,2,0);
逃顶:IFF(顶 REF(顶,1),MAX(短期趋势,中期趋势),100),COLORFFFF00,LINETHICK2;