以下是同花顺GDPU_VOL公式 实现成交量放大

同花顺GDPU_VOL公式 实现成交量放大

当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<WROCC AND WROCC<0)

SELL;

FLAG:=(CROSS(WROCC,0)*(WROCS>REF(WROCS,1))+CROSS(WROCS,0)*(WROCC>REF(WROCC,1)))*(REF(CLOSE,2)>REF(CLOSE,1))*(WROCS>25);
 

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。