乖离率:(C-MA(C,250))/MA(C,250)*100;
N1:=BArslAST(crOSS(C,MA(C,250)));
N2:=BARSLAST(CROSS(MA(C,250),C));
长期趋势:IF(N1<N2,N1+1,0);
峰值乖离:HHV(乖离率,长期趋势);
长涨幅:(C-REF(C,长期趋势))/REF(C,长期趋势)*100;
N3:=BARSLAST(CROSS(C,MA(C,20)));
N4:=BARSLAST(CROSS(MA(C,20),C));
黑马跟踪:IF(N3<N4,N3+1,0);
涨幅跟踪:(C-REF(C,黑马跟踪))/REF(C,黑马跟踪)*100;
换手:vol/CAPITAL*100 LINETHICK0;
百日换手:SUM(换手,100) LINETHICK0;
换手跟踪:SUM(换手,0)-REF(SUM(换手,0),黑马跟踪),COLORFF937F LINETHICK0;
跟踪系数:换手跟踪/涨幅跟踪,COLOR00FF00 LINETHICK0;