我编写了一个结合CCI和相对成交量的副图程序。
VKP:=IF(AMOUNT=0,(C+L+H+O)/4,AMOUNT/VOL);
RR:=VKP;
D1:=20;
SMD:=5;
WIDTH:=1.5;
RCCI:=(RR-MA(RR,D1))*100/(WIDTH*STDP(RR,D1));
VD:=120;
RV:=(VOL-LLV(VOL,VD))*100/(HHV(VOL,VD)-LLV(VOL,VD));
RVB:=RV*2-100;
VM:=EMA(RVb,SMD);
CCI:RCCI,COLORFF9300,NODRAW;
V%:RV,COLORFFFB00,NODRAW;
T:100,COLORLICYAN,DOTLINE;
M:0,COLORWHITE,DOTLINE;
G:-100,COLORLICYAN,DOTLINE;
X:=VKP;
Y:=REF(X,1);
STICKLINE(C>=O AND X>Y,-100,RVb,0.2,0),COLORRED;
STICKLINE(C<O AND X>Y,-100,RVb,0.2,0),COLORLIRED;
STICKLINE(C<O AND X<Y,-100,RVb,0.2,0),COLORGREEN;
STICKLINE(C>=O AND X<Y,-100,RVb,0.2,0),COLOR48FAAD;
STICKLINE(RVB>Vm,Vm,RVb,0.2,0),COLORFFFB00;
O0:=RCCI;
O0,蓝色,线条2;
O0,橙色,点状,线条2;
如果(O0大于等于参考(O0,1),O0,绘制空值),黄色,点状,线条2;
免责声明:社区由Moomoo Technologies Inc.提供,仅用于教育目的。
更多信息
评论
登录发表评论