当ROC向下跌破零,卖出信号;ROC向上突破零,买入信号。股价
创新高,ROC未配合上升,显示上涨动力减弱。股价创新低,ROC
未配合下降,显示下跌动力减弱。股价与ROC从低位同时上升,
短期反弹有望。股价与ROC从高位同时下降,警惕回落。
源码
VOLN:=IF(N=4,(REF(VOL,N)+REF(VOL,N-1)+REF(VOL,N-2)+REF(VOL,N-3))/N,(REF(VOL,N)+REF(VOL,N-1)+REF(VOL,N-2))/N);
s:=FROMNIGHT;
WOL:=IF(s=0 AND FROMOPEN>20,VOL*241/FROMOPEN,VOL);
WROCS:=ATAN((WOL-VOLN)/VOLN*1)/3.14159*180;
CLOSEN:=(REF(CLOSE,1)+REF(CLOSE,2)+REF(CLOSE,3))/3;
WROCC=ATAN((CLOSE-CLOSEN)/CLOSEN*3)/3.14159*180;
量:WROCS;
价:WROCC;
WROC:=CROSS(WROCS,WROCC);
POLYLINE(1,0);
FLAG:=((CROSS(WROCC,0) AND WROCS>REF(WROCS,1))OR (CROSS(WROCS,0)AND WROCC>REF(WROCC,1)))AND(REF(CLOSE,2)>REF(CLOSE,1));
IF (((CROSS(WROCC,0) AND WROCS>REF(WROCS,1))OR (CROSS(WROCS,0)AND WROCC>REF(WROCC,1)))AND(REF(CLOSE,2)>REF(CLOSE,1)))
BUY;
IF(CROSS(WROCC,WROCS)AND WROCS SELL; FLAG:=(CROSS(WROCC,0)*(WROCS>REF(WROCS,1))+CROSS(WROCS,0)*(WROCC>REF(WROCC,1)))*(REF(CLOSE,2)>REF(CLOSE,1))*(WROCS>25);