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版,中高分辨率屏幕};
- DRAWGBK(c>0),color000000;
- 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,4,1),COLOR5050FF;
- STICKLINE(C<OPEN,0,V0L,4,1),COLORFFFF00;
- {以下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,COLOR5050FF,LINETHICK0;
- 主动卖:V0L*(1-JGL_DTC)/2,COLORCYAN,LINETHICK0;
- 买卖差:主动买-主动卖,COLOR13AADD,LINETHICK0;
- {实心柱}
- JDZ:=ABS(买卖差)*2;
- STICKLINE(主动买>主动卖,0,JDZ,4,0),COLOR5050FF;
- STICKLINE(主动买<主动卖,0,JDZ,4,0),COLORFFFF00;
- {预测量}
- 交易分钟数:=if(CURRENTTIME>93000 and CURRENTTIME<150000,
- if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60,
- if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240);
- 预测量:IF(BARSTATUS=2,VOL/交易分钟数*240,VOL),COLORGREEN,LINETHICK0;
- STICKLINE(BARSTATUS=2,0,预测量,10,1),COLORgreen,DOTLINE,LAYER7;