C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- {副图名:JGL_DDV ; (初步正式版);发明人及版权属于JIPGEMLING.见凌见};
- {参数设置:VOL_AMO(1,2,1);锤头处理(1,2,1),};
- {说明:锤头处理=1,以K线中值(C+H+L)/3论多空,锤头处理=2,以K线阴阳论多空}
- {坐标线位置:自动 ;额外Y轴分界 值1=0 };
- {TDX版,中高分辨率屏幕};
-
-
- W:=VOL_AMO;
- EPSL:=0.0001;
- ZZ:=(C+H+L)/3;
- TJ0:=ZZ>MAX(C,O) OR ZZ<MIN(C,O);
- CT:=锤头处理;
- TJ1:=H=L AND C>REF(C,1);
- TJ2:=H=L AND C<REF(C,1);
- {画阴阳量柱}
- V0L:IF(W=1,V,AMOUNT),STICK,COLOREEFFEE;
- STICKLINE(C>OPEN,0,V0L,1.3,1),COLOR1133FA;
- STICKLINE(C<OPEN,0,V0L,1.3,1),COLORCYAN;
- {以下7句组合属核心发明公式,声明知识产权和版权。}
- ZL:=2*(H-L)+ABS(C-O)+3*EPSL;
- EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0)){仅处理日线一字涨跌停K线};
- JGL_DTC:=(IF(TJ0 AND CT=1,4/3*(C-(H+L)/2)+ABS(C-O),C-OPEN)+EE)/ZL;
- 主动买:V0L*(1+JGL_DTC)/2,COLOR1133AA,NODRAW;
- 主动卖:V0L*(1-JGL_DTC)/2,COLORCYAN,NODRAW;
- STICKLINE(1,0,ABS(主动买),2.2,1),COLOR1133DE;
- 买卖差:主动买-主动卖,COLOR13AADD,NODRAW;
- {换手}
- 换手:VOL/CAPITAL*100,NODRAW;
- 换手1:=换手*10000;
- 换手2:=换手1-换手1*2;
- STICKLINE(换手2<0,0,换手2,1.8,1),COLORLIMAGENTA;
- 换5:SUM(VOL/CAPITAL*100,5);
- 换①:SUM(VOL/CAPITAL*100,10);
- 换②:SUM(VOL/CAPITAL*100,20);
- 换③:SUM(VOL/CAPITAL*100,30);
- 〖虚量〗:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
- STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,〖虚量〗,0,-1,-1),COLORYELLOW;
- AA:=SUMBARS(VOL,CAPITAL);
- 地量:IF(CAPITAL=0,AMOUNT=LLV(AMOUNT,34),VOL<MA(VOL,AA)/3) ,COLORWHITE;
- STICKLINE(地量,主动买,VOL,0.3,0),COLORWHITE;
- 天量:IF(CAPITAL=0,AMOUNT=HHV(AMOUNT,34),VOL>MA(VOL,AA)*3) ,COLORYELLOW;
- STICKLINE(天量,主动买,VOL,0.3,0),COLORYELLOW;
- {实心柱}
- STICKLINE(主动买>0,0,主动买,2.4,0),COLOR000055;
- STICKLINE(主动买>0,0,主动买,2,0),COLOR000077;
- STICKLINE(主动买>0,0,主动买,1.8,0),COLOR000099;
- STICKLINE(主动买>0,0,主动买,1.5,0),COLOR0000BB;
- STICKLINE(主动买>0,0,主动买,0.9,0),COLOR0000DD;
- STICKLINE(主动买>0,0,主动买,0.3,0),COLOR0000FF;
- JDZ:=ABS(买卖差);
- STICKLINE(主动买>主动卖,0,JDZ,2.3,0)COLOR0035FF;
- STICKLINE(主动买>主动卖,0,JDZ,1.8,0)COLOR0064FF;
- STICKLINE(主动买>主动卖,0,JDZ,1.3,0)COLOR0093FF;
- STICKLINE(主动买>主动卖,0,JDZ,0.8,0)COLOR00C2FF;
- STICKLINE(主动买>主动卖,0,JDZ,0.3,0)COLOR00FFFF;
- STICKLINE(主动买<主动卖,0,JDZ,2.3,0),COLOR006000;
- STICKLINE(主动买<主动卖,0,JDZ,2.1,0),COLOR007500;
- STICKLINE(主动买<主动卖,0,JDZ,1.8,0),COLOR009100;
- STICKLINE(主动买<主动卖,0,JDZ,1.3,0),COLOR00A600;
- STICKLINE(主动买<主动卖,0,JDZ,0.8,0),COLOR00BB00;
- STICKLINE(主动买<主动卖,0,JDZ,0.3,0),COLOR00CC00;
- {曲线}
- SGM:=SUM(IF(BARSCOUNT(C),买卖差,0),3);
- 短:SMA(SGM,13,1)*2.5,COLOREE33FF,LINETHICK1;
- 短M:SMA(短,5,2),COLOR13FE33,LINETHICK1;
- 长:SUM(SGM,64)/20,COLORYELLOW,LINETHICK1;
- 长M:EMA(长,8),COLORFFAA55,LINETHICK1;
-
- STICKLINE(换手2<-50000,0,换手2,0.5,0),COLORMAGENTA;
- STICKLINE(换手2<-170000,0,换手2,0.5,0),COLORGREEN;