实现成交量放大
2016-1-8 22:50:29点击:
当ROC向下跌破零,卖出信号;ROC向上突破零,买入信号。股价
创新高,ROC未配合上升,显示上涨动力减弱。股价创新低,ROC
未配合下降,显示下跌动力减弱。股价与ROC从低位同时上升,
短期反弹有望。股价与ROC从高位同时下降,警惕回落。
N:=4;
M0:=5;
M1:=10;
M2:=20;
VOLZ=IF(CLOSE>PRE*1.098,MAX(1.2*REF(VOLZ,1),VOL),VOL);
VOLN:=IF(N=4,(REF(VOLZ,N)+REF(VOLZ,N-1)+REF(VOLZ,N-2)+REF(VOLZ,N-3))/N,
(REF(VOLZ,N)+REF(VOLZ,N-1)+REF(VOLZ,N-2))/N);
s:=FROMNIGHT;
WOL:=IF(s=0 AND FROMOPEN>10,IF(CLOSE>PRE*1.098,MAX(1.2*REF(VOLZ,1),VOL),VOL*241/FROMOPEN),VOLZ);
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;
JM0:=ATAN(((MA(C,M0)/REF(MA(C,M0),3)-1)+(REF(MA(C,M0),1)/REF(MA(C,M0),4)-1)+
(REF(MA(C,M0),2)/REF(MA(C,M0),5)-1))/9*100)*180/3.1416;
JM2:=ATAN(((MA(C,M2)/REF(MA(C,M2),3)-1)+(REF(MA(C,M2),1)/REF(MA(C,M2),4)-1)+
(REF(MA(C,M2),2)/REF(MA(C,M2),5)-1))/9*100)*180/3.1416;
JM1:=ATAN(((MA(C,M1)/REF(MA(C,M1),3)-1)+(REF(MA(C,M1),1)/REF(MA(C,M1),4)-1)+
(REF(MA(C,M1),2)/REF(MA(C,M1),5)-1))/9*100)*180/3.1416;
J21=ATAN((JM1-REF(JM1,1))/REF(JM1,1))*180/3.1415926;
二十日均线:JM2;
十日均线:JM1;
量:WROCS;
价:WROCC;
WROC:=CROSS(WROCS,WROCC);
POLYLINE(1,0);
F:=IF(CLOSE>PRE*1.0989,MAX(1.2*REF(ZJLR-ZJLC,1),1.2*ZJLC),ZJLR-ZJLC);
F5:=MA(F,3);
M:=IF(CLOSE>PRE*1.0989,MAX(1.2*REF(VOL,1),VOL),VOL)*CLOSE/10;
A:=ATAN(F5/M)/3.14*180;
IF(A>REF(A,1)AND REF(A,1)<REF(A,2)AND REF(A,2)<0)
BUY;
IF((CROSS(WROCC,WROCS) AND REF(WROCC,1)>10 AND WROCC>-5)OR CROSS(0,WROCC))
SELL;
FLAG=((((CROSS(WROCC,0) AND (WROCS>REF(WROCS,1)))OR (CROSS(WROCS,0)AND(WROCC>REF(WROCC,1))))
AND(((REF(CLOSE,1)-REF(CLOSE,2))<0.02*REF(CLOSE,1))OR(REF(OPEN,1)>REF(CLOSE,1))))
AND(WROCS>20) AND (LOW<MA(C,M0) OR LOW<MA(C,M1) OR LOW<MA(C,M2))) ;
SELECT FLAG==1;