做多做空副图公式 源码 说明
本公式是根据味道老师二个公式运用的启发,把两个公式合二为一,要关注二个彩带同时具备可操作,最好是CCI在50以上,WR在50以下
源码
均价:=(2*C+(C+H+L+O)/4+O)/4;
R:=(2*L+3*均价)/5;R1:=(2*H+3*均价)/5;kx:=(R+r1)/2;
STICKLINE(C>0,50,50,10,10),COLORWHITE;
CCI:(R-MA(R,84))/(0.015*AVEDEV(R,84))/1,COLORYELLOW;
做多:(3*SMA(CCI,2,1)+2*SMA(SMA(CCI,2,1),2,1))/5,COLOR6600FF;
FILLRGN(CCI<做多,做多,CCI),COLORAAAA00;
FILLRGN(CCI>做多,做多,CCI),COLORBROWN;
WR1:(100*(HHV(R1,84)-KX)/(HHV(R1,84)-LLV(R,84)))*2.5,COLORFFC0FF;
做空:(3*SMA(WR1,2,1)+2*SMA(SMA(WR1,2,1),2,1))/5,COLORGRAY;
PARTLINE(WR1>0,wr1),COLORFFCCAA,COLORAAAA00;
FILLRGN(WR1<做空,做空,WR1),COLOR00AA99;
FILLRGN(WR1>做空,做空,WR1),COLORGRAY;